Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IBPSA_latest_IBPSA.Fluid.Sensors.Examples.TraceSubstances.conf.json 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/IBPSA 4.0.0-master/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) 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 IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/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) Running command: "" <> buildModelFMU(IBPSA.Fluid.Sensors.Examples.TraceSubstances,fileNamePrefix="IBPSA_latest_IBPSA_Fluid_Sensors_Examples_TraceSubstances",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IBPSA.Fluid.Sensors.Examples.TraceSubstances,fileNamePrefix="IBPSA_latest_IBPSA_Fluid_Sensors_Examples_TraceSubstances",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/Complex 4.0.0+maint.om/package.mo): time 0.001145/0.001145, allocations: 189.1 kB / 7.803 MB, free: 2.488 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.5128/0.5128, allocations: 90.85 MB / 99.08 MB, free: 14.95 MB / 90.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.275/1.275, allocations: 221.4 MB / 342.8 MB, free: 5.262 MB / 282.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001048/0.001049, allocations: 92.11 kB / 415.5 MB, free: 9.859 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1779/0.1789, allocations: 78.45 MB / 493.9 MB, free: 11.51 MB / 394.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3484/0.5274, allocations: 72.31 MB / 0.553 GB, free: 44.87 MB / 410.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 3.873/4.401, allocations: 1.925 GB / 2.478 GB, free: 119.6 MB / 0.6042 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002482/4.401, allocations: 87.95 kB / 2.478 GB, free: 119.5 MB / 0.6042 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 2.184/6.585, allocations: 0.6675 GB / 3.146 GB, free: 95.43 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 4.493e-05/6.585, allocations: 10.75 kB / 3.146 GB, free: 95.43 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001462/6.586, allocations: 251.8 kB / 3.146 GB, free: 95.37 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00258/6.589, allocations: 1.127 MB / 3.147 GB, free: 95.11 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.922e-05/6.589, allocations: 34.25 kB / 3.147 GB, free: 95.11 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001206/6.589, allocations: 57.06 kB / 3.147 GB, free: 95.11 MB / 0.6042 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001311/6.59, allocations: 0.7749 MB / 3.148 GB, free: 95.11 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001388/6.592, allocations: 0.9993 MB / 3.149 GB, free: 94.88 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.789e-05/6.592, allocations: 5.531 kB / 3.149 GB, free: 94.88 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.277e-05/6.592, allocations: 1.219 kB / 3.149 GB, free: 94.88 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.746e-05/6.592, allocations: 33 kB / 3.149 GB, free: 94.88 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00483/6.597, allocations: 5.847 MB / 3.155 GB, free: 91.01 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006907/6.598, allocations: 0.5135 MB / 3.155 GB, free: 90.98 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003574/6.598, allocations: 298.2 kB / 3.156 GB, free: 90.97 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005305/6.598, allocations: 327.8 kB / 3.156 GB, free: 90.69 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.988e-05/6.598, allocations: 34.5 kB / 3.156 GB, free: 90.65 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=49): time 2.715e-06/6.598, allocations: 1.688 kB / 3.156 GB, free: 90.65 MB / 0.6042 GB Notification: Performance of matching and sorting (n=49): time 0.001367/6.6, allocations: 0.607 MB / 3.157 GB, free: 90.57 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.637e-05/6.6, allocations: 62.56 kB / 3.157 GB, free: 90.5 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005998/6.6, allocations: 0.5225 MB / 3.157 GB, free: 90.39 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 4.73e-05/6.601, allocations: 29.52 kB / 3.157 GB, free: 90.36 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002181/6.601, allocations: 419.8 kB / 3.158 GB, free: 90.12 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001399/6.601, allocations: 172.6 kB / 3.158 GB, free: 90.01 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.828e-05/6.601, allocations: 0 / 3.158 GB, free: 90.01 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 0.0001245/6.601, allocations: 389.8 kB / 3.158 GB, free: 89.7 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003205/6.601, allocations: 224.3 kB / 3.158 GB, free: 89.7 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005205/6.602, allocations: 0.5501 MB / 3.159 GB, free: 89.3 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005275/6.602, allocations: 382.6 kB / 3.159 GB, free: 89.29 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.962e-06/6.602, allocations: 3.875 kB / 3.159 GB, free: 89.29 MB / 0.6042 GB Notification: Performance of matching and sorting (n=86) (initialization): time 0.001115/6.604, allocations: 0.7908 MB / 3.16 GB, free: 89.21 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 1.511e-05/6.604, allocations: 7.312 kB / 3.16 GB, free: 89.21 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.071e-05/6.604, allocations: 7.594 kB / 3.16 GB, free: 89.21 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.387e-05/6.604, allocations: 13.12 kB / 3.16 GB, free: 89.21 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005471/6.604, allocations: 158.3 kB / 3.16 GB, free: 89.21 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.517e-05/6.604, allocations: 20.53 kB / 3.16 GB, free: 89.21 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009075/6.605, allocations: 116 kB / 3.16 GB, free: 89.18 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.476e-05/6.605, allocations: 36.41 kB / 3.16 GB, free: 89.18 MB / 0.6042 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.0001269/6.605, allocations: 138.5 kB / 3.16 GB, free: 89.06 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001105/6.605, allocations: 80.98 kB / 3.161 GB, free: 89.02 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009037/6.606, allocations: 0.6005 MB / 3.161 GB, free: 88.96 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.811e-06/6.606, allocations: 3.875 kB / 3.161 GB, free: 88.96 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.939e-06/6.606, allocations: 0 / 3.161 GB, free: 88.96 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0006435/6.607, allocations: 0.5247 MB / 3.162 GB, free: 88.89 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002162/6.609, allocations: 1.551 MB / 3.163 GB, free: 88.55 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.067e-06/6.609, allocations: 2.125 kB / 3.163 GB, free: 88.55 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005398/6.61, allocations: 113 kB / 3.163 GB, free: 88.55 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.833e-06/6.61, allocations: 3.938 kB / 3.163 GB, free: 88.55 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.934e-05/6.61, allocations: 10.19 kB / 3.163 GB, free: 88.55 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.108e-06/6.61, allocations: 3.75 kB / 3.163 GB, free: 88.55 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.366e-06/6.61, allocations: 3.625 kB / 3.163 GB, free: 88.55 MB / 0.6042 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001176/6.611, allocations: 1.089 MB / 3.164 GB, free: 88.2 MB / 0.6042 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.002068/6.613, allocations: 1.893 MB / 3.166 GB, free: 87.46 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003778/6.614, allocations: 220.1 kB / 3.166 GB, free: 87.32 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001148/6.614, allocations: 3.344 kB / 3.166 GB, free: 87.32 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006079/6.614, allocations: 62.02 kB / 3.167 GB, free: 87.32 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.439e-05/6.614, allocations: 31.25 kB / 3.167 GB, free: 87.32 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.703e-05/6.614, allocations: 19.92 kB / 3.167 GB, free: 87.32 MB / 0.6042 GB Notification: Performance of sort global known variables: time 0.0004835/6.615, allocations: 406.5 kB / 3.167 GB, free: 87.23 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.002165/6.617, allocations: 0.6548 MB / 3.168 GB, free: 87.18 MB / 0.6042 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 4 (vol.dynBal.medium.Xi[1],vol.dynBal.U,vol.dynBal.m,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.003026/6.62, allocations: 2.14 MB / 3.17 GB, free: 86.58 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.0009276/6.621, allocations: 0.5676 MB / 3.17 GB, free: 86.58 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 3.497e-06/6.621, allocations: 0 / 3.17 GB, free: 86.58 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.0002904/6.621, allocations: 264.7 kB / 3.17 GB, free: 86.57 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00163/6.623, allocations: 347.3 kB / 3.171 GB, free: 86.56 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002597/6.626, allocations: 1.495 MB / 3.172 GB, free: 86.18 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007586/6.626, allocations: 1.237 MB / 3.173 GB, free: 85.47 MB / 0.6042 GB Notification: Performance of SimCode: time 7.11e-07/6.626, allocations: 0 / 3.173 GB, free: 85.47 MB / 0.6042 GB (rm -f IBPSA_latest_IBPSA.Fluid.Sensors.Examples.TraceSubstances.pipe ; mkfifo IBPSA_latest_IBPSA.Fluid.Sensors.Examples.TraceSubstances.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Fluid.Sensors.Examples.TraceSubstances.pipe >> ../files/IBPSA_latest_IBPSA.Fluid.Sensors.Examples.TraceSubstances.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_IBPSA_latest_IBPSA_Fluid_Sensors_Examples_TraceSubstances_fmu --startTime=0 --stopTime=7200 --timeout=50 --tolerance=1e-06 IBPSA_latest_IBPSA_Fluid_Sensors_Examples_TraceSubstances.fmu > IBPSA_latest_IBPSA.Fluid.Sensors.Examples.TraceSubstances.pipe 2>&1)