Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Media.Specialized.Air.Examples.PerfectGasTemperatureEnthalpyInversion.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Media.Specialized.Air.Examples.PerfectGasTemperatureEnthalpyInversion,fileNamePrefix="Buildings_8_Buildings_Media_Specialized_Air_Examples_PerfectGasTemperatureEnthalpyInversion",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Media.Specialized.Air.Examples.PerfectGasTemperatureEnthalpyInversion,fileNamePrefix="Buildings_8_Buildings_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/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.538/1.538, allocations: 289.8 MB / 297 MB, free: 6.598 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001125/0.001125, allocations: 184.2 kB / 366.3 MB, free: 1.941 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.563/1.563, allocations: 205.1 MB / 0.6256 GB, free: 5.828 MB / 474.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009208/0.0009204, allocations: 77.11 kB / 0.7395 GB, free: 39.64 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.2948/0.2957, allocations: 122.4 MB / 0.8591 GB, free: 13.25 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5905/0.8863, allocations: 116.3 MB / 0.9726 GB, free: 68.09 MB / 0.6511 GB Notification: Performance of FrontEnd - scodeFlatten: time 9.102/9.988, allocations: 4.611 GB / 5.584 GB, free: 273 MB / 0.948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002358/9.989, allocations: 88.42 kB / 5.584 GB, free: 273 MB / 0.948 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.08013/10.07, allocations: 44.88 MB / 5.628 GB, free: 266.4 MB / 0.948 GB Notification: Performance of prepare preOptimizeDAE: time 3.915e-05/10.07, allocations: 7.875 kB / 5.628 GB, free: 266.4 MB / 0.948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000206/10.07, allocations: 26.23 kB / 5.628 GB, free: 266.4 MB / 0.948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.619e-05/10.07, allocations: 163.7 kB / 5.628 GB, free: 266.2 MB / 0.948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.749e-05/10.07, allocations: 34.81 kB / 5.628 GB, free: 266.1 MB / 0.948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.426e-06/10.07, allocations: 0 / 5.628 GB, free: 266.1 MB / 0.948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 8.606e-05/10.07, allocations: 18.56 kB / 5.628 GB, free: 266.1 MB / 0.948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.219e-05/10.07, allocations: 45.19 kB / 5.628 GB, free: 266.1 MB / 0.948 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.094e-06/10.07, allocations: 1.219 kB / 5.628 GB, free: 266.1 MB / 0.948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.279e-05/10.07, allocations: 5.781 kB / 5.628 GB, free: 266.1 MB / 0.948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.602e-05/10.07, allocations: 3.906 kB / 5.628 GB, free: 266.1 MB / 0.948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003241/10.07, allocations: 238 kB / 5.628 GB, free: 265.8 MB / 0.948 GB Notification: Performance of preOpt comSubExp (simulation): time 3.049e-05/10.07, allocations: 22.42 kB / 5.628 GB, free: 265.8 MB / 0.948 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.687e-05/10.07, allocations: 4.859 kB / 5.628 GB, free: 265.8 MB / 0.948 GB Notification: Performance of preOpt evalFunc (simulation): time 8.445e-06/10.07, allocations: 4 kB / 5.628 GB, free: 265.8 MB / 0.948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.405e-05/10.07, allocations: 37.09 kB / 5.628 GB, free: 265.8 MB / 0.948 GB Notification: Performance of pre-optimization done (n=1): time 1.072e-06/10.07, allocations: 0 / 5.628 GB, free: 265.8 MB / 0.948 GB Notification: Performance of matching and sorting (n=1): time 0.0001146/10.07, allocations: 33.14 kB / 5.628 GB, free: 265.7 MB / 0.948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.222e-05/10.07, allocations: 51.41 kB / 5.628 GB, free: 265.7 MB / 0.948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.7e-05/10.07, allocations: 98.23 kB / 5.628 GB, free: 265.6 MB / 0.948 GB Notification: Performance of collectPreVariables (initialization): time 9.398e-06/10.07, allocations: 25.7 kB / 5.628 GB, free: 265.6 MB / 0.948 GB Notification: Performance of collectInitialEqns (initialization): time 2.651e-05/10.07, allocations: 93.48 kB / 5.629 GB, free: 265.5 MB / 0.948 GB Notification: Performance of collectInitialBindings (initialization): time 5.42e-06/10.07, allocations: 5.531 kB / 5.629 GB, free: 265.5 MB / 0.948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.915e-06/10.07, allocations: 3.844 kB / 5.629 GB, free: 265.5 MB / 0.948 GB Notification: Performance of setup shared object (initialization): time 4.814e-05/10.07, allocations: 314.9 kB / 5.629 GB, free: 265.1 MB / 0.948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.225e-05/10.07, allocations: 5.703 kB / 5.629 GB, free: 265.1 MB / 0.948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.845e-05/10.07, allocations: 26.11 kB / 5.629 GB, free: 265.1 MB / 0.948 GB Notification: Performance of analyzeInitialSystem (initialization): time 1.832e-05/10.07, allocations: 9.312 kB / 5.629 GB, free: 265.1 MB / 0.948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.533e-06/10.07, allocations: 0 / 5.629 GB, free: 265.1 MB / 0.948 GB Notification: Performance of matching and sorting (n=4) (initialization): time 6.344e-05/10.07, allocations: 52.17 kB / 5.629 GB, free: 265.1 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 9.287e-06/10.07, allocations: 5.641 kB / 5.629 GB, free: 265.1 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.378e-06/10.07, allocations: 0 / 5.629 GB, free: 265.1 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.111e-05/10.07, allocations: 0 / 5.629 GB, free: 265.1 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.44e-05/10.07, allocations: 7.781 kB / 5.629 GB, free: 265.1 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.849e-06/10.07, allocations: 1.828 kB / 5.629 GB, free: 265.1 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.732e-05/10.07, allocations: 3.906 kB / 5.629 GB, free: 265.1 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.911e-06/10.07, allocations: 3.469 kB / 5.629 GB, free: 265.1 MB / 0.948 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.547e-05/10.07, allocations: 114.2 kB / 5.629 GB, free: 265 MB / 0.948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.588e-05/10.07, allocations: 3.906 kB / 5.629 GB, free: 265 MB / 0.948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.236e-05/10.07, allocations: 3.25 kB / 5.629 GB, free: 264.9 MB / 0.948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.524e-06/10.07, allocations: 5.719 kB / 5.629 GB, free: 264.9 MB / 0.948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.819e-06/10.07, allocations: 256 / 5.629 GB, free: 264.9 MB / 0.948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.17e-06/10.07, allocations: 3.906 kB / 5.629 GB, free: 264.9 MB / 0.948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001589/10.07, allocations: 327.8 kB / 5.629 GB, free: 264.6 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.81e-07/10.07, allocations: 4.031 kB / 5.629 GB, free: 264.6 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.292e-05/10.07, allocations: 3.969 kB / 5.629 GB, free: 264.6 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.383e-06/10.07, allocations: 1.406 kB / 5.629 GB, free: 264.6 MB / 0.948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.319e-06/10.07, allocations: 0 / 5.629 GB, free: 264.6 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.763e-06/10.07, allocations: 3.906 kB / 5.629 GB, free: 264.6 MB / 0.948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.346e-06/10.07, allocations: 1.406 kB / 5.629 GB, free: 264.6 MB / 0.948 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 4.555e-05/10.07, allocations: 57.66 kB / 5.629 GB, free: 264.5 MB / 0.948 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0001467/10.07, allocations: 465.9 kB / 5.63 GB, free: 264.1 MB / 0.948 GB Notification: Performance of postOpt removeConstants (simulation): time 2.387e-05/10.07, allocations: 77.11 kB / 5.63 GB, free: 264 MB / 0.948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.919e-05/10.07, allocations: 3.906 kB / 5.63 GB, free: 264 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.939e-05/10.07, allocations: 5.594 kB / 5.63 GB, free: 264 MB / 0.948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.447e-05/10.07, allocations: 1.547 kB / 5.63 GB, free: 264 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.413e-06/10.07, allocations: 4.031 kB / 5.63 GB, free: 264 MB / 0.948 GB Notification: Performance of sort global known variables: time 2.702e-05/10.07, allocations: 83.09 kB / 5.63 GB, free: 263.9 MB / 0.948 GB Notification: Performance of remove unused functions: time 0.00088/10.07, allocations: 79.75 kB / 5.63 GB, free: 263.9 MB / 0.948 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.0007497/10.07, allocations: 0.655 MB / 5.631 GB, free: 263.6 MB / 0.948 GB Notification: Performance of simCode: created initialization part: time 7.435e-05/10.07, allocations: 13.64 kB / 5.631 GB, free: 263.6 MB / 0.948 GB Notification: Performance of simCode: created event and clocks part: time 3.947e-06/10.07, allocations: 1.969 kB / 5.631 GB, free: 263.6 MB / 0.948 GB Notification: Performance of simCode: created simulation system equations: time 4.778e-06/10.07, allocations: 7.844 kB / 5.631 GB, free: 263.6 MB / 0.948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001511/10.07, allocations: 3.375 kB / 5.631 GB, free: 263.6 MB / 0.948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001816/10.07, allocations: 51.14 kB / 5.631 GB, free: 263.6 MB / 0.948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001962/10.07, allocations: 0.6926 MB / 5.632 GB, free: 262.8 MB / 0.948 GB Notification: Performance of SimCode: time 2.51e-07/10.07, allocations: 0 / 5.632 GB, free: 262.8 MB / 0.948 GB (rm -f Buildings_8_Buildings.Media.Specialized.Air.Examples.PerfectGasTemperatureEnthalpyInversion.pipe ; mkfifo Buildings_8_Buildings.Media.Specialized.Air.Examples.PerfectGasTemperatureEnthalpyInversion.pipe ; head -c 1048576 < Buildings_8_Buildings.Media.Specialized.Air.Examples.PerfectGasTemperatureEnthalpyInversion.pipe >> ../files/Buildings_8_Buildings.Media.Specialized.Air.Examples.PerfectGasTemperatureEnthalpyInversion.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Media_Specialized_Air_Examples_PerfectGasTemperatureEnthalpyInversion_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Media_Specialized_Air_Examples_PerfectGasTemperatureEnthalpyInversion.fmu > Buildings_8_Buildings.Media.Specialized.Air.Examples.PerfectGasTemperatureEnthalpyInversion.pipe 2>&1)