Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMS_Start",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMS_Start",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009613/0.0009613, allocations: 97.25 kB / 17 MB, free: 6.418 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001251/0.001251, allocations: 195.1 kB / 17.9 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.491/1.491, allocations: 227.4 MB / 246 MB, free: 10.07 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002815/0.0002815, allocations: 4 kB / 306.8 MB, free: 1.219 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1253/0.1256, allocations: 51.5 MB / 358.3 MB, free: 13.73 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start): time 0.3048/0.4305, allocations: 40.17 MB / 398.5 MB, free: 13.69 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.03477/0.4653, allocations: 11.21 MB / 409.7 MB, free: 5.367 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01594/0.4813, allocations: 326.5 kB / 410 MB, free: 5.297 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01226/0.4935, allocations: 2.237 MB / 412.3 MB, free: 3.645 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.02632/0.5199, allocations: 4.018 MB / 416.3 MB, free: 492 kB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01148/0.5314, allocations: 2.049 MB / 418.3 MB, free: 14.98 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.04298/0.5744, allocations: 23.33 MB / 441.7 MB, free: 9.023 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.08035/0.6548, allocations: 31.95 MB / 473.6 MB, free: 8.945 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01798/0.6729, allocations: 7.787 MB / 481.4 MB, free: 1.133 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0214/0.6943, allocations: 8.833 MB / 490.2 MB, free: 8.266 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00737/0.7017, allocations: 1.215 MB / 491.5 MB, free: 7.051 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01328/0.7151, allocations: 1.632 MB / 493.1 MB, free: 5.418 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.01049/0.7256, allocations: 3.874 MB / 497 MB, free: 1.531 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0116/0.7372, allocations: 3.973 MB / 0.4892 GB, free: 13.54 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.04673/0.784, allocations: 34.95 MB / 0.5233 GB, free: 10.5 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.344e-06/0.784, allocations: 4 kB / 0.5233 GB, free: 10.49 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.996e-06/0.784, allocations: 0 / 0.5233 GB, free: 10.49 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.001357/0.7854, allocations: 0 / 0.5233 GB, free: 10.49 MB / 446.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 5030 * Number of variables: 5030 Notification: Performance of Generate backend data structure: time 0.6169/1.402, allocations: 20.12 MB / 0.543 GB, free: 74.94 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.19e-05/1.402, allocations: 9.438 kB / 0.543 GB, free: 74.94 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.01792/1.42, allocations: 2.949 MB / 0.5459 GB, free: 74.73 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0643/1.485, allocations: 11.4 MB / 0.557 GB, free: 71.68 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04294/1.528, allocations: 12.89 MB / 0.5696 GB, free: 64.38 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001838/1.53, allocations: 1.363 MB / 0.5709 GB, free: 63.61 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.01088/1.541, allocations: 1.797 MB / 0.5727 GB, free: 62.41 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.09091/1.631, allocations: 29.47 MB / 0.6014 GB, free: 37.77 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.001184/1.633, allocations: 31.36 kB / 0.6015 GB, free: 37.74 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.008534/1.641, allocations: 0.7431 MB / 0.6022 GB, free: 37.02 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001035/1.642, allocations: 0.983 MB / 0.6032 GB, free: 36.03 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.06574/1.708, allocations: 27.19 MB / 0.6297 GB, free: 8.828 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2037/1.912, allocations: 95.19 MB / 0.7227 GB, free: 9.047 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.594/2.506, allocations: 52.55 MB / 0.774 GB, free: 151 MB / 0.5295 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0122/2.518, allocations: 7.397 MB / 0.7812 GB, free: 148.3 MB / 0.5295 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03565/2.554, allocations: 19.88 MB / 0.8006 GB, free: 139.5 MB / 0.5295 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.512e-05/2.554, allocations: 111.6 kB / 0.8007 GB, free: 139.4 MB / 0.5295 GB Notification: Performance of pre-optimization done (n=683): time 7.874e-06/2.554, allocations: 0 / 0.8007 GB, free: 139.4 MB / 0.5295 GB Notification: Performance of matching and sorting (n=691): time 0.09531/2.649, allocations: 43.06 MB / 0.8428 GB, free: 108.2 MB / 0.5295 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.245e-05/2.649, allocations: 151.1 kB / 0.8429 GB, free: 108.1 MB / 0.5295 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009376/2.659, allocations: 7.072 MB / 0.8498 GB, free: 101 MB / 0.5295 GB Notification: Performance of collectPreVariables (initialization): time 0.001303/2.66, allocations: 137.7 kB / 0.85 GB, free: 100.9 MB / 0.5295 GB Notification: Performance of collectInitialEqns (initialization): time 0.00345/2.664, allocations: 7.811 MB / 0.8576 GB, free: 93.02 MB / 0.5295 GB Notification: Performance of collectInitialBindings (initialization): time 0.002222/2.666, allocations: 2.348 MB / 0.8599 GB, free: 90.69 MB / 0.5295 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006472/2.666, allocations: 192 kB / 0.8601 GB, free: 90.5 MB / 0.5295 GB Notification: Performance of setup shared object (initialization): time 0.000406/2.667, allocations: 0.6953 MB / 0.8608 GB, free: 89.8 MB / 0.5295 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006353/2.673, allocations: 4.875 MB / 0.8655 GB, free: 84.92 MB / 0.5295 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009218/2.682, allocations: 8.353 MB / 0.8737 GB, free: 74.97 MB / 0.5295 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008892/2.691, allocations: 6.586 MB / 0.8801 GB, free: 68.34 MB / 0.5295 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.598e-05/2.692, allocations: 35.94 kB / 0.8801 GB, free: 68.3 MB / 0.5295 GB Notification: Performance of matching and sorting (n=1241) (initialization): time 0.02626/2.718, allocations: 16.1 MB / 0.8959 GB, free: 52.04 MB / 0.5295 GB Notification: Performance of prepare postOptimizeDAE: time 8.355e-05/2.718, allocations: 56.03 kB / 0.8959 GB, free: 51.98 MB / 0.5295 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001358/2.718, allocations: 112 kB / 0.896 GB, free: 51.88 MB / 0.5295 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005428/2.724, allocations: 2.577 MB / 0.8985 GB, free: 49.27 MB / 0.5295 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007493/2.731, allocations: 2.098 MB / 0.9006 GB, free: 47.17 MB / 0.5295 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0273/2.758, allocations: 28.53 MB / 0.9284 GB, free: 17.58 MB / 0.5295 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007541/2.766, allocations: 0.5384 MB / 0.929 GB, free: 17.04 MB / 0.5295 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001927/2.768, allocations: 456 kB / 0.9294 GB, free: 16.59 MB / 0.5295 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 511 * Number of states: 0 () * Number of discrete variables: 12 (rheostatQS.booleanStep[1].y,rheostatQS.booleanStep[2].y,rheostatQS.booleanStep[3].y,booleanStepQS[1].y,booleanStepQS[2].y,booleanStepQS[3].y,idealCloser.control[1],idealCloser.control[2],idealCloser.control[3],rheostatM.booleanStep[1].y,rheostatM.booleanStep[2].y,rheostatM.booleanStep[3].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1092): * Single equations (assignments): 1079 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 8 {(1,100.0%) 1,(18,41.7%) 100,(1,100.0%) 5,(1,100.0%) 1,(1,100.0%) 5,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.01308/2.781, allocations: 6.776 MB / 0.936 GB, free: 9.801 MB / 0.5295 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001974/2.783, allocations: 0.764 MB / 0.9368 GB, free: 9.027 MB / 0.5295 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2806/3.064, allocations: 13.15 MB / 0.9496 GB, free: 168.9 MB / 0.5295 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01595/3.08, allocations: 8.268 MB / 0.9577 GB, free: 168.2 MB / 0.5295 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001051/3.08, allocations: 26.25 kB / 0.9577 GB, free: 168.2 MB / 0.5295 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001228/3.08, allocations: 36.67 kB / 0.9578 GB, free: 168.2 MB / 0.5295 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04888/3.129, allocations: 28.09 MB / 0.9852 GB, free: 156.7 MB / 0.5295 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.374e-05/3.129, allocations: 7.859 kB / 0.9852 GB, free: 156.6 MB / 0.5295 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004568/3.133, allocations: 1.105 MB / 0.9863 GB, free: 156.6 MB / 0.5295 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006391/3.14, allocations: 2.637 MB / 0.9888 GB, free: 155.8 MB / 0.5295 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001256/3.141, allocations: 150.4 kB / 0.989 GB, free: 155.7 MB / 0.5295 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02991/3.171, allocations: 32.95 MB / 1.021 GB, free: 132.7 MB / 0.5295 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.733e-06/3.171, allocations: 12.25 kB / 1.021 GB, free: 132.7 MB / 0.5295 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02914/3.2, allocations: 18.88 MB / 1.04 GB, free: 118.4 MB / 0.5295 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00608/3.206, allocations: 1.778 MB / 1.041 GB, free: 117 MB / 0.5295 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002916/3.209, allocations: 127.9 kB / 1.041 GB, free: 116.9 MB / 0.5295 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005556/3.215, allocations: 409.2 kB / 1.042 GB, free: 116.5 MB / 0.5295 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001735/3.217, allocations: 0.5287 MB / 1.042 GB, free: 116 MB / 0.5295 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005221/3.217, allocations: 196 kB / 1.043 GB, free: 115.8 MB / 0.5295 GB Notification: Performance of sorting global known variables: time 0.00969/3.227, allocations: 4.748 MB / 1.047 GB, free: 111.1 MB / 0.5295 GB Notification: Performance of sort global known variables: time 6.01e-07/3.227, allocations: 0 / 1.047 GB, free: 111.1 MB / 0.5295 GB Notification: Performance of remove unused functions: time 0.0156/3.243, allocations: 3.061 MB / 1.05 GB, free: 108 MB / 0.5295 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * Number of states: 11 (ims.inertiaRotor.w,ims.stator.zeroInductor.i0,ims.stator.core.Phi.re,ims.stator.core.Phi.im,ims.rotor.zeroInductor.i0,ims.rotor.core.Phi.re,ims.rotor.core.Phi.im,quadraticLoadTorque.phi,imsQS.inertiaRotor.w,imsQS.rotor.stray.port_p.reference.gamma,quadraticLoadTorqueQS.phi) * Number of discrete variables: 12 (idealCloser.control[1],idealCloser.control[2],idealCloser.control[3],rheostatM.booleanStep[1].y,rheostatM.booleanStep[2].y,rheostatM.booleanStep[3].y,rheostatQS.booleanStep[1].y,rheostatQS.booleanStep[2].y,rheostatQS.booleanStep[3].y,booleanStepQS[1].y,booleanStepQS[2].y,booleanStepQS[3].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (563): * Single equations (assignments): 548 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 11 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 11 {(1,100.0%) 5,(1,100.0%) 5,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 4,(1,100.0%) 8,(1,100.0%) 1,(1,100.0%) 8,(2,100.0%) 12,(1,100.0%) 1,(18,41.7%) 100} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.02785/3.27, allocations: 19.74 MB / 1.069 GB, free: 88.46 MB / 0.5295 GB Notification: Performance of simCode: created initialization part: time 0.02151/3.292, allocations: 13.38 MB / 1.083 GB, free: 74.94 MB / 0.5295 GB Notification: Performance of simCode: created event and clocks part: time 1.464e-05/3.292, allocations: 4 kB / 1.083 GB, free: 74.94 MB / 0.5295 GB Notification: Performance of simCode: created simulation system equations: time 0.01206/3.304, allocations: 7.585 MB / 1.09 GB, free: 67.22 MB / 0.5295 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01367/3.318, allocations: 2.082 MB / 1.092 GB, free: 65.18 MB / 0.5295 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4441/3.762, allocations: 101.1 MB / 1.191 GB, free: 135 MB / 0.5295 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02297/3.785, allocations: 11.36 MB / 1.202 GB, free: 131.3 MB / 0.5295 GB Notification: Performance of simCode: alias equations: time 0.0127/3.798, allocations: 3.297 MB / 1.205 GB, free: 130.6 MB / 0.5295 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0108/3.809, allocations: 6.833 MB / 1.212 GB, free: 124.2 MB / 0.5295 GB Notification: Performance of SimCode: time 1.844e-06/3.809, allocations: 0 / 1.212 GB, free: 124.2 MB / 0.5295 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5652/4.374, allocations: 238 MB / 1.444 GB, free: 74.38 MB / 0.5295 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001551/4.374, allocations: 272.9 kB / 1.444 GB, free: 74.01 MB / 0.5295 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.166/12.54, allocations: 0 / 1.444 GB, free: 74.01 MB / 0.5295 GB (rm -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start_res.mat --tempDir=temp_Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMS_Start_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMS_Start.fmu > Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start_res.mat does not exist to compare? outputFormat=mat