Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Fluid.Examples.FlowSystem.Basic.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.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 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: translateModel(Buildings.Fluid.Examples.FlowSystem.Basic,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pmpNorth.m_flow|pmpSouth.m_flow",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Fluid.Examples.FlowSystem.Basic") translateModel(Buildings.Fluid.Examples.FlowSystem.Basic,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pmpNorth.m_flow|pmpSouth.m_flow",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Fluid.Examples.FlowSystem.Basic") [: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.3-maint.7.0.x/package.mo): time 1.207/1.207, allocations: 249.4 MB / 256.7 MB, free: 6.996 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009895/0.0009895, allocations: 187.6 kB / 316 MB, free: 3.578 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.073/1.073, allocations: 205.1 MB / 0.5667 GB, free: 15.65 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.0008342/0.0008342, allocations: 89.69 kB / 0.671 GB, free: 4.777 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 6.001e-06/6.012e-06, allocations: 0 / 0.7807 GB, free: 103.1 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1571/0.1572, allocations: 106.3 MB / 0.8845 GB, free: 12.69 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9258/1.083, allocations: 456.5 MB / 1.33 GB, free: 290.8 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001833/1.083, allocations: 91.95 kB / 1.33 GB, free: 290.7 MB / 0.8698 GB Notification: Performance of FrontEnd: time 16.99/18.08, allocations: 6.244 GB / 7.574 GB, free: 7.59 MB / 1.12 GB Notification: Performance of Transformations before backend: time 0.002788/18.08, allocations: 0.5265 MB / 7.575 GB, free: 7.062 MB / 1.12 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.04537/18.13, allocations: 15.05 MB / 7.589 GB, free: 7.883 MB / 1.135 GB Notification: Performance of prepare preOptimizeDAE: time 4.034e-05/18.13, allocations: 8.031 kB / 7.589 GB, free: 7.875 MB / 1.135 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01368/18.14, allocations: 2.351 MB / 7.592 GB, free: 5.5 MB / 1.135 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.5131/18.65, allocations: 26.97 MB / 7.618 GB, free: 133.6 MB / 1.135 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003182/18.65, allocations: 259.4 kB / 7.618 GB, free: 133.6 MB / 1.135 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003138/18.66, allocations: 0.5929 MB / 7.619 GB, free: 133.6 MB / 1.135 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02439/18.68, allocations: 20.18 MB / 7.638 GB, free: 133.6 MB / 1.135 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02235/18.7, allocations: 15.69 MB / 7.654 GB, free: 131.8 MB / 1.135 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001686/18.7, allocations: 26.67 kB / 7.654 GB, free: 131.8 MB / 1.135 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001281/18.7, allocations: 13.22 kB / 7.654 GB, free: 131.8 MB / 1.135 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001316/18.7, allocations: 217.1 kB / 7.654 GB, free: 131.8 MB / 1.135 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1042/18.81, allocations: 82.25 MB / 7.734 GB, free: 99.17 MB / 1.135 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0125/18.82, allocations: 10.79 MB / 7.745 GB, free: 99.04 MB / 1.135 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01044/18.83, allocations: 9.912 MB / 7.754 GB, free: 98.93 MB / 1.135 GB Notification: Performance of preOpt evalFunc (simulation): time 0.05596/18.89, allocations: 35.93 MB / 7.79 GB, free: 90.43 MB / 1.135 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00989/18.9, allocations: 9.28 MB / 7.799 GB, free: 90.27 MB / 1.135 GB Notification: Performance of pre-optimization done (n=608): time 7.805e-06/18.9, allocations: 2.25 kB / 7.799 GB, free: 90.27 MB / 1.135 GB Notification: Performance of matching and sorting (n=610): time 0.6168/19.51, allocations: 151.3 MB / 7.946 GB, free: 78.59 MB / 1.135 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0004278/19.51, allocations: 2.51 MB / 7.949 GB, free: 75.58 MB / 1.135 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02009/19.53, allocations: 14.14 MB / 7.963 GB, free: 74.75 MB / 1.135 GB Notification: Performance of collectPreVariables (initialization): time 0.003/19.54, allocations: 50.69 kB / 7.963 GB, free: 74.72 MB / 1.135 GB Notification: Performance of collectInitialEqns (initialization): time 0.004357/19.54, allocations: 4.05 MB / 7.967 GB, free: 72.86 MB / 1.135 GB Notification: Performance of collectInitialBindings (initialization): time 0.005024/19.55, allocations: 2.083 MB / 7.969 GB, free: 71.47 MB / 1.135 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001238/19.55, allocations: 0 / 7.969 GB, free: 71.47 MB / 1.135 GB Notification: Performance of setup shared object (initialization): time 0.000394/19.55, allocations: 0.6795 MB / 7.969 GB, free: 71.14 MB / 1.135 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01023/19.56, allocations: 8.832 MB / 7.978 GB, free: 71.12 MB / 1.135 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01299/19.57, allocations: 12.35 MB / 7.99 GB, free: 67.14 MB / 1.135 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01552/19.59, allocations: 10.35 MB / 8 GB, free: 66.38 MB / 1.135 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.587e-05/19.59, allocations: 14.41 kB / 8 GB, free: 66.38 MB / 1.135 GB Notification: Performance of matching and sorting (n=1198) (initialization): time 1.038/20.63, allocations: 135.8 MB / 8.133 GB, free: 118.5 MB / 1.135 GB Notification: Performance of prepare postOptimizeDAE: time 0.004798/20.63, allocations: 32.77 MB / 8.165 GB, free: 100.4 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003543/20.63, allocations: 114.4 kB / 8.165 GB, free: 100.4 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.6458/21.28, allocations: 162.4 MB / 8.323 GB, free: 86.74 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01165/21.29, allocations: 1.996 MB / 8.325 GB, free: 86.73 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.126/21.41, allocations: 69.03 MB / 8.393 GB, free: 79.66 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01719/21.43, allocations: 0.8546 MB / 8.394 GB, free: 79.6 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002953/21.44, allocations: 0.8317 MB / 8.394 GB, free: 79.6 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 1.088e-05/21.44, allocations: 8.219 kB / 8.394 GB, free: 79.6 MB / 1.151 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.5794/22.01, allocations: 132.6 MB / 8.524 GB, free: 30.79 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004116/22.01, allocations: 115.2 kB / 8.524 GB, free: 30.68 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.132/23.15, allocations: 162.2 MB / 8.682 GB, free: 122.6 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009571/23.16, allocations: 1.958 MB / 8.684 GB, free: 122.5 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1348/23.29, allocations: 72.47 MB / 8.755 GB, free: 118.7 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01698/23.31, allocations: 0.8408 MB / 8.756 GB, free: 118.6 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002936/23.31, allocations: 0.7856 MB / 8.757 GB, free: 118.6 MB / 1.151 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 207 * 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 (891): * Single equations (assignments): 813 * Array equations: 36 * Algorithm blocks: 1 * Record equations: 32 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 7 * 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: 7 {1,1,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 {33 119} Notification: Performance of prepare postOptimizeDAE: time 0.003024/23.31, allocations: 346.3 kB / 8.757 GB, free: 118.5 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003873/23.32, allocations: 1.475 MB / 8.759 GB, free: 118.5 MB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.1848/23.5, allocations: 58.63 MB / 8.816 GB, free: 111 MB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001395/23.5, allocations: 74.72 kB / 8.816 GB, free: 111 MB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.644e-05/23.5, allocations: 27.31 kB / 8.816 GB, free: 111 MB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.1732/23.68, allocations: 52.44 MB / 8.867 GB, free: 103.8 MB / 1.151 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2082/23.88, allocations: 72.27 MB / 8.938 GB, free: 72.96 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.289e-05/23.88, allocations: 4 kB / 8.938 GB, free: 72.96 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006401/23.89, allocations: 1.049 MB / 8.939 GB, free: 72.16 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.6954/24.59, allocations: 71.35 MB / 9.008 GB, free: 133 MB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00179/24.59, allocations: 166.2 kB / 9.009 GB, free: 133 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04976/24.64, allocations: 27.78 MB / 9.036 GB, free: 127.2 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.44e-06/24.64, allocations: 0 / 9.036 GB, free: 127.2 MB / 1.151 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.1826/24.82, allocations: 63.46 MB / 9.098 GB, free: 121.4 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 0.009614/24.83, allocations: 3.206 MB / 9.101 GB, free: 121.3 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.004024/24.83, allocations: 85.88 kB / 9.101 GB, free: 121.3 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.009643/24.84, allocations: 0.7512 MB / 9.102 GB, free: 121.2 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009767/24.85, allocations: 386.6 kB / 9.102 GB, free: 121.2 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007339/24.85, allocations: 259.7 kB / 9.102 GB, free: 121.2 MB / 1.151 GB Notification: Performance of sort global known variables: time 0.01421/24.86, allocations: 10.63 MB / 9.113 GB, free: 120.8 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.02936/24.89, allocations: 7.652 MB / 9.12 GB, free: 120.8 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 (506): * Single equations (assignments): 484 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 10 * When equations: 3 * If-equations: 0 * Equation systems (linear and non-linear blocks): 7 * 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: 7 {1,1,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 {33 119} Notification: Performance of Backend phase and start with SimCode phase: time 0.00692/24.9, allocations: 5.291 MB / 9.125 GB, free: 118.5 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.05922/24.96, allocations: 36.57 MB / 9.161 GB, free: 115.5 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 1.156e-05/24.96, allocations: 7.969 kB / 9.161 GB, free: 115.5 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 0.01425/24.97, allocations: 9.138 MB / 9.17 GB, free: 115.1 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0322/25, allocations: 7.281 MB / 9.177 GB, free: 114.8 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05358/25.06, allocations: 27.42 MB / 9.204 GB, free: 109.2 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01376/25.07, allocations: 10.08 MB / 9.214 GB, free: 107.9 MB / 1.151 GB Notification: Performance of SimCode: time 1.222e-06/25.07, allocations: 0 / 9.214 GB, free: 107.9 MB / 1.151 GB Notification: Performance of Templates: time 1.446/26.52, allocations: 480.2 MB / 9.683 GB, free: 128.3 MB / 1.151 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Fluid.Examples.FlowSystem.Basic.makefile (rm -f Buildings_maint.7.0.x_Buildings.Fluid.Examples.FlowSystem.Basic.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Fluid.Examples.FlowSystem.Basic.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Fluid.Examples.FlowSystem.Basic.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Fluid.Examples.FlowSystem.Basic.sim & ./Buildings_maint.7.0.x_Buildings.Fluid.Examples.FlowSystem.Basic -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Fluid.Examples.FlowSystem.Basic.pipe 2>&1)