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"}) [: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 4.0.0+maint.om/package.mo): time 0.001013/0.001013, allocations: 180.5 kB / 8.133 MB, free: 2.215 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.125/1.125, allocations: 221.4 MB / 229.9 MB, free: 3 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.0009344/0.0009344, allocations: 106.1 kB / 280.8 MB, free: 1.242 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09947/0.1004, allocations: 55.83 MB / 336.6 MB, free: 9.391 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1796/0.2801, allocations: 50.39 MB / 387 MB, free: 37.95 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09463/0.3748, allocations: 99.01 MB / 486 MB, free: 3.707 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001959/0.375, allocations: 85.42 kB / 486.1 MB, free: 3.625 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.2053/0.5803, allocations: 31.63 MB / 0.5056 GB, free: 93.38 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.204e-05/0.5804, allocations: 9.906 kB / 0.5056 GB, free: 93.38 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005138/0.5809, allocations: 204 kB / 0.5058 GB, free: 93.3 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001213/0.5821, allocations: 0.8609 MB / 0.5067 GB, free: 92.93 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.685e-05/0.5822, allocations: 82.12 kB / 0.5067 GB, free: 92.89 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001088/0.5823, allocations: 66.31 kB / 0.5068 GB, free: 92.89 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001038/0.5834, allocations: 0.6355 MB / 0.5074 GB, free: 92.88 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001256/0.5847, allocations: 0.9421 MB / 0.5083 GB, free: 92.59 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.297e-05/0.5847, allocations: 3.562 kB / 0.5083 GB, free: 92.59 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.879e-05/0.5848, allocations: 0 / 0.5083 GB, free: 92.59 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.739e-05/0.5848, allocations: 28.41 kB / 0.5084 GB, free: 92.59 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004607/0.5894, allocations: 3.747 MB / 0.512 GB, free: 90.33 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005165/0.5899, allocations: 320.1 kB / 0.5123 GB, free: 90.2 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003106/0.5903, allocations: 223.4 kB / 0.5125 GB, free: 90.1 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.471e-05/0.5903, allocations: 16 kB / 0.5126 GB, free: 90.1 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004084/0.5908, allocations: 248.1 kB / 0.5128 GB, free: 89.96 MB / 378.7 MB Notification: Performance of pre-optimization done (n=63): time 3.597e-06/0.5908, allocations: 0 / 0.5128 GB, free: 89.96 MB / 378.7 MB Notification: Performance of matching and sorting (n=66): time 0.00217/0.5929, allocations: 1.397 MB / 0.5142 GB, free: 89.13 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001063/0.5931, allocations: 475 kB / 0.5146 GB, free: 88.57 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007677/0.5938, allocations: 0.7406 MB / 0.5153 GB, free: 88.21 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.882e-05/0.5939, allocations: 25.7 kB / 0.5154 GB, free: 88.18 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002032/0.5941, allocations: 0.5122 MB / 0.5159 GB, free: 87.79 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000112/0.5942, allocations: 233.2 kB / 0.5161 GB, free: 87.61 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.172e-05/0.5943, allocations: 3.906 kB / 0.5161 GB, free: 87.61 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 5.585e-05/0.5943, allocations: 341.7 kB / 0.5164 GB, free: 87.29 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003182/0.5946, allocations: 195.5 kB / 0.5166 GB, free: 87.21 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004478/0.5951, allocations: 0.6474 MB / 0.5172 GB, free: 86.53 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004523/0.5955, allocations: 294.7 kB / 0.5175 GB, free: 86.4 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.362e-06/0.5956, allocations: 3.031 kB / 0.5175 GB, free: 86.4 MB / 378.7 MB Notification: Performance of matching and sorting (n=130) (initialization): time 0.001904/0.5975, allocations: 0.9337 MB / 0.5184 GB, free: 86.02 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.61e-05/0.5975, allocations: 4.719 kB / 0.5184 GB, free: 86.02 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.774e-05/0.5975, allocations: 11.88 kB / 0.5184 GB, free: 86.02 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006288/0.5982, allocations: 185.4 kB / 0.5186 GB, free: 85.96 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007008/0.5989, allocations: 220.2 kB / 0.5188 GB, free: 85.94 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003119/0.602, allocations: 3.36 MB / 0.5221 GB, free: 83.04 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008341/0.6028, allocations: 58.39 kB / 0.5222 GB, free: 83.03 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.815e-05/0.6029, allocations: 46.41 kB / 0.5222 GB, free: 83.02 MB / 378.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.0001392/0.6031, allocations: 147.2 kB / 0.5224 GB, free: 82.89 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001209/0.6032, allocations: 113.5 kB / 0.5225 GB, free: 82.82 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001102/0.6043, allocations: 0.6231 MB / 0.5231 GB, free: 82.27 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.86e-06/0.6043, allocations: 4 kB / 0.5231 GB, free: 82.27 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.819e-06/0.6043, allocations: 4 kB / 0.5231 GB, free: 82.27 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0008405/0.6052, allocations: 0.8772 MB / 0.5239 GB, free: 81.33 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002035/0.6072, allocations: 1.587 MB / 0.5255 GB, free: 79.99 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.707e-06/0.6072, allocations: 4 kB / 0.5255 GB, free: 79.98 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004988/0.6077, allocations: 114.6 kB / 0.5256 GB, free: 79.89 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003872/0.6081, allocations: 136.1 kB / 0.5257 GB, free: 79.77 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.388e-05/0.6082, allocations: 4 kB / 0.5257 GB, free: 79.77 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002142/0.6103, allocations: 3.11 MB / 0.5288 GB, free: 76.55 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.865e-06/0.6104, allocations: 0 / 0.5288 GB, free: 76.55 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001214/0.6116, allocations: 1.036 MB / 0.5298 GB, free: 75.49 MB / 378.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001508/0.6131, allocations: 1.659 MB / 0.5314 GB, free: 73.81 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003163/0.6134, allocations: 234.2 kB / 0.5316 GB, free: 73.58 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000144/0.6136, allocations: 7.609 kB / 0.5316 GB, free: 73.58 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005372/0.6141, allocations: 35.41 kB / 0.5317 GB, free: 73.55 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.268e-05/0.6142, allocations: 49.84 kB / 0.5317 GB, free: 73.52 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.273e-05/0.6143, allocations: 16 kB / 0.5317 GB, free: 73.5 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.0005866/0.6148, allocations: 0.5525 MB / 0.5323 GB, free: 72.98 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001587/0.6164, allocations: 300.2 kB / 0.5325 GB, free: 72.69 MB / 378.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.0003266/0.6168, allocations: 328.3 kB / 0.5329 GB, free: 72.41 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001394/0.6182, allocations: 0.8751 MB / 0.5337 GB, free: 71.55 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.715e-06/0.6182, allocations: 8.062 kB / 0.5337 GB, free: 71.54 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005728/0.6188, allocations: 477 kB / 0.5342 GB, free: 71.07 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009242/0.6197, allocations: 244.4 kB / 0.5344 GB, free: 70.88 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00255/0.6223, allocations: 1.596 MB / 0.536 GB, free: 69.39 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006188/0.6229, allocations: 1.198 MB / 0.5371 GB, free: 68.34 MB / 378.7 MB Notification: Performance of SimCode: time 3.01e-07/0.6229, allocations: 0 / 0.5371 GB, free: 68.34 MB / 378.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