Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Media.Examples.AirTemperatureEnthalpyInversion.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.Examples.AirTemperatureEnthalpyInversion,fileNamePrefix="BuildingSystems_BuildingSystems_Media_Examples_AirTemperatureEnthalpyInversion",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Media.Examples.AirTemperatureEnthalpyInversion,fileNamePrefix="BuildingSystems_BuildingSystems_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/BuildingSystems 2.0.0-master/package.mo): time 0.7191/0.7191, allocations: 141.8 MB / 149.1 MB, free: 12.54 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.001042/0.001042, allocations: 183.6 kB / 181.9 MB, free: 9.262 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.216/1.216, allocations: 221.3 MB / 436 MB, free: 1.602 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.0009663/0.0009663, allocations: 95 kB / 0.507 GB, free: 17.72 MB / 378.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001813/0.001813, allocations: 284.1 kB / 0.5885 GB, free: 3.246 MB / 442.9 MB Notification: Performance of FrontEnd - loaded program: time 0.3675/0.3694, allocations: 89.62 MB / 0.676 GB, free: 136 MB / 0.5107 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1508/0.5202, allocations: 82.77 MB / 0.7568 GB, free: 82.05 MB / 0.5107 GB Notification: Performance of FrontEnd - scodeFlatten: time 2.927/3.448, allocations: 1.671 GB / 2.428 GB, free: 39.67 MB / 0.6982 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000245/3.448, allocations: 71.95 kB / 2.428 GB, free: 39.61 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.07297/3.521, allocations: 37.09 MB / 2.464 GB, free: 2.027 MB / 0.6982 GB Notification: Performance of prepare preOptimizeDAE: time 4.317e-05/3.521, allocations: 9 kB / 2.464 GB, free: 2.02 MB / 0.6982 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003065/3.521, allocations: 27.97 kB / 2.464 GB, free: 1.992 MB / 0.6982 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.814e-05/3.521, allocations: 171 kB / 2.464 GB, free: 1.785 MB / 0.6982 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.102e-05/3.521, allocations: 29.7 kB / 2.464 GB, free: 1.75 MB / 0.6982 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.162e-05/3.521, allocations: 0 / 2.464 GB, free: 1.75 MB / 0.6982 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 8.515e-05/3.522, allocations: 27.92 kB / 2.464 GB, free: 1.723 MB / 0.6982 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.712e-05/3.522, allocations: 41.69 kB / 2.464 GB, free: 1.676 MB / 0.6982 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.314e-06/3.522, allocations: 4 kB / 2.464 GB, free: 1.672 MB / 0.6982 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.473e-05/3.522, allocations: 0 / 2.464 GB, free: 1.672 MB / 0.6982 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.741e-05/3.522, allocations: 4 kB / 2.464 GB, free: 1.668 MB / 0.6982 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004501/3.522, allocations: 338.4 kB / 2.464 GB, free: 1.281 MB / 0.6982 GB Notification: Performance of preOpt comSubExp (simulation): time 3.823e-05/3.522, allocations: 14.58 kB / 2.464 GB, free: 1.258 MB / 0.6982 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.305e-05/3.522, allocations: 12.92 kB / 2.465 GB, free: 1.242 MB / 0.6982 GB Notification: Performance of preOpt evalFunc (simulation): time 7.925e-06/3.522, allocations: 3.938 kB / 2.465 GB, free: 1.238 MB / 0.6982 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.208e-05/3.522, allocations: 30.56 kB / 2.465 GB, free: 1.199 MB / 0.6982 GB Notification: Performance of pre-optimization done (n=1): time 1.412e-06/3.522, allocations: 0 / 2.465 GB, free: 1.199 MB / 0.6982 GB Notification: Performance of matching and sorting (n=1): time 0.0002041/3.522, allocations: 41.59 kB / 2.465 GB, free: 1.152 MB / 0.6982 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.69e-05/3.523, allocations: 51.41 kB / 2.465 GB, free: 1.09 MB / 0.6982 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.132e-05/3.523, allocations: 105 kB / 2.465 GB, free: 0.9805 MB / 0.6982 GB Notification: Performance of collectPreVariables (initialization): time 1.23e-05/3.523, allocations: 25.7 kB / 2.465 GB, free: 0.9492 MB / 0.6982 GB Notification: Performance of collectInitialEqns (initialization): time 2.771e-05/3.523, allocations: 88.05 kB / 2.465 GB, free: 0.8594 MB / 0.6982 GB Notification: Performance of collectInitialBindings (initialization): time 6.572e-06/3.523, allocations: 11.84 kB / 2.465 GB, free: 0.8477 MB / 0.6982 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.026e-06/3.523, allocations: 0 / 2.465 GB, free: 0.8477 MB / 0.6982 GB Notification: Performance of setup shared object (initialization): time 4.73e-05/3.523, allocations: 314.8 kB / 2.465 GB, free: 0.5312 MB / 0.6982 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.228e-05/3.523, allocations: 4 kB / 2.465 GB, free: 0.5273 MB / 0.6982 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.439e-05/3.523, allocations: 30.56 kB / 2.465 GB, free: 500 kB / 0.6982 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.139e-05/3.523, allocations: 7.938 kB / 2.465 GB, free: 492 kB / 0.6982 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.433e-06/3.523, allocations: 0 / 2.465 GB, free: 492 kB / 0.6982 GB Notification: Performance of matching and sorting (n=4) (initialization): time 7.821e-05/3.523, allocations: 53.59 kB / 2.465 GB, free: 432 kB / 0.6982 GB Notification: Performance of prepare postOptimizeDAE: time 9.999e-06/3.523, allocations: 4 kB / 2.465 GB, free: 428 kB / 0.6982 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.633e-06/3.523, allocations: 0 / 2.465 GB, free: 428 kB / 0.6982 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.223e-05/3.523, allocations: 3.938 kB / 2.465 GB, free: 424 kB / 0.6982 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.728e-05/3.523, allocations: 12.09 kB / 2.465 GB, free: 412 kB / 0.6982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.899e-06/3.523, allocations: 3.984 kB / 2.465 GB, free: 408 kB / 0.6982 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.749e-05/3.523, allocations: 0 / 2.465 GB, free: 408 kB / 0.6982 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.409e-06/3.523, allocations: 4 kB / 2.465 GB, free: 404 kB / 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.891e-05/3.523, allocations: 104.9 kB / 2.465 GB, free: 292 kB / 0.6982 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.892e-05/3.523, allocations: 4 kB / 2.465 GB, free: 288 kB / 0.6982 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.031e-05/3.523, allocations: 3.156 kB / 2.465 GB, free: 288 kB / 0.6982 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.483e-06/3.523, allocations: 0 / 2.465 GB, free: 288 kB / 0.6982 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.42e-06/3.523, allocations: 0 / 2.465 GB, free: 288 kB / 0.6982 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.346e-06/3.523, allocations: 0 / 2.465 GB, free: 288 kB / 0.6982 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2648/3.788, allocations: 330.5 kB / 2.466 GB, free: 299.9 MB / 0.6982 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.592e-06/3.788, allocations: 3.938 kB / 2.466 GB, free: 299.9 MB / 0.6982 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.113e-05/3.788, allocations: 7.406 kB / 2.466 GB, free: 299.9 MB / 0.6982 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.313e-06/3.788, allocations: 0 / 2.466 GB, free: 299.9 MB / 0.6982 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.012e-05/3.788, allocations: 0 / 2.466 GB, free: 299.9 MB / 0.6982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.497e-06/3.788, allocations: 0 / 2.466 GB, free: 299.9 MB / 0.6982 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.988e-06/3.788, allocations: 0 / 2.466 GB, free: 299.9 MB / 0.6982 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 9.624e-05/3.788, allocations: 63.36 kB / 2.466 GB, free: 299.8 MB / 0.6982 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0001864/3.788, allocations: 454.2 kB / 2.466 GB, free: 299.4 MB / 0.6982 GB Notification: Performance of postOpt removeConstants (simulation): time 3.397e-05/3.789, allocations: 86.2 kB / 2.466 GB, free: 299.3 MB / 0.6982 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.601e-05/3.789, allocations: 3.094 kB / 2.466 GB, free: 299.3 MB / 0.6982 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001122/3.789, allocations: 11.25 kB / 2.466 GB, free: 299.3 MB / 0.6982 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.42e-05/3.789, allocations: 0 / 2.466 GB, free: 299.3 MB / 0.6982 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.817e-06/3.789, allocations: 0 / 2.466 GB, free: 299.3 MB / 0.6982 GB Notification: Performance of sort global known variables: time 3.785e-05/3.789, allocations: 82.72 kB / 2.466 GB, free: 299.2 MB / 0.6982 GB Notification: Performance of remove unused functions: time 0.001035/3.79, allocations: 79.3 kB / 2.466 GB, free: 299.2 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.0006689/3.79, allocations: 0.646 MB / 2.467 GB, free: 299.1 MB / 0.6982 GB Notification: Performance of simCode: created initialization part: time 8.835e-05/3.791, allocations: 12.09 kB / 2.467 GB, free: 299.1 MB / 0.6982 GB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/3.791, allocations: 0 / 2.467 GB, free: 299.1 MB / 0.6982 GB Notification: Performance of simCode: created simulation system equations: time 5.84e-06/3.791, allocations: 7.281 kB / 2.467 GB, free: 299.1 MB / 0.6982 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000164/3.791, allocations: 3.469 kB / 2.467 GB, free: 299.1 MB / 0.6982 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001673/3.791, allocations: 53.72 kB / 2.467 GB, free: 299 MB / 0.6982 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001448/3.791, allocations: 0.6899 MB / 2.468 GB, free: 298.3 MB / 0.6982 GB Notification: Performance of SimCode: time 3.21e-07/3.791, allocations: 0 / 2.468 GB, free: 298.3 MB / 0.6982 GB (rm -f BuildingSystems_BuildingSystems.Media.Examples.AirTemperatureEnthalpyInversion.pipe ; mkfifo BuildingSystems_BuildingSystems.Media.Examples.AirTemperatureEnthalpyInversion.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Media.Examples.AirTemperatureEnthalpyInversion.pipe >> ../files/BuildingSystems_BuildingSystems.Media.Examples.AirTemperatureEnthalpyInversion.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Media_Examples_AirTemperatureEnthalpyInversion_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Media_Examples_AirTemperatureEnthalpyInversion.fmu > BuildingSystems_BuildingSystems.Media.Examples.AirTemperatureEnthalpyInversion.pipe 2>&1)