Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Fluid.Sensors.Examples.TraceSubstances.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/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 8.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.Sensors.Examples.TraceSubstances,fileNamePrefix="Buildings_8_0_0_Buildings_Fluid_Sensors_Examples_TraceSubstances",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Sensors.Examples.TraceSubstances,fileNamePrefix="Buildings_8_0_0_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 8.0.0/package.mo): time 2.537/2.537, allocations: 284.8 MB / 292.1 MB, free: 1.516 MB / 227.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001636/0.001636, allocations: 187.5 kB / 360.3 MB, free: 15.62 MB / 291.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.019/2.019, allocations: 205.1 MB / 0.6187 GB, free: 6.676 MB / 467.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001253/0.001253, allocations: 95.52 kB / 0.7317 GB, free: 46.9 MB / 0.5186 GB Notification: Performance of FrontEnd - loaded program: time 0.2797/0.281, allocations: 121.4 MB / 0.8502 GB, free: 13.69 MB / 0.5967 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6617/0.9428, allocations: 115.2 MB / 0.9627 GB, free: 86.45 MB / 0.6749 GB Notification: Performance of FrontEnd - scodeFlatten: time 5.365/6.308, allocations: 2.127 GB / 3.09 GB, free: 280.2 MB / 0.9405 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003043/6.308, allocations: 86.44 kB / 3.09 GB, free: 280.2 MB / 0.9405 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.897/9.205, allocations: 0.6571 GB / 3.747 GB, free: 21.46 MB / 0.9405 GB Notification: Performance of prepare preOptimizeDAE: time 4.598e-05/9.205, allocations: 8 kB / 3.747 GB, free: 21.46 MB / 0.9405 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002437/9.208, allocations: 266.2 kB / 3.747 GB, free: 21.2 MB / 0.9405 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004255/9.212, allocations: 1.113 MB / 3.748 GB, free: 20.04 MB / 0.9405 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.277e-05/9.212, allocations: 28 kB / 3.748 GB, free: 20.02 MB / 0.9405 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001994/9.212, allocations: 64 kB / 3.748 GB, free: 19.95 MB / 0.9405 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002271/9.214, allocations: 0.7732 MB / 3.749 GB, free: 19.18 MB / 0.9405 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00235/9.217, allocations: 0.994 MB / 3.75 GB, free: 18.11 MB / 0.9405 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.195e-05/9.217, allocations: 3.938 kB / 3.75 GB, free: 18.11 MB / 0.9405 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001191/9.217, allocations: 7.984 kB / 3.75 GB, free: 18.1 MB / 0.9405 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.185e-05/9.217, allocations: 34 kB / 3.75 GB, free: 18.07 MB / 0.9405 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007968/9.225, allocations: 5.668 MB / 3.756 GB, free: 11.97 MB / 0.9405 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001263/9.226, allocations: 0.5131 MB / 3.756 GB, free: 11.45 MB / 0.9405 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000615/9.227, allocations: 314.6 kB / 3.756 GB, free: 11.14 MB / 0.9405 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007753/9.228, allocations: 311.8 kB / 3.757 GB, free: 10.78 MB / 0.9405 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.757e-05/9.228, allocations: 35 kB / 3.757 GB, free: 10.73 MB / 0.9405 GB Notification: Performance of pre-optimization done (n=49): time 3.587e-06/9.228, allocations: 0 / 3.757 GB, free: 10.73 MB / 0.9405 GB Notification: Performance of matching and sorting (n=49): time 0.002242/9.23, allocations: 0.6152 MB / 3.757 GB, free: 10.11 MB / 0.9405 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.136e-05/9.23, allocations: 55.84 kB / 3.757 GB, free: 10.05 MB / 0.9405 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009568/9.231, allocations: 0.5192 MB / 3.758 GB, free: 9.523 MB / 0.9405 GB Notification: Performance of collectPreVariables (initialization): time 0.0001115/9.231, allocations: 25.7 kB / 3.758 GB, free: 9.492 MB / 0.9405 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002426/9.232, allocations: 418.5 kB / 3.758 GB, free: 9.074 MB / 0.9405 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002079/9.232, allocations: 173.5 kB / 3.758 GB, free: 8.902 MB / 0.9405 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.228e-05/9.232, allocations: 0 / 3.758 GB, free: 8.902 MB / 0.9405 GB Notification: Performance of setup shared object (initialization): time 0.0001352/9.232, allocations: 382.8 kB / 3.759 GB, free: 8.52 MB / 0.9405 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005501/9.233, allocations: 233.5 kB / 3.759 GB, free: 8.289 MB / 0.9405 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00076/9.233, allocations: 0.5539 MB / 3.76 GB, free: 7.586 MB / 0.9405 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009924/9.234, allocations: 370.9 kB / 3.76 GB, free: 7.223 MB / 0.9405 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.705e-06/9.234, allocations: 7.938 kB / 3.76 GB, free: 7.215 MB / 0.9405 GB Notification: Performance of matching and sorting (n=86) (initialization): time 0.001996/9.236, allocations: 0.7913 MB / 3.761 GB, free: 6.414 MB / 0.9405 GB Notification: Performance of prepare postOptimizeDAE: time 2.159e-05/9.236, allocations: 4.625 kB / 3.761 GB, free: 6.41 MB / 0.9405 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.65e-05/9.236, allocations: 8 kB / 3.761 GB, free: 6.402 MB / 0.9405 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.433e-05/9.236, allocations: 16 kB / 3.761 GB, free: 6.387 MB / 0.9405 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001085/9.238, allocations: 147.8 kB / 3.761 GB, free: 6.242 MB / 0.9405 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.738e-05/9.238, allocations: 19.92 kB / 3.761 GB, free: 6.223 MB / 0.9405 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001654/9.239, allocations: 111.5 kB / 3.761 GB, free: 6.113 MB / 0.9405 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000106/9.239, allocations: 36 kB / 3.761 GB, free: 6.078 MB / 0.9405 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.0001976/9.24, allocations: 128.7 kB / 3.761 GB, free: 5.945 MB / 0.9405 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000177/9.24, allocations: 79 kB / 3.761 GB, free: 5.867 MB / 0.9405 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001733/9.242, allocations: 0.6158 MB / 3.762 GB, free: 5.242 MB / 0.9405 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.105e-06/9.242, allocations: 4 kB / 3.762 GB, free: 5.238 MB / 0.9405 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.873e-06/9.242, allocations: 0 / 3.762 GB, free: 5.238 MB / 0.9405 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001209/9.243, allocations: 0.5164 MB / 3.762 GB, free: 4.707 MB / 0.9405 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003837/9.247, allocations: 1.555 MB / 3.764 GB, free: 3.086 MB / 0.9405 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.344e-06/9.247, allocations: 3.984 kB / 3.764 GB, free: 3.082 MB / 0.9405 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001041/9.248, allocations: 107.9 kB / 3.764 GB, free: 2.977 MB / 0.9405 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.296e-05/9.248, allocations: 16.17 kB / 3.764 GB, free: 2.961 MB / 0.9405 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.485e-05/9.248, allocations: 15.97 kB / 3.764 GB, free: 2.945 MB / 0.9405 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.316e-06/9.248, allocations: 7.938 kB / 3.764 GB, free: 2.938 MB / 0.9405 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.478e-06/9.248, allocations: 0 / 3.764 GB, free: 2.938 MB / 0.9405 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002196/9.25, allocations: 1.128 MB / 3.765 GB, free: 1.723 MB / 0.9405 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.4021/9.652, allocations: 1.927 MB / 3.767 GB, free: 264.6 MB / 0.9405 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000782/9.653, allocations: 209.3 kB / 3.767 GB, free: 264.5 MB / 0.9405 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002008/9.653, allocations: 7.875 kB / 3.767 GB, free: 264.5 MB / 0.9405 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001213/9.655, allocations: 64.58 kB / 3.767 GB, free: 264.5 MB / 0.9405 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.168e-05/9.655, allocations: 28.33 kB / 3.767 GB, free: 264.5 MB / 0.9405 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.829e-05/9.655, allocations: 18.94 kB / 3.767 GB, free: 264.5 MB / 0.9405 GB Notification: Performance of sort global known variables: time 0.0007385/9.655, allocations: 403.1 kB / 3.768 GB, free: 264.4 MB / 0.9405 GB Notification: Performance of remove unused functions: time 0.003722/9.659, allocations: 0.6535 MB / 3.768 GB, free: 264.4 MB / 0.9405 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.003538/9.663, allocations: 2.124 MB / 3.77 GB, free: 263.9 MB / 0.9405 GB Notification: Performance of simCode: created initialization part: time 0.001552/9.664, allocations: 0.5711 MB / 3.771 GB, free: 263.9 MB / 0.9405 GB Notification: Performance of simCode: created event and clocks part: time 8.035e-06/9.664, allocations: 0 / 3.771 GB, free: 263.9 MB / 0.9405 GB Notification: Performance of simCode: created simulation system equations: time 0.0005735/9.665, allocations: 261 kB / 3.771 GB, free: 263.9 MB / 0.9405 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003467/9.669, allocations: 343.8 kB / 3.772 GB, free: 263.9 MB / 0.9405 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004471/9.673, allocations: 1.513 MB / 3.773 GB, free: 263.5 MB / 0.9405 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001269/9.674, allocations: 1.225 MB / 3.774 GB, free: 262.8 MB / 0.9405 GB Notification: Performance of SimCode: time 1.473e-06/9.674, allocations: 0 / 3.774 GB, free: 262.8 MB / 0.9405 GB (rm -f Buildings_8.0.0_Buildings.Fluid.Sensors.Examples.TraceSubstances.pipe ; mkfifo Buildings_8.0.0_Buildings.Fluid.Sensors.Examples.TraceSubstances.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Fluid.Sensors.Examples.TraceSubstances.pipe >> ../files/Buildings_8.0.0_Buildings.Fluid.Sensors.Examples.TraceSubstances.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_0_0_Buildings_Fluid_Sensors_Examples_TraceSubstances_fmu --startTime=0 --stopTime=7200 --timeout=50 --tolerance=1e-06 Buildings_8_0_0_Buildings_Fluid_Sensors_Examples_TraceSubstances.fmu > Buildings_8.0.0_Buildings.Fluid.Sensors.Examples.TraceSubstances.pipe 2>&1)