Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.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_QuasiStatic,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_QuasiStatic",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_QuasiStatic",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.0009733/0.0009731, allocations: 177.1 kB / 8.35 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.335/1.335, allocations: 221.5 MB / 230.3 MB, free: 7.496 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.0009285/0.0009285, allocations: 98.89 kB / 281.2 MB, free: 5.254 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.031e-05/2.056e-05, allocations: 4 kB / 337.2 MB, free: 9.906 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1012/0.1013, allocations: 50.42 MB / 387.6 MB, free: 7.445 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3309/0.4322, allocations: 95.01 MB / 482.6 MB, free: 15.73 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002117/0.4325, allocations: 83.95 kB / 482.7 MB, free: 15.65 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1038/0.5363, allocations: 40.23 MB / 0.5106 GB, free: 7.129 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.192e-06/0.5364, allocations: 0 / 0.5106 GB, free: 7.129 MB / 394.7 MB Notification: Performance of Transformations before backend: time 7.609e-05/0.5365, allocations: 32 kB / 0.5107 GB, free: 7.098 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: 392 * Number of variables: 392 Notification: Performance of Generate backend data structure: time 0.002463/0.5389, allocations: 1.566 MB / 0.5122 GB, free: 5.473 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.849e-05/0.539, allocations: 8.031 kB / 0.5122 GB, free: 5.465 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007507/0.5397, allocations: 253.6 kB / 0.5124 GB, free: 5.215 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001761/0.5415, allocations: 1.094 MB / 0.5135 GB, free: 4.078 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.801e-05/0.5416, allocations: 48 kB / 0.5136 GB, free: 4.031 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001689/0.5417, allocations: 103.9 kB / 0.5137 GB, free: 3.93 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001467/0.5432, allocations: 0.8184 MB / 0.5145 GB, free: 3.109 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002097/0.5453, allocations: 1.204 MB / 0.5156 GB, free: 1.832 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.061e-05/0.5454, allocations: 11.91 kB / 0.5156 GB, free: 1.82 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.996e-05/0.5455, allocations: 4 kB / 0.5156 GB, free: 1.816 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.267e-05/0.5455, allocations: 36 kB / 0.5157 GB, free: 1.781 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007777/0.5533, allocations: 6.354 MB / 0.5219 GB, free: 11.08 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005573/0.5539, allocations: 351.3 kB / 0.5222 GB, free: 10.73 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002859/0.5542, allocations: 190.2 kB / 0.5224 GB, free: 10.54 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.967e-05/0.5542, allocations: 8.422 kB / 0.5224 GB, free: 10.53 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003815/0.5546, allocations: 240.8 kB / 0.5226 GB, free: 10.27 MB / 410.7 MB Notification: Performance of pre-optimization done (n=50): time 5.18e-06/0.5546, allocations: 0 / 0.5226 GB, free: 10.27 MB / 410.7 MB Notification: Performance of matching and sorting (n=56): time 0.002387/0.557, allocations: 1.506 MB / 0.5241 GB, free: 8.703 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.393e-05/0.5571, allocations: 192.5 kB / 0.5243 GB, free: 8.473 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001068/0.5582, allocations: 0.8477 MB / 0.5251 GB, free: 7.613 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 3.413e-05/0.5583, allocations: 29.7 kB / 0.5251 GB, free: 7.578 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006347/0.5589, allocations: 0.8819 MB / 0.526 GB, free: 6.684 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001409/0.5591, allocations: 197.2 kB / 0.5262 GB, free: 6.488 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.879e-05/0.5591, allocations: 0 / 0.5262 GB, free: 6.488 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001341/0.5592, allocations: 349.9 kB / 0.5265 GB, free: 6.141 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003069/0.5595, allocations: 190.6 kB / 0.5267 GB, free: 5.953 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006301/0.5602, allocations: 0.754 MB / 0.5274 GB, free: 4.918 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004663/0.5607, allocations: 333.8 kB / 0.5278 GB, free: 4.59 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.574e-06/0.5607, allocations: 7.938 kB / 0.5278 GB, free: 4.582 MB / 410.7 MB Notification: Performance of matching and sorting (n=151) (initialization): time 0.001449/0.5621, allocations: 0.9456 MB / 0.5287 GB, free: 3.625 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.436e-05/0.5622, allocations: 41.7 kB / 0.5287 GB, free: 3.578 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.953e-05/0.5622, allocations: 20 kB / 0.5288 GB, free: 3.559 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002018/0.5624, allocations: 69.66 kB / 0.5288 GB, free: 3.484 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007988/0.5632, allocations: 271.5 kB / 0.5291 GB, free: 3.219 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001617/0.5648, allocations: 2.477 MB / 0.5315 GB, free: 0.5117 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008339/0.5657, allocations: 48.03 kB / 0.5315 GB, free: 476 kB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.654e-05/0.5658, allocations: 64 kB / 0.5316 GB, free: 412 kB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 87 * 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 (148): * Single equations (assignments): 145 * Array equations: 0 * Algorithm blocks: 1 * 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,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001644/0.566, allocations: 152.5 kB / 0.5318 GB, free: 252 kB / 410.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0006856/0.5666, allocations: 463.3 kB / 0.5322 GB, free: 15.78 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001321/0.5668, allocations: 118.6 kB / 0.5323 GB, free: 15.66 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008158/0.5676, allocations: 468.2 kB / 0.5328 GB, free: 15.19 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.394e-06/0.5676, allocations: 8 kB / 0.5328 GB, free: 15.18 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.44e-06/0.5676, allocations: 7.953 kB / 0.5328 GB, free: 15.18 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.063e-06/0.5677, allocations: 3.984 kB / 0.5328 GB, free: 15.17 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002317/0.57, allocations: 1.653 MB / 0.5344 GB, free: 13.42 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.031e-06/0.57, allocations: 7.938 kB / 0.5344 GB, free: 13.41 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004421/0.5704, allocations: 108.3 kB / 0.5345 GB, free: 13.3 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001351/0.5706, allocations: 45.7 kB / 0.5345 GB, free: 13.25 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.856e-05/0.5706, allocations: 8 kB / 0.5346 GB, free: 13.25 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001581/0.5722, allocations: 2.45 MB / 0.5369 GB, free: 10.57 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.374e-06/0.5722, allocations: 4 kB / 0.5369 GB, free: 10.56 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001279/0.5735, allocations: 1.001 MB / 0.5379 GB, free: 9.418 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004139/0.574, allocations: 231.7 kB / 0.5381 GB, free: 9.172 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001224/0.5741, allocations: 4 kB / 0.5381 GB, free: 9.168 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004942/0.5746, allocations: 32.09 kB / 0.5382 GB, free: 9.137 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001081/0.5747, allocations: 55.83 kB / 0.5382 GB, free: 9.082 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.856e-05/0.5747, allocations: 20 kB / 0.5383 GB, free: 9.062 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0009651/0.5757, allocations: 0.6188 MB / 0.5389 GB, free: 8.438 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.5757, allocations: 0 / 0.5389 GB, free: 8.438 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001292/0.577, allocations: 272 kB / 0.5391 GB, free: 8.172 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 5 (dcpm1.inertiaRotor.phi,dcpm1.inertiaRotor.w,dcpm1.la.i,dcpm2.inertiaRotor.phi,dcpm2.inertiaRotor.w) * 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 (54): * Single equations (assignments): 50 * 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: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002127/0.5792, allocations: 2.753 MB / 0.5418 GB, free: 5.289 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.001491/0.5807, allocations: 0.8011 MB / 0.5426 GB, free: 4.457 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 6.642e-06/0.5807, allocations: 5.312 kB / 0.5426 GB, free: 4.453 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005465/0.5812, allocations: 435.9 kB / 0.543 GB, free: 4.008 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001249/0.5825, allocations: 270.3 kB / 0.5433 GB, free: 3.742 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00394/0.5865, allocations: 2.031 MB / 0.5452 GB, free: 1.609 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007249/0.5872, allocations: 1.205 MB / 0.5464 GB, free: 384 kB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.0006325/0.5878, allocations: 154.2 kB / 0.5466 GB, free: 228 kB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.1939/0.7818, allocations: 0.5694 MB / 0.5471 GB, free: 112.8 MB / 426.7 MB Notification: Performance of SimCode: time 1.172e-06/0.7818, allocations: 0 / 0.5471 GB, free: 112.8 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06043/0.8422, allocations: 22.98 MB / 0.5696 GB, free: 111.8 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001403/0.8424, allocations: 157.3 kB / 0.5697 GB, free: 111.7 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.587/3.429, allocations: 4.672 kB / 0.5697 GB, free: 111.7 MB / 426.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_QuasiStatic_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_QuasiStatic.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic_res.mat does not exist to compare? outputFormat=mat