Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.Sensors.Examples.TraceSubstances.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: translateModel(BuildingSystems.Fluid.Sensors.Examples.TraceSubstances,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Sensors.Examples.TraceSubstances") translateModel(BuildingSystems.Fluid.Sensors.Examples.TraceSubstances,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.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/BuildingSystems 2.0.0-master/package.mo): time 0.7758/0.7758, allocations: 141.8 MB / 149.1 MB, free: 9.227 MB / 138.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001087/0.001087, allocations: 179.8 kB / 181.9 MB, free: 6.324 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.463/1.463, allocations: 221.3 MB / 436 MB, free: 14.36 MB / 347 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001091/0.001091, allocations: 87.92 kB / 0.507 GB, free: 7.598 MB / 395 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001885/0.001885, allocations: 286.1 kB / 0.5884 GB, free: 4.395 MB / 475 MB Notification: Performance of FrontEnd - loaded program: time 8.616e-06/8.636e-06, allocations: 3.656 kB / 0.6759 GB, free: 166 MB / 0.542 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1911/0.1911, allocations: 82.78 MB / 0.7567 GB, free: 112.8 MB / 0.542 GB Notification: Performance of FrontEnd - scodeFlatten: time 4.192/4.383, allocations: 1.932 GB / 2.689 GB, free: 39.91 MB / 0.6983 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002773/4.384, allocations: 87.95 kB / 2.689 GB, free: 39.83 MB / 0.6983 GB Notification: Performance of FrontEnd: time 2.558/6.942, allocations: 0.6645 GB / 3.353 GB, free: 119.3 MB / 0.6983 GB Notification: Performance of Transformations before backend: time 0.0001467/6.942, allocations: 33.19 kB / 3.353 GB, free: 119.3 MB / 0.6983 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.004724/6.947, allocations: 1.322 MB / 3.355 GB, free: 118.7 MB / 0.6983 GB Notification: Performance of prepare preOptimizeDAE: time 5.945e-05/6.947, allocations: 12.31 kB / 3.355 GB, free: 118.7 MB / 0.6983 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002135/6.949, allocations: 260.3 kB / 3.355 GB, free: 118.6 MB / 0.6983 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004669/6.954, allocations: 1.121 MB / 3.356 GB, free: 118.3 MB / 0.6983 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.94e-05/6.954, allocations: 27.41 kB / 3.356 GB, free: 118.3 MB / 0.6983 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004698/6.954, allocations: 60.31 kB / 3.356 GB, free: 118.3 MB / 0.6983 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002546/6.957, allocations: 0.7788 MB / 3.357 GB, free: 118.3 MB / 0.6983 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002124/6.959, allocations: 0.9903 MB / 3.358 GB, free: 118.1 MB / 0.6983 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.927e-05/6.959, allocations: 5 kB / 3.358 GB, free: 118.1 MB / 0.6983 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.933e-05/6.959, allocations: 6.453 kB / 3.358 GB, free: 118.1 MB / 0.6983 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.939e-05/6.959, allocations: 38.73 kB / 3.358 GB, free: 118.1 MB / 0.6983 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006893/6.966, allocations: 5.664 MB / 3.363 GB, free: 114.4 MB / 0.6983 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008789/6.967, allocations: 0.5277 MB / 3.364 GB, free: 114.3 MB / 0.6983 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003848/6.967, allocations: 292.1 kB / 3.364 GB, free: 114.3 MB / 0.6983 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000617/6.968, allocations: 319.6 kB / 3.365 GB, free: 114 MB / 0.6983 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.084e-05/6.968, allocations: 44.91 kB / 3.365 GB, free: 114 MB / 0.6983 GB Notification: Performance of pre-optimization done (n=49): time 3.396e-06/6.968, allocations: 0 / 3.365 GB, free: 114 MB / 0.6983 GB Notification: Performance of matching and sorting (n=49): time 0.001685/6.97, allocations: 0.6008 MB / 3.365 GB, free: 113.9 MB / 0.6983 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.142e-05/6.97, allocations: 65.53 kB / 3.365 GB, free: 113.9 MB / 0.6983 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007856/6.971, allocations: 0.5199 MB / 3.366 GB, free: 113.7 MB / 0.6983 GB Notification: Performance of collectPreVariables (initialization): time 8.177e-05/6.971, allocations: 25.7 kB / 3.366 GB, free: 113.7 MB / 0.6983 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002619/6.971, allocations: 420.2 kB / 3.366 GB, free: 113.4 MB / 0.6983 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001803/6.971, allocations: 173.1 kB / 3.366 GB, free: 113.3 MB / 0.6983 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.822e-05/6.971, allocations: 0 / 3.366 GB, free: 113.3 MB / 0.6983 GB Notification: Performance of setup shared object (initialization): time 0.0001385/6.971, allocations: 388.4 kB / 3.367 GB, free: 113 MB / 0.6983 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003406/6.972, allocations: 232.5 kB / 3.367 GB, free: 113 MB / 0.6983 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005169/6.972, allocations: 0.5521 MB / 3.367 GB, free: 112.6 MB / 0.6983 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006185/6.973, allocations: 379.8 kB / 3.368 GB, free: 112.6 MB / 0.6983 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.131e-06/6.973, allocations: 3.938 kB / 3.368 GB, free: 112.6 MB / 0.6983 GB Notification: Performance of matching and sorting (n=86) (initialization): time 0.001311/6.974, allocations: 0.7899 MB / 3.369 GB, free: 112.5 MB / 0.6983 GB Notification: Performance of prepare postOptimizeDAE: time 1.721e-05/6.974, allocations: 7.469 kB / 3.369 GB, free: 112.5 MB / 0.6983 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.268e-05/6.974, allocations: 7.5 kB / 3.369 GB, free: 112.5 MB / 0.6983 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.81e-05/6.974, allocations: 11.28 kB / 3.369 GB, free: 112.5 MB / 0.6983 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005586/6.975, allocations: 153.8 kB / 3.369 GB, free: 112.5 MB / 0.6983 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.061e-05/6.975, allocations: 18.81 kB / 3.369 GB, free: 112.5 MB / 0.6983 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001078/6.976, allocations: 113.3 kB / 3.369 GB, free: 112.5 MB / 0.6983 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.592e-05/6.976, allocations: 35.5 kB / 3.369 GB, free: 112.5 MB / 0.6983 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.0001558/6.976, allocations: 124.1 kB / 3.369 GB, free: 112.4 MB / 0.6983 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001741/6.976, allocations: 77.5 kB / 3.369 GB, free: 112.3 MB / 0.6983 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001079/6.977, allocations: 0.6031 MB / 3.37 GB, free: 112.3 MB / 0.6983 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.708e-06/6.977, allocations: 6.219 kB / 3.37 GB, free: 112.3 MB / 0.6983 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.744e-06/6.977, allocations: 3.375 kB / 3.37 GB, free: 112.3 MB / 0.6983 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0007068/6.978, allocations: 0.5209 MB / 3.37 GB, free: 112.2 MB / 0.6983 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00265/6.981, allocations: 1.554 MB / 3.372 GB, free: 111.9 MB / 0.6983 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.348e-06/6.981, allocations: 0 / 3.372 GB, free: 111.9 MB / 0.6983 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000562/6.981, allocations: 111.8 kB / 3.372 GB, free: 111.9 MB / 0.6983 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.104e-05/6.981, allocations: 3.969 kB / 3.372 GB, free: 111.9 MB / 0.6983 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.27e-05/6.981, allocations: 9.562 kB / 3.372 GB, free: 111.9 MB / 0.6983 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.36e-06/6.982, allocations: 6.828 kB / 3.372 GB, free: 111.9 MB / 0.6983 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.348e-06/6.982, allocations: 6.812 kB / 3.372 GB, free: 111.9 MB / 0.6983 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001351/6.983, allocations: 1.122 MB / 3.373 GB, free: 111.5 MB / 0.6983 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004412/6.983, allocations: 219.6 kB / 3.373 GB, free: 111.4 MB / 0.6983 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001478/6.983, allocations: 3.469 kB / 3.373 GB, free: 111.4 MB / 0.6983 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007036/6.984, allocations: 57.12 kB / 3.373 GB, free: 111.4 MB / 0.6983 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.93e-05/6.984, allocations: 33.56 kB / 3.373 GB, free: 111.4 MB / 0.6983 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.606e-05/6.984, allocations: 24.97 kB / 3.373 GB, free: 111.4 MB / 0.6983 GB Notification: Performance of sort global known variables: time 0.0004829/6.985, allocations: 397.2 kB / 3.374 GB, free: 111.3 MB / 0.6983 GB Notification: Performance of remove unused functions: time 0.001638/6.986, allocations: 429.2 kB / 3.374 GB, free: 111.2 MB / 0.6983 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.003338/6.99, allocations: 2.147 MB / 3.376 GB, free: 110.6 MB / 0.6983 GB Notification: Performance of simCode: created initialization part: time 0.0009684/6.991, allocations: 0.5626 MB / 3.377 GB, free: 110.6 MB / 0.6983 GB Notification: Performance of simCode: created event and clocks part: time 5.881e-06/6.991, allocations: 0 / 3.377 GB, free: 110.6 MB / 0.6983 GB Notification: Performance of simCode: created simulation system equations: time 0.0003367/6.991, allocations: 265.4 kB / 3.377 GB, free: 110.6 MB / 0.6983 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001941/6.993, allocations: 349.7 kB / 3.377 GB, free: 110.6 MB / 0.6983 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003512/6.997, allocations: 1.5 MB / 3.379 GB, free: 110.2 MB / 0.6983 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001127/6.998, allocations: 1.217 MB / 3.38 GB, free: 109.5 MB / 0.6983 GB Notification: Performance of SimCode: time 9.82e-07/6.998, allocations: 0 / 3.38 GB, free: 109.5 MB / 0.6983 GB Notification: Performance of Templates: time 0.04565/7.043, allocations: 24 MB / 3.403 GB, free: 100.4 MB / 0.6983 GB make -j1 -f BuildingSystems_BuildingSystems.Fluid.Sensors.Examples.TraceSubstances.makefile (rm -f BuildingSystems_BuildingSystems.Fluid.Sensors.Examples.TraceSubstances.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Sensors.Examples.TraceSubstances.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Sensors.Examples.TraceSubstances.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Sensors.Examples.TraceSubstances.sim & ./BuildingSystems_BuildingSystems.Fluid.Sensors.Examples.TraceSubstances -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.Sensors.Examples.TraceSubstances.pipe 2>&1)