Running: ./testmodel.py --libraries=/var/lib/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 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo) Running command: translateModel(Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_7.0.0_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(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo): time 2.063/2.063, allocations: 253.1 MB / 260.4 MB, free: 7.488 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00167/0.00167, allocations: 181.1 kB / 319.6 MB, free: 3.328 MB / 250.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.819/1.819, allocations: 205.4 MB / 0.5704 GB, free: 15.04 MB / 426.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001678/0.001677, allocations: 87.34 kB / 0.6746 GB, free: 4.418 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 1.148e-05/1.161e-05, allocations: 4 kB / 0.7843 GB, free: 102.6 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2178/0.2178, allocations: 106.2 MB / 0.888 GB, free: 12.21 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 5.738/5.956, allocations: 2.253 GB / 3.141 GB, free: 106.4 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002627/5.956, allocations: 86.89 kB / 3.141 GB, free: 106.3 MB / 0.8698 GB Notification: Performance of FrontEnd: time 9.944/15.9, allocations: 1.983 GB / 5.124 GB, free: 83.43 MB / 0.9323 GB Notification: Performance of Transformations before backend: time 0.0004918/15.9, allocations: 94.09 kB / 5.124 GB, free: 83.41 MB / 0.9323 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 0.01544/15.92, allocations: 3.481 MB / 5.128 GB, free: 81.96 MB / 0.9323 GB Notification: Performance of prepare preOptimizeDAE: time 4.921e-05/15.92, allocations: 11.06 kB / 5.128 GB, free: 81.96 MB / 0.9323 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01085/15.93, allocations: 0.988 MB / 5.129 GB, free: 81.77 MB / 0.9323 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01364/15.94, allocations: 2.92 MB / 5.132 GB, free: 81.18 MB / 0.9323 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003691/15.94, allocations: 176.4 kB / 5.132 GB, free: 81.11 MB / 0.9323 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001685/15.94, allocations: 177.5 kB / 5.132 GB, free: 81.1 MB / 0.9323 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01012/15.95, allocations: 2.52 MB / 5.134 GB, free: 81.09 MB / 0.9323 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01207/15.96, allocations: 2.827 MB / 5.137 GB, free: 80.84 MB / 0.9323 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001108/15.96, allocations: 3.188 kB / 5.137 GB, free: 80.84 MB / 0.9323 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004813/15.97, allocations: 3.906 kB / 5.137 GB, free: 80.84 MB / 0.9323 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001245/15.97, allocations: 107.9 kB / 5.137 GB, free: 80.84 MB / 0.9323 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02977/16, allocations: 13.17 MB / 5.15 GB, free: 73.5 MB / 0.9323 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004838/16, allocations: 1.667 MB / 5.152 GB, free: 73.45 MB / 0.9323 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002893/16, allocations: 1.027 MB / 5.153 GB, free: 73.43 MB / 0.9323 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007815/16, allocations: 332.6 kB / 5.153 GB, free: 73.14 MB / 0.9323 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.409e-05/16, allocations: 57.41 kB / 5.153 GB, free: 73.11 MB / 0.9323 GB Notification: Performance of pre-optimization done (n=182): time 4.769e-06/16, allocations: 0 / 5.153 GB, free: 73.11 MB / 0.9323 GB Notification: Performance of matching and sorting (n=182): time 0.008444/16.01, allocations: 1.93 MB / 5.155 GB, free: 72.9 MB / 0.9323 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.725e-05/16.01, allocations: 67.81 kB / 5.155 GB, free: 72.84 MB / 0.9323 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00376/16.02, allocations: 1.439 MB / 5.157 GB, free: 72.62 MB / 0.9323 GB Notification: Performance of collectPreVariables (initialization): time 0.0007981/16.02, allocations: 36.41 kB / 5.157 GB, free: 72.59 MB / 0.9323 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009639/16.02, allocations: 0.9994 MB / 5.158 GB, free: 72.03 MB / 0.9323 GB Notification: Performance of collectInitialBindings (initialization): time 0.00164/16.02, allocations: 0.6185 MB / 5.158 GB, free: 71.61 MB / 0.9323 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002004/16.02, allocations: 0 / 5.158 GB, free: 71.61 MB / 0.9323 GB Notification: Performance of setup shared object (initialization): time 0.0002166/16.02, allocations: 388.9 kB / 5.159 GB, free: 71.31 MB / 0.9323 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002234/16.02, allocations: 0.7338 MB / 5.159 GB, free: 71.3 MB / 0.9323 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003091/16.03, allocations: 1.369 MB / 5.161 GB, free: 70.57 MB / 0.9323 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003156/16.03, allocations: 0.9995 MB / 5.162 GB, free: 70.54 MB / 0.9323 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.502e-05/16.03, allocations: 5.781 kB / 5.162 GB, free: 70.54 MB / 0.9323 GB Notification: Performance of matching and sorting (n=257) (initialization): time 0.007795/16.04, allocations: 2.256 MB / 5.164 GB, free: 70.34 MB / 0.9323 GB Notification: Performance of prepare postOptimizeDAE: time 0.001451/16.04, allocations: 5.454 MB / 5.169 GB, free: 64.5 MB / 0.9323 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.3e-05/16.04, allocations: 19.27 kB / 5.169 GB, free: 64.5 MB / 0.9323 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.869e-05/16.04, allocations: 23.81 kB / 5.169 GB, free: 64.5 MB / 0.9323 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005457/16.04, allocations: 0.5228 MB / 5.17 GB, free: 64.5 MB / 0.9323 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002618/16.05, allocations: 4.2 MB / 5.174 GB, free: 60.41 MB / 0.9323 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006507/16.05, allocations: 315.3 kB / 5.174 GB, free: 60.31 MB / 0.9323 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007641/16.05, allocations: 88.69 kB / 5.174 GB, free: 60.31 MB / 0.9323 GB Notification: Performance of prepare postOptimizeDAE: time 1.358e-05/16.05, allocations: 5.906 kB / 5.174 GB, free: 60.31 MB / 0.9323 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006333/16.06, allocations: 1.946 MB / 5.176 GB, free: 60.27 MB / 0.9323 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.544e-05/16.06, allocations: 11.12 kB / 5.176 GB, free: 60.27 MB / 0.9323 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.285e-05/16.06, allocations: 26.31 kB / 5.176 GB, free: 60.27 MB / 0.9323 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004225/16.06, allocations: 482.7 kB / 5.177 GB, free: 60.26 MB / 0.9323 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.772e-05/16.06, allocations: 34.75 kB / 5.177 GB, free: 60.25 MB / 0.9323 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0066/16.07, allocations: 296.6 kB / 5.177 GB, free: 60.18 MB / 0.9323 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008022/16.07, allocations: 89.5 kB / 5.177 GB, free: 60.17 MB / 0.9323 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.0009809/16.07, allocations: 164.6 kB / 5.177 GB, free: 60.03 MB / 0.9323 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00123/16.07, allocations: 251.5 kB / 5.177 GB, free: 59.9 MB / 0.9323 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006381/16.08, allocations: 1.938 MB / 5.179 GB, free: 59.78 MB / 0.9323 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.796e-05/16.08, allocations: 17.09 kB / 5.179 GB, free: 59.78 MB / 0.9323 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.226e-05/16.08, allocations: 0 / 5.179 GB, free: 59.78 MB / 0.9323 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00492/16.09, allocations: 1.757 MB / 5.181 GB, free: 59.48 MB / 0.9323 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.016/16.1, allocations: 4.703 MB / 5.186 GB, free: 58.95 MB / 0.9323 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.572e-05/16.1, allocations: 3.531 kB / 5.186 GB, free: 58.95 MB / 0.9323 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005194/16.11, allocations: 0.5031 MB / 5.186 GB, free: 58.94 MB / 0.9323 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.639e-05/16.11, allocations: 11.77 kB / 5.186 GB, free: 58.94 MB / 0.9323 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004916/16.11, allocations: 31.17 kB / 5.186 GB, free: 58.94 MB / 0.9323 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00208/16.11, allocations: 4.153 MB / 5.19 GB, free: 54.83 MB / 0.9323 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.154e-05/16.11, allocations: 3.75 kB / 5.19 GB, free: 54.83 MB / 0.9323 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.008664/16.12, allocations: 3.417 MB / 5.194 GB, free: 54.09 MB / 0.9323 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003047/16.12, allocations: 0.5708 MB / 5.194 GB, free: 53.84 MB / 0.9323 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00123/16.12, allocations: 15.34 kB / 5.194 GB, free: 53.84 MB / 0.9323 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005759/16.13, allocations: 229.3 kB / 5.194 GB, free: 53.82 MB / 0.9323 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006452/16.13, allocations: 111.5 kB / 5.194 GB, free: 53.81 MB / 0.9323 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003728/16.13, allocations: 78.22 kB / 5.194 GB, free: 53.81 MB / 0.9323 GB Notification: Performance of sort global known variables: time 0.002869/16.13, allocations: 1.075 MB / 5.196 GB, free: 53.67 MB / 0.9323 GB Notification: Performance of remove unused functions: time 0.01035/16.14, allocations: 1.957 MB / 5.197 GB, free: 53.39 MB / 0.9323 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.01126/16.15, allocations: 5.214 MB / 5.203 GB, free: 51.12 MB / 0.9323 GB Notification: Performance of simCode: created initialization part: time 0.01113/16.17, allocations: 3.139 MB / 5.206 GB, free: 50.97 MB / 0.9323 GB Notification: Performance of simCode: created event and clocks part: time 1.63e-05/16.17, allocations: 2.719 kB / 5.206 GB, free: 50.97 MB / 0.9323 GB Notification: Performance of simCode: created simulation system equations: time 0.003532/16.17, allocations: 0.9739 MB / 5.207 GB, free: 50.93 MB / 0.9323 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01521/16.18, allocations: 1.405 MB / 5.208 GB, free: 50.89 MB / 0.9323 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02009/16.21, allocations: 5.469 MB / 5.213 GB, free: 49.72 MB / 0.9323 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007063/16.21, allocations: 2.491 MB / 5.216 GB, free: 48.95 MB / 0.9323 GB Notification: Performance of SimCode: time 1.754e-06/16.21, allocations: 0 / 5.216 GB, free: 48.95 MB / 0.9323 GB Notification: Performance of Templates: time 0.226/16.44, allocations: 81.43 MB / 5.295 GB, free: 5.23 MB / 0.948 GB