Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_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_IDEAS_Fluid_Sensors_Examples_TraceSubstances",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Fluid.Sensors.Examples.TraceSubstances,fileNamePrefix="IDEAS_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.004069/0.004069, allocations: 179.9 kB / 7.458 MB, free: 2.188 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.7161/0.7161, 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.433/1.433, allocations: 221.3 MB / 395 MB, free: 10.21 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.0009853/0.0009851, allocations: 98.41 kB / 477.8 MB, free: 10.79 MB / 394.7 MB Notification: Performance of FrontEnd - loaded program: time 0.4407/0.4417, allocations: 88.43 MB / 0.5529 GB, free: 89.08 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1792/0.621, allocations: 82.31 MB / 0.6333 GB, free: 14.03 MB / 442.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 4.527/5.148, allocations: 1.935 GB / 2.568 GB, free: 25.5 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002992/5.148, allocations: 87.58 kB / 2.568 GB, free: 25.41 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.88/8.028, allocations: 0.6659 GB / 3.234 GB, free: 123.6 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 6.492e-05/8.028, allocations: 15.25 kB / 3.234 GB, free: 123.6 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002107/8.03, allocations: 260.7 kB / 3.234 GB, free: 123.5 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005452/8.036, allocations: 1.117 MB / 3.235 GB, free: 123.2 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001186/8.036, allocations: 28.34 kB / 3.235 GB, free: 123.2 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003027/8.036, allocations: 56.91 kB / 3.236 GB, free: 123.2 MB / 0.6823 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002301/8.038, allocations: 0.78 MB / 3.236 GB, free: 123.2 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002415/8.041, allocations: 0.9899 MB / 3.237 GB, free: 123 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.039e-05/8.041, allocations: 8.906 kB / 3.237 GB, free: 123 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.132e-05/8.041, allocations: 4.688 kB / 3.237 GB, free: 123 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.667e-05/8.041, allocations: 34.73 kB / 3.237 GB, free: 123 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008414/8.049, allocations: 5.684 MB / 3.243 GB, free: 119.2 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00115/8.051, allocations: 0.5188 MB / 3.243 GB, free: 119.1 MB / 0.6823 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005523/8.051, allocations: 297.4 kB / 3.244 GB, free: 119.1 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006777/8.052, allocations: 314.7 kB / 3.244 GB, free: 118.8 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.939e-05/8.052, allocations: 42.17 kB / 3.244 GB, free: 118.8 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=49): time 3.376e-06/8.052, allocations: 0 / 3.244 GB, free: 118.8 MB / 0.6823 GB Notification: Performance of matching and sorting (n=49): time 0.001953/8.054, allocations: 0.6043 MB / 3.245 GB, free: 118.7 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.552e-05/8.054, allocations: 58.94 kB / 3.245 GB, free: 118.6 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009321/8.055, allocations: 0.5172 MB / 3.245 GB, free: 118.5 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 8.384e-05/8.055, allocations: 28.11 kB / 3.245 GB, free: 118.5 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003568/8.055, allocations: 426 kB / 3.246 GB, free: 118.2 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002446/8.056, allocations: 174.2 kB / 3.246 GB, free: 118.1 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.64e-05/8.056, allocations: 6.469 kB / 3.246 GB, free: 118.1 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.0001677/8.056, allocations: 383.6 kB / 3.246 GB, free: 117.8 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000433/8.056, allocations: 231.5 kB / 3.246 GB, free: 117.8 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006573/8.057, allocations: 0.5584 MB / 3.247 GB, free: 117.4 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000701/8.058, allocations: 371.9 kB / 3.247 GB, free: 117.4 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.494e-06/8.058, allocations: 7.281 kB / 3.247 GB, free: 117.4 MB / 0.6823 GB Notification: Performance of matching and sorting (n=86) (initialization): time 0.001274/8.059, allocations: 0.7858 MB / 3.248 GB, free: 117.3 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 1.879e-05/8.059, allocations: 5.969 kB / 3.248 GB, free: 117.3 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.49e-05/8.059, allocations: 11.66 kB / 3.248 GB, free: 117.3 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.102e-05/8.059, allocations: 17.22 kB / 3.248 GB, free: 117.2 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006105/8.06, allocations: 153.2 kB / 3.248 GB, free: 117.2 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.682e-05/8.06, allocations: 15.98 kB / 3.248 GB, free: 117.2 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001085/8.061, allocations: 110.3 kB / 3.248 GB, free: 117.2 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.718e-05/8.061, allocations: 37.28 kB / 3.248 GB, free: 117.2 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.0001606/8.061, allocations: 126.1 kB / 3.248 GB, free: 117.1 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001322/8.061, allocations: 76.06 kB / 3.249 GB, free: 117 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001119/8.062, allocations: 0.6061 MB / 3.249 GB, free: 117 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.446e-06/8.062, allocations: 2.812 kB / 3.249 GB, free: 117 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.58e-06/8.062, allocations: 3.938 kB / 3.249 GB, free: 117 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0007395/8.063, allocations: 0.5189 MB / 3.25 GB, free: 116.9 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002773/8.066, allocations: 1.55 MB / 3.251 GB, free: 116.2 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.64e-06/8.066, allocations: 3.625 kB / 3.251 GB, free: 116.2 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005746/8.067, allocations: 113.8 kB / 3.251 GB, free: 116.2 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.082e-05/8.067, allocations: 7.875 kB / 3.251 GB, free: 116.2 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.025e-05/8.067, allocations: 10.45 kB / 3.251 GB, free: 116.2 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.831e-06/8.067, allocations: 7.406 kB / 3.251 GB, free: 116.2 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.5e-06/8.067, allocations: 3.906 kB / 3.251 GB, free: 116.2 MB / 0.6823 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.00137/8.068, allocations: 1.119 MB / 3.252 GB, free: 115.6 MB / 0.6823 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.002588/8.071, allocations: 1.937 MB / 3.254 GB, free: 114.3 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005547/8.071, allocations: 221.4 kB / 3.255 GB, free: 114.2 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000122/8.071, allocations: 6.281 kB / 3.255 GB, free: 114.2 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00068/8.072, allocations: 54.36 kB / 3.255 GB, free: 114.2 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.492e-05/8.072, allocations: 35.45 kB / 3.255 GB, free: 114.1 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.758e-05/8.072, allocations: 17.66 kB / 3.255 GB, free: 114.1 MB / 0.6823 GB Notification: Performance of sort global known variables: time 0.0006968/8.073, allocations: 403.3 kB / 3.255 GB, free: 114 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.003309/8.076, allocations: 0.6549 MB / 3.256 GB, free: 113.6 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.004723/8.081, allocations: 2.135 MB / 3.258 GB, free: 112.9 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.001749/8.083, allocations: 0.5653 MB / 3.258 GB, free: 112.8 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 9.408e-06/8.083, allocations: 4.938 kB / 3.258 GB, free: 112.8 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 0.0004622/8.083, allocations: 263.8 kB / 3.259 GB, free: 112.7 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002556/8.086, allocations: 355.3 kB / 3.259 GB, free: 112.6 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005109/8.091, allocations: 1.511 MB / 3.26 GB, free: 112 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002036/8.093, allocations: 1.226 MB / 3.262 GB, free: 111.3 MB / 0.6823 GB Notification: Performance of SimCode: time 1.733e-06/8.093, allocations: 2.953 kB / 3.262 GB, free: 111.3 MB / 0.6823 GB (rm -f IDEAS_IDEAS.Fluid.Sensors.Examples.TraceSubstances.pipe ; mkfifo IDEAS_IDEAS.Fluid.Sensors.Examples.TraceSubstances.pipe ; head -c 1048576 < IDEAS_IDEAS.Fluid.Sensors.Examples.TraceSubstances.pipe >> ../files/IDEAS_IDEAS.Fluid.Sensors.Examples.TraceSubstances.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_IDEAS_IDEAS_Fluid_Sensors_Examples_TraceSubstances_fmu --startTime=0 --stopTime=7200 --timeout=50 --tolerance=1e-06 IDEAS_IDEAS_Fluid_Sensors_Examples_TraceSubstances.fmu > IDEAS_IDEAS.Fluid.Sensors.Examples.TraceSubstances.pipe 2>&1)