Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Fluid.Sensors.Examples.TraceSubstances.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.Sensors.Examples.TraceSubstances,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Fluid_Sensors_Examples_TraceSubstances",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Sensors.Examples.TraceSubstances,fileNamePrefix="Buildings_maint_7_0_x_Buildings_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/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.256/1.256, allocations: 249.4 MB / 256.7 MB, free: 7.645 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001013/0.001013, allocations: 185.2 kB / 316 MB, free: 7.945 MB / 254.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.157/1.157, allocations: 205.1 MB / 0.5667 GB, free: 3.512 MB / 414.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008487/0.0008488, allocations: 91.27 kB / 0.671 GB, free: 8.664 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.3225/0.3234, allocations: 112.5 MB / 0.7808 GB, free: 106.8 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1534/0.4768, allocations: 106.3 MB / 0.8847 GB, free: 328 kB / 0.545 GB Notification: Performance of FrontEnd - scodeFlatten: time 3.892/4.368, allocations: 2.246 GB / 3.131 GB, free: 180.6 MB / 0.8731 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002465/4.369, allocations: 93.45 kB / 3.131 GB, free: 180.5 MB / 0.8731 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 228 * Number of variables: 228 Notification: Performance of Generate backend data structure: time 2.039/6.408, allocations: 0.6385 GB / 3.769 GB, free: 181.8 MB / 0.8731 GB Notification: Performance of prepare preOptimizeDAE: time 4.601e-05/6.408, allocations: 9.125 kB / 3.769 GB, free: 181.8 MB / 0.8731 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001986/6.41, allocations: 260 kB / 3.77 GB, free: 181.7 MB / 0.8731 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003369/6.413, allocations: 1.117 MB / 3.771 GB, free: 181.4 MB / 0.8731 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.668e-05/6.413, allocations: 28.06 kB / 3.771 GB, free: 181.4 MB / 0.8731 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002855/6.413, allocations: 56.41 kB / 3.771 GB, free: 181.4 MB / 0.8731 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001814/6.415, allocations: 0.7862 MB / 3.772 GB, free: 181.2 MB / 0.8731 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001899/6.417, allocations: 1.001 MB / 3.773 GB, free: 180.7 MB / 0.8731 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.898e-05/6.417, allocations: 2.656 kB / 3.773 GB, free: 180.7 MB / 0.8731 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.622e-05/6.417, allocations: 9.703 kB / 3.773 GB, free: 180.7 MB / 0.8731 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.264e-05/6.417, allocations: 33.42 kB / 3.773 GB, free: 180.7 MB / 0.8731 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005748/6.423, allocations: 5.674 MB / 3.778 GB, free: 176.2 MB / 0.8731 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007762/6.424, allocations: 0.5143 MB / 3.779 GB, free: 176 MB / 0.8731 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004077/6.424, allocations: 295.8 kB / 3.779 GB, free: 175.9 MB / 0.8731 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005234/6.425, allocations: 313.5 kB / 3.779 GB, free: 175.6 MB / 0.8731 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.502e-05/6.425, allocations: 38.36 kB / 3.779 GB, free: 175.6 MB / 0.8731 GB Notification: Performance of pre-optimization done (n=49): time 2.625e-06/6.425, allocations: 3.609 kB / 3.779 GB, free: 175.6 MB / 0.8731 GB Notification: Performance of matching and sorting (n=49): time 0.001448/6.426, allocations: 0.6044 MB / 3.78 GB, free: 175.3 MB / 0.8731 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.438e-05/6.426, allocations: 57.69 kB / 3.78 GB, free: 175.3 MB / 0.8731 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006592/6.427, allocations: 0.5093 MB / 3.78 GB, free: 175 MB / 0.8731 GB Notification: Performance of collectPreVariables (initialization): time 4.351e-05/6.427, allocations: 26.98 kB / 3.78 GB, free: 175 MB / 0.8731 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002148/6.427, allocations: 425.2 kB / 3.781 GB, free: 174.7 MB / 0.8731 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001429/6.427, allocations: 169.6 kB / 3.781 GB, free: 174.6 MB / 0.8731 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.529e-05/6.427, allocations: 0 / 3.781 GB, free: 174.6 MB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 0.0001129/6.428, allocations: 388.3 kB / 3.781 GB, free: 174.2 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003269/6.428, allocations: 230.2 kB / 3.782 GB, free: 174.1 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005093/6.428, allocations: 0.5392 MB / 3.782 GB, free: 173.6 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005752/6.429, allocations: 370.2 kB / 3.783 GB, free: 173.5 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.121e-06/6.429, allocations: 6.094 kB / 3.783 GB, free: 173.5 MB / 0.8731 GB Notification: Performance of matching and sorting (n=86) (initialization): time 0.001248/6.43, allocations: 0.7771 MB / 3.783 GB, free: 173.3 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 1.648e-05/6.43, allocations: 5.312 kB / 3.783 GB, free: 173.3 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.419e-05/6.43, allocations: 7.656 kB / 3.783 GB, free: 173.3 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.713e-05/6.43, allocations: 13.73 kB / 3.783 GB, free: 173.3 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000573/6.431, allocations: 152.8 kB / 3.783 GB, free: 173.2 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.921e-05/6.431, allocations: 17.55 kB / 3.783 GB, free: 173.2 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009363/6.432, allocations: 111.6 kB / 3.784 GB, free: 173.2 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.573e-05/6.432, allocations: 37.95 kB / 3.784 GB, free: 173.2 MB / 0.8731 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.000125/6.432, allocations: 132.6 kB / 3.784 GB, free: 173.1 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001156/6.432, allocations: 83.59 kB / 3.784 GB, free: 173 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001071/6.433, allocations: 0.5965 MB / 3.784 GB, free: 172.8 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.131e-05/6.433, allocations: 8.297 kB / 3.784 GB, free: 172.8 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.571e-06/6.433, allocations: 0.8438 kB / 3.784 GB, free: 172.8 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0007821/6.434, allocations: 0.5222 MB / 3.785 GB, free: 172.6 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002654/6.437, allocations: 1.543 MB / 3.786 GB, free: 171.8 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.833e-06/6.437, allocations: 6.625 kB / 3.786 GB, free: 171.8 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005554/6.437, allocations: 111.8 kB / 3.787 GB, free: 171.8 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.977e-06/6.437, allocations: 3.188 kB / 3.787 GB, free: 171.8 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.797e-05/6.437, allocations: 11.3 kB / 3.787 GB, free: 171.8 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.152e-06/6.438, allocations: 4.625 kB / 3.787 GB, free: 171.8 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.901e-06/6.438, allocations: 6.531 kB / 3.787 GB, free: 171.8 MB / 0.8731 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001354/6.439, allocations: 1.113 MB / 3.788 GB, free: 171.2 MB / 0.8731 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.002124/6.441, allocations: 1.925 MB / 3.79 GB, free: 169.9 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004398/6.441, allocations: 219.2 kB / 3.79 GB, free: 169.8 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001158/6.442, allocations: 6.016 kB / 3.79 GB, free: 169.8 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006119/6.442, allocations: 62.55 kB / 3.79 GB, free: 169.8 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.105e-05/6.442, allocations: 31.7 kB / 3.79 GB, free: 169.8 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.551e-05/6.442, allocations: 22.31 kB / 3.79 GB, free: 169.8 MB / 0.8731 GB Notification: Performance of sort global known variables: time 0.0005411/6.443, allocations: 400 kB / 3.79 GB, free: 169.6 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.002425/6.445, allocations: 0.6571 MB / 3.791 GB, free: 169.2 MB / 0.8731 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.003119/6.448, allocations: 2.129 MB / 3.793 GB, free: 168.6 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.001128/6.45, allocations: 0.5631 MB / 3.794 GB, free: 168.4 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 4.449e-06/6.45, allocations: 0.6562 kB / 3.794 GB, free: 168.4 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0003602/6.45, allocations: 263.4 kB / 3.794 GB, free: 168.3 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001985/6.452, allocations: 344.7 kB / 3.794 GB, free: 168.2 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003293/6.455, allocations: 1.495 MB / 3.796 GB, free: 167.6 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001122/6.456, allocations: 1.23 MB / 3.797 GB, free: 166.9 MB / 0.8731 GB Notification: Performance of SimCode: time 1.022e-06/6.456, allocations: 0 / 3.797 GB, free: 166.9 MB / 0.8731 GB (rm -f Buildings_maint.7.0.x_Buildings.Fluid.Sensors.Examples.TraceSubstances.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Fluid.Sensors.Examples.TraceSubstances.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Fluid.Sensors.Examples.TraceSubstances.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Fluid.Sensors.Examples.TraceSubstances.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Fluid_Sensors_Examples_TraceSubstances_fmu --startTime=0 --stopTime=7200 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Fluid_Sensors_Examples_TraceSubstances.fmu > Buildings_maint.7.0.x_Buildings.Fluid.Sensors.Examples.TraceSubstances.pipe 2>&1)