Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.8.0.x_Buildings.Fluid.FixedResistances.Examples.FlowJunction.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.FixedResistances.Examples.FlowJunction,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.8.0.x_Buildings.Fluid.FixedResistances.Examples.FlowJunction") translateModel(Buildings.Fluid.FixedResistances.Examples.FlowJunction,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.8.0.x_Buildings.Fluid.FixedResistances.Examples.FlowJunction") [: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.573/1.573, allocations: 285.5 MB / 292.8 MB, free: 10.49 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.001468/0.001468, allocations: 181.3 kB / 361.1 MB, free: 7.121 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.721/1.721, allocations: 205.1 MB / 0.6195 GB, free: 10.3 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.001056/0.001056, allocations: 91.22 kB / 0.7326 GB, free: 44.27 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 7.284e-06/7.303e-06, allocations: 0 / 0.8511 GB, free: 3.008 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.805/0.805, allocations: 115.3 MB / 0.9637 GB, free: 78.25 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 4.022/4.827, allocations: 2.081 GB / 3.045 GB, free: 29.34 MB / 0.948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003437/4.827, allocations: 85.62 kB / 3.045 GB, free: 29.3 MB / 0.948 GB Notification: Performance of FrontEnd: time 3.86/8.687, allocations: 0.9169 GB / 3.962 GB, free: 162.9 MB / 0.948 GB Notification: Performance of Transformations before backend: time 0.0002199/8.688, allocations: 37.95 kB / 3.962 GB, free: 162.9 MB / 0.948 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 197 * Number of variables: 197 Notification: Performance of Generate backend data structure: time 0.005578/8.693, allocations: 1.526 MB / 3.964 GB, free: 162.2 MB / 0.948 GB Notification: Performance of prepare preOptimizeDAE: time 5.199e-05/8.693, allocations: 7.562 kB / 3.964 GB, free: 162.2 MB / 0.948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003682/8.697, allocations: 426.9 kB / 3.964 GB, free: 162.1 MB / 0.948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003829/8.701, allocations: 1.09 MB / 3.965 GB, free: 161.8 MB / 0.948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.231e-05/8.701, allocations: 22.56 kB / 3.965 GB, free: 161.8 MB / 0.948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003562/8.701, allocations: 54.81 kB / 3.965 GB, free: 161.8 MB / 0.948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00192/8.703, allocations: 0.7401 MB / 3.966 GB, free: 161.8 MB / 0.948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001849/8.705, allocations: 0.7314 MB / 3.967 GB, free: 161.8 MB / 0.948 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.981e-05/8.705, allocations: 0 / 3.967 GB, free: 161.8 MB / 0.948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001024/8.705, allocations: 3.844 kB / 3.967 GB, free: 161.8 MB / 0.948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.956e-05/8.705, allocations: 30.09 kB / 3.967 GB, free: 161.8 MB / 0.948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006675/8.712, allocations: 3.776 MB / 3.97 GB, free: 160.1 MB / 0.948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001148/8.713, allocations: 0.5876 MB / 3.971 GB, free: 160 MB / 0.948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000509/8.714, allocations: 378.5 kB / 3.971 GB, free: 160 MB / 0.948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008368/8.714, allocations: 0.6399 MB / 3.972 GB, free: 159.4 MB / 0.948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.058e-05/8.714, allocations: 43.66 kB / 3.972 GB, free: 159.3 MB / 0.948 GB Notification: Performance of pre-optimization done (n=60): time 5.13e-06/8.714, allocations: 3.703 kB / 3.972 GB, free: 159.3 MB / 0.948 GB Notification: Performance of matching and sorting (n=60): time 0.003174/8.718, allocations: 0.9095 MB / 3.973 GB, free: 159.2 MB / 0.948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.74e-05/8.718, allocations: 58.12 kB / 3.973 GB, free: 159.2 MB / 0.948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00134/8.719, allocations: 0.5953 MB / 3.973 GB, free: 159.1 MB / 0.948 GB Notification: Performance of collectPreVariables (initialization): time 0.0001047/8.719, allocations: 28.92 kB / 3.973 GB, free: 159 MB / 0.948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002644/8.719, allocations: 340.8 kB / 3.974 GB, free: 158.9 MB / 0.948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002631/8.72, allocations: 201.5 kB / 3.974 GB, free: 158.7 MB / 0.948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.14e-05/8.72, allocations: 0 / 3.974 GB, free: 158.7 MB / 0.948 GB Notification: Performance of setup shared object (initialization): time 9.828e-05/8.72, allocations: 327 kB / 3.974 GB, free: 158.4 MB / 0.948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003613/8.72, allocations: 239.3 kB / 3.974 GB, free: 158.4 MB / 0.948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004713/8.721, allocations: 391.8 kB / 3.975 GB, free: 158.3 MB / 0.948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000738/8.721, allocations: 376.7 kB / 3.975 GB, free: 158.3 MB / 0.948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.659e-06/8.721, allocations: 0 / 3.975 GB, free: 158.3 MB / 0.948 GB Notification: Performance of matching and sorting (n=69) (initialization): time 0.001634/8.723, allocations: 0.7774 MB / 3.976 GB, free: 158.2 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001697/8.723, allocations: 456.3 kB / 3.976 GB, free: 157.7 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.275e-05/8.723, allocations: 0 / 3.976 GB, free: 157.7 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.555e-05/8.723, allocations: 6.625 kB / 3.976 GB, free: 157.7 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007276/8.724, allocations: 143.6 kB / 3.977 GB, free: 157.7 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.394e-05/8.724, allocations: 4.469 kB / 3.977 GB, free: 157.7 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00138/8.726, allocations: 113.8 kB / 3.977 GB, free: 157.7 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.767e-05/8.726, allocations: 26.48 kB / 3.977 GB, free: 157.7 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 1.234e-05/8.726, allocations: 3.844 kB / 3.977 GB, free: 157.7 MB / 0.948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001289/8.727, allocations: 0.643 MB / 3.977 GB, free: 157.7 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.449e-06/8.727, allocations: 3.844 kB / 3.977 GB, free: 157.7 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.367e-06/8.727, allocations: 4.359 kB / 3.977 GB, free: 157.7 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006685/8.728, allocations: 133.5 kB / 3.977 GB, free: 157.7 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.598e-06/8.728, allocations: 6.438 kB / 3.977 GB, free: 157.7 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001292/8.729, allocations: 109.7 kB / 3.978 GB, free: 157.7 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.163e-05/8.729, allocations: 33.92 kB / 3.978 GB, free: 157.7 MB / 0.948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (69): * Single equations (assignments): 69 * 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.0002158/8.729, allocations: 115.2 kB / 3.978 GB, free: 157.6 MB / 0.948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003068/8.73, allocations: 96.34 kB / 3.978 GB, free: 157.5 MB / 0.948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00168/8.731, allocations: 0.813 MB / 3.979 GB, free: 157.5 MB / 0.948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.969e-06/8.731, allocations: 6.594 kB / 3.979 GB, free: 157.5 MB / 0.948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.785e-06/8.731, allocations: 3.5 kB / 3.979 GB, free: 157.5 MB / 0.948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00123/8.733, allocations: 0.9743 MB / 3.98 GB, free: 157 MB / 0.948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00476/8.737, allocations: 1.997 MB / 3.982 GB, free: 156.6 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.403e-05/8.737, allocations: 3.312 kB / 3.982 GB, free: 156.6 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009113/8.738, allocations: 160.3 kB / 3.982 GB, free: 156.6 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.316e-05/8.738, allocations: 3.562 kB / 3.982 GB, free: 156.6 MB / 0.948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.074e-05/8.738, allocations: 10.34 kB / 3.982 GB, free: 156.6 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.653e-05/8.738, allocations: 9.109 kB / 3.982 GB, free: 156.6 MB / 0.948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.415e-05/8.738, allocations: 14.56 kB / 3.982 GB, free: 156.6 MB / 0.948 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002931/8.741, allocations: 1.433 MB / 3.983 GB, free: 155.8 MB / 0.948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009559/8.742, allocations: 256.2 kB / 3.983 GB, free: 155.6 MB / 0.948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003843/8.743, allocations: 8.469 kB / 3.983 GB, free: 155.6 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001624/8.744, allocations: 121.7 kB / 3.983 GB, free: 155.6 MB / 0.948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001639/8.745, allocations: 45.03 kB / 3.984 GB, free: 155.6 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.427e-05/8.745, allocations: 21.56 kB / 3.984 GB, free: 155.6 MB / 0.948 GB Notification: Performance of sort global known variables: time 0.001169/8.746, allocations: 475.4 kB / 3.984 GB, free: 155.3 MB / 0.948 GB Notification: Performance of remove unused functions: time 0.003776/8.75, allocations: 0.6967 MB / 3.985 GB, free: 155.1 MB / 0.948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 14 * Number of states: 6 (spl.vol.dynBal.U,spl.vol.dynBal.m,spl.vol.dynBal.mXi[1],senTem1.T,senTem2.T,senTem3.T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (63): * Single equations (assignments): 63 * 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.005814/8.755, allocations: 2.599 MB / 3.987 GB, free: 154.2 MB / 0.948 GB Notification: Performance of simCode: created initialization part: time 0.002237/8.758, allocations: 0.9346 MB / 3.988 GB, free: 153.9 MB / 0.948 GB Notification: Performance of simCode: created event and clocks part: time 1.052e-05/8.758, allocations: 3.375 kB / 3.988 GB, free: 153.9 MB / 0.948 GB Notification: Performance of simCode: created simulation system equations: time 0.0006667/8.758, allocations: 327.8 kB / 3.988 GB, free: 153.8 MB / 0.948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004062/8.762, allocations: 0.5841 MB / 3.989 GB, free: 153.7 MB / 0.948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00566/8.768, allocations: 1.73 MB / 3.991 GB, free: 153 MB / 0.948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001795/8.77, allocations: 1.244 MB / 3.992 GB, free: 152.3 MB / 0.948 GB Notification: Performance of SimCode: time 1.553e-06/8.77, allocations: 0 / 3.992 GB, free: 152.3 MB / 0.948 GB Notification: Performance of Templates: time 0.06903/8.839, allocations: 35.13 MB / 4.026 GB, free: 137 MB / 0.948 GB make -j1 -f Buildings_maint.8.0.x_Buildings.Fluid.FixedResistances.Examples.FlowJunction.makefile (rm -f Buildings_maint.8.0.x_Buildings.Fluid.FixedResistances.Examples.FlowJunction.pipe ; mkfifo Buildings_maint.8.0.x_Buildings.Fluid.FixedResistances.Examples.FlowJunction.pipe ; head -c 1048576 < Buildings_maint.8.0.x_Buildings.Fluid.FixedResistances.Examples.FlowJunction.pipe >> ../files/Buildings_maint.8.0.x_Buildings.Fluid.FixedResistances.Examples.FlowJunction.sim & ./Buildings_maint.8.0.x_Buildings.Fluid.FixedResistances.Examples.FlowJunction -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.8.0.x_Buildings.Fluid.FixedResistances.Examples.FlowJunction.pipe 2>&1)