Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Media.Examples.AirTemperatureEnthalpyInversion.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.Examples.AirTemperatureEnthalpyInversion,fileNamePrefix="Buildings_8_Buildings_Media_Examples_AirTemperatureEnthalpyInversion",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Media.Examples.AirTemperatureEnthalpyInversion,fileNamePrefix="Buildings_8_Buildings_Media_Examples_AirTemperatureEnthalpyInversion",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.607/1.607, allocations: 289.8 MB / 297 MB, free: 6.637 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.001135/0.001135, allocations: 177.3 kB / 366.3 MB, free: 1.93 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.593/1.593, allocations: 205.1 MB / 0.6256 GB, free: 5.781 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.0009643/0.0009644, allocations: 92.86 kB / 0.7396 GB, free: 39.57 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.286/0.287, allocations: 122.4 MB / 0.8591 GB, free: 13.23 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6084/0.8954, allocations: 116.3 MB / 0.9726 GB, free: 68.27 MB / 0.6511 GB Notification: Performance of FrontEnd - scodeFlatten: time 3.918/4.813, allocations: 2.054 GB / 3.026 GB, free: 22.76 MB / 0.948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002261/4.814, allocations: 71.97 kB / 3.026 GB, free: 22.69 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.4268/5.241, allocations: 37.13 MB / 3.063 GB, free: 340 MB / 0.948 GB Notification: Performance of prepare preOptimizeDAE: time 3.664e-05/5.241, allocations: 10.44 kB / 3.063 GB, free: 340 MB / 0.948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000245/5.241, allocations: 31.61 kB / 3.063 GB, free: 340 MB / 0.948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.022e-05/5.241, allocations: 164.6 kB / 3.063 GB, free: 339.8 MB / 0.948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.22e-05/5.241, allocations: 33.45 kB / 3.063 GB, free: 339.8 MB / 0.948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.566e-06/5.241, allocations: 0 / 3.063 GB, free: 339.8 MB / 0.948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 7.599e-05/5.241, allocations: 20.73 kB / 3.063 GB, free: 339.8 MB / 0.948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 6.336e-05/5.241, allocations: 44.05 kB / 3.063 GB, free: 339.8 MB / 0.948 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.031e-05/5.241, allocations: 3.906 kB / 3.063 GB, free: 339.8 MB / 0.948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.253e-05/5.241, allocations: 0 / 3.063 GB, free: 339.8 MB / 0.948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.039e-05/5.241, allocations: 3.719 kB / 3.063 GB, free: 339.8 MB / 0.948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004456/5.242, allocations: 334.6 kB / 3.063 GB, free: 339.4 MB / 0.948 GB Notification: Performance of preOpt comSubExp (simulation): time 2.848e-05/5.242, allocations: 18.52 kB / 3.063 GB, free: 339.4 MB / 0.948 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.942e-05/5.242, allocations: 8.734 kB / 3.063 GB, free: 339.4 MB / 0.948 GB Notification: Performance of preOpt evalFunc (simulation): time 5.501e-06/5.242, allocations: 0 / 3.063 GB, free: 339.4 MB / 0.948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.752e-05/5.242, allocations: 34.56 kB / 3.063 GB, free: 339.4 MB / 0.948 GB Notification: Performance of pre-optimization done (n=1): time 7.62e-07/5.242, allocations: 2.625 kB / 3.063 GB, free: 339.4 MB / 0.948 GB Notification: Performance of matching and sorting (n=1): time 0.000208/5.242, allocations: 37.11 kB / 3.063 GB, free: 339.3 MB / 0.948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.058e-05/5.242, allocations: 55.19 kB / 3.063 GB, free: 339.3 MB / 0.948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.481e-05/5.242, allocations: 92.09 kB / 3.063 GB, free: 339.2 MB / 0.948 GB Notification: Performance of collectPreVariables (initialization): time 1.015e-05/5.242, allocations: 29.33 kB / 3.063 GB, free: 339.1 MB / 0.948 GB Notification: Performance of collectInitialEqns (initialization): time 3.154e-05/5.242, allocations: 101.6 kB / 3.064 GB, free: 339 MB / 0.948 GB Notification: Performance of collectInitialBindings (initialization): time 3.747e-06/5.242, allocations: 0 / 3.064 GB, free: 339 MB / 0.948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.975e-06/5.242, allocations: 0 / 3.064 GB, free: 339 MB / 0.948 GB Notification: Performance of setup shared object (initialization): time 5.417e-05/5.242, allocations: 314.7 kB / 3.064 GB, free: 338.7 MB / 0.948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.204e-05/5.242, allocations: 0 / 3.064 GB, free: 338.7 MB / 0.948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.275e-05/5.242, allocations: 30.12 kB / 3.064 GB, free: 338.7 MB / 0.948 GB Notification: Performance of analyzeInitialSystem (initialization): time 1.878e-05/5.242, allocations: 11.56 kB / 3.064 GB, free: 338.7 MB / 0.948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.392e-06/5.242, allocations: 0 / 3.064 GB, free: 338.7 MB / 0.948 GB Notification: Performance of matching and sorting (n=4) (initialization): time 6.862e-05/5.242, allocations: 51.2 kB / 3.064 GB, free: 338.7 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 1.096e-05/5.242, allocations: 7.719 kB / 3.064 GB, free: 338.7 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.779e-06/5.242, allocations: 0 / 3.064 GB, free: 338.7 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.713e-05/5.242, allocations: 3.906 kB / 3.064 GB, free: 338.7 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.215e-05/5.243, allocations: 9.594 kB / 3.064 GB, free: 338.7 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.25e-06/5.243, allocations: 3.656 kB / 3.064 GB, free: 338.7 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.069e-05/5.243, allocations: 9.859 kB / 3.064 GB, free: 338.7 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.312e-06/5.243, allocations: 1.969 kB / 3.064 GB, free: 338.7 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 5.228e-05/5.243, allocations: 108.9 kB / 3.064 GB, free: 338.5 MB / 0.948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.552e-05/5.243, allocations: 3.938 kB / 3.064 GB, free: 338.5 MB / 0.948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.222e-05/5.243, allocations: 3.156 kB / 3.064 GB, free: 338.5 MB / 0.948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.005e-06/5.243, allocations: 7.781 kB / 3.064 GB, free: 338.5 MB / 0.948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.549e-06/5.243, allocations: 2.781 kB / 3.064 GB, free: 338.5 MB / 0.948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.025e-06/5.243, allocations: 0 / 3.064 GB, free: 338.5 MB / 0.948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001686/5.243, allocations: 326.1 kB / 3.064 GB, free: 338.2 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.062e-06/5.243, allocations: 4.031 kB / 3.064 GB, free: 338.2 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.253e-05/5.243, allocations: 0 / 3.064 GB, free: 338.2 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.535e-06/5.243, allocations: 3.906 kB / 3.064 GB, free: 338.2 MB / 0.948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.611e-06/5.243, allocations: 0 / 3.064 GB, free: 338.2 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.344e-06/5.243, allocations: 6.594 kB / 3.064 GB, free: 338.2 MB / 0.948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.144e-06/5.243, allocations: 0 / 3.064 GB, free: 338.2 MB / 0.948 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 4.518e-05/5.243, allocations: 56.42 kB / 3.064 GB, free: 338.1 MB / 0.948 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0001514/5.243, allocations: 454.2 kB / 3.065 GB, free: 337.7 MB / 0.948 GB Notification: Performance of postOpt removeConstants (simulation): time 2.399e-05/5.243, allocations: 84.53 kB / 3.065 GB, free: 337.6 MB / 0.948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.894e-05/5.243, allocations: 3.938 kB / 3.065 GB, free: 337.6 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.785e-05/5.243, allocations: 0 / 3.065 GB, free: 337.6 MB / 0.948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.528e-05/5.243, allocations: 3.938 kB / 3.065 GB, free: 337.6 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.555e-06/5.243, allocations: 7.906 kB / 3.065 GB, free: 337.6 MB / 0.948 GB Notification: Performance of sort global known variables: time 2.518e-05/5.243, allocations: 81.73 kB / 3.065 GB, free: 337.5 MB / 0.948 GB Notification: Performance of remove unused functions: time 0.0009175/5.244, allocations: 77.11 kB / 3.065 GB, free: 337.5 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.0006777/5.245, allocations: 0.6535 MB / 3.066 GB, free: 337.3 MB / 0.948 GB Notification: Performance of simCode: created initialization part: time 8.14e-05/5.245, allocations: 9.75 kB / 3.066 GB, free: 337.3 MB / 0.948 GB Notification: Performance of simCode: created event and clocks part: time 2.935e-06/5.245, allocations: 0 / 3.066 GB, free: 337.3 MB / 0.948 GB Notification: Performance of simCode: created simulation system equations: time 3.908e-06/5.245, allocations: 0 / 3.066 GB, free: 337.3 MB / 0.948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001513/5.245, allocations: 11.23 kB / 3.066 GB, free: 337.3 MB / 0.948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001882/5.245, allocations: 63.39 kB / 3.066 GB, free: 337.2 MB / 0.948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00021/5.246, allocations: 0.6876 MB / 3.067 GB, free: 336.5 MB / 0.948 GB Notification: Performance of SimCode: time 2.7e-07/5.246, allocations: 0 / 3.067 GB, free: 336.5 MB / 0.948 GB (rm -f Buildings_8_Buildings.Media.Examples.AirTemperatureEnthalpyInversion.pipe ; mkfifo Buildings_8_Buildings.Media.Examples.AirTemperatureEnthalpyInversion.pipe ; head -c 1048576 < Buildings_8_Buildings.Media.Examples.AirTemperatureEnthalpyInversion.pipe >> ../files/Buildings_8_Buildings.Media.Examples.AirTemperatureEnthalpyInversion.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Media_Examples_AirTemperatureEnthalpyInversion_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Media_Examples_AirTemperatureEnthalpyInversion.fmu > Buildings_8_Buildings.Media.Examples.AirTemperatureEnthalpyInversion.pipe 2>&1)