Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.8.0.x_Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.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 8.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo) Running command: translateModel(Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.8.0.x_Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource") translateModel(Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.8.0.x_Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource") [: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.1-maint.8.0.x/package.mo): time 1.535/1.535, allocations: 285.5 MB / 292.8 MB, free: 10.43 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001196/0.001196, allocations: 181.3 kB / 361.1 MB, free: 7.059 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.602/1.602, allocations: 205.2 MB / 0.6195 GB, free: 10.23 MB / 474.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008856/0.0008855, allocations: 97.83 kB / 0.7326 GB, free: 44.18 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 9.307e-06/9.337e-06, allocations: 4 kB / 0.8511 GB, free: 2.93 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7791/0.7791, allocations: 115.3 MB / 0.9637 GB, free: 78.19 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 3.907/4.687, allocations: 2.134 GB / 3.098 GB, free: 3.891 MB / 0.948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002164/4.687, allocations: 84.66 kB / 3.098 GB, free: 3.809 MB / 0.948 GB Notification: Performance of FrontEnd: time 7.272/11.96, allocations: 2.037 GB / 5.135 GB, free: 82.2 MB / 0.9948 GB Notification: Performance of Transformations before backend: time 0.0006959/11.96, allocations: 92.47 kB / 5.135 GB, free: 82.19 MB / 0.9948 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 693 * Number of variables: 693 Notification: Performance of Generate backend data structure: time 0.01675/11.98, allocations: 3.473 MB / 5.139 GB, free: 80.75 MB / 0.9948 GB Notification: Performance of prepare preOptimizeDAE: time 6.715e-05/11.98, allocations: 7.812 kB / 5.139 GB, free: 80.75 MB / 0.9948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008316/11.98, allocations: 0.9851 MB / 5.14 GB, free: 80.55 MB / 0.9948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01037/12, allocations: 2.891 MB / 5.143 GB, free: 79.96 MB / 0.9948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002854/12, allocations: 178.1 kB / 5.143 GB, free: 79.89 MB / 0.9948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0013/12, allocations: 182.2 kB / 5.143 GB, free: 79.89 MB / 0.9948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00688/12, allocations: 2.499 MB / 5.145 GB, free: 79.88 MB / 0.9948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008349/12.01, allocations: 2.801 MB / 5.148 GB, free: 79.63 MB / 0.9948 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.962e-05/12.01, allocations: 4.156 kB / 5.148 GB, free: 79.63 MB / 0.9948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003149/12.01, allocations: 3.25 kB / 5.148 GB, free: 79.63 MB / 0.9948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001495/12.01, allocations: 109.8 kB / 5.148 GB, free: 79.62 MB / 0.9948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01729/12.03, allocations: 13.13 MB / 5.161 GB, free: 72.25 MB / 0.9948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002193/12.03, allocations: 1.674 MB / 5.163 GB, free: 72.2 MB / 0.9948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001206/12.03, allocations: 1.044 MB / 5.164 GB, free: 72.18 MB / 0.9948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000473/12.03, allocations: 332.4 kB / 5.164 GB, free: 71.9 MB / 0.9948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.536e-05/12.03, allocations: 62.06 kB / 5.164 GB, free: 71.86 MB / 0.9948 GB Notification: Performance of pre-optimization done (n=182): time 3.497e-06/12.03, allocations: 0 / 5.164 GB, free: 71.86 MB / 0.9948 GB Notification: Performance of matching and sorting (n=182): time 0.004297/12.04, allocations: 1.941 MB / 5.166 GB, free: 71.65 MB / 0.9948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.546e-05/12.04, allocations: 72.47 kB / 5.166 GB, free: 71.59 MB / 0.9948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00205/12.04, allocations: 1.424 MB / 5.167 GB, free: 71.38 MB / 0.9948 GB Notification: Performance of collectPreVariables (initialization): time 0.0002757/12.04, allocations: 29.61 kB / 5.168 GB, free: 71.34 MB / 0.9948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006585/12.04, allocations: 1.001 MB / 5.168 GB, free: 70.77 MB / 0.9948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008696/12.04, allocations: 0.6177 MB / 5.169 GB, free: 70.36 MB / 0.9948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.283e-05/12.04, allocations: 0 / 5.169 GB, free: 70.36 MB / 0.9948 GB Notification: Performance of setup shared object (initialization): time 0.0001603/12.04, allocations: 389.6 kB / 5.169 GB, free: 70.05 MB / 0.9948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00107/12.04, allocations: 0.7449 MB / 5.17 GB, free: 70.05 MB / 0.9948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001345/12.04, allocations: 1.4 MB / 5.172 GB, free: 69.28 MB / 0.9948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001498/12.05, allocations: 1.018 MB / 5.173 GB, free: 69.23 MB / 0.9948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.816e-06/12.05, allocations: 3.375 kB / 5.173 GB, free: 69.23 MB / 0.9948 GB Notification: Performance of matching and sorting (n=257) (initialization): time 0.00374/12.05, allocations: 2.279 MB / 5.175 GB, free: 68.97 MB / 0.9948 GB Notification: Performance of prepare postOptimizeDAE: time 0.001043/12.05, allocations: 5.463 MB / 5.18 GB, free: 63.12 MB / 0.9948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.044e-05/12.05, allocations: 16.16 kB / 5.18 GB, free: 63.12 MB / 0.9948 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.328e-05/12.05, allocations: 24.34 kB / 5.18 GB, free: 63.12 MB / 0.9948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002502/12.05, allocations: 0.5216 MB / 5.181 GB, free: 63.09 MB / 0.9948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001654/12.06, allocations: 4.203 MB / 5.185 GB, free: 58.98 MB / 0.9948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004018/12.06, allocations: 307.1 kB / 5.185 GB, free: 58.89 MB / 0.9948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001756/12.06, allocations: 86.94 kB / 5.185 GB, free: 58.89 MB / 0.9948 GB Notification: Performance of prepare postOptimizeDAE: time 1.358e-05/12.06, allocations: 7.188 kB / 5.185 GB, free: 58.89 MB / 0.9948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002763/12.06, allocations: 1.965 MB / 5.187 GB, free: 58.79 MB / 0.9948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.502e-05/12.06, allocations: 19.27 kB / 5.187 GB, free: 58.78 MB / 0.9948 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.226e-05/12.06, allocations: 22.84 kB / 5.187 GB, free: 58.78 MB / 0.9948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001753/12.06, allocations: 483 kB / 5.188 GB, free: 58.75 MB / 0.9948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.95e-05/12.06, allocations: 29.67 kB / 5.188 GB, free: 58.75 MB / 0.9948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003775/12.07, allocations: 291.9 kB / 5.188 GB, free: 58.67 MB / 0.9948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001711/12.07, allocations: 88.56 kB / 5.188 GB, free: 58.67 MB / 0.9948 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.0005755/12.07, allocations: 160.6 kB / 5.188 GB, free: 58.53 MB / 0.9948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000572/12.07, allocations: 257.2 kB / 5.188 GB, free: 58.4 MB / 0.9948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003254/12.07, allocations: 1.947 MB / 5.19 GB, free: 58.29 MB / 0.9948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.68e-05/12.07, allocations: 17.56 kB / 5.19 GB, free: 58.29 MB / 0.9948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.797e-06/12.07, allocations: 5.844 kB / 5.19 GB, free: 58.28 MB / 0.9948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002108/12.07, allocations: 1.773 MB / 5.192 GB, free: 57.98 MB / 0.9948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009017/12.08, allocations: 4.706 MB / 5.197 GB, free: 57.47 MB / 0.9948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.667e-06/12.08, allocations: 0 / 5.197 GB, free: 57.47 MB / 0.9948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002544/12.09, allocations: 0.5098 MB / 5.197 GB, free: 57.45 MB / 0.9948 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.179e-05/12.09, allocations: 11.09 kB / 5.197 GB, free: 57.45 MB / 0.9948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001394/12.09, allocations: 31.69 kB / 5.197 GB, free: 57.45 MB / 0.9948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00163/12.09, allocations: 4.147 MB / 5.201 GB, free: 53.35 MB / 0.9948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.584e-06/12.09, allocations: 7.781 kB / 5.201 GB, free: 53.34 MB / 0.9948 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.005011/12.09, allocations: 3.446 MB / 5.205 GB, free: 52.6 MB / 0.9948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001961/12.1, allocations: 0.5508 MB / 5.205 GB, free: 52.36 MB / 0.9948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004089/12.1, allocations: 15.25 kB / 5.205 GB, free: 52.36 MB / 0.9948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00235/12.1, allocations: 223.6 kB / 5.205 GB, free: 52.33 MB / 0.9948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002067/12.1, allocations: 103.8 kB / 5.205 GB, free: 52.33 MB / 0.9948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001568/12.1, allocations: 69.77 kB / 5.205 GB, free: 52.33 MB / 0.9948 GB Notification: Performance of sort global known variables: time 0.001987/12.1, allocations: 1.063 MB / 5.207 GB, free: 52.18 MB / 0.9948 GB Notification: Performance of remove unused functions: time 0.006476/12.11, allocations: 1.931 MB / 5.208 GB, free: 51.92 MB / 0.9948 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.008878/12.12, allocations: 5.241 MB / 5.214 GB, free: 49.62 MB / 0.9948 GB Notification: Performance of simCode: created initialization part: time 0.007662/12.12, allocations: 3.172 MB / 5.217 GB, free: 49.46 MB / 0.9948 GB Notification: Performance of simCode: created event and clocks part: time 1.57e-05/12.12, allocations: 4.594 kB / 5.217 GB, free: 49.46 MB / 0.9948 GB Notification: Performance of simCode: created simulation system equations: time 0.00185/12.13, allocations: 0.9935 MB / 5.218 GB, free: 49.42 MB / 0.9948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008891/12.13, allocations: 1.393 MB / 5.219 GB, free: 49.38 MB / 0.9948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01171/12.15, allocations: 5.455 MB / 5.224 GB, free: 48.21 MB / 0.9948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002602/12.15, allocations: 2.476 MB / 5.227 GB, free: 47.45 MB / 0.9948 GB Notification: Performance of SimCode: time 1.152e-06/12.15, allocations: 0 / 5.227 GB, free: 47.45 MB / 0.9948 GB Notification: Performance of Templates: time 0.1298/12.28, allocations: 81.28 MB / 5.306 GB, free: 2.535 MB / 1.01 GB make -j1 -f Buildings_maint.8.0.x_Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource.makefile (rm -f Buildings_maint.8.0.x_Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource.pipe ; mkfifo Buildings_maint.8.0.x_Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource.pipe ; head -c 1048576 < Buildings_maint.8.0.x_Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource.pipe >> ../files/Buildings_maint.8.0.x_Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource.sim & ./Buildings_maint.8.0.x_Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.8.0.x_Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource.pipe 2>&1)