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: "" <> buildModelFMU(BuildingSystems.Media.Specialized.Water.Examples.TemperatureDependentDensityTemperatureEnthalpyInversion,fileNamePrefix="BuildingSystems_BuildingSystems_Media_Specialized_Water_Examples_TemperatureDependentDensityTemperatureEnthalpyInversion",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Media.Specialized.Water.Examples.TemperatureDependentDensityTemperatureEnthalpyInversion,fileNamePrefix="BuildingSystems_BuildingSystems_Media_Specialized_Water_Examples_TemperatureDependentDensityTemperatureEnthalpyInversion",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.7062/0.7062, allocations: 141.8 MB / 149.1 MB, free: 1.168 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.001106/0.001106, allocations: 187.6 kB / 181.9 MB, free: 484 kB / 154.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.226/1.226, allocations: 221.4 MB / 436 MB, free: 5.16 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.0008951/0.0008951, allocations: 96.59 kB / 0.507 GB, free: 1.812 MB / 410.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001673/0.001673, allocations: 279.9 kB / 0.5884 GB, free: 46.96 MB / 410.9 MB Notification: Performance of FrontEnd - loaded program: time 0.3059/0.3076, allocations: 89.63 MB / 0.676 GB, free: 59.44 MB / 442.9 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1237/0.4313, allocations: 82.77 MB / 0.7568 GB, free: 352 kB / 442.9 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5273/0.9586, allocations: 312.9 MB / 1.062 GB, free: 11.09 MB / 0.6513 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002791/0.9589, allocations: 90.08 kB / 1.062 GB, free: 11.04 MB / 0.6513 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.02286/0.9818, allocations: 9.163 MB / 1.071 GB, free: 3.684 MB / 0.6513 GB Notification: Performance of prepare preOptimizeDAE: time 4.053e-05/0.9818, allocations: 12 kB / 1.071 GB, free: 3.672 MB / 0.6513 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.085e-05/0.9819, allocations: 3.984 kB / 1.071 GB, free: 3.668 MB / 0.6513 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001231/0.982, allocations: 163 kB / 1.072 GB, free: 3.469 MB / 0.6513 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.982e-05/0.9821, allocations: 29.7 kB / 1.072 GB, free: 3.434 MB / 0.6513 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.718e-06/0.9821, allocations: 0 / 1.072 GB, free: 3.434 MB / 0.6513 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 7.97e-05/0.9822, allocations: 15.86 kB / 1.072 GB, free: 3.422 MB / 0.6513 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.894e-05/0.9823, allocations: 41.69 kB / 1.072 GB, free: 3.375 MB / 0.6513 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.803e-06/0.9823, allocations: 3.938 kB / 1.072 GB, free: 3.371 MB / 0.6513 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.103e-05/0.9823, allocations: 0 / 1.072 GB, free: 3.371 MB / 0.6513 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.67e-05/0.9823, allocations: 0 / 1.072 GB, free: 3.371 MB / 0.6513 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006357/0.983, allocations: 0.5825 MB / 1.072 GB, free: 2.691 MB / 0.6513 GB Notification: Performance of preOpt comSubExp (simulation): time 3.633e-05/0.983, allocations: 14.58 kB / 1.072 GB, free: 2.668 MB / 0.6513 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.682e-05/0.983, allocations: 12.61 kB / 1.072 GB, free: 2.656 MB / 0.6513 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003112/0.9834, allocations: 360.1 kB / 1.073 GB, free: 2.234 MB / 0.6513 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.295e-05/0.9834, allocations: 34.38 kB / 1.073 GB, free: 2.195 MB / 0.6513 GB Notification: Performance of pre-optimization done (n=1): time 4.168e-06/0.9834, allocations: 0 / 1.073 GB, free: 2.195 MB / 0.6513 GB Notification: Performance of matching and sorting (n=1): time 0.0002304/0.9836, allocations: 53.47 kB / 1.073 GB, free: 2.137 MB / 0.6513 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.09e-05/0.9837, allocations: 51.41 kB / 1.073 GB, free: 2.074 MB / 0.6513 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.989e-05/0.9838, allocations: 92.56 kB / 1.073 GB, free: 1.98 MB / 0.6513 GB Notification: Performance of collectPreVariables (initialization): time 1.478e-05/0.9838, allocations: 29.73 kB / 1.073 GB, free: 1.945 MB / 0.6513 GB Notification: Performance of collectInitialEqns (initialization): time 4.937e-05/0.9838, allocations: 95.97 kB / 1.073 GB, free: 1.848 MB / 0.6513 GB Notification: Performance of collectInitialBindings (initialization): time 3.877e-06/0.9838, allocations: 0 / 1.073 GB, free: 1.848 MB / 0.6513 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.855e-06/0.9839, allocations: 0 / 1.073 GB, free: 1.848 MB / 0.6513 GB Notification: Performance of setup shared object (initialization): time 0.0001155/0.984, allocations: 314.6 kB / 1.073 GB, free: 1.535 MB / 0.6513 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.405e-05/0.984, allocations: 4 kB / 1.073 GB, free: 1.531 MB / 0.6513 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.925e-05/0.984, allocations: 13.66 kB / 1.073 GB, free: 1.512 MB / 0.6513 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001675/0.9842, allocations: 31.91 kB / 1.073 GB, free: 1.484 MB / 0.6513 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.108e-06/0.9842, allocations: 3.906 kB / 1.073 GB, free: 1.48 MB / 0.6513 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002071/0.9844, allocations: 57.61 kB / 1.073 GB, free: 1.418 MB / 0.6513 GB Notification: Performance of prepare postOptimizeDAE: time 1.726e-05/0.9845, allocations: 8 kB / 1.073 GB, free: 1.41 MB / 0.6513 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.091e-06/0.9845, allocations: 0 / 1.073 GB, free: 1.41 MB / 0.6513 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.179e-05/0.9845, allocations: 0 / 1.073 GB, free: 1.41 MB / 0.6513 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.223e-05/0.9845, allocations: 4 kB / 1.073 GB, free: 1.406 MB / 0.6513 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.781e-06/0.9845, allocations: 3.984 kB / 1.073 GB, free: 1.402 MB / 0.6513 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.213e-05/0.9846, allocations: 8.062 kB / 1.073 GB, free: 1.395 MB / 0.6513 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.428e-06/0.9846, allocations: 0 / 1.073 GB, free: 1.395 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 7.418e-05/0.9847, allocations: 104.9 kB / 1.073 GB, free: 1.285 MB / 0.6513 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.085e-05/0.9847, allocations: 4 kB / 1.073 GB, free: 1.281 MB / 0.6513 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000132/0.9848, allocations: 123.4 kB / 1.074 GB, free: 1.156 MB / 0.6513 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.394e-05/0.9849, allocations: 180.2 kB / 1.074 GB, free: 0.9727 MB / 0.6513 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.497e-05/0.985, allocations: 184.2 kB / 1.074 GB, free: 0.7852 MB / 0.6513 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.231e-05/0.9851, allocations: 180.2 kB / 1.074 GB, free: 0.6016 MB / 0.6513 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001867/0.9852, allocations: 385.5 kB / 1.074 GB, free: 188 kB / 0.6513 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.691e-05/0.9853, allocations: 105 kB / 1.075 GB, free: 76 kB / 0.6513 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.586e-05/0.9853, allocations: 105 kB / 1.075 GB, free: 15.96 MB / 0.6669 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.183e-05/0.9854, allocations: 184.3 kB / 1.075 GB, free: 15.77 MB / 0.6669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.771e-05/0.9855, allocations: 180.2 kB / 1.075 GB, free: 15.59 MB / 0.6669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.073e-05/0.9855, allocations: 183.8 kB / 1.075 GB, free: 15.41 MB / 0.6669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.000116/0.9857, allocations: 184.2 kB / 1.075 GB, free: 15.22 MB / 0.6669 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001469/0.9858, allocations: 304 kB / 1.076 GB, free: 14.9 MB / 0.6669 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0002632/0.9861, allocations: 0.6806 MB / 1.076 GB, free: 14.2 MB / 0.6669 GB Notification: Performance of postOpt removeConstants (simulation): time 8.462e-05/0.9862, allocations: 186 kB / 1.076 GB, free: 13.99 MB / 0.6669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.833e-05/0.9863, allocations: 180.1 kB / 1.077 GB, free: 13.81 MB / 0.6669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001546/0.9864, allocations: 113 kB / 1.077 GB, free: 13.7 MB / 0.6669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.03e-05/0.9865, allocations: 188.2 kB / 1.077 GB, free: 13.5 MB / 0.6669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.555e-05/0.9865, allocations: 104.2 kB / 1.077 GB, free: 13.4 MB / 0.6669 GB Notification: Performance of sort global known variables: time 4.412e-05/0.9866, allocations: 79.28 kB / 1.077 GB, free: 13.32 MB / 0.6669 GB Notification: Performance of remove unused functions: time 0.0009229/0.9875, allocations: 43.72 kB / 1.077 GB, free: 13.28 MB / 0.6669 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.0002996/0.9878, allocations: 230.2 kB / 1.077 GB, free: 13.04 MB / 0.6669 GB Notification: Performance of simCode: created initialization part: time 6.313e-05/0.9879, allocations: 11.92 kB / 1.077 GB, free: 13.03 MB / 0.6669 GB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.9879, allocations: 4 kB / 1.077 GB, free: 13.03 MB / 0.6669 GB Notification: Performance of simCode: created simulation system equations: time 1.302e-06/0.9879, allocations: 4.125 kB / 1.077 GB, free: 13.02 MB / 0.6669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003642/0.9883, allocations: 0.5193 MB / 1.078 GB, free: 12.5 MB / 0.6669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002136/0.9885, allocations: 128.2 kB / 1.078 GB, free: 12.36 MB / 0.6669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002933/0.9888, allocations: 0.6918 MB / 1.079 GB, free: 11.64 MB / 0.6669 GB Notification: Performance of SimCode: time 1.713e-06/0.9888, allocations: 4 kB / 1.079 GB, free: 11.63 MB / 0.6669 GB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Media_Specialized_Water_Examples_TemperatureDependentDensityTemperatureEnthalpyInversion_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Media_Specialized_Water_Examples_TemperatureDependentDensityTemperatureEnthalpyInversion.fmu > BuildingSystems_BuildingSystems.Media.Specialized.Water.Examples.TemperatureDependentDensityTemperatureEnthalpyInversion.pipe 2>&1)