Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_dev_IDEAS.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/IDEAS 3.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 IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.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(IDEAS.Fluid.Sensors.Examples.TraceSubstances,fileNamePrefix="IDEAS_dev_IDEAS_Fluid_Sensors_Examples_TraceSubstances",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Fluid.Sensors.Examples.TraceSubstances,fileNamePrefix="IDEAS_dev_IDEAS_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.004022/0.004022, allocations: 179.8 kB / 7.458 MB, free: 2.5 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.6814/0.6814, allocations: 133.5 MB / 141.4 MB, free: 15.7 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.505/1.505, allocations: 221.3 MB / 395 MB, free: 10.19 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001005/0.001005, allocations: 93.78 kB / 477.8 MB, free: 10.86 MB / 394.7 MB Notification: Performance of FrontEnd - loaded program: time 0.4457/0.4467, allocations: 88.44 MB / 0.5529 GB, free: 89.08 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1944/0.6411, allocations: 82.3 MB / 0.6333 GB, free: 14.01 MB / 442.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 4.222/4.864, allocations: 1.935 GB / 2.568 GB, free: 25.39 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002581/4.864, allocations: 95.59 kB / 2.568 GB, free: 25.3 MB / 0.6823 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.577/7.441, allocations: 0.6659 GB / 3.234 GB, free: 123.1 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 4.161e-05/7.441, allocations: 11.03 kB / 3.234 GB, free: 123.1 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00152/7.443, allocations: 263.7 kB / 3.234 GB, free: 123 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002733/7.446, allocations: 1.126 MB / 3.235 GB, free: 122.7 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.729e-05/7.446, allocations: 28.47 kB / 3.235 GB, free: 122.7 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001991/7.446, allocations: 58.22 kB / 3.236 GB, free: 122.7 MB / 0.6823 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002197/7.448, allocations: 0.7716 MB / 3.236 GB, free: 122.7 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001788/7.45, allocations: 1 MB / 3.237 GB, free: 122.5 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.154e-05/7.45, allocations: 9.219 kB / 3.237 GB, free: 122.5 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.725e-05/7.45, allocations: 2.5 kB / 3.237 GB, free: 122.5 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.956e-05/7.45, allocations: 35.25 kB / 3.237 GB, free: 122.5 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006269/7.456, allocations: 5.672 MB / 3.243 GB, free: 118.7 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008735/7.457, allocations: 0.5192 MB / 3.243 GB, free: 118.6 MB / 0.6823 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004613/7.458, allocations: 299.7 kB / 3.244 GB, free: 118.6 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005632/7.458, allocations: 314.4 kB / 3.244 GB, free: 118.3 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.385e-05/7.458, allocations: 45.27 kB / 3.244 GB, free: 118.3 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=49): time 3.617e-06/7.458, allocations: 0 / 3.244 GB, free: 118.3 MB / 0.6823 GB Notification: Performance of matching and sorting (n=49): time 0.001624/7.46, allocations: 0.604 MB / 3.245 GB, free: 118.2 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.917e-05/7.46, allocations: 57.66 kB / 3.245 GB, free: 118.2 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007517/7.461, allocations: 0.521 MB / 3.245 GB, free: 118 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 5.372e-05/7.461, allocations: 30.05 kB / 3.245 GB, free: 118 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002799/7.461, allocations: 422.3 kB / 3.246 GB, free: 117.7 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001676/7.461, allocations: 173.5 kB / 3.246 GB, free: 117.6 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.565e-05/7.461, allocations: 0 / 3.246 GB, free: 117.6 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.0001289/7.461, allocations: 385.1 kB / 3.246 GB, free: 117.3 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003747/7.462, allocations: 226.2 kB / 3.246 GB, free: 117.3 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005514/7.462, allocations: 0.5635 MB / 3.247 GB, free: 116.9 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006786/7.463, allocations: 370 kB / 3.247 GB, free: 116.9 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.245e-06/7.463, allocations: 6.031 kB / 3.247 GB, free: 116.9 MB / 0.6823 GB Notification: Performance of matching and sorting (n=86) (initialization): time 0.001428/7.464, allocations: 0.7816 MB / 3.248 GB, free: 116.8 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 1.811e-05/7.464, allocations: 8.312 kB / 3.248 GB, free: 116.8 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.398e-05/7.465, allocations: 7.625 kB / 3.248 GB, free: 116.8 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.38e-05/7.465, allocations: 17.19 kB / 3.248 GB, free: 116.8 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005809/7.465, allocations: 160.8 kB / 3.248 GB, free: 116.8 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.607e-05/7.465, allocations: 15.97 kB / 3.248 GB, free: 116.8 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001016/7.466, allocations: 110.1 kB / 3.248 GB, free: 116.7 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.373e-05/7.466, allocations: 38.25 kB / 3.248 GB, free: 116.7 MB / 0.6823 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.0001346/7.466, allocations: 133.2 kB / 3.248 GB, free: 116.6 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001098/7.467, allocations: 79.19 kB / 3.249 GB, free: 116.6 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001155/7.468, allocations: 0.6037 MB / 3.249 GB, free: 116.5 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.154e-06/7.468, allocations: 10.88 kB / 3.249 GB, free: 116.5 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.6e-06/7.468, allocations: 0 / 3.249 GB, free: 116.5 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0007205/7.468, allocations: 0.5237 MB / 3.25 GB, free: 116.4 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002534/7.471, allocations: 1.554 MB / 3.251 GB, free: 115.6 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.973e-06/7.471, allocations: 5.859 kB / 3.251 GB, free: 115.6 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005644/7.472, allocations: 109.3 kB / 3.251 GB, free: 115.6 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.408e-06/7.472, allocations: 3.5 kB / 3.251 GB, free: 115.6 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.006e-05/7.472, allocations: 11.84 kB / 3.251 GB, free: 115.6 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.957e-06/7.472, allocations: 10.47 kB / 3.251 GB, free: 115.6 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.502e-06/7.472, allocations: 3.906 kB / 3.251 GB, free: 115.6 MB / 0.6823 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001362/7.473, allocations: 1.128 MB / 3.252 GB, free: 115 MB / 0.6823 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.002338/7.475, allocations: 1.926 MB / 3.254 GB, free: 113.7 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005471/7.476, allocations: 211.2 kB / 3.255 GB, free: 113.6 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001232/7.476, allocations: 11.81 kB / 3.255 GB, free: 113.6 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006536/7.477, allocations: 59.45 kB / 3.255 GB, free: 113.6 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.029e-05/7.477, allocations: 29.53 kB / 3.255 GB, free: 113.5 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.026e-05/7.477, allocations: 23.34 kB / 3.255 GB, free: 113.5 MB / 0.6823 GB Notification: Performance of sort global known variables: time 0.0006095/7.477, allocations: 401.9 kB / 3.255 GB, free: 113.4 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.002809/7.48, allocations: 0.6575 MB / 3.256 GB, free: 113 MB / 0.6823 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.003336/7.484, allocations: 2.137 MB / 3.258 GB, free: 112.4 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.001176/7.485, allocations: 0.564 MB / 3.258 GB, free: 112.2 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 5.21e-06/7.485, allocations: 1.031 kB / 3.258 GB, free: 112.2 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 0.0003563/7.485, allocations: 267 kB / 3.259 GB, free: 112.1 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002007/7.487, allocations: 343.9 kB / 3.259 GB, free: 112 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00334/7.491, allocations: 1.502 MB / 3.26 GB, free: 111.4 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001104/7.492, allocations: 1.227 MB / 3.262 GB, free: 110.7 MB / 0.6823 GB Notification: Performance of SimCode: time 1.172e-06/7.492, allocations: 0 / 3.262 GB, free: 110.7 MB / 0.6823 GB (rm -f IDEAS_dev_IDEAS.Fluid.Sensors.Examples.TraceSubstances.pipe ; mkfifo IDEAS_dev_IDEAS.Fluid.Sensors.Examples.TraceSubstances.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Fluid.Sensors.Examples.TraceSubstances.pipe >> ../files/IDEAS_dev_IDEAS.Fluid.Sensors.Examples.TraceSubstances.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_IDEAS_dev_IDEAS_Fluid_Sensors_Examples_TraceSubstances_fmu --startTime=0 --stopTime=7200 --timeout=50 --tolerance=1e-06 IDEAS_dev_IDEAS_Fluid_Sensors_Examples_TraceSubstances.fmu > IDEAS_dev_IDEAS.Fluid.Sensors.Examples.TraceSubstances.pipe 2>&1)