Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Cooling",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Cooling",fmuType="me",version="2.0",platforms={"static"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001059/0.001059, allocations: 207.3 kB / 8.539 MB, free: 1.715 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.133/1.133, allocations: 225.5 MB / 234.4 MB, free: 3.449 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008665/0.0008665, allocations: 94.81 kB / 286.3 MB, free: 5.199 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09348/0.09438, allocations: 56.9 MB / 343.2 MB, free: 8.691 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08495/0.1793, allocations: 51.49 MB / 394.7 MB, free: 5.16 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2244/0.4038, allocations: 99.8 MB / 494.5 MB, free: 9.637 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002068/0.4041, allocations: 85.7 kB / 494.6 MB, free: 9.594 MB / 362.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.07956/0.4836, allocations: 31.67 MB / 0.5139 GB, free: 15.11 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.087e-05/0.4837, allocations: 8.75 kB / 0.514 GB, free: 15.1 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005515/0.4842, allocations: 210.1 kB / 0.5142 GB, free: 14.89 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001393/0.4856, allocations: 0.8593 MB / 0.515 GB, free: 13.98 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001099/0.4858, allocations: 79.84 kB / 0.5151 GB, free: 13.9 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001219/0.4859, allocations: 71.89 kB / 0.5151 GB, free: 13.83 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001196/0.4871, allocations: 0.633 MB / 0.5158 GB, free: 13.19 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001449/0.4886, allocations: 0.9276 MB / 0.5167 GB, free: 12.18 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.314e-05/0.4886, allocations: 4 kB / 0.5167 GB, free: 12.17 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.869e-05/0.4887, allocations: 0.75 kB / 0.5167 GB, free: 12.17 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.697e-05/0.4887, allocations: 31.98 kB / 0.5167 GB, free: 12.14 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005311/0.494, allocations: 3.748 MB / 0.5204 GB, free: 8.219 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005899/0.4946, allocations: 322 kB / 0.5207 GB, free: 7.898 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003682/0.495, allocations: 223.9 kB / 0.5209 GB, free: 7.68 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.322e-05/0.4951, allocations: 12.48 kB / 0.5209 GB, free: 7.668 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004064/0.4955, allocations: 247.5 kB / 0.5211 GB, free: 7.41 MB / 394.7 MB Notification: Performance of pre-optimization done (n=63): time 3.316e-06/0.4955, allocations: 3.938 kB / 0.5211 GB, free: 7.406 MB / 394.7 MB Notification: Performance of matching and sorting (n=66): time 0.002602/0.4981, allocations: 1.391 MB / 0.5225 GB, free: 5.953 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001558/0.4983, allocations: 479.3 kB / 0.5229 GB, free: 5.375 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009809/0.4993, allocations: 0.7439 MB / 0.5237 GB, free: 4.613 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 4.493e-05/0.4993, allocations: 29.7 kB / 0.5237 GB, free: 4.578 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003212/0.4997, allocations: 0.5171 MB / 0.5242 GB, free: 4.051 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001734/0.4998, allocations: 220.7 kB / 0.5244 GB, free: 3.832 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.219e-05/0.4999, allocations: 4 kB / 0.5244 GB, free: 3.828 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001114/0.5, allocations: 345.9 kB / 0.5247 GB, free: 3.484 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003483/0.5003, allocations: 198.6 kB / 0.5249 GB, free: 3.289 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006129/0.501, allocations: 0.6368 MB / 0.5256 GB, free: 2.449 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004592/0.5014, allocations: 308.5 kB / 0.5259 GB, free: 2.148 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.989e-06/0.5014, allocations: 8 kB / 0.5259 GB, free: 2.141 MB / 394.7 MB Notification: Performance of matching and sorting (n=130) (initialization): time 0.001705/0.5032, allocations: 0.9225 MB / 0.5268 GB, free: 1.203 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.426e-05/0.5032, allocations: 4 kB / 0.5268 GB, free: 1.199 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.498e-05/0.5032, allocations: 16 kB / 0.5268 GB, free: 1.184 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006664/0.5039, allocations: 189.7 kB / 0.527 GB, free: 0.9922 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007392/0.5046, allocations: 219.6 kB / 0.5272 GB, free: 0.7773 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003983/0.5086, allocations: 3.345 MB / 0.5304 GB, free: 13.21 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001004/0.5096, allocations: 59.88 kB / 0.5305 GB, free: 13.15 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.461e-05/0.5097, allocations: 54.88 kB / 0.5305 GB, free: 13.1 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.0001883/0.5099, allocations: 145.7 kB / 0.5307 GB, free: 12.95 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001406/0.5101, allocations: 106.7 kB / 0.5308 GB, free: 12.84 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001392/0.5115, allocations: 0.6135 MB / 0.5314 GB, free: 12.21 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.913e-06/0.5115, allocations: 12 kB / 0.5314 GB, free: 12.2 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.691e-06/0.5115, allocations: 3.984 kB / 0.5314 GB, free: 12.2 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001089/0.5126, allocations: 0.8756 MB / 0.5323 GB, free: 11.21 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002543/0.5152, allocations: 1.596 MB / 0.5338 GB, free: 9.539 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.09e-06/0.5152, allocations: 4 kB / 0.5338 GB, free: 9.535 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005433/0.5157, allocations: 120 kB / 0.5339 GB, free: 9.418 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004289/0.5162, allocations: 125.6 kB / 0.5341 GB, free: 9.289 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.8e-05/0.5162, allocations: 7.984 kB / 0.5341 GB, free: 9.281 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003049/0.5193, allocations: 3.11 MB / 0.5371 GB, free: 5.945 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.08e-06/0.5193, allocations: 4.031 kB / 0.5371 GB, free: 5.941 MB / 410.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001688/0.521, allocations: 1.039 MB / 0.5381 GB, free: 4.816 MB / 410.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.002034/0.523, allocations: 1.66 MB / 0.5397 GB, free: 3.074 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004062/0.5235, allocations: 236 kB / 0.54 GB, free: 2.824 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001502/0.5236, allocations: 4 kB / 0.54 GB, free: 2.82 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005618/0.5242, allocations: 43.97 kB / 0.54 GB, free: 2.777 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000111/0.5243, allocations: 48.33 kB / 0.5401 GB, free: 2.73 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.614e-05/0.5244, allocations: 23.94 kB / 0.5401 GB, free: 2.707 MB / 410.7 MB Notification: Performance of sort global known variables: time 0.0007748/0.5251, allocations: 0.5411 MB / 0.5406 GB, free: 2.156 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001627/0.5268, allocations: 304.2 kB / 0.5409 GB, free: 1.859 MB / 410.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.0004177/0.5272, allocations: 315.6 kB / 0.5412 GB, free: 1.551 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.001661/0.5289, allocations: 0.8724 MB / 0.542 GB, free: 0.6445 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.796e-06/0.5289, allocations: 0 / 0.542 GB, free: 0.6445 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006877/0.5296, allocations: 479.7 kB / 0.5425 GB, free: 164 kB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001031/0.5306, allocations: 232.5 kB / 0.5427 GB, free: 15.94 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003106/0.5337, allocations: 1.595 MB / 0.5443 GB, free: 14.28 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008297/0.5346, allocations: 1.193 MB / 0.5455 GB, free: 13.06 MB / 426.7 MB Notification: Performance of SimCode: time 4.61e-07/0.5346, allocations: 0 / 0.5455 GB, free: 13.06 MB / 426.7 MB (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Cooling_fmu --startTime=0 --stopTime=25 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Cooling.fmu > Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling_res.mat does not exist to compare? outputFormat=mat