Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Media.Specialized.Water.Examples.TemperatureDependentDensityTemperatureEnthalpyInversion.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: translateModel(BuildingSystems.Media.Specialized.Water.Examples.TemperatureDependentDensityTemperatureEnthalpyInversion,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Media.Specialized.Water.Examples.TemperatureDependentDensityTemperatureEnthalpyInversion") translateModel(BuildingSystems.Media.Specialized.Water.Examples.TemperatureDependentDensityTemperatureEnthalpyInversion,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Media.Specialized.Water.Examples.TemperatureDependentDensityTemperatureEnthalpyInversion") [: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.7682/0.7682, allocations: 141.8 MB / 149.1 MB, free: 3.797 MB / 122.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001229/0.001229, allocations: 177.5 kB / 181.9 MB, free: 15.54 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.579/1.579, allocations: 221.4 MB / 436 MB, free: 8.648 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.001097/0.001097, allocations: 98.02 kB / 0.507 GB, free: 24.31 MB / 394.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001974/0.001974, allocations: 284.5 kB / 0.5884 GB, free: 11.72 MB / 442.9 MB Notification: Performance of FrontEnd - loaded program: time 7.724e-06/7.754e-06, allocations: 0 / 0.6759 GB, free: 2.098 MB / 0.5107 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5463/0.5463, allocations: 82.78 MB / 0.7567 GB, free: 112.3 MB / 0.5263 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7689/1.315, allocations: 312.9 MB / 1.062 GB, free: 1.262 MB / 0.5888 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002887/1.316, allocations: 91.55 kB / 1.062 GB, free: 1.211 MB / 0.5888 GB Notification: Performance of FrontEnd: time 0.02148/1.337, allocations: 8.823 MB / 1.071 GB, free: 10.24 MB / 0.6044 GB Notification: Performance of Transformations before backend: time 7.585e-06/1.337, allocations: 0 / 1.071 GB, free: 10.24 MB / 0.6044 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.0003978/1.338, allocations: 341.9 kB / 1.071 GB, free: 9.867 MB / 0.6044 GB Notification: Performance of prepare preOptimizeDAE: time 5.053e-05/1.338, allocations: 8.031 kB / 1.071 GB, free: 9.859 MB / 0.6044 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.736e-05/1.338, allocations: 7.984 kB / 1.071 GB, free: 9.852 MB / 0.6044 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001402/1.338, allocations: 163 kB / 1.071 GB, free: 9.652 MB / 0.6044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.324e-05/1.338, allocations: 25.7 kB / 1.071 GB, free: 9.621 MB / 0.6044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.008e-05/1.338, allocations: 4 kB / 1.071 GB, free: 9.617 MB / 0.6044 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 8.668e-05/1.338, allocations: 19.17 kB / 1.072 GB, free: 9.602 MB / 0.6044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.494e-05/1.338, allocations: 41.69 kB / 1.072 GB, free: 9.555 MB / 0.6044 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.915e-06/1.338, allocations: 0 / 1.072 GB, free: 9.555 MB / 0.6044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.47e-05/1.338, allocations: 3.984 kB / 1.072 GB, free: 9.551 MB / 0.6044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.017e-05/1.338, allocations: 0 / 1.072 GB, free: 9.551 MB / 0.6044 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007763/1.339, allocations: 0.5784 MB / 1.072 GB, free: 8.879 MB / 0.6044 GB Notification: Performance of preOpt comSubExp (simulation): time 4.234e-05/1.339, allocations: 18.58 kB / 1.072 GB, free: 8.852 MB / 0.6044 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.821e-05/1.339, allocations: 12.8 kB / 1.072 GB, free: 8.836 MB / 0.6044 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002812/1.339, allocations: 358.6 kB / 1.072 GB, free: 8.418 MB / 0.6044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.248e-05/1.339, allocations: 38.5 kB / 1.073 GB, free: 8.371 MB / 0.6044 GB Notification: Performance of pre-optimization done (n=1): time 1.533e-06/1.339, allocations: 0 / 1.073 GB, free: 8.371 MB / 0.6044 GB Notification: Performance of matching and sorting (n=1): time 0.0003282/1.34, allocations: 44.66 kB / 1.073 GB, free: 8.324 MB / 0.6044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.988e-05/1.34, allocations: 51.41 kB / 1.073 GB, free: 8.262 MB / 0.6044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001139/1.34, allocations: 100.3 kB / 1.073 GB, free: 8.16 MB / 0.6044 GB Notification: Performance of collectPreVariables (initialization): time 2.333e-05/1.34, allocations: 25.7 kB / 1.073 GB, free: 8.129 MB / 0.6044 GB Notification: Performance of collectInitialEqns (initialization): time 7.662e-05/1.34, allocations: 91.97 kB / 1.073 GB, free: 8.035 MB / 0.6044 GB Notification: Performance of collectInitialBindings (initialization): time 5.63e-06/1.34, allocations: 0 / 1.073 GB, free: 8.035 MB / 0.6044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.489e-06/1.34, allocations: 0 / 1.073 GB, free: 8.035 MB / 0.6044 GB Notification: Performance of setup shared object (initialization): time 0.0001558/1.34, allocations: 317.8 kB / 1.073 GB, free: 7.719 MB / 0.6044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.283e-05/1.34, allocations: 0 / 1.073 GB, free: 7.719 MB / 0.6044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.023e-05/1.34, allocations: 13.72 kB / 1.073 GB, free: 7.699 MB / 0.6044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002216/1.341, allocations: 27.28 kB / 1.073 GB, free: 7.676 MB / 0.6044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.109e-06/1.341, allocations: 0 / 1.073 GB, free: 7.676 MB / 0.6044 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002324/1.341, allocations: 68.33 kB / 1.073 GB, free: 7.605 MB / 0.6044 GB Notification: Performance of prepare postOptimizeDAE: time 1.813e-05/1.341, allocations: 4.656 kB / 1.073 GB, free: 7.602 MB / 0.6044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.192e-06/1.341, allocations: 0 / 1.073 GB, free: 7.602 MB / 0.6044 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.674e-05/1.341, allocations: 4 kB / 1.073 GB, free: 7.598 MB / 0.6044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.571e-05/1.341, allocations: 4 kB / 1.073 GB, free: 7.594 MB / 0.6044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.029e-05/1.341, allocations: 7.984 kB / 1.073 GB, free: 7.586 MB / 0.6044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.474e-05/1.341, allocations: 4.062 kB / 1.073 GB, free: 7.582 MB / 0.6044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.353e-05/1.341, allocations: 4 kB / 1.073 GB, free: 7.578 MB / 0.6044 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 9.864e-05/1.341, allocations: 110.3 kB / 1.073 GB, free: 7.465 MB / 0.6044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.73e-05/1.341, allocations: 0 / 1.073 GB, free: 7.465 MB / 0.6044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001815/1.341, allocations: 116.1 kB / 1.073 GB, free: 7.344 MB / 0.6044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.431e-05/1.341, allocations: 180.2 kB / 1.074 GB, free: 7.16 MB / 0.6044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.499e-05/1.342, allocations: 188.2 kB / 1.074 GB, free: 6.969 MB / 0.6044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.043e-05/1.342, allocations: 180.2 kB / 1.074 GB, free: 6.785 MB / 0.6044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002604/1.342, allocations: 385.2 kB / 1.074 GB, free: 6.367 MB / 0.6044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.647e-05/1.342, allocations: 104.9 kB / 1.074 GB, free: 6.258 MB / 0.6044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.998e-05/1.342, allocations: 101 kB / 1.075 GB, free: 6.152 MB / 0.6044 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.317e-05/1.342, allocations: 180.3 kB / 1.075 GB, free: 5.969 MB / 0.6044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.362e-05/1.342, allocations: 188.2 kB / 1.075 GB, free: 5.777 MB / 0.6044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.038e-05/1.342, allocations: 176.4 kB / 1.075 GB, free: 5.598 MB / 0.6044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.918e-05/1.342, allocations: 187.8 kB / 1.075 GB, free: 5.41 MB / 0.6044 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002167/1.343, allocations: 307.7 kB / 1.076 GB, free: 5.086 MB / 0.6044 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001082/1.343, allocations: 185 kB / 1.076 GB, free: 4.883 MB / 0.6044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001127/1.343, allocations: 185.4 kB / 1.076 GB, free: 4.695 MB / 0.6044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001568/1.343, allocations: 110.2 kB / 1.076 GB, free: 4.582 MB / 0.6044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.622e-05/1.343, allocations: 180.2 kB / 1.076 GB, free: 4.398 MB / 0.6044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.333e-05/1.343, allocations: 104.9 kB / 1.076 GB, free: 4.289 MB / 0.6044 GB Notification: Performance of sort global known variables: time 8.425e-05/1.343, allocations: 86.53 kB / 1.076 GB, free: 4.207 MB / 0.6044 GB Notification: Performance of remove unused functions: time 0.0003508/1.344, allocations: 35.92 kB / 1.076 GB, free: 4.172 MB / 0.6044 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.0003295/1.344, allocations: 239.4 kB / 1.077 GB, free: 3.934 MB / 0.6044 GB Notification: Performance of simCode: created initialization part: time 8.213e-05/1.344, allocations: 8 kB / 1.077 GB, free: 3.926 MB / 0.6044 GB Notification: Performance of simCode: created event and clocks part: time 2.796e-06/1.344, allocations: 0 / 1.077 GB, free: 3.926 MB / 0.6044 GB Notification: Performance of simCode: created simulation system equations: time 1.162e-06/1.344, allocations: 0 / 1.077 GB, free: 3.926 MB / 0.6044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004607/1.344, allocations: 0.5296 MB / 1.077 GB, free: 3.395 MB / 0.6044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002597/1.345, allocations: 122.4 kB / 1.077 GB, free: 3.254 MB / 0.6044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003415/1.345, allocations: 0.6875 MB / 1.078 GB, free: 2.543 MB / 0.6044 GB Notification: Performance of SimCode: time 7.72e-07/1.345, allocations: 4 kB / 1.078 GB, free: 2.539 MB / 0.6044 GB Notification: Performance of Templates: time 0.004234/1.349, allocations: 1.101 MB / 1.079 GB, free: 1.52 MB / 0.6044 GB make -j1 -f BuildingSystems_BuildingSystems.Media.Specialized.Water.Examples.TemperatureDependentDensityTemperatureEnthalpyInversion.makefile (rm -f BuildingSystems_BuildingSystems.Media.Specialized.Water.Examples.TemperatureDependentDensityTemperatureEnthalpyInversion.pipe ; mkfifo BuildingSystems_BuildingSystems.Media.Specialized.Water.Examples.TemperatureDependentDensityTemperatureEnthalpyInversion.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Media.Specialized.Water.Examples.TemperatureDependentDensityTemperatureEnthalpyInversion.pipe >> ../files/BuildingSystems_BuildingSystems.Media.Specialized.Water.Examples.TemperatureDependentDensityTemperatureEnthalpyInversion.sim & ./BuildingSystems_BuildingSystems.Media.Specialized.Water.Examples.TemperatureDependentDensityTemperatureEnthalpyInversion -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Media.Specialized.Water.Examples.TemperatureDependentDensityTemperatureEnthalpyInversion.pipe 2>&1)