Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Media.Examples.WaterTemperatureEnthalpyInversion.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.WaterTemperatureEnthalpyInversion,fileNamePrefix="BuildingSystems_BuildingSystems_Media_Examples_WaterTemperatureEnthalpyInversion",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Media.Examples.WaterTemperatureEnthalpyInversion,fileNamePrefix="BuildingSystems_BuildingSystems_Media_Examples_WaterTemperatureEnthalpyInversion",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.7161/0.7161, allocations: 141.8 MB / 149.1 MB, free: 12.97 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.001071/0.001071, allocations: 179.8 kB / 181.9 MB, free: 9.668 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.24/1.24, allocations: 221.3 MB / 436 MB, free: 2.09 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.0009515/0.0009514, allocations: 103.2 kB / 0.507 GB, free: 10.87 MB / 394.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001833/0.001833, allocations: 291.7 kB / 0.5885 GB, free: 7.688 MB / 474.9 MB Notification: Performance of FrontEnd - loaded program: time 0.1734/0.1752, allocations: 89.62 MB / 0.676 GB, free: 13.97 MB / 0.5575 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3422/0.5174, allocations: 82.77 MB / 0.7568 GB, free: 138.8 MB / 0.5575 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.5561/1.074, allocations: 347.7 MB / 1.096 GB, free: 7.293 MB / 0.6357 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002252/1.074, allocations: 75.33 kB / 1.096 GB, free: 7.258 MB / 0.6357 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.02893/1.103, allocations: 13.28 MB / 1.109 GB, free: 12.89 MB / 0.6513 GB Notification: Performance of prepare preOptimizeDAE: time 4.537e-05/1.103, allocations: 13 kB / 1.109 GB, free: 12.88 MB / 0.6513 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.276e-05/1.103, allocations: 0 / 1.109 GB, free: 12.88 MB / 0.6513 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001247/1.103, allocations: 171 kB / 1.11 GB, free: 12.67 MB / 0.6513 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.83e-05/1.103, allocations: 29.7 kB / 1.11 GB, free: 12.63 MB / 0.6513 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.586e-06/1.103, allocations: 0 / 1.11 GB, free: 12.63 MB / 0.6513 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 8.218e-05/1.103, allocations: 17.11 kB / 1.11 GB, free: 12.61 MB / 0.6513 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.92e-05/1.103, allocations: 39.19 kB / 1.11 GB, free: 12.57 MB / 0.6513 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.035e-06/1.103, allocations: 0 / 1.11 GB, free: 12.57 MB / 0.6513 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.241e-05/1.103, allocations: 0 / 1.11 GB, free: 12.57 MB / 0.6513 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.747e-05/1.103, allocations: 0 / 1.11 GB, free: 12.57 MB / 0.6513 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004336/1.104, allocations: 322.3 kB / 1.11 GB, free: 12.21 MB / 0.6513 GB Notification: Performance of preOpt comSubExp (simulation): time 3.254e-05/1.104, allocations: 14.58 kB / 1.11 GB, free: 12.18 MB / 0.6513 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.894e-05/1.104, allocations: 8.922 kB / 1.11 GB, free: 12.17 MB / 0.6513 GB Notification: Performance of preOpt evalFunc (simulation): time 8.68e-05/1.104, allocations: 86.3 kB / 1.11 GB, free: 12.07 MB / 0.6513 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.432e-05/1.104, allocations: 38.5 kB / 1.11 GB, free: 12.02 MB / 0.6513 GB Notification: Performance of pre-optimization done (n=1): time 1.333e-06/1.104, allocations: 3.938 kB / 1.11 GB, free: 12.02 MB / 0.6513 GB Notification: Performance of matching and sorting (n=1): time 0.0001926/1.104, allocations: 45.19 kB / 1.11 GB, free: 11.97 MB / 0.6513 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.39e-05/1.104, allocations: 55.41 kB / 1.11 GB, free: 11.91 MB / 0.6513 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.404e-05/1.104, allocations: 89 kB / 1.11 GB, free: 11.81 MB / 0.6513 GB Notification: Performance of collectPreVariables (initialization): time 1.726e-05/1.104, allocations: 25.7 kB / 1.11 GB, free: 11.78 MB / 0.6513 GB Notification: Performance of collectInitialEqns (initialization): time 4.919e-05/1.104, allocations: 87.61 kB / 1.11 GB, free: 11.7 MB / 0.6513 GB Notification: Performance of collectInitialBindings (initialization): time 8.807e-06/1.105, allocations: 7.984 kB / 1.11 GB, free: 11.69 MB / 0.6513 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.416e-06/1.105, allocations: 0 / 1.11 GB, free: 11.69 MB / 0.6513 GB Notification: Performance of setup shared object (initialization): time 9.705e-05/1.105, allocations: 310.8 kB / 1.111 GB, free: 11.38 MB / 0.6513 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.373e-05/1.105, allocations: 7.312 kB / 1.111 GB, free: 11.37 MB / 0.6513 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.792e-05/1.105, allocations: 13.72 kB / 1.111 GB, free: 11.35 MB / 0.6513 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.898e-05/1.105, allocations: 11.98 kB / 1.111 GB, free: 11.34 MB / 0.6513 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.633e-06/1.105, allocations: 0 / 1.111 GB, free: 11.34 MB / 0.6513 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001179/1.105, allocations: 53.16 kB / 1.111 GB, free: 11.29 MB / 0.6513 GB Notification: Performance of prepare postOptimizeDAE: time 1.401e-05/1.105, allocations: 8 kB / 1.111 GB, free: 11.28 MB / 0.6513 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.312e-06/1.105, allocations: 0 / 1.111 GB, free: 11.28 MB / 0.6513 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.055e-05/1.105, allocations: 0 / 1.111 GB, free: 11.28 MB / 0.6513 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.616e-05/1.105, allocations: 8.062 kB / 1.111 GB, free: 11.27 MB / 0.6513 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.12e-06/1.105, allocations: 2.344 kB / 1.111 GB, free: 11.27 MB / 0.6513 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.178e-05/1.105, allocations: 4 kB / 1.111 GB, free: 11.27 MB / 0.6513 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.546e-06/1.105, allocations: 0 / 1.111 GB, free: 11.27 MB / 0.6513 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (3): * Single equations (assignments): 3 * 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 6.7e-05/1.105, allocations: 108.9 kB / 1.111 GB, free: 11.15 MB / 0.6513 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.83e-05/1.105, allocations: 7.938 kB / 1.111 GB, free: 11.14 MB / 0.6513 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001265/1.105, allocations: 119.7 kB / 1.111 GB, free: 11.02 MB / 0.6513 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001063/1.105, allocations: 184.1 kB / 1.111 GB, free: 10.84 MB / 0.6513 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.025e-05/1.105, allocations: 188.2 kB / 1.111 GB, free: 10.64 MB / 0.6513 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.417e-05/1.106, allocations: 180.2 kB / 1.112 GB, free: 10.46 MB / 0.6513 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001946/1.106, allocations: 381.8 kB / 1.112 GB, free: 10.04 MB / 0.6513 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.575e-05/1.106, allocations: 104.9 kB / 1.112 GB, free: 9.934 MB / 0.6513 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.348e-05/1.106, allocations: 108.5 kB / 1.112 GB, free: 9.824 MB / 0.6513 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.499e-05/1.106, allocations: 180.3 kB / 1.112 GB, free: 9.641 MB / 0.6513 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.736e-05/1.106, allocations: 180.2 kB / 1.112 GB, free: 9.457 MB / 0.6513 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.693e-05/1.106, allocations: 180.2 kB / 1.113 GB, free: 9.273 MB / 0.6513 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.732e-05/1.106, allocations: 176.3 kB / 1.113 GB, free: 9.094 MB / 0.6513 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001279/1.106, allocations: 315 kB / 1.113 GB, free: 8.766 MB / 0.6513 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0002351/1.106, allocations: 0.6806 MB / 1.114 GB, free: 8.062 MB / 0.6513 GB Notification: Performance of postOpt removeConstants (simulation): time 7.273e-05/1.107, allocations: 178.1 kB / 1.114 GB, free: 7.863 MB / 0.6513 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.979e-05/1.107, allocations: 188 kB / 1.114 GB, free: 7.676 MB / 0.6513 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001463/1.107, allocations: 108.9 kB / 1.114 GB, free: 7.562 MB / 0.6513 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.208e-05/1.107, allocations: 180.3 kB / 1.114 GB, free: 7.379 MB / 0.6513 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.208e-05/1.107, allocations: 101 kB / 1.115 GB, free: 7.273 MB / 0.6513 GB Notification: Performance of sort global known variables: time 4.284e-05/1.107, allocations: 83.27 kB / 1.115 GB, free: 7.191 MB / 0.6513 GB Notification: Performance of remove unused functions: time 0.0008893/1.108, allocations: 27.28 kB / 1.115 GB, free: 7.168 MB / 0.6513 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 (0): * Single equations (assignments): 0 * 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.0002883/1.108, allocations: 211 kB / 1.115 GB, free: 6.949 MB / 0.6513 GB Notification: Performance of simCode: created initialization part: time 7.117e-05/1.108, allocations: 19.36 kB / 1.115 GB, free: 6.934 MB / 0.6513 GB Notification: Performance of simCode: created event and clocks part: time 2.334e-06/1.108, allocations: 4.125 kB / 1.115 GB, free: 6.93 MB / 0.6513 GB Notification: Performance of simCode: created simulation system equations: time 2.054e-06/1.108, allocations: 0 / 1.115 GB, free: 6.93 MB / 0.6513 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003323/1.109, allocations: 0.5185 MB / 1.115 GB, free: 6.406 MB / 0.6513 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002081/1.109, allocations: 126.8 kB / 1.115 GB, free: 6.262 MB / 0.6513 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002686/1.109, allocations: 0.6958 MB / 1.116 GB, free: 5.539 MB / 0.6513 GB Notification: Performance of SimCode: time 2.4e-07/1.109, allocations: 0 / 1.116 GB, free: 5.539 MB / 0.6513 GB (rm -f BuildingSystems_BuildingSystems.Media.Examples.WaterTemperatureEnthalpyInversion.pipe ; mkfifo BuildingSystems_BuildingSystems.Media.Examples.WaterTemperatureEnthalpyInversion.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Media.Examples.WaterTemperatureEnthalpyInversion.pipe >> ../files/BuildingSystems_BuildingSystems.Media.Examples.WaterTemperatureEnthalpyInversion.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Media_Examples_WaterTemperatureEnthalpyInversion_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Media_Examples_WaterTemperatureEnthalpyInversion.fmu > BuildingSystems_BuildingSystems.Media.Examples.WaterTemperatureEnthalpyInversion.pipe 2>&1)