Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start,fileNamePrefix="Modelica_3_2_3_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_3_2_3_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 3.2.3+maint.om/package.mo): time 0.001063/0.001063, allocations: 171.9 kB / 14.1 MB, free: 1.223 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.414/1.414, allocations: 205.2 MB / 219.8 MB, free: 14.21 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008848/0.0008846, allocations: 86.7 kB / 268 MB, free: 14.06 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.765e-05/3.776e-05, allocations: 0 / 322.6 MB, free: 17.24 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08675/0.08681, allocations: 47.57 MB / 370.1 MB, free: 1.602 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.405/0.4918, allocations: 162 MB / 0.5197 GB, free: 12.59 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000345/0.4922, allocations: 105.2 kB / 0.5198 GB, free: 12.51 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.166/2.658, allocations: 0.5707 GB / 1.091 GB, free: 40.61 MB / 474.7 MB Notification: Performance of FrontEnd: time 1.933e-06/2.658, allocations: 0 / 1.091 GB, free: 40.61 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.001775/2.66, allocations: 427.3 kB / 1.091 GB, free: 40.55 MB / 474.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 5087 * Number of variables: 5087 Notification: Performance of Generate backend data structure: time 0.05751/2.718, allocations: 16.99 MB / 1.108 GB, free: 35.45 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.697e-05/2.718, allocations: 9.062 kB / 1.108 GB, free: 35.45 MB / 474.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.01334/2.731, allocations: 2.953 MB / 1.11 GB, free: 35.25 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04582/2.777, allocations: 8.476 MB / 1.119 GB, free: 34.21 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03828/2.815, allocations: 14.54 MB / 1.133 GB, free: 32.47 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001789/2.817, allocations: 1.346 MB / 1.134 GB, free: 32.43 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00898/2.826, allocations: 1.746 MB / 1.136 GB, free: 32.42 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.08158/2.908, allocations: 30.35 MB / 1.166 GB, free: 16.29 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0008607/2.909, allocations: 27.75 kB / 1.166 GB, free: 16.27 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00727/2.916, allocations: 0.7476 MB / 1.166 GB, free: 15.54 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001556/2.918, allocations: 1.195 MB / 1.167 GB, free: 14.45 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.06329/2.981, allocations: 27.53 MB / 1.194 GB, free: 6.785 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4877/3.469, allocations: 98.32 MB / 1.29 GB, free: 31.71 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0317/3.5, allocations: 35.33 MB / 1.325 GB, free: 7.406 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01791/3.518, allocations: 12.77 MB / 1.337 GB, free: 1.953 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.07825/3.597, allocations: 39.69 MB / 1.376 GB, free: 0.7109 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001264/3.597, allocations: 157.4 kB / 1.376 GB, free: 0.5898 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=1269): time 1.484e-05/3.597, allocations: 0 / 1.376 GB, free: 0.5898 MB / 0.4948 GB Notification: Performance of matching and sorting (n=1277): time 0.4191/4.016, allocations: 46.17 MB / 1.421 GB, free: 81.08 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.746e-05/4.016, allocations: 191.1 kB / 1.422 GB, free: 80.98 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008264/4.024, allocations: 4.976 MB / 1.426 GB, free: 80.54 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.002369/4.027, allocations: 202.8 kB / 1.427 GB, free: 80.5 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.003425/4.03, allocations: 6.651 MB / 1.433 GB, free: 77.22 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.005117/4.035, allocations: 4.188 MB / 1.437 GB, free: 74.5 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001488/4.037, allocations: 214.3 kB / 1.437 GB, free: 74.5 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.001134/4.038, allocations: 0.8057 MB / 1.438 GB, free: 74.16 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01425/4.052, allocations: 8.149 MB / 1.446 GB, free: 74.14 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01601/4.068, allocations: 10.3 MB / 1.456 GB, free: 72.04 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01747/4.086, allocations: 9.776 MB / 1.466 GB, free: 71.86 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001852/4.086, allocations: 17.16 kB / 1.466 GB, free: 71.86 MB / 0.5105 GB Notification: Performance of matching and sorting (n=1564) (initialization): time 0.04891/4.135, allocations: 24.92 MB / 1.49 GB, free: 63.4 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001549/4.135, allocations: 28.19 kB / 1.49 GB, free: 63.4 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001813/4.135, allocations: 56 kB / 1.49 GB, free: 63.4 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01758/4.153, allocations: 8.943 MB / 1.499 GB, free: 60.69 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00889/4.162, allocations: 1.865 MB / 1.501 GB, free: 60.63 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03193/4.194, allocations: 30.4 MB / 1.53 GB, free: 40.65 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009108/4.203, allocations: 0.55 MB / 1.531 GB, free: 40.47 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002172/4.205, allocations: 466.5 kB / 1.531 GB, free: 40.38 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 248 * 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,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 initialization (982): * Single equations (assignments): 918 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 51 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 12 * 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: 7 {(1,100.0%) 1,(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: 5 {6 9,6 9,6 9,6 9,42 268} Notification: Performance of prepare postOptimizeDAE: time 0.003992/4.209, allocations: 0.683 MB / 1.532 GB, free: 39.92 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003067/4.212, allocations: 0.8504 MB / 1.533 GB, free: 39.46 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04751/4.26, allocations: 25.36 MB / 1.558 GB, free: 19.82 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.03711/4.297, allocations: 20.06 MB / 1.577 GB, free: 2.105 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001024/4.297, allocations: 8 kB / 1.577 GB, free: 2.098 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0003623/4.297, allocations: 54.47 kB / 1.577 GB, free: 2.098 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.4495/4.747, allocations: 48.53 MB / 1.625 GB, free: 82.01 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001286/4.747, allocations: 3.312 kB / 1.625 GB, free: 82.01 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007135/4.754, allocations: 1.347 MB / 1.626 GB, free: 82.01 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01971/4.774, allocations: 9.061 MB / 1.635 GB, free: 81.78 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0034/4.777, allocations: 271.6 kB / 1.635 GB, free: 81.78 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03682/4.814, allocations: 36.5 MB / 1.671 GB, free: 62.71 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.033e-06/4.814, allocations: 8.094 kB / 1.671 GB, free: 62.71 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.06458/4.879, allocations: 37.71 MB / 1.708 GB, free: 45.36 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.008797/4.888, allocations: 2.802 MB / 1.71 GB, free: 43.3 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.005859/4.894, allocations: 195.8 kB / 1.711 GB, free: 43.11 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.009325/4.903, allocations: 0.5113 MB / 1.711 GB, free: 42.74 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.004162/4.907, allocations: 0.9643 MB / 1.712 GB, free: 42.13 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.002872/4.91, allocations: 342.8 kB / 1.712 GB, free: 41.83 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.007686/4.918, allocations: 3.785 MB / 1.716 GB, free: 38.46 MB / 0.5105 GB Notification: Performance of sort global known variables: time 7.91e-07/4.918, allocations: 0 / 1.716 GB, free: 38.46 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.01792/4.936, allocations: 3.249 MB / 1.719 GB, free: 35.23 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * Number of states: 11 (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,imsQS.rotor.resistor.plug_p.reference.gamma,loadInertiaQS.w,quadraticLoadTorqueQS.phi) * 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 simulation (716): * Single equations (assignments): 650 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 51 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 15 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 10 {(1,100.0%) 5,(1,100.0%) 8,(1,100.0%) 1,(1,100.0%) 5,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 4,(1,100.0%) 8,(2,100.0%) 12,(1,100.0%) 1} * Non-linear torn systems: 5 {6 9,6 9,6 9,6 9,42 268} Notification: Performance of Backend phase and start with SimCode phase: time 0.07051/5.006, allocations: 39.7 MB / 1.758 GB, free: 124 kB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.4118/5.418, allocations: 23.45 MB / 1.781 GB, free: 95.65 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.103e-05/5.418, allocations: 3.156 kB / 1.781 GB, free: 95.65 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.02682/5.445, allocations: 12.17 MB / 1.793 GB, free: 94.34 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01286/5.458, allocations: 1.969 MB / 1.795 GB, free: 94.31 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.09275/5.551, allocations: 39.64 MB / 1.833 GB, free: 88.77 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02198/5.573, allocations: 11.93 MB / 1.845 GB, free: 87.46 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.01227/5.585, allocations: 2.633 MB / 1.848 GB, free: 87.18 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.015/5.6, allocations: 6.769 MB / 1.854 GB, free: 87.17 MB / 0.5261 GB Notification: Performance of SimCode: time 1.192e-06/5.6, allocations: 0 / 1.854 GB, free: 87.17 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.172/6.772, allocations: 333.8 MB / 2.18 GB, free: 42.16 MB / 0.5417 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001707/6.772, allocations: 233.1 kB / 2.18 GB, free: 41.86 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.829/16.6, allocations: 3.938 kB / 2.18 GB, free: 41.85 MB / 0.5417 GB (rm -f Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMS_Start_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMS_Start.fmu > Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start_res.mat does not exist to compare? outputFormat=mat