Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.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.Electrical.Machines.Examples.InductionMachines.IMS_Start,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_InductionMachines_IMS_Start",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.InductionMachines.IMS_Start,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_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.0009387/0.0009387, allocations: 176.4 kB / 8.346 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.374/1.374, 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.0008782/0.0008782, allocations: 94.83 kB / 281.2 MB, free: 5.328 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.854e-05/1.876e-05, allocations: 4 kB / 337.1 MB, free: 9.93 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09657/0.0966, allocations: 50.42 MB / 387.6 MB, free: 7.477 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3742/0.4709, allocations: 110 MB / 497.5 MB, free: 0.7148 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000287/0.4712, allocations: 83.95 kB / 497.6 MB, free: 0.6328 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4333/0.9046, allocations: 64.72 MB / 0.5492 GB, free: 95.75 MB / 426.7 MB Notification: Performance of FrontEnd: time 4.258e-06/0.9046, allocations: 1.516 kB / 0.5492 GB, free: 95.75 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0006384/0.9053, allocations: 83.14 kB / 0.5492 GB, free: 95.75 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 798 * Number of variables: 798 Notification: Performance of Generate backend data structure: time 0.01211/0.9174, allocations: 3.274 MB / 0.5524 GB, free: 95.19 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.425e-05/0.9175, allocations: 13.72 kB / 0.5524 GB, free: 95.19 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002935/0.9205, allocations: 445.3 kB / 0.5529 GB, free: 94.98 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007671/0.9281, allocations: 2.37 MB / 0.5552 GB, free: 94.47 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002986/0.9285, allocations: 102.9 kB / 0.5553 GB, free: 94.47 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00143/0.9299, allocations: 185.3 kB / 0.5555 GB, free: 94.47 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01003/0.94, allocations: 3.286 MB / 0.5587 GB, free: 94.45 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01355/0.9536, allocations: 3.792 MB / 0.5624 GB, free: 93.96 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002527/0.9539, allocations: 10.41 kB / 0.5624 GB, free: 93.96 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009945/0.9549, allocations: 4.125 kB / 0.5624 GB, free: 93.96 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002099/0.9551, allocations: 126.1 kB / 0.5625 GB, free: 93.95 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03167/0.9868, allocations: 12.98 MB / 0.5752 GB, free: 90.77 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003237/0.9901, allocations: 2.811 MB / 0.5779 GB, free: 89.89 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002045/0.9921, allocations: 1.458 MB / 0.5793 GB, free: 89.88 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003711/0.9925, allocations: 148.9 kB / 0.5795 GB, free: 89.78 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.864e-05/0.9926, allocations: 52.22 kB / 0.5795 GB, free: 89.74 MB / 426.7 MB Notification: Performance of pre-optimization done (n=167): time 4.208e-06/0.9926, allocations: 0 / 0.5795 GB, free: 89.74 MB / 426.7 MB Notification: Performance of matching and sorting (n=183): time 0.01148/1.004, allocations: 6.287 MB / 0.5857 GB, free: 87.34 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.356e-05/1.004, allocations: 70.81 kB / 0.5857 GB, free: 87.28 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003216/1.007, allocations: 1.706 MB / 0.5874 GB, free: 86.58 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001368/1.008, allocations: 29.33 kB / 0.5874 GB, free: 86.55 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000932/1.008, allocations: 1.46 MB / 0.5889 GB, free: 85.43 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004447/1.009, allocations: 0.5885 MB / 0.5894 GB, free: 84.96 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001268/1.009, allocations: 3.219 kB / 0.5894 GB, free: 84.96 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.00013/1.009, allocations: 385.7 kB / 0.5898 GB, free: 84.63 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001362/1.011, allocations: 1.044 MB / 0.5908 GB, free: 84.23 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001585/1.012, allocations: 1.439 MB / 0.5922 GB, free: 83.38 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00166/1.014, allocations: 1.248 MB / 0.5935 GB, free: 82.93 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.261e-05/1.014, allocations: 3.5 kB / 0.5935 GB, free: 82.93 MB / 426.7 MB Notification: Performance of matching and sorting (n=250) (initialization): time 0.00488/1.019, allocations: 3.277 MB / 0.5967 GB, free: 81.75 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.589e-05/1.019, allocations: 18.47 kB / 0.5967 GB, free: 81.75 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.033e-05/1.019, allocations: 14.06 kB / 0.5967 GB, free: 81.75 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001691/1.021, allocations: 0.7719 MB / 0.5974 GB, free: 81.52 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001655/1.022, allocations: 469.8 kB / 0.5979 GB, free: 81.5 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007376/1.03, allocations: 9.831 MB / 0.6075 GB, free: 73.84 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002106/1.032, allocations: 94.62 kB / 0.6076 GB, free: 73.84 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003437/1.032, allocations: 73.06 kB / 0.6076 GB, free: 73.82 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 51 * Number of states: 0 () * Number of discrete variables: 6 (booleanStep[1].y,booleanStep[2].y,booleanStep[3].y,switchedRheostat.booleanStep[1].y,switchedRheostat.booleanStep[2].y,switchedRheostat.booleanStep[3].y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (217): * Single equations (assignments): 210 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 5 {(2,100.0%) 14,(1,100.0%) 1,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0005158/1.033, allocations: 160.5 kB / 0.6078 GB, free: 73.7 MB / 426.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.004536/1.037, allocations: 2.902 MB / 0.6106 GB, free: 72.62 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006666/1.038, allocations: 223.7 kB / 0.6108 GB, free: 72.5 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004637/1.042, allocations: 3.083 MB / 0.6139 GB, free: 71.34 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.23e-05/1.043, allocations: 15.75 kB / 0.6139 GB, free: 71.34 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.048e-05/1.043, allocations: 7.875 kB / 0.6139 GB, free: 71.34 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.683e-05/1.043, allocations: 11.64 kB / 0.6139 GB, free: 71.34 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01029/1.053, allocations: 6.243 MB / 0.62 GB, free: 68.88 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.618e-06/1.053, allocations: 3.469 kB / 0.62 GB, free: 68.88 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001329/1.054, allocations: 313.9 kB / 0.6203 GB, free: 68.86 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002274/1.057, allocations: 0.8989 MB / 0.6212 GB, free: 68.59 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001555/1.057, allocations: 11.31 kB / 0.6212 GB, free: 68.59 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009139/1.066, allocations: 12.94 MB / 0.6338 GB, free: 58.2 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.78e-06/1.066, allocations: 3.531 kB / 0.6338 GB, free: 58.2 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006202/1.072, allocations: 4.771 MB / 0.6385 GB, free: 54.7 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001468/1.074, allocations: 0.5462 MB / 0.639 GB, free: 54.2 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003755/1.074, allocations: 14.72 kB / 0.639 GB, free: 54.18 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001321/1.075, allocations: 99.91 kB / 0.6391 GB, free: 54.12 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003902/1.076, allocations: 167 kB / 0.6393 GB, free: 54.02 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001164/1.076, allocations: 51.23 kB / 0.6393 GB, free: 53.97 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.001725/1.078, allocations: 1.29 MB / 0.6406 GB, free: 52.8 MB / 426.7 MB Notification: Performance of sort global known variables: time 5.11e-07/1.078, allocations: 0 / 0.6406 GB, free: 52.8 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.002366/1.08, allocations: 0.6406 MB / 0.6412 GB, free: 52.16 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 8 (aims.i_0_s,aims.idq_sr[1],aims.idq_sr[2],aims.idq_rr[1],aims.idq_rr[2],aims.i_0_r,loadInertia.w,quadraticLoadTorque.phi) * Number of discrete variables: 6 (booleanStep[1].y,booleanStep[2].y,booleanStep[3].y,switchedRheostat.booleanStep[1].y,switchedRheostat.booleanStep[2].y,switchedRheostat.booleanStep[3].y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (148): * Single equations (assignments): 140 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 7 * 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 {(2,100.0%) 14,(1,100.0%) 1,(2,100.0%) 1,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.006127/1.086, allocations: 6.005 MB / 0.6471 GB, free: 46.72 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.00392/1.09, allocations: 3.37 MB / 0.6504 GB, free: 43.59 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 8.777e-06/1.09, allocations: 4.812 kB / 0.6504 GB, free: 43.59 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002616/1.093, allocations: 2.381 MB / 0.6527 GB, free: 41.36 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00293/1.096, allocations: 0.5156 MB / 0.6532 GB, free: 40.96 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009902/1.106, allocations: 6.349 MB / 0.6594 GB, free: 35.5 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001768/1.107, allocations: 2.588 MB / 0.6619 GB, free: 33.48 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.001685/1.109, allocations: 0.5518 MB / 0.6625 GB, free: 33.09 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001384/1.111, allocations: 1.235 MB / 0.6637 GB, free: 31.95 MB / 426.7 MB Notification: Performance of SimCode: time 1.242e-06/1.111, allocations: 0 / 0.6637 GB, free: 31.95 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3495/1.46, allocations: 57.21 MB / 0.7195 GB, free: 91.81 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001562/1.46, allocations: 157.9 kB / 0.7197 GB, free: 91.62 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.508/4.969, allocations: 0 / 0.7197 GB, free: 91.62 MB / 442.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMS_Start.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMS_Start.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMS_Start.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMS_Start.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMS_Start_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Machines_Examples_InductionMachines_IMS_Start_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Machines_Examples_InductionMachines_IMS_Start.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMS_Start.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMS_Start_res.mat does not exist to compare? outputFormat=mat