Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.MoistAir.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.Media.Examples.ReferenceAir.MoistAir,fileNamePrefix="Modelica_4_0_0_Modelica_Media_Examples_ReferenceAir_MoistAir",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.ReferenceAir.MoistAir,fileNamePrefix="Modelica_4_0_0_Modelica_Media_Examples_ReferenceAir_MoistAir",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.0009065/0.0009065, allocations: 181.5 kB / 8.134 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.067/1.067, allocations: 221.4 MB / 229.9 MB, free: 3.078 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.0008069/0.0008069, allocations: 93.05 kB / 280.8 MB, free: 1.27 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.08433/0.08517, allocations: 55.82 MB / 336.6 MB, free: 9.43 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1647/0.2499, allocations: 50.39 MB / 387 MB, free: 38.09 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.842/9.092, allocations: 6.204 GB / 6.582 GB, free: 47.91 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002304/9.093, allocations: 79.89 kB / 6.582 GB, free: 47.83 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: 40 * Number of variables: 40 Notification: Performance of Generate backend data structure: time 0.664/9.757, allocations: 201.7 MB / 6.779 GB, free: 19.56 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.815e-05/9.757, allocations: 12 kB / 6.779 GB, free: 19.55 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000172/9.757, allocations: 19.8 kB / 6.779 GB, free: 19.53 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002579/9.757, allocations: 226.6 kB / 6.779 GB, free: 19.27 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.576e-05/9.757, allocations: 7.938 kB / 6.779 GB, free: 19.26 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.478e-05/9.757, allocations: 19.97 kB / 6.779 GB, free: 19.24 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000378/9.758, allocations: 236.5 kB / 6.78 GB, free: 19.01 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003218/9.758, allocations: 237.2 kB / 6.78 GB, free: 18.77 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.468e-05/9.758, allocations: 0 / 6.78 GB, free: 18.77 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.052e-05/9.758, allocations: 3.906 kB / 6.78 GB, free: 18.76 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.058e-05/9.758, allocations: 8 kB / 6.78 GB, free: 18.75 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001221/9.759, allocations: 0.6928 MB / 6.781 GB, free: 18.02 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003106/9.76, allocations: 192.7 kB / 6.781 GB, free: 17.81 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001346/9.76, allocations: 109.7 kB / 6.781 GB, free: 17.7 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01159/9.771, allocations: 12.5 MB / 6.793 GB, free: 2.699 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.858e-05/9.771, allocations: 34.56 kB / 6.793 GB, free: 2.656 MB / 442.7 MB Notification: Performance of pre-optimization done (n=29): time 2.285e-06/9.771, allocations: 0 / 6.793 GB, free: 2.656 MB / 442.7 MB Notification: Performance of matching and sorting (n=36): time 0.001726/9.773, allocations: 0.5086 MB / 6.794 GB, free: 2.145 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.475e-05/9.773, allocations: 81.3 kB / 6.794 GB, free: 2.047 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.161e-05/9.773, allocations: 116.9 kB / 6.794 GB, free: 1.926 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 2.648e-05/9.773, allocations: 25.7 kB / 6.794 GB, free: 1.895 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.159e-05/9.773, allocations: 108.6 kB / 6.794 GB, free: 1.785 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.41e-05/9.773, allocations: 122.1 kB / 6.794 GB, free: 1.664 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.041e-05/9.773, allocations: 0 / 6.794 GB, free: 1.664 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 5.067e-05/9.773, allocations: 330.8 kB / 6.794 GB, free: 1.332 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001547/9.774, allocations: 103.6 kB / 6.794 GB, free: 1.234 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001719/9.774, allocations: 179.8 kB / 6.795 GB, free: 1.031 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003428/9.774, allocations: 152.8 kB / 6.795 GB, free: 0.8828 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.964e-06/9.774, allocations: 3.938 kB / 6.795 GB, free: 0.8789 MB / 442.7 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0007086/9.775, allocations: 364.9 kB / 6.795 GB, free: 0.5195 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.127e-05/9.775, allocations: 4 kB / 6.795 GB, free: 0.5156 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.712e-06/9.775, allocations: 4.219 kB / 6.795 GB, free: 0.5117 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.603e-05/9.775, allocations: 11.91 kB / 6.795 GB, free: 0.5 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004576/9.775, allocations: 91.8 kB / 6.795 GB, free: 420 kB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.865e-06/9.775, allocations: 7.938 kB / 6.795 GB, free: 412 kB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003126/9.776, allocations: 15.98 kB / 6.795 GB, free: 396 kB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.307e-05/9.776, allocations: 31.89 kB / 6.795 GB, free: 364 kB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (43): * Single equations (assignments): 43 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.023e-05/9.776, allocations: 114.8 kB / 6.795 GB, free: 244 kB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001271/9.776, allocations: 19.81 kB / 6.795 GB, free: 224 kB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000532/9.776, allocations: 210.2 kB / 6.796 GB, free: 8 kB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.999e-06/9.776, allocations: 4 kB / 6.796 GB, free: 4 kB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.1458/9.922, allocations: 3.969 kB / 6.796 GB, free: 99.88 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.838e-05/9.922, allocations: 7.797 kB / 6.796 GB, free: 99.88 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001317/9.924, allocations: 0.6592 MB / 6.796 GB, free: 99.58 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.569e-06/9.924, allocations: 0.6562 kB / 6.796 GB, free: 99.58 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004442/9.924, allocations: 84.61 kB / 6.796 GB, free: 99.58 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.778e-06/9.924, allocations: 3.938 kB / 6.796 GB, free: 99.58 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.563e-05/9.924, allocations: 7.734 kB / 6.796 GB, free: 99.58 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.168e-06/9.924, allocations: 3.781 kB / 6.796 GB, free: 99.58 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.765e-06/9.924, allocations: 0 / 6.796 GB, free: 99.58 MB / 442.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0009636/9.925, allocations: 0.7225 MB / 6.797 GB, free: 99.24 MB / 442.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001338/9.927, allocations: 1.3 MB / 6.798 GB, free: 98.52 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001263/9.927, allocations: 127.1 kB / 6.798 GB, free: 98.43 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.113e-05/9.927, allocations: 3.969 kB / 6.798 GB, free: 98.43 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003701/9.927, allocations: 11.25 kB / 6.798 GB, free: 98.43 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.59e-05/9.927, allocations: 31.33 kB / 6.798 GB, free: 98.42 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.978e-05/9.927, allocations: 17.34 kB / 6.799 GB, free: 98.42 MB / 442.7 MB Notification: Performance of sort global known variables: time 4.424e-05/9.927, allocations: 99.14 kB / 6.799 GB, free: 98.35 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.005608/9.933, allocations: 1.26 MB / 6.8 GB, free: 98.35 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 2 (medium.p,medium.T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (38): * Single equations (assignments): 38 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.007945/9.941, allocations: 1.738 MB / 6.802 GB, free: 98.25 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.0004585/9.941, allocations: 276.8 kB / 6.802 GB, free: 98.25 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 3.065e-06/9.941, allocations: 0 / 6.802 GB, free: 98.25 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001711/9.942, allocations: 157.8 kB / 6.802 GB, free: 98.25 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005736/9.942, allocations: 84.94 kB / 6.802 GB, free: 98.25 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02636/9.968, allocations: 12.36 MB / 6.814 GB, free: 97.4 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004051/9.969, allocations: 0.7913 MB / 6.815 GB, free: 96.7 MB / 442.7 MB Notification: Performance of SimCode: time 4.3e-07/9.969, allocations: 0 / 6.815 GB, free: 96.7 MB / 442.7 MB (rm -f Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.MoistAir.pipe ; mkfifo Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.MoistAir.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.MoistAir.pipe >> ../files/Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.MoistAir.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.MoistAir_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Media_Examples_ReferenceAir_MoistAir_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-05 Modelica_4_0_0_Modelica_Media_Examples_ReferenceAir_MoistAir.fmu > Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.MoistAir.pipe 2>&1)