Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.Examples.FlowSystem.Simplified3.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Running command: translateModel(BuildingSystems.Fluid.Examples.FlowSystem.Simplified3,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Examples.FlowSystem.Simplified3") translateModel(BuildingSystems.Fluid.Examples.FlowSystem.Simplified3,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.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(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.7636/0.7636, allocations: 141.8 MB / 149.1 MB, free: 3.441 MB / 122.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001212/0.001213, allocations: 178.5 kB / 181.9 MB, free: 15.27 MB / 154.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.393/1.393, allocations: 221.3 MB / 436 MB, free: 8.375 MB / 330.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009909/0.0009903, allocations: 98.69 kB / 0.507 GB, free: 24.33 MB / 394.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001891/0.001892, allocations: 288 kB / 0.5884 GB, free: 11.47 MB / 442.9 MB Notification: Performance of FrontEnd - loaded program: time 8.256e-06/8.286e-06, allocations: 3.938 kB / 0.6759 GB, free: 1.848 MB / 0.5107 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5073/0.5074, allocations: 82.75 MB / 0.7567 GB, free: 112 MB / 0.5263 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8091/1.316, allocations: 421.2 MB / 1.168 GB, free: 5.805 MB / 0.6982 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000254/1.317, allocations: 95.55 kB / 1.168 GB, free: 5.758 MB / 0.6982 GB Notification: Performance of FrontEnd: time 39.39/40.71, allocations: 9.557 GB / 10.73 GB, free: 25.52 MB / 0.995 GB Notification: Performance of Transformations before backend: time 0.004877/40.71, allocations: 415.6 kB / 10.73 GB, free: 25.11 MB / 0.995 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2029 * Number of variables: 2029 Notification: Performance of Generate backend data structure: time 0.06132/40.78, allocations: 14.36 MB / 10.74 GB, free: 10.64 MB / 0.995 GB Notification: Performance of prepare preOptimizeDAE: time 4.59e-05/40.78, allocations: 9.688 kB / 10.74 GB, free: 10.64 MB / 0.995 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01679/40.79, allocations: 2.231 MB / 10.74 GB, free: 8.383 MB / 0.995 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.8081/41.6, allocations: 25.03 MB / 10.77 GB, free: 80.98 MB / 0.995 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000616/41.6, allocations: 253.6 kB / 10.77 GB, free: 80.98 MB / 0.995 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005969/41.61, allocations: 0.583 MB / 10.77 GB, free: 80.97 MB / 0.995 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.03957/41.65, allocations: 19.87 MB / 10.79 GB, free: 80.94 MB / 0.995 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04015/41.69, allocations: 14.58 MB / 10.8 GB, free: 80.17 MB / 0.995 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004213/41.69, allocations: 13.03 kB / 10.8 GB, free: 80.17 MB / 0.995 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004118/41.69, allocations: 9.406 kB / 10.8 GB, free: 80.17 MB / 0.995 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003235/41.69, allocations: 387.8 kB / 10.8 GB, free: 80.15 MB / 0.995 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1652/41.86, allocations: 83.9 MB / 10.88 GB, free: 45.59 MB / 0.995 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0179/41.87, allocations: 10.41 MB / 10.89 GB, free: 45.44 MB / 0.995 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01576/41.89, allocations: 9.87 MB / 10.9 GB, free: 45.34 MB / 0.995 GB Notification: Performance of preOpt evalFunc (simulation): time 0.08295/41.97, allocations: 35.99 MB / 10.94 GB, free: 36.82 MB / 0.995 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.01843/41.99, allocations: 9.177 MB / 10.95 GB, free: 36.66 MB / 0.995 GB Notification: Performance of pre-optimization done (n=595): time 1.095e-05/41.99, allocations: 0 / 10.95 GB, free: 36.66 MB / 0.995 GB Notification: Performance of matching and sorting (n=597): time 0.6942/42.69, allocations: 149.8 MB / 11.09 GB, free: 24.86 MB / 0.995 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.742e-05/42.69, allocations: 118 kB / 11.09 GB, free: 24.78 MB / 0.995 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0377/42.72, allocations: 13.64 MB / 11.11 GB, free: 23.99 MB / 0.995 GB Notification: Performance of collectPreVariables (initialization): time 0.00452/42.73, allocations: 42.02 kB / 11.11 GB, free: 23.96 MB / 0.995 GB Notification: Performance of collectInitialEqns (initialization): time 0.00994/42.74, allocations: 3.703 MB / 11.11 GB, free: 22.33 MB / 0.995 GB Notification: Performance of collectInitialBindings (initialization): time 0.0128/42.75, allocations: 2.042 MB / 11.11 GB, free: 20.98 MB / 0.995 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003795/42.76, allocations: 0 / 11.11 GB, free: 20.98 MB / 0.995 GB Notification: Performance of setup shared object (initialization): time 0.001025/42.76, allocations: 0.6443 MB / 11.11 GB, free: 20.65 MB / 0.995 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01499/42.77, allocations: 8.231 MB / 11.12 GB, free: 20.62 MB / 0.995 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01859/42.79, allocations: 10.99 MB / 11.13 GB, free: 17.4 MB / 0.995 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02121/42.81, allocations: 9.612 MB / 11.14 GB, free: 16.36 MB / 0.995 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002107/42.81, allocations: 16 kB / 11.14 GB, free: 16.34 MB / 0.995 GB Notification: Performance of matching and sorting (n=1091) (initialization): time 1.312/44.12, allocations: 133.8 MB / 11.27 GB, free: 65.02 MB / 0.995 GB Notification: Performance of prepare postOptimizeDAE: time 0.00969/44.13, allocations: 36.61 MB / 11.31 GB, free: 42.52 MB / 1.011 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003204/44.13, allocations: 54.66 kB / 11.31 GB, free: 42.52 MB / 1.011 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.6729/44.81, allocations: 160.9 MB / 11.46 GB, free: 27.05 MB / 1.011 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01554/44.82, allocations: 2.506 MB / 11.47 GB, free: 27.04 MB / 1.011 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1491/44.97, allocations: 65.66 MB / 11.53 GB, free: 32.33 MB / 1.026 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02534/45, allocations: 0.9247 MB / 11.53 GB, free: 31.75 MB / 1.026 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.005485/45, allocations: 0.8003 MB / 11.53 GB, free: 31.27 MB / 1.026 GB Notification: Performance of prepare postOptimizeDAE: time 1.233e-05/45, allocations: 8 kB / 11.53 GB, free: 31.27 MB / 1.026 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 1.341/46.34, allocations: 130.9 MB / 11.66 GB, free: 94.32 MB / 1.026 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002571/46.34, allocations: 52.03 kB / 11.66 GB, free: 94.32 MB / 1.026 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.6669/47.01, allocations: 161 MB / 11.82 GB, free: 78.84 MB / 1.026 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01375/47.02, allocations: 2.483 MB / 11.82 GB, free: 78.83 MB / 1.026 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1496/47.17, allocations: 67.31 MB / 11.89 GB, free: 75.03 MB / 1.026 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02222/47.2, allocations: 0.8971 MB / 11.89 GB, free: 74.98 MB / 1.026 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.004145/47.2, allocations: 0.7526 MB / 11.89 GB, free: 74.98 MB / 1.026 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 (915): * Single equations (assignments): 903 * Array equations: 4 * Algorithm blocks: 1 * Record equations: 0 * 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.004467/47.2, allocations: 316.4 kB / 11.89 GB, free: 74.87 MB / 1.026 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.005791/47.21, allocations: 1.389 MB / 11.89 GB, free: 74.87 MB / 1.026 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.207/47.42, allocations: 57.73 MB / 11.95 GB, free: 44.02 MB / 1.026 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001967/47.42, allocations: 68 kB / 11.95 GB, free: 43.95 MB / 1.026 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.026e-05/47.42, allocations: 28 kB / 11.95 GB, free: 43.92 MB / 1.026 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.8972/48.31, allocations: 52.87 MB / 12 GB, free: 91.84 MB / 1.026 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2363/48.55, allocations: 70.61 MB / 12.07 GB, free: 81.96 MB / 1.026 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.498e-05/48.55, allocations: 0 / 12.07 GB, free: 81.96 MB / 1.026 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007776/48.56, allocations: 1.133 MB / 12.07 GB, free: 81.95 MB / 1.026 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.2116/48.77, allocations: 66.51 MB / 12.13 GB, free: 68.66 MB / 1.026 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00267/48.77, allocations: 160.6 kB / 12.13 GB, free: 68.66 MB / 1.026 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.05855/48.83, allocations: 24.68 MB / 12.16 GB, free: 63.23 MB / 1.026 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.662e-06/48.83, allocations: 0 / 12.16 GB, free: 63.23 MB / 1.026 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.2187/49.05, allocations: 62.36 MB / 12.22 GB, free: 55.58 MB / 1.026 GB Notification: Performance of postOpt removeConstants (simulation): time 0.01603/49.07, allocations: 3.23 MB / 12.22 GB, free: 55.3 MB / 1.026 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.009684/49.08, allocations: 80.77 kB / 12.22 GB, free: 55.3 MB / 1.026 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.02086/49.1, allocations: 0.7217 MB / 12.22 GB, free: 55.22 MB / 1.026 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00305/49.1, allocations: 376.5 kB / 12.22 GB, free: 55.21 MB / 1.026 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00273/49.1, allocations: 262.8 kB / 12.22 GB, free: 55.21 MB / 1.026 GB Notification: Performance of sort global known variables: time 0.02661/49.13, allocations: 10.25 MB / 12.23 GB, free: 54.77 MB / 1.026 GB Notification: Performance of remove unused functions: time 0.05968/49.19, allocations: 7.674 MB / 12.24 GB, free: 54.77 MB / 1.026 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.s[1],pmpSouth.filter.s[2],pmpNorth.vol.dynBal.U,pmpNorth.filter.s[1],pmpNorth.filter.s[2],valSouth1[1].filter.s[1],valSouth1[1].filter.s[2],valSouth1[2].filter.s[1],valSouth1[2].filter.s[2],valSouth1[3].filter.s[1],valSouth1[3].filter.s[2],valSouth1[4].filter.s[1],valSouth1[4].filter.s[2],valSouth2[1].filter.s[1],valSouth2[1].filter.s[2],valSouth2[2].filter.s[1],valSouth2[2].filter.s[2],valSouth2[3].filter.s[1],valSouth2[3].filter.s[2],valSouth2[4].filter.s[1],valSouth2[4].filter.s[2],valSouth2[5].filter.s[1],valSouth2[5].filter.s[2],valSouth2[6].filter.s[1],valSouth2[6].filter.s[2],valSouth2[7].filter.s[1],valSouth2[7].filter.s[2],valSouth2[8].filter.s[1],valSouth2[8].filter.s[2],valNorth1[1].filter.s[1],valNorth1[1].filter.s[2],valNorth1[2].filter.s[1],valNorth1[2].filter.s[2],valNorth1[3].filter.s[1],valNorth1[3].filter.s[2],valNorth1[4].filter.s[1],valNorth1[4].filter.s[2],valNorth2[1].filter.s[1],valNorth2[1].filter.s[2],valNorth2[2].filter.s[1],valNorth2[2].filter.s[2],valNorth2[3].filter.s[1],valNorth2[3].filter.s[2],valNorth2[4].filter.s[1],valNorth2[4].filter.s[2],valNorth2[5].filter.s[1],valNorth2[5].filter.s[2],valNorth2[6].filter.s[1],valNorth2[6].filter.s[2],valNorth2[7].filter.s[1],valNorth2[7].filter.s[2],valNorth2[8].filter.s[1],valNorth2[8].filter.s[2],valSouth.vol.dynBal.U,valSouth.filter.s[1],valSouth.filter.s[2],valNorth.vol.dynBal.U,valNorth.filter.s[1],valNorth.filter.s[2],spl.vol.dynBal.U,spl1.vol.dynBal.U,pumpHea.vol.dynBal.U,pumpHea.filter.s[1],pumpHea.filter.s[2],valHea.filter.s[1],valHea.filter.s[2],valCoo.filter.s[1],valCoo.filter.s[2],spl2.vol.dynBal.U,spl3.vol.dynBal.U,pumpCoo.vol.dynBal.U,pumpCoo.filter.s[1],pumpCoo.filter.s[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 (554): * Single equations (assignments): 534 * 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.01271/49.2, allocations: 5.245 MB / 12.24 GB, free: 52.48 MB / 1.026 GB Notification: Performance of simCode: created initialization part: time 0.07822/49.28, allocations: 32.47 MB / 12.28 GB, free: 51.51 MB / 1.026 GB Notification: Performance of simCode: created event and clocks part: time 1.74e-05/49.28, allocations: 3.938 kB / 12.28 GB, free: 51.51 MB / 1.026 GB Notification: Performance of simCode: created simulation system equations: time 0.02031/49.3, allocations: 8.678 MB / 12.28 GB, free: 49.89 MB / 1.026 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0426/49.34, allocations: 6.706 MB / 12.29 GB, free: 46.12 MB / 1.026 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.8461/50.19, allocations: 27.37 MB / 12.32 GB, free: 92.2 MB / 1.026 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0204/50.21, allocations: 9.605 MB / 12.33 GB, free: 91.17 MB / 1.026 GB Notification: Performance of SimCode: time 1.243e-06/50.21, allocations: 0 / 12.33 GB, free: 91.17 MB / 1.026 GB Notification: Performance of Templates: time 1.343/51.55, allocations: 455.2 MB / 12.77 GB, free: 74.01 MB / 1.026 GB make -j1 -f BuildingSystems_BuildingSystems.Fluid.Examples.FlowSystem.Simplified3.makefile (rm -f BuildingSystems_BuildingSystems.Fluid.Examples.FlowSystem.Simplified3.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Examples.FlowSystem.Simplified3.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Examples.FlowSystem.Simplified3.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Examples.FlowSystem.Simplified3.sim & ./BuildingSystems_BuildingSystems.Fluid.Examples.FlowSystem.Simplified3 -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.Examples.FlowSystem.Simplified3.pipe 2>&1)