Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_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.DCMachines.DCEE_Start,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCEE_Start",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCEE_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.001553/0.001553, allocations: 176.4 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.343/1.343, allocations: 221.5 MB / 230.3 MB, free: 7.57 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.000922/0.0009221, allocations: 101.3 kB / 281.2 MB, free: 5.32 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.724e-05/1.726e-05, allocations: 4 kB / 337.1 MB, free: 9.922 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09071/0.09075, allocations: 50.43 MB / 387.6 MB, free: 7.457 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3125/0.4033, allocations: 97.46 MB / 485 MB, free: 13.2 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002532/0.4036, allocations: 79.95 kB / 485.1 MB, free: 13.12 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06419/0.4678, allocations: 25.9 MB / 0.499 GB, free: 3.059 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.343e-06/0.4678, allocations: 3.938 kB / 0.499 GB, free: 3.055 MB / 378.7 MB Notification: Performance of Transformations before backend: time 5.896e-05/0.4679, allocations: 24 kB / 0.4991 GB, free: 3.031 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 246 * Number of variables: 246 Notification: Performance of Generate backend data structure: time 0.001672/0.4696, allocations: 1.108 MB / 0.5001 GB, free: 1.875 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.048e-05/0.4696, allocations: 12.02 kB / 0.5002 GB, free: 1.863 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005161/0.4701, allocations: 178.4 kB / 0.5003 GB, free: 1.688 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001242/0.4714, allocations: 0.7613 MB / 0.5011 GB, free: 0.8828 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.222e-05/0.4714, allocations: 28 kB / 0.5011 GB, free: 0.8555 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000103/0.4715, allocations: 56 kB / 0.5011 GB, free: 0.8008 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0009275/0.4725, allocations: 0.5233 MB / 0.5017 GB, free: 284 kB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001234/0.4737, allocations: 0.7397 MB / 0.5024 GB, free: 15.51 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.86e-05/0.4738, allocations: 7.844 kB / 0.5024 GB, free: 15.5 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.44e-05/0.4738, allocations: 0 / 0.5024 GB, free: 15.5 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.879e-05/0.4738, allocations: 24 kB / 0.5024 GB, free: 15.48 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00419/0.478, allocations: 3.758 MB / 0.5061 GB, free: 11.49 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003879/0.4784, allocations: 316.2 kB / 0.5064 GB, free: 11.15 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001617/0.4786, allocations: 117.4 kB / 0.5065 GB, free: 11.04 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.738e-05/0.4787, allocations: 8.281 kB / 0.5065 GB, free: 11.03 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.464e-05/0.4787, allocations: 38.84 kB / 0.5065 GB, free: 10.98 MB / 394.7 MB Notification: Performance of pre-optimization done (n=33): time 1.784e-06/0.4787, allocations: 0 / 0.5065 GB, free: 10.98 MB / 394.7 MB Notification: Performance of matching and sorting (n=36): time 0.001244/0.4799, allocations: 0.8814 MB / 0.5074 GB, free: 10.04 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.823e-05/0.48, allocations: 81.11 kB / 0.5075 GB, free: 9.941 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006397/0.4806, allocations: 0.5702 MB / 0.508 GB, free: 9.367 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 2.456e-05/0.4807, allocations: 25.7 kB / 0.5081 GB, free: 9.336 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003126/0.481, allocations: 0.5716 MB / 0.5086 GB, free: 8.754 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.763e-05/0.4811, allocations: 134.1 kB / 0.5087 GB, free: 8.621 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.672e-05/0.4811, allocations: 0 / 0.5087 GB, free: 8.621 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001339/0.4812, allocations: 382.7 kB / 0.5091 GB, free: 8.238 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001772/0.4814, allocations: 117.5 kB / 0.5092 GB, free: 8.125 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003448/0.4818, allocations: 420.3 kB / 0.5096 GB, free: 7.57 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002651/0.482, allocations: 188 kB / 0.5098 GB, free: 7.387 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.089e-06/0.4821, allocations: 4 kB / 0.5098 GB, free: 7.383 MB / 394.7 MB Notification: Performance of matching and sorting (n=86) (initialization): time 0.0007875/0.4828, allocations: 0.5562 MB / 0.5103 GB, free: 6.816 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.859e-05/0.4829, allocations: 9.25 kB / 0.5104 GB, free: 6.809 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.102e-05/0.4829, allocations: 8 kB / 0.5104 GB, free: 6.801 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001219/0.483, allocations: 36.84 kB / 0.5104 GB, free: 6.762 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004885/0.4835, allocations: 164 kB / 0.5106 GB, free: 6.602 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007696/0.4843, allocations: 1.244 MB / 0.5118 GB, free: 5.246 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004043/0.4847, allocations: 28.05 kB / 0.5118 GB, free: 5.219 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.107e-05/0.4848, allocations: 39.95 kB / 0.5118 GB, free: 5.18 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 46 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (85): * Single equations (assignments): 84 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001047/0.4849, allocations: 130.6 kB / 0.512 GB, free: 5.047 MB / 394.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0004232/0.4853, allocations: 301.4 kB / 0.5122 GB, free: 4.742 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.078e-05/0.4854, allocations: 75.06 kB / 0.5123 GB, free: 4.668 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000466/0.4859, allocations: 314.3 kB / 0.5126 GB, free: 4.344 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.628e-06/0.4859, allocations: 4 kB / 0.5126 GB, free: 4.34 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.356e-06/0.4859, allocations: 4 kB / 0.5126 GB, free: 4.336 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.254e-06/0.4859, allocations: 3.984 kB / 0.5126 GB, free: 4.332 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00128/0.4872, allocations: 1.06 MB / 0.5137 GB, free: 3.199 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.879e-06/0.4872, allocations: 4 kB / 0.5137 GB, free: 3.195 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003248/0.4876, allocations: 71.91 kB / 0.5137 GB, free: 3.125 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.461e-05/0.4876, allocations: 33 kB / 0.5138 GB, free: 3.09 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.705e-05/0.4877, allocations: 4 kB / 0.5138 GB, free: 3.086 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006801/0.4883, allocations: 1.225 MB / 0.515 GB, free: 1.746 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.298e-06/0.4884, allocations: 3.938 kB / 0.515 GB, free: 1.742 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006469/0.489, allocations: 0.6312 MB / 0.5156 GB, free: 1.027 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001834/0.4892, allocations: 180.1 kB / 0.5158 GB, free: 0.832 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.899e-05/0.4893, allocations: 7.953 kB / 0.5158 GB, free: 0.8242 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003545/0.4897, allocations: 23.98 kB / 0.5158 GB, free: 0.8008 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.579e-05/0.4897, allocations: 27.95 kB / 0.5158 GB, free: 0.7734 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.694e-05/0.4897, allocations: 12 kB / 0.5158 GB, free: 0.7617 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0004685/0.4902, allocations: 435.2 kB / 0.5162 GB, free: 352 kB / 394.7 MB Notification: Performance of sort global known variables: time 1.51e-07/0.4902, allocations: 0 / 0.5162 GB, free: 352 kB / 394.7 MB Notification: Performance of remove unused functions: time 0.0006323/0.4909, allocations: 176 kB / 0.5164 GB, free: 176 kB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 4 (dcee.inertiaRotor.phi,dcee.inertiaRotor.w,dcee.la.i,dcee.airGapDC.psi_e) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (35): * Single equations (assignments): 34 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001325/0.4922, allocations: 1.823 MB / 0.5182 GB, free: 14.27 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0006263/0.4928, allocations: 437.9 kB / 0.5186 GB, free: 13.84 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 4.86e-06/0.4929, allocations: 4 kB / 0.5186 GB, free: 13.83 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002673/0.4931, allocations: 239.6 kB / 0.5188 GB, free: 13.59 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008032/0.4939, allocations: 164.2 kB / 0.519 GB, free: 13.43 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002388/0.4963, allocations: 1.355 MB / 0.5203 GB, free: 12.01 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004833/0.4968, allocations: 1.012 MB / 0.5213 GB, free: 10.97 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0003594/0.4972, allocations: 98.44 kB / 0.5214 GB, free: 10.87 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003796/0.4976, allocations: 359.3 kB / 0.5217 GB, free: 10.52 MB / 410.7 MB Notification: Performance of SimCode: time 4.51e-07/0.4976, allocations: 0 / 0.5217 GB, free: 10.52 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03457/0.5322, allocations: 15 MB / 0.5364 GB, free: 11.62 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000154/0.5324, allocations: 156.7 kB / 0.5366 GB, free: 11.43 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.357/2.889, allocations: 0 / 0.5366 GB, free: 11.43 MB / 426.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCEE_Start_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCEE_Start.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start_res.mat does not exist to compare? outputFormat=mat