Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Media.Examples.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.MoistAir,fileNamePrefix="Modelica_4_0_0_Modelica_Media_Examples_MoistAir",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.MoistAir,fileNamePrefix="Modelica_4_0_0_Modelica_Media_Examples_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.0009147/0.0009147, allocations: 181.2 kB / 8.132 MB, free: 2.219 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.087/1.087, allocations: 221.4 MB / 229.9 MB, free: 3.016 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.0008666/0.0008666, allocations: 97 kB / 280.8 MB, free: 1.262 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09469/0.09558, allocations: 55.81 MB / 336.6 MB, free: 9.426 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1862/0.2818, allocations: 50.4 MB / 387 MB, free: 37.98 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 4.599/4.881, allocations: 3.336 GB / 3.714 GB, free: 22.68 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001858/4.881, allocations: 71.91 kB / 3.714 GB, free: 22.61 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.2516/5.133, allocations: 49.18 MB / 3.762 GB, free: 147.8 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.188e-05/5.133, allocations: 14.36 kB / 3.762 GB, free: 147.8 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001906/5.133, allocations: 20.11 kB / 3.762 GB, free: 147.8 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002582/5.133, allocations: 212.9 kB / 3.762 GB, free: 147.6 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.434e-05/5.134, allocations: 3.812 kB / 3.762 GB, free: 147.6 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.592e-05/5.134, allocations: 13.25 kB / 3.762 GB, free: 147.6 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004094/5.134, allocations: 206.7 kB / 3.763 GB, free: 147.6 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003451/5.134, allocations: 225.9 kB / 3.763 GB, free: 147.5 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.348e-05/5.134, allocations: 0 / 3.763 GB, free: 147.5 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.137e-05/5.134, allocations: 0 / 3.763 GB, free: 147.5 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.079e-05/5.134, allocations: 11.31 kB / 3.763 GB, free: 147.5 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001244/5.136, allocations: 0.6575 MB / 3.763 GB, free: 147 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000326/5.136, allocations: 179.2 kB / 3.764 GB, free: 146.9 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001653/5.136, allocations: 112.3 kB / 3.764 GB, free: 146.8 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002878/5.136, allocations: 357 kB / 3.764 GB, free: 146.5 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.835e-05/5.137, allocations: 44.09 kB / 3.764 GB, free: 146.4 MB / 442.7 MB Notification: Performance of pre-optimization done (n=29): time 1.703e-06/5.137, allocations: 0 / 3.764 GB, free: 146.4 MB / 442.7 MB Notification: Performance of matching and sorting (n=36): time 0.001591/5.138, allocations: 495 kB / 3.765 GB, free: 146.2 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.224e-05/5.138, allocations: 81.17 kB / 3.765 GB, free: 146.1 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.066e-05/5.138, allocations: 116.8 kB / 3.765 GB, free: 146 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 2.849e-05/5.138, allocations: 30.08 kB / 3.765 GB, free: 146 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.209e-05/5.138, allocations: 108.2 kB / 3.765 GB, free: 145.9 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.717e-05/5.138, allocations: 120.8 kB / 3.765 GB, free: 145.8 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.073e-05/5.138, allocations: 0 / 3.765 GB, free: 145.8 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 4.495e-05/5.138, allocations: 326.4 kB / 3.765 GB, free: 145.5 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001509/5.139, allocations: 107.6 kB / 3.765 GB, free: 145.4 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001682/5.139, allocations: 175.8 kB / 3.766 GB, free: 145.2 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002844/5.139, allocations: 153.1 kB / 3.766 GB, free: 145.1 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.613e-06/5.139, allocations: 0 / 3.766 GB, free: 145.1 MB / 442.7 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0005646/5.14, allocations: 351 kB / 3.766 GB, free: 144.8 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.143e-05/5.14, allocations: 8 kB / 3.766 GB, free: 144.7 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.981e-06/5.14, allocations: 0 / 3.766 GB, free: 144.7 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.466e-05/5.14, allocations: 4 kB / 3.766 GB, free: 144.7 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004987/5.14, allocations: 93.66 kB / 3.766 GB, free: 144.7 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.005e-06/5.14, allocations: 7.938 kB / 3.766 GB, free: 144.7 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003443/5.141, allocations: 23.77 kB / 3.766 GB, free: 144.6 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.068e-05/5.141, allocations: 15.84 kB / 3.766 GB, free: 144.6 MB / 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.273e-05/5.141, allocations: 112.8 kB / 3.766 GB, free: 144.5 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.799e-05/5.141, allocations: 19.81 kB / 3.766 GB, free: 144.5 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004725/5.141, allocations: 187.8 kB / 3.766 GB, free: 144.3 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.25e-06/5.141, allocations: 4 kB / 3.766 GB, free: 144.3 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.341e-06/5.141, allocations: 7.938 kB / 3.766 GB, free: 144.3 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.031e-06/5.141, allocations: 3.797 kB / 3.766 GB, free: 144.3 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001016/5.142, allocations: 0.6521 MB / 3.767 GB, free: 143.7 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.847e-06/5.142, allocations: 4 kB / 3.767 GB, free: 143.7 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000447/5.143, allocations: 82.95 kB / 3.767 GB, free: 143.6 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.352e-06/5.143, allocations: 4 kB / 3.767 GB, free: 143.6 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.074e-05/5.143, allocations: 4 kB / 3.767 GB, free: 143.6 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.057e-06/5.143, allocations: 11.78 kB / 3.767 GB, free: 143.6 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.435e-06/5.143, allocations: 0 / 3.767 GB, free: 143.6 MB / 442.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0007312/5.144, allocations: 0.7158 MB / 3.768 GB, free: 142.9 MB / 442.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0009691/5.145, allocations: 1.233 MB / 3.769 GB, free: 141.6 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001032/5.145, allocations: 116.6 kB / 3.769 GB, free: 141.5 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.698e-05/5.145, allocations: 3.938 kB / 3.769 GB, free: 141.5 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003822/5.145, allocations: 23.91 kB / 3.769 GB, free: 141.5 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.631e-05/5.145, allocations: 19.45 kB / 3.769 GB, free: 141.5 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.765e-05/5.145, allocations: 19.75 kB / 3.769 GB, free: 141.5 MB / 442.7 MB Notification: Performance of sort global known variables: time 3.755e-05/5.145, allocations: 91.22 kB / 3.769 GB, free: 141.4 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.001373/5.147, allocations: 223.2 kB / 3.77 GB, free: 141.2 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.001306/5.148, allocations: 0.7409 MB / 3.77 GB, free: 140.6 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.0005281/5.148, allocations: 282.4 kB / 3.771 GB, free: 140.3 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 3.918e-06/5.149, allocations: 0 / 3.771 GB, free: 140.3 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001983/5.149, allocations: 148.5 kB / 3.771 GB, free: 140.2 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005993/5.149, allocations: 84.41 kB / 3.771 GB, free: 140.1 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001112/5.15, allocations: 459 kB / 3.771 GB, free: 139.7 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003516/5.151, allocations: 0.7897 MB / 3.772 GB, free: 138.9 MB / 442.7 MB Notification: Performance of SimCode: time 2.6e-07/5.151, allocations: 0 / 3.772 GB, free: 138.9 MB / 442.7 MB (rm -f Modelica_4.0.0_Modelica.Media.Examples.MoistAir.pipe ; mkfifo Modelica_4.0.0_Modelica.Media.Examples.MoistAir.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Media.Examples.MoistAir.pipe >> ../files/Modelica_4.0.0_Modelica.Media.Examples.MoistAir.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Media.Examples.MoistAir_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Media_Examples_MoistAir_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-05 Modelica_4_0_0_Modelica_Media_Examples_MoistAir.fmu > Modelica_4.0.0_Modelica.Media.Examples.MoistAir.pipe 2>&1)