Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.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.DCPM_Cooling,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Cooling",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Cooling",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.001588/0.001588, 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.37/1.37, allocations: 221.5 MB / 230.3 MB, free: 7.516 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.0008505/0.0008504, allocations: 97.78 kB / 281.2 MB, free: 5.266 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.928e-05/1.923e-05, allocations: 7.984 kB / 337.1 MB, free: 9.918 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08423/0.08426, allocations: 50.42 MB / 387.6 MB, free: 7.457 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3125/0.3968, allocations: 99.09 MB / 486.7 MB, free: 11.58 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000219/0.3971, allocations: 79.95 kB / 486.7 MB, free: 11.5 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.07891/0.476, allocations: 30.27 MB / 0.5049 GB, free: 13.03 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.673e-06/0.4761, allocations: 0 / 0.5049 GB, free: 13.03 MB / 394.7 MB Notification: Performance of Transformations before backend: time 7.659e-05/0.4761, allocations: 27.94 kB / 0.5049 GB, free: 13 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 272 * Number of variables: 272 Notification: Performance of Generate backend data structure: time 0.00266/0.4788, allocations: 1.368 MB / 0.5063 GB, free: 11.57 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.285e-05/0.4789, allocations: 16.02 kB / 0.5063 GB, free: 11.56 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006081/0.4795, allocations: 198.1 kB / 0.5065 GB, free: 11.36 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001731/0.4812, allocations: 0.8361 MB / 0.5073 GB, free: 10.48 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001494/0.4814, allocations: 79.83 kB / 0.5073 GB, free: 10.39 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001325/0.4815, allocations: 71.91 kB / 0.5074 GB, free: 10.32 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001217/0.4828, allocations: 0.6407 MB / 0.508 GB, free: 9.68 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001536/0.4843, allocations: 0.9366 MB / 0.509 GB, free: 8.656 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.133e-05/0.4843, allocations: 0 / 0.509 GB, free: 8.656 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.987e-05/0.4844, allocations: 4 kB / 0.509 GB, free: 8.652 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.109e-05/0.4845, allocations: 24 kB / 0.509 GB, free: 8.629 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005356/0.4898, allocations: 3.733 MB / 0.5126 GB, free: 4.719 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00119/0.491, allocations: 0.5138 MB / 0.5131 GB, free: 4.188 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003193/0.4914, allocations: 224.8 kB / 0.5133 GB, free: 3.969 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.224e-05/0.4914, allocations: 16.55 kB / 0.5134 GB, free: 3.953 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004195/0.4918, allocations: 246.2 kB / 0.5136 GB, free: 3.699 MB / 394.7 MB Notification: Performance of pre-optimization done (n=63): time 3.046e-06/0.4919, allocations: 0 / 0.5136 GB, free: 3.699 MB / 394.7 MB Notification: Performance of matching and sorting (n=66): time 0.002416/0.4943, allocations: 1.407 MB / 0.515 GB, free: 2.234 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000208/0.4945, allocations: 483.2 kB / 0.5154 GB, free: 1.648 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009709/0.4955, allocations: 0.7324 MB / 0.5161 GB, free: 0.8984 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 4.511e-05/0.4955, allocations: 29.7 kB / 0.5162 GB, free: 0.8633 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004649/0.496, allocations: 0.6578 MB / 0.5168 GB, free: 200 kB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001699/0.4962, allocations: 224.8 kB / 0.517 GB, free: 15.97 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.327e-05/0.4962, allocations: 4 kB / 0.517 GB, free: 15.96 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001164/0.4964, allocations: 341.9 kB / 0.5174 GB, free: 15.62 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003325/0.4967, allocations: 202.6 kB / 0.5176 GB, free: 15.43 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000595/0.4973, allocations: 0.6442 MB / 0.5182 GB, free: 14.58 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004542/0.4978, allocations: 308.2 kB / 0.5185 GB, free: 14.28 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.092e-06/0.4978, allocations: 4 kB / 0.5185 GB, free: 14.27 MB / 410.7 MB Notification: Performance of matching and sorting (n=130) (initialization): time 0.001558/0.4993, allocations: 0.9578 MB / 0.5194 GB, free: 13.3 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.939e-05/0.4994, allocations: 63.41 kB / 0.5195 GB, free: 13.23 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.282e-05/0.4994, allocations: 8 kB / 0.5195 GB, free: 13.22 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006556/0.5001, allocations: 187 kB / 0.5197 GB, free: 13.03 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006902/0.5008, allocations: 219.6 kB / 0.5199 GB, free: 12.82 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003515/0.5043, allocations: 3.396 MB / 0.5232 GB, free: 9.191 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000778/0.5051, allocations: 56 kB / 0.5232 GB, free: 9.137 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.407e-05/0.5052, allocations: 44 kB / 0.5233 GB, free: 9.094 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 52 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,$PRE.pulse.T_start,pulse.T_start,$PRE.pulse.count,pulse.count) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (114): * Single equations (assignments): 110 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(2,100.0%) 13} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001679/0.5054, allocations: 152.6 kB / 0.5234 GB, free: 8.938 MB / 410.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001067/0.5064, allocations: 0.6163 MB / 0.524 GB, free: 8.305 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001187/0.5066, allocations: 110.7 kB / 0.5241 GB, free: 8.195 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001173/0.5077, allocations: 0.6244 MB / 0.5247 GB, free: 7.555 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.941e-06/0.5078, allocations: 4 kB / 0.5248 GB, free: 7.551 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.671e-06/0.5078, allocations: 4 kB / 0.5248 GB, free: 7.547 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0009703/0.5087, allocations: 0.8865 MB / 0.5256 GB, free: 6.551 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002326/0.5111, allocations: 1.591 MB / 0.5272 GB, free: 4.879 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.601e-06/0.5111, allocations: 4 kB / 0.5272 GB, free: 4.875 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005039/0.5116, allocations: 112 kB / 0.5273 GB, free: 4.766 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004084/0.512, allocations: 129.6 kB / 0.5274 GB, free: 4.633 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.3e-05/0.5121, allocations: 4 kB / 0.5274 GB, free: 4.629 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002818/0.5149, allocations: 3.151 MB / 0.5305 GB, free: 1.254 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.853e-06/0.5149, allocations: 7.969 kB / 0.5305 GB, free: 1.246 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001517/0.5164, allocations: 1.033 MB / 0.5315 GB, free: 132 kB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003866/0.5169, allocations: 231.8 kB / 0.5317 GB, free: 15.88 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001247/0.517, allocations: 4.125 kB / 0.5317 GB, free: 15.88 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005259/0.5175, allocations: 43.91 kB / 0.5318 GB, free: 15.84 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001181/0.5176, allocations: 64.36 kB / 0.5318 GB, free: 15.77 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.375e-05/0.5177, allocations: 16 kB / 0.5318 GB, free: 15.76 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0007284/0.5184, allocations: 0.549 MB / 0.5324 GB, free: 15.2 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.5184, allocations: 0 / 0.5324 GB, free: 15.2 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001063/0.5195, allocations: 296.1 kB / 0.5327 GB, free: 14.91 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 5 (dcpm.inertiaRotor.phi,dcpm.inertiaRotor.w,dcpm.la.i,armature.T,core.T) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (53): * Single equations (assignments): 49 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * 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: 1 {1 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.002284/0.5218, allocations: 2.266 MB / 0.5349 GB, free: 12.56 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.001726/0.5235, allocations: 0.9597 MB / 0.5358 GB, free: 11.56 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 3.346e-06/0.5235, allocations: 0 / 0.5358 GB, free: 11.56 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007116/0.5243, allocations: 0.4981 MB / 0.5363 GB, free: 11.05 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001068/0.5253, allocations: 247.2 kB / 0.5365 GB, free: 10.81 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00312/0.5285, allocations: 1.73 MB / 0.5382 GB, free: 9.012 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000564/0.5291, allocations: 1.108 MB / 0.5393 GB, free: 7.871 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.000505/0.5296, allocations: 132.6 kB / 0.5394 GB, free: 7.738 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000483/0.5301, allocations: 455.3 kB / 0.5399 GB, free: 7.293 MB / 426.7 MB Notification: Performance of SimCode: time 4.11e-07/0.5301, allocations: 0 / 0.5399 GB, free: 7.293 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2321/0.7622, allocations: 23.68 MB / 0.563 GB, free: 116.6 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001475/0.7624, allocations: 151.3 kB / 0.5631 GB, free: 116.4 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.816/3.578, allocations: 0 / 0.5631 GB, free: 116.4 MB / 426.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Cooling_fmu --startTime=0 --stopTime=25 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Cooling.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling_res.mat does not exist to compare? outputFormat=mat