Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Fluid.Sensors.Examples.TraceSubstances.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Running command: translateModel(Buildings.Fluid.Sensors.Examples.TraceSubstances,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Fluid.Sensors.Examples.TraceSubstances") translateModel(Buildings.Fluid.Sensors.Examples.TraceSubstances,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Fluid.Sensors.Examples.TraceSubstances") [: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/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.565/1.565, allocations: 289.8 MB / 297.1 MB, free: 6.676 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001095/0.001095, allocations: 181.3 kB / 366.3 MB, free: 1.969 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.517/1.517, allocations: 205.1 MB / 0.6256 GB, free: 5.785 MB / 474.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009651/0.0009651, allocations: 89.58 kB / 0.7395 GB, free: 39.63 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 1.061e-05/1.064e-05, allocations: 4 kB / 0.859 GB, free: 13.34 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.61/0.61, allocations: 116.3 MB / 0.9726 GB, free: 68.9 MB / 0.6511 GB Notification: Performance of FrontEnd - scodeFlatten: time 4.527/5.137, allocations: 2.128 GB / 3.101 GB, free: 335.6 MB / 0.948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002254/5.138, allocations: 92.66 kB / 3.101 GB, free: 335.6 MB / 0.948 GB Notification: Performance of FrontEnd: time 1.696/6.834, allocations: 0.6558 GB / 3.757 GB, free: 23 MB / 0.948 GB Notification: Performance of Transformations before backend: time 7.325e-05/6.834, allocations: 31.98 kB / 3.757 GB, free: 22.96 MB / 0.948 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 226 * Number of variables: 226 Notification: Performance of Generate backend data structure: time 0.002507/6.836, allocations: 1.314 MB / 3.758 GB, free: 21.6 MB / 0.948 GB Notification: Performance of prepare preOptimizeDAE: time 3.862e-05/6.836, allocations: 8.031 kB / 3.758 GB, free: 21.59 MB / 0.948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001314/6.838, allocations: 262.3 kB / 3.758 GB, free: 21.33 MB / 0.948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002148/6.84, allocations: 1.117 MB / 3.759 GB, free: 20.17 MB / 0.948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.729e-05/6.84, allocations: 28 kB / 3.759 GB, free: 20.14 MB / 0.948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001189/6.84, allocations: 60 kB / 3.759 GB, free: 20.09 MB / 0.948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001152/6.841, allocations: 0.7732 MB / 3.76 GB, free: 19.31 MB / 0.948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00124/6.842, allocations: 0.994 MB / 3.761 GB, free: 18.25 MB / 0.948 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.788e-05/6.843, allocations: 3.938 kB / 3.761 GB, free: 18.24 MB / 0.948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.923e-05/6.843, allocations: 4 kB / 3.761 GB, free: 18.24 MB / 0.948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.916e-05/6.843, allocations: 34 kB / 3.761 GB, free: 18.2 MB / 0.948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00442/6.847, allocations: 5.67 MB / 3.767 GB, free: 12.11 MB / 0.948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006657/6.848, allocations: 0.5158 MB / 3.767 GB, free: 11.59 MB / 0.948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003286/6.848, allocations: 306.6 kB / 3.767 GB, free: 11.29 MB / 0.948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004984/6.849, allocations: 319.7 kB / 3.768 GB, free: 10.92 MB / 0.948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.003e-05/6.849, allocations: 39 kB / 3.768 GB, free: 10.87 MB / 0.948 GB Notification: Performance of pre-optimization done (n=49): time 2.655e-06/6.849, allocations: 0 / 3.768 GB, free: 10.87 MB / 0.948 GB Notification: Performance of matching and sorting (n=49): time 0.001228/6.85, allocations: 0.6036 MB / 3.768 GB, free: 10.26 MB / 0.948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.258e-05/6.85, allocations: 55.84 kB / 3.768 GB, free: 10.19 MB / 0.948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005069/6.85, allocations: 0.5231 MB / 3.769 GB, free: 9.664 MB / 0.948 GB Notification: Performance of collectPreVariables (initialization): time 4.124e-05/6.85, allocations: 25.7 kB / 3.769 GB, free: 9.633 MB / 0.948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001667/6.851, allocations: 422.5 kB / 3.769 GB, free: 9.211 MB / 0.948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001154/6.851, allocations: 177.5 kB / 3.769 GB, free: 9.035 MB / 0.948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.557e-05/6.851, allocations: 0 / 3.769 GB, free: 9.035 MB / 0.948 GB Notification: Performance of setup shared object (initialization): time 0.0001064/6.851, allocations: 382.8 kB / 3.77 GB, free: 8.652 MB / 0.948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003034/6.851, allocations: 229.5 kB / 3.77 GB, free: 8.426 MB / 0.948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004173/6.852, allocations: 0.5616 MB / 3.771 GB, free: 7.715 MB / 0.948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004706/6.852, allocations: 370.6 kB / 3.771 GB, free: 7.355 MB / 0.948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.708e-06/6.852, allocations: 4 kB / 3.771 GB, free: 7.352 MB / 0.948 GB Notification: Performance of matching and sorting (n=86) (initialization): time 0.001001/6.853, allocations: 0.7908 MB / 3.772 GB, free: 6.551 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 1.447e-05/6.853, allocations: 4 kB / 3.772 GB, free: 6.547 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.037e-05/6.853, allocations: 8 kB / 3.772 GB, free: 6.539 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.217e-05/6.853, allocations: 19.98 kB / 3.772 GB, free: 6.52 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005021/6.854, allocations: 152.4 kB / 3.772 GB, free: 6.371 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.177e-05/6.854, allocations: 12 kB / 3.772 GB, free: 6.359 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008363/6.855, allocations: 107.2 kB / 3.772 GB, free: 6.254 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.952e-05/6.855, allocations: 39.98 kB / 3.772 GB, free: 6.215 MB / 0.948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 36 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (86): * Single equations (assignments): 86 * 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 0.0001171/6.855, allocations: 126.8 kB / 3.772 GB, free: 6.086 MB / 0.948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.816e-05/6.855, allocations: 75.06 kB / 3.772 GB, free: 6.012 MB / 0.948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009101/6.856, allocations: 0.6119 MB / 3.773 GB, free: 5.391 MB / 0.948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.032e-06/6.856, allocations: 8 kB / 3.773 GB, free: 5.383 MB / 0.948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.869e-06/6.856, allocations: 0 / 3.773 GB, free: 5.383 MB / 0.948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0006154/6.856, allocations: 0.5202 MB / 3.773 GB, free: 4.852 MB / 0.948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001972/6.858, allocations: 1.547 MB / 3.775 GB, free: 3.234 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.136e-06/6.858, allocations: 8.031 kB / 3.775 GB, free: 3.227 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005158/6.859, allocations: 115.8 kB / 3.775 GB, free: 3.113 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.813e-06/6.859, allocations: 7.906 kB / 3.775 GB, free: 3.105 MB / 0.948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.594e-05/6.859, allocations: 8 kB / 3.775 GB, free: 3.098 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.282e-06/6.859, allocations: 7.984 kB / 3.775 GB, free: 3.09 MB / 0.948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.793e-06/6.859, allocations: 7.984 kB / 3.775 GB, free: 3.082 MB / 0.948 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001128/6.86, allocations: 1.124 MB / 3.776 GB, free: 1.875 MB / 0.948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002574/6.86, allocations: 216 kB / 3.776 GB, free: 1.645 MB / 0.948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001083/6.861, allocations: 7.906 kB / 3.776 GB, free: 1.637 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005761/6.861, allocations: 55.94 kB / 3.776 GB, free: 1.582 MB / 0.948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.343e-05/6.861, allocations: 35.64 kB / 3.776 GB, free: 1.547 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.347e-05/6.861, allocations: 20 kB / 3.776 GB, free: 1.527 MB / 0.948 GB Notification: Performance of sort global known variables: time 0.0003663/6.862, allocations: 403.1 kB / 3.777 GB, free: 1.137 MB / 0.948 GB Notification: Performance of remove unused functions: time 0.00123/6.863, allocations: 431.1 kB / 3.777 GB, free: 0.7148 MB / 0.948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 4 (vol.dynBal.U,vol.dynBal.m,vol.dynBal.mXi[1],vol.dynBal.mC[1]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (49): * Single equations (assignments): 49 * 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.4446/7.307, allocations: 2.132 MB / 3.779 GB, free: 250.6 MB / 0.948 GB Notification: Performance of simCode: created initialization part: time 0.001202/7.309, allocations: 0.5673 MB / 3.78 GB, free: 250.6 MB / 0.948 GB Notification: Performance of simCode: created event and clocks part: time 6.673e-06/7.309, allocations: 0 / 3.78 GB, free: 250.6 MB / 0.948 GB Notification: Performance of simCode: created simulation system equations: time 0.0003036/7.309, allocations: 262 kB / 3.78 GB, free: 250.6 MB / 0.948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002015/7.311, allocations: 353.5 kB / 3.78 GB, free: 250.6 MB / 0.948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00295/7.314, allocations: 1.499 MB / 3.782 GB, free: 250.3 MB / 0.948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000766/7.315, allocations: 1.217 MB / 3.783 GB, free: 249.6 MB / 0.948 GB Notification: Performance of SimCode: time 8.12e-07/7.315, allocations: 0 / 3.783 GB, free: 249.6 MB / 0.948 GB Notification: Performance of Templates: time 0.03635/7.351, allocations: 23.95 MB / 3.806 GB, free: 249.2 MB / 0.948 GB make -j1 -f Buildings_8_Buildings.Fluid.Sensors.Examples.TraceSubstances.makefile (rm -f Buildings_8_Buildings.Fluid.Sensors.Examples.TraceSubstances.pipe ; mkfifo Buildings_8_Buildings.Fluid.Sensors.Examples.TraceSubstances.pipe ; head -c 1048576 < Buildings_8_Buildings.Fluid.Sensors.Examples.TraceSubstances.pipe >> ../files/Buildings_8_Buildings.Fluid.Sensors.Examples.TraceSubstances.sim & ./Buildings_8_Buildings.Fluid.Sensors.Examples.TraceSubstances -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Fluid.Sensors.Examples.TraceSubstances.pipe 2>&1)