Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Start",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Start",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 3.2.3+maint.om/package.mo): time 0.001026/0.001026, allocations: 176.1 kB / 8.476 MB, free: 1.883 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.025/1.025, allocations: 205.2 MB / 214.1 MB, free: 5.094 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008034/0.0008035, allocations: 87.28 kB / 262.1 MB, free: 5.145 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1417/0.1426, allocations: 52.97 MB / 315.1 MB, free: 41.39 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0598/0.2024, allocations: 47.57 MB / 362.6 MB, free: 9.867 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2019/0.4043, allocations: 92.44 MB / 455.1 MB, free: 8.504 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001867/0.4046, allocations: 83.03 kB / 455.2 MB, free: 8.488 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 200 * Number of variables: 200 Notification: Performance of Generate backend data structure: time 0.05639/0.461, allocations: 23.64 MB / 478.8 MB, free: 12.42 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.414e-05/0.461, allocations: 8 kB / 478.8 MB, free: 12.41 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005673/0.4616, allocations: 142.7 kB / 478.9 MB, free: 12.27 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001264/0.4629, allocations: 0.6973 MB / 479.6 MB, free: 11.7 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.756e-05/0.4629, allocations: 24 kB / 479.7 MB, free: 11.67 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.308e-05/0.463, allocations: 51.89 kB / 479.7 MB, free: 11.62 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007661/0.4638, allocations: 431.6 kB / 480.1 MB, free: 11.37 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009671/0.4647, allocations: 0.6251 MB / 480.8 MB, free: 10.89 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.042e-05/0.4648, allocations: 7.906 kB / 480.8 MB, free: 10.88 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.9e-05/0.4648, allocations: 0 / 480.8 MB, free: 10.88 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.921e-05/0.4649, allocations: 20 kB / 480.8 MB, free: 10.86 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003873/0.4687, allocations: 3.314 MB / 484.1 MB, free: 8.008 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001845/0.4689, allocations: 126.5 kB / 484.2 MB, free: 7.922 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001239/0.4691, allocations: 90.86 kB / 484.3 MB, free: 7.863 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.533e-05/0.4691, allocations: 8 kB / 484.3 MB, free: 7.855 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.929e-05/0.4691, allocations: 37.5 kB / 484.4 MB, free: 7.812 MB / 330.7 MB Notification: Performance of pre-optimization done (n=25): time 1.483e-06/0.4691, allocations: 4 kB / 484.4 MB, free: 7.809 MB / 330.7 MB Notification: Performance of matching and sorting (n=28): time 0.001191/0.4703, allocations: 0.7507 MB / 485.1 MB, free: 7.102 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.715e-05/0.4704, allocations: 77.34 kB / 485.2 MB, free: 7.008 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006145/0.471, allocations: 0.5285 MB / 485.7 MB, free: 6.609 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.216e-05/0.471, allocations: 25.7 kB / 485.7 MB, free: 6.578 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002053/0.4713, allocations: 428.5 kB / 486.2 MB, free: 6.203 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.396e-05/0.4713, allocations: 104.4 kB / 486.3 MB, free: 6.113 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.46e-05/0.4713, allocations: 0 / 486.3 MB, free: 6.113 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001389/0.4715, allocations: 369.1 kB / 486.6 MB, free: 5.77 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001487/0.4716, allocations: 97.75 kB / 486.7 MB, free: 5.715 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003033/0.472, allocations: 377.1 kB / 487.1 MB, free: 5.262 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002282/0.4722, allocations: 172.3 kB / 487.3 MB, free: 5.145 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.415e-06/0.4722, allocations: 0 / 487.3 MB, free: 5.145 MB / 330.7 MB Notification: Performance of matching and sorting (n=75) (initialization): time 0.0007251/0.4729, allocations: 0.4899 MB / 487.7 MB, free: 4.73 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.134e-05/0.473, allocations: 8.031 kB / 487.8 MB, free: 4.723 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.196e-05/0.473, allocations: 12 kB / 487.8 MB, free: 4.711 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001341/0.4731, allocations: 27.98 kB / 487.8 MB, free: 4.684 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004739/0.4736, allocations: 151.3 kB / 487.9 MB, free: 4.539 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009234/0.4745, allocations: 1.231 MB / 489.2 MB, free: 3.223 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004279/0.475, allocations: 35.61 kB / 489.2 MB, free: 3.191 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.634e-05/0.475, allocations: 27.44 kB / 489.2 MB, free: 3.168 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 44 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (74): * Single equations (assignments): 73 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * 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: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001153/0.4751, allocations: 136 kB / 489.4 MB, free: 3.031 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.923e-05/0.4752, allocations: 71.14 kB / 489.4 MB, free: 2.961 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004136/0.4757, allocations: 251 kB / 489.7 MB, free: 2.766 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.041e-06/0.4757, allocations: 4 kB / 489.7 MB, free: 2.762 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.288e-06/0.4757, allocations: 4 kB / 489.7 MB, free: 2.758 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.773e-06/0.4757, allocations: 3.984 kB / 489.7 MB, free: 2.754 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001146/0.4768, allocations: 0.9086 MB / 490.6 MB, free: 2.004 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.078e-06/0.4769, allocations: 4 kB / 490.6 MB, free: 2 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002971/0.4772, allocations: 71.7 kB / 490.7 MB, free: 1.934 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.692e-05/0.4772, allocations: 23.61 kB / 490.7 MB, free: 1.91 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.856e-05/0.4773, allocations: 4 kB / 490.7 MB, free: 1.906 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008415/0.4781, allocations: 1.222 MB / 491.9 MB, free: 0.6094 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.719e-06/0.4781, allocations: 3.906 kB / 491.9 MB, free: 0.6055 MB / 330.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0006243/0.4788, allocations: 0.5636 MB / 492.5 MB, free: 56 kB / 330.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0008422/0.4796, allocations: 1.025 MB / 493.5 MB, free: 15.08 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001766/0.4798, allocations: 162.1 kB / 493.7 MB, free: 14.92 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.526e-05/0.4799, allocations: 4 kB / 493.7 MB, free: 14.92 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003159/0.4802, allocations: 19.98 kB / 493.7 MB, free: 14.9 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.077e-05/0.4803, allocations: 23.69 kB / 493.7 MB, free: 14.88 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.614e-05/0.4803, allocations: 11.69 kB / 493.7 MB, free: 14.87 MB / 346.7 MB Notification: Performance of sort global known variables: time 0.0004112/0.4807, allocations: 393.2 kB / 494.1 MB, free: 14.6 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.001176/0.4819, allocations: 170 kB / 494.3 MB, free: 14.45 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 3 (dcpm.inertiaRotor.phi,dcpm.inertiaRotor.w,dcpm.la.i) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (27): * Single equations (assignments): 26 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * 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: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003513/0.4823, allocations: 257.6 kB / 494.5 MB, free: 14.2 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0005539/0.4828, allocations: 390.6 kB / 494.9 MB, free: 13.89 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.725e-06/0.4828, allocations: 0 / 494.9 MB, free: 13.89 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002445/0.4831, allocations: 203.6 kB / 495.1 MB, free: 13.71 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006567/0.4838, allocations: 147.5 kB / 495.3 MB, free: 13.6 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001725/0.4855, allocations: 1.011 MB / 496.3 MB, free: 12.61 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000611/0.4861, allocations: 1.006 MB / 497.3 MB, free: 11.58 MB / 346.7 MB Notification: Performance of SimCode: time 2.71e-07/0.4861, allocations: 4 kB / 497.3 MB, free: 11.57 MB / 346.7 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Start_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Start.fmu > Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start_res.mat does not exist to compare? outputFormat=mat