Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource.conf.json 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.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource,fileNamePrefix="Buildings_7_0_0_Buildings_Fluid_Sources_Examples_TraceSubstancesFlowSource",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.1/package.mo): time 1.988/1.988, allocations: 248.6 MB / 255.9 MB, free: 388 kB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001672/0.001671, allocations: 185.6 kB / 315.1 MB, free: 7.82 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.047/2.047, allocations: 205.1 MB / 0.5658 GB, free: 25.54 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001294/0.001293, allocations: 98.64 kB / 0.67 GB, free: 2.984 MB / 0.4948 GB Notification: Performance of FrontEnd - loaded program: time 0.2828/0.2842, allocations: 112.4 MB / 0.7797 GB, free: 2.5 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5287/0.8129, allocations: 106.2 MB / 0.8835 GB, free: 77.32 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 5.973/6.786, allocations: 2.252 GB / 3.136 GB, free: 213.4 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003522/6.787, allocations: 90.88 kB / 3.136 GB, free: 213.3 MB / 0.8698 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 703 * Number of variables: 703 Notification: Performance of Generate backend data structure: time 10.46/17.25, allocations: 1.986 GB / 5.122 GB, free: 91.53 MB / 0.948 GB Notification: Performance of prepare preOptimizeDAE: time 7.542e-05/17.25, allocations: 13.59 kB / 5.122 GB, free: 91.53 MB / 0.948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01566/17.26, allocations: 0.9779 MB / 5.123 GB, free: 91.33 MB / 0.948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01663/17.28, allocations: 2.919 MB / 5.126 GB, free: 90.91 MB / 0.948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006754/17.28, allocations: 177.6 kB / 5.126 GB, free: 90.84 MB / 0.948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002053/17.28, allocations: 175.7 kB / 5.126 GB, free: 90.84 MB / 0.948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01184/17.29, allocations: 2.514 MB / 5.129 GB, free: 90.82 MB / 0.948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01166/17.31, allocations: 2.831 MB / 5.132 GB, free: 90.58 MB / 0.948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001071/17.31, allocations: 6.797 kB / 5.132 GB, free: 90.58 MB / 0.948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005198/17.31, allocations: 7.062 kB / 5.132 GB, free: 90.58 MB / 0.948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001298/17.31, allocations: 102.8 kB / 5.132 GB, free: 90.57 MB / 0.948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03398/17.34, allocations: 13.16 MB / 5.145 GB, free: 83.35 MB / 0.948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004568/17.34, allocations: 1.667 MB / 5.146 GB, free: 83.3 MB / 0.948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002886/17.35, allocations: 1.029 MB / 5.147 GB, free: 83.28 MB / 0.948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007677/17.35, allocations: 331.4 kB / 5.148 GB, free: 82.99 MB / 0.948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.467e-05/17.35, allocations: 65.44 kB / 5.148 GB, free: 82.95 MB / 0.948 GB Notification: Performance of pre-optimization done (n=182): time 4.469e-06/17.35, allocations: 0 / 5.148 GB, free: 82.95 MB / 0.948 GB Notification: Performance of matching and sorting (n=182): time 0.008068/17.36, allocations: 1.93 MB / 5.149 GB, free: 82.75 MB / 0.948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.247e-05/17.36, allocations: 69.44 kB / 5.15 GB, free: 82.69 MB / 0.948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003738/17.36, allocations: 1.442 MB / 5.151 GB, free: 82.48 MB / 0.948 GB Notification: Performance of collectPreVariables (initialization): time 0.0008162/17.36, allocations: 29.14 kB / 5.151 GB, free: 82.45 MB / 0.948 GB Notification: Performance of collectInitialEqns (initialization): time 0.001061/17.36, allocations: 1.001 MB / 5.152 GB, free: 81.92 MB / 0.948 GB Notification: Performance of collectInitialBindings (initialization): time 0.001449/17.36, allocations: 0.6194 MB / 5.153 GB, free: 81.51 MB / 0.948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001843/17.36, allocations: 0 / 5.153 GB, free: 81.51 MB / 0.948 GB Notification: Performance of setup shared object (initialization): time 0.0001954/17.36, allocations: 386.7 kB / 5.153 GB, free: 81.2 MB / 0.948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00258/17.37, allocations: 0.732 MB / 5.154 GB, free: 81.2 MB / 0.948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003503/17.37, allocations: 1.37 MB / 5.155 GB, free: 80.46 MB / 0.948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003408/17.37, allocations: 1.006 MB / 5.156 GB, free: 80.44 MB / 0.948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.654e-05/17.37, allocations: 5.594 kB / 5.156 GB, free: 80.44 MB / 0.948 GB Notification: Performance of matching and sorting (n=257) (initialization): time 0.007232/17.38, allocations: 2.253 MB / 5.158 GB, free: 80.24 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 0.001315/17.38, allocations: 5.462 MB / 5.164 GB, free: 74.39 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.398e-05/17.38, allocations: 10.62 kB / 5.164 GB, free: 74.39 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.234e-05/17.38, allocations: 25.47 kB / 5.164 GB, free: 74.39 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005927/17.39, allocations: 0.516 MB / 5.164 GB, free: 74.39 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002494/17.39, allocations: 4.196 MB / 5.168 GB, free: 70.3 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007863/17.4, allocations: 321.4 kB / 5.168 GB, free: 70.21 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008297/17.4, allocations: 85.56 kB / 5.169 GB, free: 70.21 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 1.891e-05/17.4, allocations: 3.469 kB / 5.169 GB, free: 70.21 MB / 0.948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.007786/17.41, allocations: 1.949 MB / 5.17 GB, free: 70.16 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.12e-05/17.41, allocations: 13.88 kB / 5.17 GB, free: 70.16 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.092e-05/17.41, allocations: 22.53 kB / 5.17 GB, free: 70.16 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004007/17.41, allocations: 480.7 kB / 5.171 GB, free: 70.16 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.227e-05/17.41, allocations: 33.58 kB / 5.171 GB, free: 70.16 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007662/17.42, allocations: 297.8 kB / 5.171 GB, free: 70.09 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007856/17.42, allocations: 83.14 kB / 5.171 GB, free: 70.09 MB / 0.948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 59 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (257): * Single equations (assignments): 250 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 7 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 7 {1,1,1,1,1,1,1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0009047/17.42, allocations: 170 kB / 5.172 GB, free: 69.97 MB / 0.948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001024/17.42, allocations: 252.9 kB / 5.172 GB, free: 69.84 MB / 0.948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006481/17.43, allocations: 1.934 MB / 5.174 GB, free: 69.73 MB / 0.948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.627e-05/17.43, allocations: 21.45 kB / 5.174 GB, free: 69.73 MB / 0.948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.183e-05/17.43, allocations: 0 / 5.174 GB, free: 69.73 MB / 0.948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.004905/17.43, allocations: 1.748 MB / 5.175 GB, free: 69.42 MB / 0.948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01645/17.45, allocations: 4.706 MB / 5.18 GB, free: 68.93 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.806e-05/17.45, allocations: 2.188 kB / 5.18 GB, free: 68.93 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005624/17.46, allocations: 0.5059 MB / 5.18 GB, free: 68.93 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.064e-05/17.46, allocations: 7.562 kB / 5.18 GB, free: 68.93 MB / 0.948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004075/17.46, allocations: 35.94 kB / 5.18 GB, free: 68.93 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002054/17.46, allocations: 4.147 MB / 5.185 GB, free: 64.83 MB / 0.948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.19e-05/17.46, allocations: 17.7 kB / 5.185 GB, free: 64.83 MB / 0.948 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.009014/17.47, allocations: 3.413 MB / 5.188 GB, free: 64.09 MB / 0.948 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.01614/17.48, allocations: 5.224 MB / 5.193 GB, free: 62.96 MB / 0.948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002787/17.49, allocations: 0.5697 MB / 5.194 GB, free: 62.72 MB / 0.948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001255/17.49, allocations: 13.22 kB / 5.194 GB, free: 62.72 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005805/17.49, allocations: 231.6 kB / 5.194 GB, free: 62.7 MB / 0.948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005553/17.5, allocations: 111.3 kB / 5.194 GB, free: 62.7 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003115/17.5, allocations: 70.81 kB / 5.194 GB, free: 62.7 MB / 0.948 GB Notification: Performance of sort global known variables: time 0.002921/17.5, allocations: 1.069 MB / 5.195 GB, free: 62.55 MB / 0.948 GB Notification: Performance of remove unused functions: time 0.01699/17.52, allocations: 3.171 MB / 5.198 GB, free: 62.28 MB / 0.948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 20 (vol.dynBal.U,vol.dynBal.m,vol.dynBal.mXi[1],vol.dynBal.mC[1],vol1.dynBal.U,vol1.dynBal.m,vol1.dynBal.mXi[1],vol1.dynBal.mC[1],vol2.dynBal.U,vol2.dynBal.m,vol2.dynBal.mXi[1],vol2.dynBal.mC[1],vol3.dynBal.U,vol3.dynBal.m,vol3.dynBal.mXi[1],vol3.dynBal.mC[1],vol4.dynBal.U,vol4.dynBal.m,vol4.dynBal.mXi[1],vol4.dynBal.mC[1]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (182): * Single equations (assignments): 175 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 7 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 7 {1,1,1,1,1,1,1} * Without analytic Jacobian: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.009715/17.53, allocations: 5.228 MB / 5.203 GB, free: 60.01 MB / 0.948 GB Notification: Performance of simCode: created initialization part: time 0.01132/17.54, allocations: 3.137 MB / 5.206 GB, free: 59.96 MB / 0.948 GB Notification: Performance of simCode: created event and clocks part: time 1.763e-05/17.54, allocations: 2.656 kB / 5.206 GB, free: 59.96 MB / 0.948 GB Notification: Performance of simCode: created simulation system equations: time 0.003405/17.54, allocations: 0.9813 MB / 5.207 GB, free: 59.96 MB / 0.948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01497/17.56, allocations: 1.401 MB / 5.209 GB, free: 59.91 MB / 0.948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02292/17.58, allocations: 5.502 MB / 5.214 GB, free: 58.75 MB / 0.948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006545/17.58, allocations: 2.537 MB / 5.216 GB, free: 57.98 MB / 0.948 GB Notification: Performance of SimCode: time 1.794e-06/17.59, allocations: 0 / 5.216 GB, free: 57.98 MB / 0.948 GB