Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.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_Temperature,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Temperature",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Temperature",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.001118/0.001118, allocations: 203.2 kB / 8.541 MB, free: 1.75 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.143/1.143, allocations: 225.5 MB / 234.4 MB, free: 3.324 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008211/0.0008211, allocations: 97.22 kB / 286.3 MB, free: 5.297 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09317/0.09402, allocations: 56.92 MB / 343.2 MB, free: 8.602 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08378/0.1778, allocations: 51.47 MB / 394.7 MB, free: 5.078 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2212/0.3991, allocations: 95.06 MB / 489.8 MB, free: 14.32 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002051/0.3993, allocations: 85.59 kB / 489.9 MB, free: 14.28 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: 214 * Number of variables: 214 Notification: Performance of Generate backend data structure: time 0.06234/0.4617, allocations: 24.57 MB / 0.5024 GB, free: 10.18 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.341e-05/0.4617, allocations: 12 kB / 0.5024 GB, free: 10.17 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007656/0.4625, allocations: 190.5 kB / 0.5026 GB, free: 9.98 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001132/0.4637, allocations: 0.6727 MB / 0.5032 GB, free: 9.406 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.817e-05/0.4637, allocations: 28 kB / 0.5033 GB, free: 9.379 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.855e-05/0.4638, allocations: 51.91 kB / 0.5033 GB, free: 9.328 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008177/0.4646, allocations: 451 kB / 0.5037 GB, free: 9.066 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00115/0.4658, allocations: 0.6661 MB / 0.5044 GB, free: 8.555 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.401e-05/0.4658, allocations: 10.27 kB / 0.5044 GB, free: 8.547 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.48e-05/0.4659, allocations: 5.125 kB / 0.5044 GB, free: 8.543 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.934e-05/0.4659, allocations: 20 kB / 0.5044 GB, free: 8.523 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004295/0.4702, allocations: 3.474 MB / 0.5078 GB, free: 5.078 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002493/0.4705, allocations: 149.6 kB / 0.508 GB, free: 4.926 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001466/0.4706, allocations: 93.05 kB / 0.508 GB, free: 4.832 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.993e-05/0.4707, allocations: 3.984 kB / 0.508 GB, free: 4.828 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.389e-05/0.4707, allocations: 38.5 kB / 0.5081 GB, free: 4.781 MB / 378.7 MB Notification: Performance of pre-optimization done (n=26): time 1.613e-06/0.4707, allocations: 0 / 0.5081 GB, free: 4.781 MB / 378.7 MB Notification: Performance of matching and sorting (n=29): time 0.00131/0.472, allocations: 0.7741 MB / 0.5088 GB, free: 3.953 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.508e-05/0.4721, allocations: 89.09 kB / 0.5089 GB, free: 3.848 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000649/0.4728, allocations: 0.519 MB / 0.5094 GB, free: 3.32 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.682e-05/0.4728, allocations: 25.7 kB / 0.5095 GB, free: 3.289 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002189/0.473, allocations: 438.3 kB / 0.5099 GB, free: 2.855 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.49e-05/0.4731, allocations: 106.5 kB / 0.51 GB, free: 2.75 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.621e-05/0.4731, allocations: 0 / 0.51 GB, free: 2.75 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001305/0.4733, allocations: 370.8 kB / 0.5103 GB, free: 2.379 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001775/0.4734, allocations: 101.3 kB / 0.5104 GB, free: 2.281 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003316/0.4738, allocations: 381 kB / 0.5108 GB, free: 1.77 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002683/0.4741, allocations: 167.1 kB / 0.5109 GB, free: 1.609 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.787e-06/0.4741, allocations: 3.938 kB / 0.511 GB, free: 1.605 MB / 378.7 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.0008159/0.4749, allocations: 0.5018 MB / 0.5114 GB, free: 1.094 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.402e-05/0.4749, allocations: 4 kB / 0.5114 GB, free: 1.09 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.223e-05/0.4749, allocations: 8 kB / 0.5115 GB, free: 1.082 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001346/0.4751, allocations: 32.86 kB / 0.5115 GB, free: 1.047 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005051/0.4756, allocations: 156 kB / 0.5116 GB, free: 0.8945 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009138/0.4765, allocations: 1.232 MB / 0.5128 GB, free: 15.55 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004589/0.477, allocations: 31.89 kB / 0.5129 GB, free: 15.52 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.122e-05/0.477, allocations: 32.09 kB / 0.5129 GB, free: 15.48 MB / 394.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 (75): * Single equations (assignments): 74 * 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.0001152/0.4772, allocations: 133.6 kB / 0.513 GB, free: 15.35 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.911e-05/0.4773, allocations: 67.16 kB / 0.5131 GB, free: 15.28 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004749/0.4777, allocations: 264.9 kB / 0.5133 GB, free: 15.01 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.01e-06/0.4778, allocations: 3.906 kB / 0.5133 GB, free: 15 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.581e-06/0.4778, allocations: 4 kB / 0.5134 GB, free: 15 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.38e-06/0.4778, allocations: 3.984 kB / 0.5134 GB, free: 15 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001249/0.479, allocations: 0.9346 MB / 0.5143 GB, free: 14 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.358e-06/0.4791, allocations: 8.031 kB / 0.5143 GB, free: 13.99 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003158/0.4794, allocations: 67.89 kB / 0.5143 GB, free: 13.92 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.325e-05/0.4795, allocations: 16.86 kB / 0.5144 GB, free: 13.9 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.395e-05/0.4795, allocations: 7.984 kB / 0.5144 GB, free: 13.89 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008059/0.4803, allocations: 1.225 MB / 0.5156 GB, free: 12.56 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.278e-06/0.4803, allocations: 4.094 kB / 0.5156 GB, free: 12.55 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.000628/0.481, allocations: 0.5803 MB / 0.5161 GB, free: 11.89 MB / 394.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0008592/0.4818, allocations: 1.049 MB / 0.5172 GB, free: 10.75 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001925/0.482, allocations: 160.2 kB / 0.5173 GB, free: 10.57 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.884e-05/0.4821, allocations: 8 kB / 0.5173 GB, free: 10.57 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000352/0.4825, allocations: 23.98 kB / 0.5173 GB, free: 10.54 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.592e-05/0.4826, allocations: 19.88 kB / 0.5174 GB, free: 10.52 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.975e-05/0.4826, allocations: 12 kB / 0.5174 GB, free: 10.51 MB / 394.7 MB Notification: Performance of sort global known variables: time 0.0004356/0.483, allocations: 391.2 kB / 0.5177 GB, free: 10.14 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.00119/0.4842, allocations: 179.9 kB / 0.5179 GB, free: 9.961 MB / 394.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 (28): * Single equations (assignments): 27 * 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.0003629/0.4846, allocations: 289.4 kB / 0.5182 GB, free: 9.676 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0005846/0.4852, allocations: 396.2 kB / 0.5186 GB, free: 9.281 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.637e-06/0.4852, allocations: 4.25 kB / 0.5186 GB, free: 9.277 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002732/0.4855, allocations: 209.7 kB / 0.5188 GB, free: 9.062 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007217/0.4862, allocations: 150.7 kB / 0.5189 GB, free: 8.914 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002032/0.4883, allocations: 1.046 MB / 0.5199 GB, free: 7.82 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007268/0.489, allocations: 1.025 MB / 0.5209 GB, free: 6.77 MB / 394.7 MB Notification: Performance of SimCode: time 3.91e-07/0.489, allocations: 0 / 0.5209 GB, free: 6.77 MB / 394.7 MB (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Temperature_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Temperature.fmu > Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature_res.mat does not exist to compare? outputFormat=mat