Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Media.Specialized.Air.Examples.PerfectGasTemperatureEnthalpyInversion.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo) 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) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Running command: "" <> buildModelFMU(BuildingSystems.Media.Specialized.Air.Examples.PerfectGasTemperatureEnthalpyInversion,fileNamePrefix="BuildingSystems_BuildingSystems_Media_Specialized_Air_Examples_PerfectGasTemperatureEnthalpyInversion",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Media.Specialized.Air.Examples.PerfectGasTemperatureEnthalpyInversion,fileNamePrefix="BuildingSystems_BuildingSystems_Media_Specialized_Air_Examples_PerfectGasTemperatureEnthalpyInversion",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/BuildingSystems 2.0.0-master/package.mo): time 0.6924/0.6924, allocations: 141.8 MB / 149.1 MB, free: 12.94 MB / 138.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001128/0.001127, allocations: 181.3 kB / 181.9 MB, free: 9.629 MB / 154.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.227/1.227, allocations: 221.4 MB / 436 MB, free: 2.078 MB / 330.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008987/0.0008986, allocations: 92.73 kB / 0.507 GB, free: 10.88 MB / 394.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001737/0.001737, allocations: 282.4 kB / 0.5884 GB, free: 7.688 MB / 474.9 MB Notification: Performance of FrontEnd - loaded program: time 0.1668/0.1686, allocations: 89.63 MB / 0.676 GB, free: 13.96 MB / 0.5575 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3166/0.4852, allocations: 82.78 MB / 0.7568 GB, free: 138.8 MB / 0.5575 GB Notification: Performance of FrontEnd - scodeFlatten: time 6.851/7.336, allocations: 4.367 GB / 5.124 GB, free: 91.21 MB / 0.6982 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002596/7.336, allocations: 87.86 kB / 5.124 GB, free: 91.13 MB / 0.6982 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 4 * Number of variables: 4 Notification: Performance of Generate backend data structure: time 0.08303/7.419, allocations: 46.76 MB / 5.17 GB, free: 43.79 MB / 0.6982 GB Notification: Performance of prepare preOptimizeDAE: time 1.978e-05/7.419, allocations: 8 kB / 5.17 GB, free: 43.78 MB / 0.6982 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001863/7.42, allocations: 23.89 kB / 5.17 GB, free: 43.75 MB / 0.6982 GB Notification: Performance of preOpt evaluateParameters (simulation): time 5.906e-05/7.42, allocations: 167.1 kB / 5.17 GB, free: 43.55 MB / 0.6982 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.853e-05/7.42, allocations: 29.7 kB / 5.17 GB, free: 43.52 MB / 0.6982 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.196e-05/7.42, allocations: 0 / 5.17 GB, free: 43.52 MB / 0.6982 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 8.235e-05/7.42, allocations: 15.98 kB / 5.17 GB, free: 43.5 MB / 0.6982 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.16e-05/7.42, allocations: 45.69 kB / 5.17 GB, free: 43.45 MB / 0.6982 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.727e-06/7.42, allocations: 3.938 kB / 5.17 GB, free: 43.45 MB / 0.6982 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.384e-05/7.42, allocations: 0 / 5.17 GB, free: 43.45 MB / 0.6982 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.756e-05/7.42, allocations: 4 kB / 5.17 GB, free: 43.44 MB / 0.6982 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003029/7.42, allocations: 241.4 kB / 5.171 GB, free: 43.17 MB / 0.6982 GB Notification: Performance of preOpt comSubExp (simulation): time 3.128e-05/7.42, allocations: 18.48 kB / 5.171 GB, free: 43.14 MB / 0.6982 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.788e-05/7.42, allocations: 5.172 kB / 5.171 GB, free: 43.13 MB / 0.6982 GB Notification: Performance of preOpt evalFunc (simulation): time 6.442e-06/7.42, allocations: 4.062 kB / 5.171 GB, free: 43.13 MB / 0.6982 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.613e-05/7.42, allocations: 30.56 kB / 5.171 GB, free: 43.09 MB / 0.6982 GB Notification: Performance of pre-optimization done (n=1): time 1.152e-06/7.42, allocations: 0 / 5.171 GB, free: 43.09 MB / 0.6982 GB Notification: Performance of matching and sorting (n=1): time 0.0001208/7.421, allocations: 37.64 kB / 5.171 GB, free: 43.05 MB / 0.6982 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.021e-05/7.421, allocations: 51.41 kB / 5.171 GB, free: 42.98 MB / 0.6982 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.339e-05/7.421, allocations: 104.9 kB / 5.171 GB, free: 42.88 MB / 0.6982 GB Notification: Performance of collectPreVariables (initialization): time 1.133e-05/7.421, allocations: 25.7 kB / 5.171 GB, free: 42.84 MB / 0.6982 GB Notification: Performance of collectInitialEqns (initialization): time 3.149e-05/7.421, allocations: 91.95 kB / 5.171 GB, free: 42.75 MB / 0.6982 GB Notification: Performance of collectInitialBindings (initialization): time 3.937e-06/7.421, allocations: 0 / 5.171 GB, free: 42.75 MB / 0.6982 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.995e-06/7.421, allocations: 0 / 5.171 GB, free: 42.75 MB / 0.6982 GB Notification: Performance of setup shared object (initialization): time 4.899e-05/7.421, allocations: 314.8 kB / 5.171 GB, free: 42.43 MB / 0.6982 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.38e-05/7.421, allocations: 15.95 kB / 5.171 GB, free: 42.42 MB / 0.6982 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.693e-05/7.421, allocations: 26.58 kB / 5.171 GB, free: 42.38 MB / 0.6982 GB Notification: Performance of analyzeInitialSystem (initialization): time 1.793e-05/7.421, allocations: 4 kB / 5.171 GB, free: 42.38 MB / 0.6982 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.034e-06/7.421, allocations: 0 / 5.171 GB, free: 42.38 MB / 0.6982 GB Notification: Performance of matching and sorting (n=4) (initialization): time 6.731e-05/7.421, allocations: 53.53 kB / 5.171 GB, free: 42.32 MB / 0.6982 GB Notification: Performance of prepare postOptimizeDAE: time 1.013e-05/7.421, allocations: 8 kB / 5.171 GB, free: 42.31 MB / 0.6982 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.799e-06/7.421, allocations: 4.094 kB / 5.171 GB, free: 42.31 MB / 0.6982 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.189e-05/7.421, allocations: 0 / 5.171 GB, free: 42.31 MB / 0.6982 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.68e-05/7.421, allocations: 8 kB / 5.171 GB, free: 42.3 MB / 0.6982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.887e-06/7.421, allocations: 0 / 5.171 GB, free: 42.3 MB / 0.6982 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.899e-05/7.421, allocations: 7.922 kB / 5.171 GB, free: 42.29 MB / 0.6982 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.099e-06/7.421, allocations: 4 kB / 5.171 GB, free: 42.29 MB / 0.6982 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (4): * Single equations (assignments): 4 * 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 4.431e-05/7.421, allocations: 108.8 kB / 5.171 GB, free: 42.18 MB / 0.6982 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.65e-05/7.421, allocations: 0 / 5.171 GB, free: 42.18 MB / 0.6982 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.123e-05/7.421, allocations: 9.922 kB / 5.171 GB, free: 42.17 MB / 0.6982 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.452e-06/7.421, allocations: 4 kB / 5.171 GB, free: 42.16 MB / 0.6982 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.829e-06/7.421, allocations: 4 kB / 5.171 GB, free: 42.16 MB / 0.6982 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.278e-06/7.421, allocations: 4.078 kB / 5.171 GB, free: 42.16 MB / 0.6982 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001694/7.421, allocations: 323.3 kB / 5.172 GB, free: 41.79 MB / 0.6982 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.273e-06/7.421, allocations: 0 / 5.172 GB, free: 41.79 MB / 0.6982 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.38e-05/7.421, allocations: 3.984 kB / 5.172 GB, free: 41.79 MB / 0.6982 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.995e-06/7.421, allocations: 4 kB / 5.172 GB, free: 41.79 MB / 0.6982 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.799e-06/7.421, allocations: 0 / 5.172 GB, free: 41.79 MB / 0.6982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.123e-06/7.421, allocations: 0 / 5.172 GB, free: 41.79 MB / 0.6982 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.066e-06/7.421, allocations: 7.938 kB / 5.172 GB, free: 41.78 MB / 0.6982 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 5.124e-05/7.421, allocations: 58.64 kB / 5.172 GB, free: 41.7 MB / 0.6982 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0001404/7.422, allocations: 453.4 kB / 5.172 GB, free: 41.24 MB / 0.6982 GB Notification: Performance of postOpt removeConstants (simulation): time 1.861e-05/7.422, allocations: 81.17 kB / 5.172 GB, free: 41.14 MB / 0.6982 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.986e-05/7.422, allocations: 4 kB / 5.172 GB, free: 41.14 MB / 0.6982 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.609e-05/7.422, allocations: 7.906 kB / 5.172 GB, free: 41.13 MB / 0.6982 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.011e-05/7.422, allocations: 3.984 kB / 5.172 GB, free: 41.12 MB / 0.6982 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.703e-06/7.422, allocations: 0 / 5.172 GB, free: 41.12 MB / 0.6982 GB Notification: Performance of sort global known variables: time 2.317e-05/7.422, allocations: 83.28 kB / 5.172 GB, free: 41.04 MB / 0.6982 GB Notification: Performance of remove unused functions: time 0.0009178/7.423, allocations: 79.98 kB / 5.173 GB, free: 40.96 MB / 0.6982 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (1): * Single equations (assignments): 1 * 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.000589/7.423, allocations: 0.661 MB / 5.173 GB, free: 40.29 MB / 0.6982 GB Notification: Performance of simCode: created initialization part: time 6.486e-05/7.423, allocations: 19.88 kB / 5.173 GB, free: 40.27 MB / 0.6982 GB Notification: Performance of simCode: created event and clocks part: time 1.623e-06/7.423, allocations: 0 / 5.173 GB, free: 40.27 MB / 0.6982 GB Notification: Performance of simCode: created simulation system equations: time 3.918e-06/7.423, allocations: 0 / 5.173 GB, free: 40.27 MB / 0.6982 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00013/7.424, allocations: 14.88 kB / 5.173 GB, free: 40.26 MB / 0.6982 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001414/7.424, allocations: 51.92 kB / 5.173 GB, free: 40.19 MB / 0.6982 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001186/7.424, allocations: 0.6918 MB / 5.174 GB, free: 39.47 MB / 0.6982 GB Notification: Performance of SimCode: time 2.5e-07/7.424, allocations: 0 / 5.174 GB, free: 39.47 MB / 0.6982 GB (rm -f BuildingSystems_BuildingSystems.Media.Specialized.Air.Examples.PerfectGasTemperatureEnthalpyInversion.pipe ; mkfifo BuildingSystems_BuildingSystems.Media.Specialized.Air.Examples.PerfectGasTemperatureEnthalpyInversion.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Media.Specialized.Air.Examples.PerfectGasTemperatureEnthalpyInversion.pipe >> ../files/BuildingSystems_BuildingSystems.Media.Specialized.Air.Examples.PerfectGasTemperatureEnthalpyInversion.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Media_Specialized_Air_Examples_PerfectGasTemperatureEnthalpyInversion_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Media_Specialized_Air_Examples_PerfectGasTemperatureEnthalpyInversion.fmu > BuildingSystems_BuildingSystems.Media.Specialized.Air.Examples.PerfectGasTemperatureEnthalpyInversion.pipe 2>&1)