Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Media.Examples.ReferenceAir.DryAir2.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.Media.Examples.ReferenceAir.DryAir2,fileNamePrefix="Modelica_trunk_Modelica_Media_Examples_ReferenceAir_DryAir2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.ReferenceAir.DryAir2,fileNamePrefix="Modelica_trunk_Modelica_Media_Examples_ReferenceAir_DryAir2",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.001354/0.001354, allocations: 210 kB / 8.543 MB, free: 1.828 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.304/1.304, allocations: 225.5 MB / 234.4 MB, free: 3.418 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001001/0.001001, allocations: 95.34 kB / 286.3 MB, free: 5.242 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1195/0.1205, allocations: 56.9 MB / 343.2 MB, free: 8.656 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1141/0.2346, allocations: 51.47 MB / 394.7 MB, free: 5.145 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.113/1.348, allocations: 0.5367 GB / 0.9221 GB, free: 134.3 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000316/1.348, allocations: 69.78 kB / 0.9222 GB, free: 134.3 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 96 * Number of variables: 96 Notification: Performance of Generate backend data structure: time 0.2739/1.622, allocations: 147.3 MB / 1.066 GB, free: 18.49 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.535e-05/1.622, allocations: 11.94 kB / 1.066 GB, free: 18.48 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007541/1.623, allocations: 79.41 kB / 1.066 GB, free: 18.4 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004688/1.624, allocations: 334.2 kB / 1.066 GB, free: 18.04 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.958e-05/1.624, allocations: 12 kB / 1.066 GB, free: 18.02 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.016e-05/1.624, allocations: 27.91 kB / 1.067 GB, free: 18 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004624/1.624, allocations: 257.5 kB / 1.067 GB, free: 17.75 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005077/1.625, allocations: 390.8 kB / 1.067 GB, free: 17.32 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.376e-05/1.625, allocations: 7.938 kB / 1.067 GB, free: 17.31 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.011e-05/1.625, allocations: 0 / 1.067 GB, free: 17.31 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.045e-05/1.625, allocations: 12 kB / 1.067 GB, free: 17.3 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01115/1.636, allocations: 6.284 MB / 1.073 GB, free: 10.45 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002961/1.636, allocations: 169.9 kB / 1.073 GB, free: 10.27 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001874/1.636, allocations: 129 kB / 1.074 GB, free: 10.14 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008046/1.645, allocations: 3.519 MB / 1.077 GB, free: 6.328 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.315e-05/1.645, allocations: 38.56 kB / 1.077 GB, free: 6.281 MB / 442.7 MB Notification: Performance of pre-optimization done (n=35): time 3.005e-06/1.645, allocations: 4 kB / 1.077 GB, free: 6.277 MB / 442.7 MB Notification: Performance of matching and sorting (n=45): time 0.004257/1.649, allocations: 1.421 MB / 1.078 GB, free: 4.793 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.205e-05/1.649, allocations: 55.41 kB / 1.078 GB, free: 4.727 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002394/1.649, allocations: 232.9 kB / 1.079 GB, free: 4.492 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 3.672e-05/1.649, allocations: 25.7 kB / 1.079 GB, free: 4.461 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.131e-05/1.649, allocations: 215.7 kB / 1.079 GB, free: 4.246 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.614e-05/1.649, allocations: 153.8 kB / 1.079 GB, free: 4.094 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.953e-05/1.649, allocations: 0 / 1.079 GB, free: 4.094 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 6.215e-05/1.649, allocations: 346.8 kB / 1.079 GB, free: 3.746 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000204/1.65, allocations: 129.3 kB / 1.08 GB, free: 3.621 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002371/1.65, allocations: 259.4 kB / 1.08 GB, free: 3.316 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007552/1.651, allocations: 252.6 kB / 1.08 GB, free: 3.074 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.777e-06/1.651, allocations: 4 kB / 1.08 GB, free: 3.07 MB / 442.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001416/1.652, allocations: 0.6064 MB / 1.081 GB, free: 2.445 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.437e-05/1.652, allocations: 8 kB / 1.081 GB, free: 2.438 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.217e-06/1.652, allocations: 0 / 1.081 GB, free: 2.438 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003862/1.653, allocations: 118.8 kB / 1.081 GB, free: 2.312 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004019/1.653, allocations: 103.9 kB / 1.081 GB, free: 2.211 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1567/1.81, allocations: 2.469 MB / 1.083 GB, free: 123.6 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000459/1.81, allocations: 32.47 kB / 1.083 GB, free: 123.6 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.833e-05/1.81, allocations: 26.28 kB / 1.083 GB, free: 123.6 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (61): * Single equations (assignments): 58 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {2 1,2 1,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0001676/1.81, allocations: 115.7 kB / 1.083 GB, free: 123.5 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.257e-05/1.81, allocations: 36.16 kB / 1.083 GB, free: 123.5 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001596/1.812, allocations: 0.8389 MB / 1.084 GB, free: 123.4 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.641e-05/1.812, allocations: 13.14 kB / 1.084 GB, free: 123.4 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.737e-06/1.812, allocations: 0 / 1.084 GB, free: 123.4 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001176/1.813, allocations: 0.9375 MB / 1.085 GB, free: 123.1 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002043/1.815, allocations: 1.397 MB / 1.087 GB, free: 122.8 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.813e-06/1.815, allocations: 3.609 kB / 1.087 GB, free: 122.8 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003347/1.816, allocations: 80.38 kB / 1.087 GB, free: 122.8 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005295/1.816, allocations: 186.8 kB / 1.087 GB, free: 122.8 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.208e-05/1.816, allocations: 7.531 kB / 1.087 GB, free: 122.8 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009886/1.817, allocations: 1.376 MB / 1.088 GB, free: 121.7 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.605e-06/1.817, allocations: 3.406 kB / 1.088 GB, free: 121.7 MB / 442.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001549/1.819, allocations: 1.197 MB / 1.089 GB, free: 121.5 MB / 442.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001973/1.821, allocations: 1.94 MB / 1.091 GB, free: 121 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001031/1.821, allocations: 111.1 kB / 1.091 GB, free: 120.9 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.345e-05/1.821, allocations: 7.703 kB / 1.091 GB, free: 120.9 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002842/1.821, allocations: 19 kB / 1.091 GB, free: 120.8 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.076e-05/1.821, allocations: 26.95 kB / 1.091 GB, free: 120.8 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.652e-05/1.821, allocations: 21.12 kB / 1.091 GB, free: 120.8 MB / 442.7 MB Notification: Performance of sort global known variables: time 0.000146/1.822, allocations: 173 kB / 1.092 GB, free: 120.8 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.001628/1.823, allocations: 248.5 kB / 1.092 GB, free: 120.8 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 4 (volume.medium.p,volume.medium.T,volume1.medium.p,volume1.medium.T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (43): * Single equations (assignments): 39 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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: 0 * Non-linear torn systems: 2 {2 1,2 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.001287/1.825, allocations: 0.5169 MB / 1.092 GB, free: 120.7 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.0009759/1.826, allocations: 0.645 MB / 1.093 GB, free: 120.6 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 2.945e-06/1.826, allocations: 0 / 1.093 GB, free: 120.6 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005461/1.826, allocations: 393.6 kB / 1.093 GB, free: 120.6 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001007/1.827, allocations: 179.5 kB / 1.094 GB, free: 120.6 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001377/1.828, allocations: 0.9425 MB / 1.094 GB, free: 120.4 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003456/1.829, allocations: 0.8959 MB / 1.095 GB, free: 119.7 MB / 442.7 MB Notification: Performance of SimCode: time 2.61e-07/1.829, allocations: 0 / 1.095 GB, free: 119.7 MB / 442.7 MB (rm -f Modelica_trunk_Modelica.Media.Examples.ReferenceAir.DryAir2.pipe ; mkfifo Modelica_trunk_Modelica.Media.Examples.ReferenceAir.DryAir2.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Media.Examples.ReferenceAir.DryAir2.pipe >> ../files/Modelica_trunk_Modelica.Media.Examples.ReferenceAir.DryAir2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Media.Examples.ReferenceAir.DryAir2_res.mat --tempDir=temp_Modelica_trunk_Modelica_Media_Examples_ReferenceAir_DryAir2_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Media_Examples_ReferenceAir_DryAir2.fmu > Modelica_trunk_Modelica.Media.Examples.ReferenceAir.DryAir2.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Media.Examples.ReferenceAir.DryAir2_res.mat does not exist to compare? outputFormat=mat