Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_1.6_Buildings.Fluid.Sensors.Examples.TraceSubstances.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 1.6.0+build.1/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo) Using package Modelica with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo) Using package Complex with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo) Using package Buildings with version 1.6 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 1.6.0+build.1/package.mo) Running command: translateModel(Buildings.Fluid.Sensors.Examples.TraceSubstances,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_Buildings.Fluid.Sensors.Examples.TraceSubstances") translateModel(Buildings.Fluid.Sensors.Examples.TraceSubstances,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_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 1.6.0+build.1/package.mo): time 0.4736/0.4736, allocations: 94.74 MB / 102 MB, free: 10.36 MB / 90.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo): time 0.001158/0.001158, allocations: 171.6 kB / 125.3 MB, free: 11.99 MB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 1.279/1.279, allocations: 170.5 MB / 319 MB, free: 9.504 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.001663/0.001663, allocations: 105.7 kB / 381 MB, free: 18.14 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 1.199e-05/1.202e-05, allocations: 4 kB / 448.6 MB, free: 2.121 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1431/0.1432, allocations: 61.51 MB / 0.4981 GB, free: 4.504 MB / 394.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.269/1.412, allocations: 447.1 MB / 0.9347 GB, free: 182.2 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002697/1.412, allocations: 85.3 kB / 0.9348 GB, free: 182.2 MB / 0.5261 GB Notification: Performance of FrontEnd: time 0.6889/2.101, allocations: 213.4 MB / 1.143 GB, free: 112.6 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 0.000101/2.101, allocations: 27.8 kB / 1.143 GB, free: 112.6 MB / 0.5261 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 170 * Number of variables: 170 Notification: Performance of Generate backend data structure: time 0.002709/2.104, allocations: 1.107 MB / 1.144 GB, free: 111.9 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 4.381e-05/2.104, allocations: 11.56 kB / 1.144 GB, free: 111.9 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008119/2.105, allocations: 118.8 kB / 1.144 GB, free: 111.9 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002114/2.107, allocations: 0.7893 MB / 1.145 GB, free: 111.7 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.426e-05/2.107, allocations: 22.25 kB / 1.145 GB, free: 111.7 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002017/2.107, allocations: 48.47 kB / 1.145 GB, free: 111.7 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001157/2.108, allocations: 0.554 MB / 1.146 GB, free: 111.7 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001283/2.11, allocations: 0.7393 MB / 1.147 GB, free: 111.5 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.706e-05/2.11, allocations: 0 / 1.147 GB, free: 111.5 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.504e-05/2.11, allocations: 3.969 kB / 1.147 GB, free: 111.5 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.736e-05/2.11, allocations: 15.47 kB / 1.147 GB, free: 111.5 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00457/2.114, allocations: 3.797 MB / 1.15 GB, free: 109.2 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004097/2.115, allocations: 297.6 kB / 1.151 GB, free: 109.1 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002555/2.115, allocations: 195.6 kB / 1.151 GB, free: 109.1 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001932/2.117, allocations: 1.278 MB / 1.152 GB, free: 108.3 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.625e-05/2.117, allocations: 43.84 kB / 1.152 GB, free: 108.2 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=37): time 2.174e-06/2.117, allocations: 0 / 1.152 GB, free: 108.2 MB / 0.5261 GB Notification: Performance of matching and sorting (n=42): time 0.003166/2.12, allocations: 1.304 MB / 1.153 GB, free: 107.7 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.556e-05/2.12, allocations: 132.5 kB / 1.153 GB, free: 107.6 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005849/2.121, allocations: 479.4 kB / 1.154 GB, free: 107.4 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 4.75e-05/2.121, allocations: 32.02 kB / 1.154 GB, free: 107.4 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002104/2.121, allocations: 360.7 kB / 1.154 GB, free: 107.2 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001197/2.121, allocations: 144.5 kB / 1.154 GB, free: 107.1 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.221e-05/2.121, allocations: 0 / 1.154 GB, free: 107.1 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0001203/2.121, allocations: 380.4 kB / 1.155 GB, free: 106.8 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003105/2.122, allocations: 197.2 kB / 1.155 GB, free: 106.8 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004062/2.122, allocations: 447 kB / 1.155 GB, free: 106.5 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007097/2.123, allocations: 335.7 kB / 1.156 GB, free: 106.5 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.042e-06/2.123, allocations: 10.77 kB / 1.156 GB, free: 106.5 MB / 0.5261 GB Notification: Performance of matching and sorting (n=84) (initialization): time 0.001352/2.124, allocations: 0.7369 MB / 1.156 GB, free: 106.4 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.881e-05/2.124, allocations: 7.812 kB / 1.156 GB, free: 106.4 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.584e-05/2.124, allocations: 7.812 kB / 1.156 GB, free: 106.4 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.606e-05/2.124, allocations: 11.81 kB / 1.156 GB, free: 106.4 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005578/2.125, allocations: 157.4 kB / 1.157 GB, free: 106.4 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.639e-05/2.125, allocations: 18.09 kB / 1.157 GB, free: 106.4 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006473/2.126, allocations: 59.62 kB / 1.157 GB, free: 106.4 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.666e-05/2.126, allocations: 35.72 kB / 1.157 GB, free: 106.4 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 33 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (84): * Single equations (assignments): 80 * Array equations: 0 * Algorithm blocks: 4 * 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.0001505/2.126, allocations: 129 kB / 1.157 GB, free: 106.3 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001438/2.126, allocations: 73.75 kB / 1.157 GB, free: 106.2 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009165/2.127, allocations: 454.6 kB / 1.157 GB, free: 106.2 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.283e-06/2.127, allocations: 14.83 kB / 1.157 GB, free: 106.2 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.773e-06/2.127, allocations: 3.469 kB / 1.157 GB, free: 106.2 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.426e-06/2.127, allocations: 5.594 kB / 1.157 GB, free: 106.2 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001959/2.129, allocations: 1.074 MB / 1.158 GB, free: 105.9 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.416e-06/2.129, allocations: 3.625 kB / 1.158 GB, free: 105.9 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004599/2.129, allocations: 93.08 kB / 1.158 GB, free: 105.9 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.568e-06/2.129, allocations: 3.875 kB / 1.158 GB, free: 105.9 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.725e-05/2.129, allocations: 7.625 kB / 1.158 GB, free: 105.9 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.657e-06/2.13, allocations: 0 / 1.158 GB, free: 105.9 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.692e-06/2.13, allocations: 7.844 kB / 1.158 GB, free: 105.9 MB / 0.5261 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001101/2.131, allocations: 0.8206 MB / 1.159 GB, free: 105.7 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001655/2.131, allocations: 133.2 kB / 1.159 GB, free: 105.5 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001095/2.131, allocations: 10.09 kB / 1.159 GB, free: 105.5 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004229/2.131, allocations: 31.95 kB / 1.159 GB, free: 105.5 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.642e-05/2.131, allocations: 21.94 kB / 1.159 GB, free: 105.5 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.482e-05/2.131, allocations: 17.62 kB / 1.159 GB, free: 105.5 MB / 0.5261 GB Notification: Performance of sort global known variables: time 0.00038/2.132, allocations: 357.4 kB / 1.16 GB, free: 105.4 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.0009448/2.133, allocations: 242.4 kB / 1.16 GB, free: 105.4 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 4 (vol.dynBal.medium.p,vol.dynBal.medium.T,vol.dynBal.mC[1],senTraSub.C) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (42): * Single equations (assignments): 42 * 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.0008303/2.134, allocations: 314.4 kB / 1.16 GB, free: 105.3 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.0008096/2.134, allocations: 0.5729 MB / 1.161 GB, free: 105.2 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 5.24e-06/2.134, allocations: 5.047 kB / 1.161 GB, free: 105.2 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.0002256/2.135, allocations: 188.4 kB / 1.161 GB, free: 105.2 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001385/2.136, allocations: 275.3 kB / 1.161 GB, free: 105.2 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002344/2.138, allocations: 1.109 MB / 1.162 GB, free: 104.9 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007071/2.139, allocations: 1.079 MB / 1.164 GB, free: 104.2 MB / 0.5261 GB Notification: Performance of SimCode: time 2.2e-07/2.139, allocations: 0 / 1.164 GB, free: 104.2 MB / 0.5261 GB Notification: Performance of Templates: time 0.02264/2.162, allocations: 12.01 MB / 1.175 GB, free: 103.9 MB / 0.5261 GB make -j1 -f Buildings_1.6_Buildings.Fluid.Sensors.Examples.TraceSubstances.makefile (rm -f Buildings_1.6_Buildings.Fluid.Sensors.Examples.TraceSubstances.pipe ; mkfifo Buildings_1.6_Buildings.Fluid.Sensors.Examples.TraceSubstances.pipe ; head -c 1048576 < Buildings_1.6_Buildings.Fluid.Sensors.Examples.TraceSubstances.pipe >> ../files/Buildings_1.6_Buildings.Fluid.Sensors.Examples.TraceSubstances.sim & ./Buildings_1.6_Buildings.Fluid.Sensors.Examples.TraceSubstances -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_1.6_Buildings.Fluid.Sensors.Examples.TraceSubstances.pipe 2>&1)