Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start,fileNamePrefix="Modelica_4_0_0_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_4_0_0_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/Complex 4.0.0+maint.om/package.mo): time 0.001162/0.001162, allocations: 176.2 kB / 8.348 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.458/1.458, allocations: 221.5 MB / 230.3 MB, free: 7.578 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009867/0.0009868, allocations: 90.06 kB / 281.2 MB, free: 5.34 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.934e-05/1.945e-05, allocations: 4 kB / 337.2 MB, free: 9.922 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1549/0.155, allocations: 50.43 MB / 387.6 MB, free: 7.457 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4552/0.6102, allocations: 162 MB / 0.5367 GB, free: 12.53 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003223/0.6106, allocations: 99.92 kB / 0.5368 GB, free: 12.43 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.296/2.907, allocations: 0.566 GB / 1.103 GB, free: 43.43 MB / 490.7 MB Notification: Performance of FrontEnd: time 1.563e-06/2.907, allocations: 0 / 1.103 GB, free: 43.43 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.001613/2.909, allocations: 421.4 kB / 1.103 GB, free: 43.39 MB / 490.7 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.06966/2.978, allocations: 16.9 MB / 1.12 GB, free: 38.35 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.537e-05/2.978, allocations: 9.125 kB / 1.12 GB, free: 38.35 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04568/3.024, allocations: 7.811 MB / 1.127 GB, free: 37.34 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04392/3.068, allocations: 14.81 MB / 1.142 GB, free: 35.6 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001264/3.069, allocations: 0.5716 MB / 1.142 GB, free: 35.6 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.009765/3.079, allocations: 1.02 MB / 1.143 GB, free: 35.59 MB / 490.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.06203/3.141, allocations: 22.77 MB / 1.166 GB, free: 35.51 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.09897/3.24, allocations: 26.03 MB / 1.191 GB, free: 24.3 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.001214/3.241, allocations: 24.55 kB / 1.191 GB, free: 24.28 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.008683/3.25, allocations: 12 kB / 1.191 GB, free: 24.27 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001675/3.252, allocations: 1.266 MB / 1.192 GB, free: 23.15 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.6425/3.894, allocations: 92.37 MB / 1.283 GB, free: 39.52 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0451/3.94, allocations: 51.12 MB / 1.332 GB, free: 31.27 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01243/3.952, allocations: 7.285 MB / 1.34 GB, free: 31.18 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0408/3.993, allocations: 19.63 MB / 1.359 GB, free: 30 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001063/3.993, allocations: 106.7 kB / 1.359 GB, free: 29.95 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=685): time 9.348e-06/3.993, allocations: 0 / 1.359 GB, free: 29.95 MB / 0.5261 GB Notification: Performance of matching and sorting (n=693): time 0.06697/4.06, allocations: 29.71 MB / 1.388 GB, free: 18.66 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001267/4.06, allocations: 148.2 kB / 1.388 GB, free: 18.56 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01198/4.072, allocations: 5.295 MB / 1.393 GB, free: 16.5 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.001746/4.074, allocations: 32.8 kB / 1.393 GB, free: 16.46 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.005251/4.079, allocations: 7.733 MB / 1.401 GB, free: 10.65 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.003811/4.083, allocations: 2.246 MB / 1.403 GB, free: 8.891 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001094/4.084, allocations: 0 / 1.403 GB, free: 8.891 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0006798/4.085, allocations: 0.6871 MB / 1.404 GB, free: 8.418 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007604/4.093, allocations: 4.812 MB / 1.408 GB, free: 6.457 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01118/4.104, allocations: 8.019 MB / 1.416 GB, free: 412 kB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01539/4.119, allocations: 7.853 MB / 1.424 GB, free: 13.55 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001936/4.119, allocations: 29.41 kB / 1.424 GB, free: 13.55 MB / 0.5417 GB Notification: Performance of matching and sorting (n=1213) (initialization): time 0.03773/4.157, allocations: 16.43 MB / 1.44 GB, free: 4.172 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001247/4.157, allocations: 58.47 kB / 1.44 GB, free: 4.117 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002231/4.158, allocations: 106.1 kB / 1.44 GB, free: 4.016 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006312/4.164, allocations: 2.374 MB / 1.442 GB, free: 2.168 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0102/4.174, allocations: 2.116 MB / 1.444 GB, free: 0.5352 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.4654/4.64, allocations: 27.29 MB / 1.471 GB, free: 86.5 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009476/4.649, allocations: 432.7 kB / 1.471 GB, free: 86.5 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002946/4.652, allocations: 442.8 kB / 1.472 GB, free: 86.5 MB / 0.5417 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 481 * Number of states: 0 () * Number of discrete variables: 12 (booleanStep[1].y,booleanStep[2].y,booleanStep[3].y,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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1064): * Single equations (assignments): 1051 * 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%) 5,(1,100.0%) 1,(1,100.0%) 5,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 4,(1,100.0%) 1,(18,41.7%) 100} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003262/4.655, allocations: 412.7 kB / 1.472 GB, free: 86.39 MB / 0.5417 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.02551/4.681, allocations: 12.79 MB / 1.485 GB, free: 85.59 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003062/4.684, allocations: 0.7155 MB / 1.485 GB, free: 85.59 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03153/4.716, allocations: 14.06 MB / 1.499 GB, free: 84.69 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01846/4.734, allocations: 9.428 MB / 1.508 GB, free: 84.4 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.936e-05/4.734, allocations: 26.09 kB / 1.508 GB, free: 84.4 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000197/4.734, allocations: 38.3 kB / 1.508 GB, free: 84.4 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06168/4.796, allocations: 27.11 MB / 1.535 GB, free: 81.75 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.229e-05/4.796, allocations: 5.219 kB / 1.535 GB, free: 81.75 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005642/4.802, allocations: 1.174 MB / 1.536 GB, free: 81.71 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006384/4.808, allocations: 2.45 MB / 1.538 GB, free: 81.02 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001635/4.81, allocations: 54.98 kB / 1.539 GB, free: 81 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03194/4.842, allocations: 31.55 MB / 1.569 GB, free: 59.23 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.135e-06/4.842, allocations: 6.156 kB / 1.569 GB, free: 59.23 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03488/4.877, allocations: 20.72 MB / 1.59 GB, free: 50.07 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.006481/4.883, allocations: 1.778 MB / 1.591 GB, free: 49.07 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002755/4.886, allocations: 11.84 kB / 1.591 GB, free: 49.07 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005815/4.892, allocations: 382 kB / 1.592 GB, free: 49.06 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001474/4.893, allocations: 0.5375 MB / 1.592 GB, free: 48.97 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005399/4.894, allocations: 195.1 kB / 1.592 GB, free: 48.93 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.007973/4.902, allocations: 3.9 MB / 1.596 GB, free: 47.39 MB / 0.5417 GB Notification: Performance of sort global known variables: time 2.2e-07/4.902, allocations: 0 / 1.596 GB, free: 47.39 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.01729/4.919, allocations: 2.762 MB / 1.599 GB, free: 45.71 MB / 0.5417 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * Number of states: 11 (imsQS.rotor.resistor.plug_p.reference.gamma,loadInertiaQS.w,quadraticLoadTorqueQS.phi,ims.stator.core.Phi.re,ims.stator.core.Phi.im,ims.stator.zeroInductor.i0,ims.rotor.core.Phi.re,ims.rotor.core.Phi.im,ims.rotor.zeroInductor.i0,loadInertia.w,quadraticLoadTorque.phi) * 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,booleanStep[1].y,booleanStep[2].y,booleanStep[3].y,rheostatM.booleanStep[1].y,rheostatM.booleanStep[2].y,rheostatM.booleanStep[3].y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (565): * Single equations (assignments): 550 * 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%) 1,(18,41.7%) 100,(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} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.03756/4.957, allocations: 22.37 MB / 1.621 GB, free: 26.16 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.02476/4.982, allocations: 13.02 MB / 1.633 GB, free: 14.56 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 1.462e-05/4.982, allocations: 4 kB / 1.633 GB, free: 14.55 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.4269/5.409, allocations: 8.296 MB / 1.642 GB, free: 95.41 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01388/5.423, allocations: 1.572 MB / 1.643 GB, free: 95.38 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1053/5.528, allocations: 32.35 MB / 1.675 GB, free: 90.07 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.03595/5.564, allocations: 11.66 MB / 1.686 GB, free: 88.78 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.02121/5.585, allocations: 3.233 MB / 1.689 GB, free: 88.5 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01659/5.602, allocations: 6.635 MB / 1.696 GB, free: 88.5 MB / 0.5417 GB Notification: Performance of SimCode: time 1.513e-06/5.602, allocations: 0 / 1.696 GB, free: 88.5 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.8378/6.44, allocations: 225.6 MB / 1.916 GB, free: 62.95 MB / 0.5417 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001897/6.44, allocations: 194.8 kB / 1.916 GB, free: 62.69 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.777/16.22, allocations: 3.969 kB / 1.916 GB, free: 62.69 MB / 0.5417 GB (rm -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMS_Start_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMS_Start.fmu > Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start_res.mat does not exist to compare? outputFormat=mat