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.001123/0.001123, allocations: 175.5 kB / 13.63 MB, free: 1.684 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.352/1.352, allocations: 221.3 MB / 235.5 MB, free: 2.898 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.0008657/0.0008655, allocations: 102.7 kB / 286.5 MB, free: 160 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.247e-05/3.248e-05, allocations: 4 kB / 343.9 MB, free: 4.184 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1079/0.1079, allocations: 50.41 MB / 394.3 MB, free: 1.73 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3424/0.4504, allocations: 99.75 MB / 494.1 MB, free: 3.656 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000288/0.4508, allocations: 87.94 kB / 494.2 MB, free: 3.57 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.08004/0.5308, allocations: 30.67 MB / 0.5126 GB, free: 4.699 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.773e-06/0.5309, allocations: 0 / 0.5126 GB, free: 4.699 MB / 394.7 MB Notification: Performance of Transformations before backend: time 8.241e-05/0.531, allocations: 31.98 kB / 0.5126 GB, free: 4.668 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.002485/0.5335, allocations: 1.368 MB / 0.5139 GB, free: 3.238 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.053e-05/0.5335, allocations: 8.031 kB / 0.5139 GB, free: 3.23 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002029/0.5337, allocations: 168.8 kB / 0.5141 GB, free: 3.055 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005566/0.5343, allocations: 198.1 kB / 0.5143 GB, free: 2.859 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001484/0.5358, allocations: 0.8399 MB / 0.5151 GB, free: 1.977 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001396/0.5359, allocations: 115.8 kB / 0.5152 GB, free: 1.855 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001538/0.5361, allocations: 111.9 kB / 0.5153 GB, free: 1.746 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001822/0.5379, allocations: 1.084 MB / 0.5164 GB, free: 0.5703 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.751e-05/0.538, allocations: 7.984 kB / 0.5164 GB, free: 0.5625 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.211e-05/0.5381, allocations: 48 kB / 0.5164 GB, free: 0.5156 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.386e-05/0.5381, allocations: 24 kB / 0.5165 GB, free: 0.4922 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001266/0.5394, allocations: 0.6913 MB / 0.5171 GB, free: 15.8 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005714/0.5451, allocations: 3.954 MB / 0.521 GB, free: 11.65 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00131/0.5465, allocations: 0.5421 MB / 0.5215 GB, free: 11.09 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000374/0.5468, allocations: 239.6 kB / 0.5217 GB, free: 10.85 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.606e-05/0.5469, allocations: 12.56 kB / 0.5218 GB, free: 10.84 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004909/0.5474, allocations: 271.1 kB / 0.522 GB, free: 10.57 MB / 410.7 MB Notification: Performance of pre-optimization done (n=63): time 3.937e-06/0.5474, allocations: 4 kB / 0.522 GB, free: 10.56 MB / 410.7 MB Notification: Performance of matching and sorting (n=66): time 0.003004/0.5504, allocations: 1.532 MB / 0.5235 GB, free: 8.969 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002345/0.5507, allocations: 479.2 kB / 0.524 GB, free: 8.391 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001252/0.5519, allocations: 0.9249 MB / 0.5249 GB, free: 7.453 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 5.276e-05/0.552, allocations: 45.7 kB / 0.5249 GB, free: 7.402 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005112/0.5525, allocations: 0.6389 MB / 0.5255 GB, free: 6.754 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001825/0.5527, allocations: 240.6 kB / 0.5258 GB, free: 6.516 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.08e-05/0.5528, allocations: 20 kB / 0.5258 GB, free: 6.496 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001327/0.5529, allocations: 349.8 kB / 0.5261 GB, free: 6.148 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003787/0.5533, allocations: 222.6 kB / 0.5263 GB, free: 5.934 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006929/0.554, allocations: 0.6782 MB / 0.527 GB, free: 5.043 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005507/0.5545, allocations: 381.2 kB / 0.5274 GB, free: 4.656 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.947e-06/0.5546, allocations: 4 kB / 0.5274 GB, free: 4.652 MB / 410.7 MB Notification: Performance of matching and sorting (n=130) (initialization): time 0.001839/0.5564, allocations: 1.129 MB / 0.5285 GB, free: 3.5 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.321e-05/0.5565, allocations: 63.41 kB / 0.5285 GB, free: 3.426 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.585e-05/0.5565, allocations: 12 kB / 0.5285 GB, free: 3.414 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006877/0.5572, allocations: 190.9 kB / 0.5287 GB, free: 3.223 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007342/0.5579, allocations: 219.7 kB / 0.5289 GB, free: 3.008 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004048/0.562, allocations: 3.529 MB / 0.5324 GB, free: 15.21 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009157/0.5629, allocations: 76.02 kB / 0.5325 GB, free: 15.14 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.066e-05/0.563, allocations: 48 kB / 0.5325 GB, free: 15.09 MB / 426.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,(3,88.9%) 12} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002123/0.5632, allocations: 176.8 kB / 0.5327 GB, free: 14.91 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00016/0.5634, allocations: 130.5 kB / 0.5328 GB, free: 14.79 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00153/0.5649, allocations: 0.6881 MB / 0.5335 GB, free: 14.07 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.556e-06/0.565, allocations: 15.98 kB / 0.5335 GB, free: 14.06 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.388e-06/0.565, allocations: 0 / 0.5335 GB, free: 14.06 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001261/0.5662, allocations: 0.9256 MB / 0.5344 GB, free: 13.02 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00291/0.5692, allocations: 1.77 MB / 0.5361 GB, free: 11.16 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.799e-06/0.5692, allocations: 0 / 0.5361 GB, free: 11.16 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005314/0.5697, allocations: 115.8 kB / 0.5362 GB, free: 11.05 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004313/0.5702, allocations: 130.6 kB / 0.5363 GB, free: 10.92 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.852e-05/0.5702, allocations: 16 kB / 0.5364 GB, free: 10.9 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003125/0.5734, allocations: 3.267 MB / 0.5396 GB, free: 7.375 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.378e-06/0.5734, allocations: 3.938 kB / 0.5396 GB, free: 7.371 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00172/0.5751, allocations: 1.127 MB / 0.5407 GB, free: 6.172 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004789/0.5756, allocations: 251.6 kB / 0.5409 GB, free: 5.906 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001284/0.5757, allocations: 12 kB / 0.5409 GB, free: 5.895 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005595/0.5763, allocations: 47.97 kB / 0.541 GB, free: 5.848 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001372/0.5765, allocations: 60.42 kB / 0.541 GB, free: 5.789 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.134e-05/0.5765, allocations: 23.98 kB / 0.541 GB, free: 5.766 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.001046/0.5776, allocations: 0.6952 MB / 0.5417 GB, free: 5.062 MB / 426.7 MB Notification: Performance of sort global known variables: time 3.5e-07/0.5776, allocations: 0 / 0.5417 GB, free: 5.062 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.00116/0.5787, allocations: 360.1 kB / 0.5421 GB, free: 4.711 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.002541/0.5813, allocations: 2.391 MB / 0.5444 GB, free: 2.234 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.002055/0.5833, allocations: 1.038 MB / 0.5454 GB, free: 1.156 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 5.691e-06/0.5834, allocations: 0 / 0.5454 GB, free: 1.156 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007815/0.5842, allocations: 0.5322 MB / 0.5459 GB, free: 0.5977 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001272/0.5854, allocations: 300.4 kB / 0.5462 GB, free: 312 kB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2418/0.8272, allocations: 1.798 MB / 0.548 GB, free: 114.9 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007111/0.828, allocations: 1.109 MB / 0.5491 GB, free: 114.1 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.0006722/0.8286, allocations: 145.1 kB / 0.5492 GB, free: 114.1 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006798/0.8293, allocations: 472 kB / 0.5496 GB, free: 114.1 MB / 426.7 MB Notification: Performance of SimCode: time 9.92e-07/0.8293, allocations: 0 / 0.5496 GB, free: 114.1 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05579/0.8851, allocations: 29.81 MB / 0.5788 GB, free: 111.4 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001817/0.8854, allocations: 199.2 kB / 0.5789 GB, free: 111.2 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.013/3.898, allocations: 3.938 kB / 0.5789 GB, free: 111.2 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