Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Fluid.Examples.FlowSystem.Simplified3.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.Examples.FlowSystem.Simplified3,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_7.0.0_Buildings.Fluid.Examples.FlowSystem.Simplified3") [: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.218/2.218, allocations: 253.1 MB / 260.4 MB, free: 7.492 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.001561/0.001561, allocations: 185.2 kB / 319.6 MB, free: 3.301 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 2.022/2.022, 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.001261/0.00126, allocations: 93.88 kB / 0.6746 GB, free: 4.395 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 9.026e-06/9.167e-06, allocations: 4 kB / 0.7843 GB, free: 102 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2119/0.2119, allocations: 106.3 MB / 0.888 GB, free: 11.7 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.48/1.692, allocations: 456.7 MB / 1.334 GB, free: 245.4 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000358/1.693, allocations: 92.81 kB / 1.334 GB, free: 245.4 MB / 0.8698 GB Notification: Performance of FrontEnd: time 47.02/48.71, allocations: 9.229 GB / 10.56 GB, free: 69.1 MB / 1.135 GB Notification: Performance of Transformations before backend: time 0.005259/48.72, allocations: 0.5134 MB / 10.56 GB, free: 68.97 MB / 1.135 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2061 * Number of variables: 2061 Notification: Performance of Generate backend data structure: time 0.07953/48.8, allocations: 15.04 MB / 10.58 GB, free: 62.53 MB / 1.135 GB Notification: Performance of prepare preOptimizeDAE: time 4.847e-05/48.8, allocations: 10.09 kB / 10.58 GB, free: 62.53 MB / 1.135 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02108/48.82, allocations: 2.347 MB / 10.58 GB, free: 61.5 MB / 1.135 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.1437/48.96, allocations: 26.89 MB / 10.61 GB, free: 57.94 MB / 1.135 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007852/48.96, allocations: 264.8 kB / 10.61 GB, free: 57.94 MB / 1.135 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.006832/48.97, allocations: 0.5783 MB / 10.61 GB, free: 57.94 MB / 1.135 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.06008/49.03, allocations: 19.9 MB / 10.63 GB, free: 57.89 MB / 1.135 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06504/49.1, allocations: 15.51 MB / 10.64 GB, free: 50.04 MB / 1.135 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007567/49.1, allocations: 11.94 kB / 10.64 GB, free: 50.02 MB / 1.135 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005305/49.1, allocations: 22.58 kB / 10.64 GB, free: 50 MB / 1.135 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002965/49.1, allocations: 220.6 kB / 10.64 GB, free: 49.79 MB / 1.135 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 1.047/50.15, allocations: 83.43 MB / 10.72 GB, free: 147.9 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02449/50.17, allocations: 10.07 MB / 10.73 GB, free: 147.8 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.02321/50.2, allocations: 9.684 MB / 10.74 GB, free: 147.7 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1182/50.32, allocations: 35.12 MB / 10.78 GB, free: 139.7 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.025/50.34, allocations: 8.964 MB / 10.79 GB, free: 139.5 MB / 1.151 GB Notification: Performance of pre-optimization done (n=563): time 1.145e-05/50.34, allocations: 0 / 10.79 GB, free: 139.5 MB / 1.151 GB Notification: Performance of matching and sorting (n=565): time 1.593/51.93, allocations: 149.3 MB / 10.93 GB, free: 130.8 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0008051/51.93, allocations: 2.501 MB / 10.94 GB, free: 127.8 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.04991/51.98, allocations: 14.19 MB / 10.95 GB, free: 127 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 0.004632/51.99, allocations: 42.48 kB / 10.95 GB, free: 127 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 0.01048/52, allocations: 4.094 MB / 10.95 GB, free: 125.6 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 0.008558/52.01, allocations: 1.931 MB / 10.95 GB, free: 124.6 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004203/52.01, allocations: 0 / 10.95 GB, free: 124.6 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 0.001275/52.01, allocations: 0.6737 MB / 10.96 GB, free: 124.3 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.02506/52.04, allocations: 8.614 MB / 10.96 GB, free: 124.2 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.03001/52.07, allocations: 12.08 MB / 10.98 GB, free: 120.3 MB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.03361/52.1, allocations: 10.11 MB / 10.99 GB, free: 120.1 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001353/52.1, allocations: 18.56 kB / 10.99 GB, free: 120.1 MB / 1.151 GB Notification: Performance of matching and sorting (n=1187) (initialization): time 1.407/53.51, allocations: 134.5 MB / 11.12 GB, free: 89.69 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 0.007447/53.52, allocations: 38.07 MB / 11.15 GB, free: 50.59 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0007107/53.52, allocations: 123.6 kB / 11.15 GB, free: 50.5 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.331/55.85, allocations: 160.9 MB / 11.31 GB, free: 137 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.03293/55.88, allocations: 2.089 MB / 11.31 GB, free: 137 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.422/56.3, allocations: 65.63 MB / 11.38 GB, free: 131.1 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.04804/56.35, allocations: 0.878 MB / 11.38 GB, free: 131.1 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.007531/56.36, allocations: 0.8324 MB / 11.38 GB, free: 131.1 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 1.894e-05/56.36, allocations: 5.156 kB / 11.38 GB, free: 131.1 MB / 1.151 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 1.611/57.97, allocations: 131.9 MB / 11.51 GB, free: 121.9 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0006694/57.97, allocations: 112 kB / 11.51 GB, free: 121.9 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.433/60.41, allocations: 161 MB / 11.67 GB, free: 141.5 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.02738/60.43, allocations: 2.059 MB / 11.67 GB, free: 141.5 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3407/60.77, allocations: 67.3 MB / 11.73 GB, free: 138.6 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.03185/60.81, allocations: 0.8413 MB / 11.73 GB, free: 138.5 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.005289/60.81, allocations: 0.7972 MB / 11.73 GB, free: 138.5 MB / 1.151 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 241 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition1,$whenCondition2,booleanToInteger.u,booleanToInteger.y,$PRE.stepPump.pulseStart,stepPump.pulseStart,$PRE.stepValve.T_start,stepValve.T_start,$PRE.stepValve.count,stepValve.count) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (947): * Single equations (assignments): 871 * Array equations: 36 * Algorithm blocks: 1 * Record equations: 32 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 5 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 5 {1,1,1,1,1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(28,89.3%) 28} * Non-linear torn systems: 1 {5 80} Notification: Performance of prepare postOptimizeDAE: time 0.008129/60.82, allocations: 353.1 kB / 11.73 GB, free: 138.4 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.008335/60.83, allocations: 1.466 MB / 11.74 GB, free: 138.4 MB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.4446/61.27, allocations: 57.35 MB / 11.79 GB, free: 130.9 MB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001837/61.27, allocations: 68.73 kB / 11.79 GB, free: 130.9 MB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.893e-05/61.27, allocations: 30.66 kB / 11.79 GB, free: 130.9 MB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.3847/61.66, allocations: 51.3 MB / 11.84 GB, free: 123.8 MB / 1.151 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.4846/62.14, allocations: 69.79 MB / 11.91 GB, free: 113.8 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001016/62.14, allocations: 8.062 kB / 11.91 GB, free: 113.8 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0132/62.16, allocations: 1.079 MB / 11.91 GB, free: 113.8 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.4242/62.58, allocations: 66.51 MB / 11.98 GB, free: 82.11 MB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002577/62.58, allocations: 162.4 kB / 11.98 GB, free: 82.03 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1057/62.69, allocations: 24.67 MB / 12 GB, free: 66.21 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.203e-05/62.69, allocations: 7.75 kB / 12 GB, free: 66.2 MB / 1.151 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 1.268/63.96, allocations: 62.11 MB / 12.06 GB, free: 137.4 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 0.01531/63.97, allocations: 3.123 MB / 12.06 GB, free: 137.3 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.008135/63.98, allocations: 94.52 kB / 12.06 GB, free: 137.3 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.02331/64, allocations: 0.6881 MB / 12.07 GB, free: 137.3 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002899/64.01, allocations: 354.7 kB / 12.07 GB, free: 137.3 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001638/64.01, allocations: 244.2 kB / 12.07 GB, free: 137.3 MB / 1.151 GB Notification: Performance of sort global known variables: time 0.03288/64.04, allocations: 10.65 MB / 12.08 GB, free: 136.9 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.06946/64.11, allocations: 7.649 MB / 12.08 GB, free: 136.9 MB / 1.151 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 74 (pmpSouth.vol.dynBal.U,pmpSouth.filter.x[1],pmpSouth.filter.x[2],pmpNorth.vol.dynBal.U,pmpNorth.filter.x[1],pmpNorth.filter.x[2],valSouth1[1].filter.x[1],valSouth1[1].filter.x[2],valSouth1[2].filter.x[1],valSouth1[2].filter.x[2],valSouth1[3].filter.x[1],valSouth1[3].filter.x[2],valSouth1[4].filter.x[1],valSouth1[4].filter.x[2],valSouth2[1].filter.x[1],valSouth2[1].filter.x[2],valSouth2[2].filter.x[1],valSouth2[2].filter.x[2],valSouth2[3].filter.x[1],valSouth2[3].filter.x[2],valSouth2[4].filter.x[1],valSouth2[4].filter.x[2],valSouth2[5].filter.x[1],valSouth2[5].filter.x[2],valSouth2[6].filter.x[1],valSouth2[6].filter.x[2],valSouth2[7].filter.x[1],valSouth2[7].filter.x[2],valSouth2[8].filter.x[1],valSouth2[8].filter.x[2],valNorth1[1].filter.x[1],valNorth1[1].filter.x[2],valNorth1[2].filter.x[1],valNorth1[2].filter.x[2],valNorth1[3].filter.x[1],valNorth1[3].filter.x[2],valNorth1[4].filter.x[1],valNorth1[4].filter.x[2],valNorth2[1].filter.x[1],valNorth2[1].filter.x[2],valNorth2[2].filter.x[1],valNorth2[2].filter.x[2],valNorth2[3].filter.x[1],valNorth2[3].filter.x[2],valNorth2[4].filter.x[1],valNorth2[4].filter.x[2],valNorth2[5].filter.x[1],valNorth2[5].filter.x[2],valNorth2[6].filter.x[1],valNorth2[6].filter.x[2],valNorth2[7].filter.x[1],valNorth2[7].filter.x[2],valNorth2[8].filter.x[1],valNorth2[8].filter.x[2],valSouth.vol.dynBal.U,valSouth.filter.x[1],valSouth.filter.x[2],valNorth.vol.dynBal.U,valNorth.filter.x[1],valNorth.filter.x[2],spl.vol.dynBal.U,spl1.vol.dynBal.U,pumpHea.vol.dynBal.U,pumpHea.filter.x[1],pumpHea.filter.x[2],valHea.filter.x[1],valHea.filter.x[2],valCoo.filter.x[1],valCoo.filter.x[2],spl2.vol.dynBal.U,spl3.vol.dynBal.U,pumpCoo.vol.dynBal.U,pumpCoo.filter.x[1],pumpCoo.filter.x[2]) * Number of discrete variables: 7 ($whenCondition2,$whenCondition1,booleanToInteger.u,booleanToInteger.y,stepPump.pulseStart,stepValve.T_start,stepValve.count) * Number of discrete states: 1 (stepValve.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (522): * Single equations (assignments): 502 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 10 * When equations: 3 * If-equations: 0 * Equation systems (linear and non-linear blocks): 5 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 5 {1,1,1,1,1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(28,89.3%) 28} * Non-linear torn systems: 1 {5 80} Notification: Performance of Backend phase and start with SimCode phase: time 0.01471/64.12, allocations: 5.288 MB / 12.09 GB, free: 135 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.1203/64.24, allocations: 35.14 MB / 12.12 GB, free: 132.3 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 2.441e-05/64.24, allocations: 11.22 kB / 12.12 GB, free: 132.3 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 0.02918/64.27, allocations: 8.482 MB / 12.13 GB, free: 132.1 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.06711/64.34, allocations: 7.122 MB / 12.14 GB, free: 132 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1165/64.46, allocations: 27.24 MB / 12.17 GB, free: 126.9 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.02928/64.49, allocations: 10.07 MB / 12.18 GB, free: 125.8 MB / 1.151 GB Notification: Performance of SimCode: time 1.272e-06/64.49, allocations: 2 kB / 12.18 GB, free: 125.8 MB / 1.151 GB Notification: Performance of Templates: time 2.622/67.11, allocations: 468.7 MB / 12.63 GB, free: 131.5 MB / 1.151 GB