Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Media.Specialized.Water.Examples.TemperatureDependentDensityDerivativeCheck.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.TemperatureDependentDensityDerivativeCheck,fileNamePrefix="BuildingSystems_BuildingSystems_Media_Specialized_Water_Examples_TemperatureDependentDensityDerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Media.Specialized.Water.Examples.TemperatureDependentDensityDerivativeCheck,fileNamePrefix="BuildingSystems_BuildingSystems_Media_Specialized_Water_Examples_TemperatureDependentDensityDerivativeCheck",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.6826/0.6826, allocations: 141.8 MB / 149.1 MB, free: 4.035 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.001075/0.001075, allocations: 187.9 kB / 181.9 MB, free: 15.78 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.223/1.223, allocations: 221.4 MB / 436 MB, free: 8.98 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.001038/0.001038, allocations: 91.38 kB / 0.507 GB, free: 24.04 MB / 394.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001714/0.001714, allocations: 276.3 kB / 0.5884 GB, free: 11.93 MB / 442.9 MB Notification: Performance of FrontEnd - loaded program: time 0.1681/0.1699, allocations: 89.65 MB / 0.676 GB, free: 2.188 MB / 0.5107 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3404/0.5103, allocations: 82.77 MB / 0.7568 GB, free: 112.4 MB / 0.5263 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.5086/1.019, allocations: 321.2 MB / 1.071 GB, free: 11.24 MB / 0.6044 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002459/1.019, allocations: 80.12 kB / 1.071 GB, free: 11.2 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.01927/1.039, allocations: 8.28 MB / 1.079 GB, free: 4.582 MB / 0.6044 GB Notification: Performance of prepare preOptimizeDAE: time 3.61e-05/1.039, allocations: 8 kB / 1.079 GB, free: 4.574 MB / 0.6044 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000201/1.039, allocations: 11.91 kB / 1.079 GB, free: 4.562 MB / 0.6044 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.745e-05/1.039, allocations: 171 kB / 1.079 GB, free: 4.355 MB / 0.6044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.1e-05/1.039, allocations: 0 / 1.079 GB, free: 4.355 MB / 0.6044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.107e-05/1.039, allocations: 7.5 kB / 1.079 GB, free: 4.352 MB / 0.6044 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 5.208e-05/1.039, allocations: 4 kB / 1.079 GB, free: 4.348 MB / 0.6044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.259e-05/1.039, allocations: 63.89 kB / 1.079 GB, free: 4.273 MB / 0.6044 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.594e-06/1.039, allocations: 2.625 kB / 1.079 GB, free: 4.273 MB / 0.6044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.25e-05/1.039, allocations: 3.906 kB / 1.079 GB, free: 4.27 MB / 0.6044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.77e-06/1.039, allocations: 4 kB / 1.079 GB, free: 4.266 MB / 0.6044 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004465/1.04, allocations: 442.2 kB / 1.079 GB, free: 3.793 MB / 0.6044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001073/1.04, allocations: 62.23 kB / 1.079 GB, free: 3.711 MB / 0.6044 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.722e-05/1.04, allocations: 18.7 kB / 1.079 GB, free: 3.684 MB / 0.6044 GB Notification: Performance of preOpt evalFunc (simulation): time 8.076e-06/1.04, allocations: 0 / 1.079 GB, free: 3.684 MB / 0.6044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.901e-05/1.04, allocations: 42.16 kB / 1.079 GB, free: 3.637 MB / 0.6044 GB Notification: Performance of pre-optimization done (n=5): time 9.82e-07/1.04, allocations: 0 / 1.079 GB, free: 3.637 MB / 0.6044 GB Notification: Performance of matching and sorting (n=7): time 0.0005212/1.04, allocations: 277 kB / 1.08 GB, free: 3.324 MB / 0.6044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.037e-05/1.04, allocations: 110.8 kB / 1.08 GB, free: 3.191 MB / 0.6044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.808e-05/1.04, allocations: 100.5 kB / 1.08 GB, free: 3.09 MB / 0.6044 GB Notification: Performance of collectPreVariables (initialization): time 1.285e-05/1.04, allocations: 25.7 kB / 1.08 GB, free: 3.059 MB / 0.6044 GB Notification: Performance of collectInitialEqns (initialization): time 3.419e-05/1.041, allocations: 84.05 kB / 1.08 GB, free: 2.973 MB / 0.6044 GB Notification: Performance of collectInitialBindings (initialization): time 1.654e-05/1.041, allocations: 23.09 kB / 1.08 GB, free: 2.953 MB / 0.6044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.917e-06/1.041, allocations: 0 / 1.08 GB, free: 2.953 MB / 0.6044 GB Notification: Performance of setup shared object (initialization): time 8.777e-05/1.041, allocations: 322.4 kB / 1.08 GB, free: 2.633 MB / 0.6044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.366e-05/1.041, allocations: 15.56 kB / 1.08 GB, free: 2.621 MB / 0.6044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.283e-05/1.041, allocations: 49.36 kB / 1.08 GB, free: 2.559 MB / 0.6044 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.241e-05/1.041, allocations: 15.3 kB / 1.08 GB, free: 2.547 MB / 0.6044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.02e-07/1.041, allocations: 0 / 1.08 GB, free: 2.547 MB / 0.6044 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001166/1.041, allocations: 84.89 kB / 1.081 GB, free: 2.465 MB / 0.6044 GB Notification: Performance of prepare postOptimizeDAE: time 1.33e-05/1.041, allocations: 4 kB / 1.081 GB, free: 2.461 MB / 0.6044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.573e-06/1.041, allocations: 8.125 kB / 1.081 GB, free: 2.453 MB / 0.6044 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.232e-05/1.041, allocations: 3.906 kB / 1.081 GB, free: 2.449 MB / 0.6044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.337e-05/1.041, allocations: 27.38 kB / 1.081 GB, free: 2.426 MB / 0.6044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.883e-06/1.041, allocations: 4.047 kB / 1.081 GB, free: 2.422 MB / 0.6044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.031e-05/1.041, allocations: 8 kB / 1.081 GB, free: 2.414 MB / 0.6044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.112e-06/1.041, allocations: 0.5625 kB / 1.081 GB, free: 2.414 MB / 0.6044 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (12): * Single equations (assignments): 12 * 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.715e-05/1.041, allocations: 105 kB / 1.081 GB, free: 2.305 MB / 0.6044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.725e-05/1.041, allocations: 7.906 kB / 1.081 GB, free: 2.297 MB / 0.6044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.061e-05/1.041, allocations: 7.25 kB / 1.081 GB, free: 2.297 MB / 0.6044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.003e-06/1.041, allocations: 4 kB / 1.081 GB, free: 2.293 MB / 0.6044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.727e-06/1.041, allocations: 4 kB / 1.081 GB, free: 2.289 MB / 0.6044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.597e-06/1.041, allocations: 1.125 kB / 1.081 GB, free: 2.289 MB / 0.6044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002897/1.042, allocations: 149.8 kB / 1.081 GB, free: 2.109 MB / 0.6044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.076e-06/1.042, allocations: 3.906 kB / 1.081 GB, free: 2.105 MB / 0.6044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.218e-05/1.042, allocations: 19.92 kB / 1.081 GB, free: 2.086 MB / 0.6044 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.25e-06/1.042, allocations: 4 kB / 1.081 GB, free: 2.082 MB / 0.6044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.875e-06/1.042, allocations: 0 / 1.081 GB, free: 2.082 MB / 0.6044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.392e-06/1.042, allocations: 0 / 1.081 GB, free: 2.082 MB / 0.6044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.058e-06/1.042, allocations: 7.203 kB / 1.081 GB, free: 2.078 MB / 0.6044 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002468/1.042, allocations: 343.1 kB / 1.081 GB, free: 1.727 MB / 0.6044 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0003689/1.042, allocations: 0.7231 MB / 1.082 GB, free: 0.9883 MB / 0.6044 GB Notification: Performance of postOpt removeConstants (simulation): time 6.027e-05/1.042, allocations: 88.53 kB / 1.082 GB, free: 0.8867 MB / 0.6044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.816e-05/1.042, allocations: 0 / 1.082 GB, free: 0.8867 MB / 0.6044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001817/1.043, allocations: 4 kB / 1.082 GB, free: 0.8828 MB / 0.6044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.026e-05/1.043, allocations: 3.906 kB / 1.082 GB, free: 0.8789 MB / 0.6044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.069e-05/1.043, allocations: 8 kB / 1.082 GB, free: 0.8711 MB / 0.6044 GB Notification: Performance of sort global known variables: time 3.243e-05/1.043, allocations: 88.61 kB / 1.082 GB, free: 0.7852 MB / 0.6044 GB Notification: Performance of remove unused functions: time 0.0009297/1.044, allocations: 8 kB / 1.082 GB, free: 0.7773 MB / 0.6044 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 3 (hLiqSym,cpSym,cvSym) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 7 * 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.0001587/1.044, allocations: 110.9 kB / 1.082 GB, free: 0.6641 MB / 0.6044 GB Notification: Performance of simCode: created initialization part: time 0.0001002/1.044, allocations: 39.19 kB / 1.082 GB, free: 0.6328 MB / 0.6044 GB Notification: Performance of simCode: created event and clocks part: time 2.906e-06/1.044, allocations: 256 / 1.082 GB, free: 0.6328 MB / 0.6044 GB Notification: Performance of simCode: created simulation system equations: time 2.068e-05/1.044, allocations: 19.98 kB / 1.082 GB, free: 0.6133 MB / 0.6044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002453/1.044, allocations: 4 kB / 1.082 GB, free: 0.6094 MB / 0.6044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005476/1.045, allocations: 275.5 kB / 1.083 GB, free: 328 kB / 0.6044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003106/1.045, allocations: 0.6997 MB / 1.083 GB, free: 15.59 MB / 0.62 GB Notification: Performance of SimCode: time 2.71e-07/1.045, allocations: 0 / 1.083 GB, free: 15.59 MB / 0.62 GB (rm -f BuildingSystems_BuildingSystems.Media.Specialized.Water.Examples.TemperatureDependentDensityDerivativeCheck.pipe ; mkfifo BuildingSystems_BuildingSystems.Media.Specialized.Water.Examples.TemperatureDependentDensityDerivativeCheck.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Media.Specialized.Water.Examples.TemperatureDependentDensityDerivativeCheck.pipe >> ../files/BuildingSystems_BuildingSystems.Media.Specialized.Water.Examples.TemperatureDependentDensityDerivativeCheck.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Media_Specialized_Water_Examples_TemperatureDependentDensityDerivativeCheck_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-08 BuildingSystems_BuildingSystems_Media_Specialized_Water_Examples_TemperatureDependentDensityDerivativeCheck.fmu > BuildingSystems_BuildingSystems.Media.Specialized.Water.Examples.TemperatureDependentDensityDerivativeCheck.pipe 2>&1)