Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.Examples.FlowSystem.Simplified4.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.Simplified4,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Examples.FlowSystem.Simplified4") translateModel(BuildingSystems.Fluid.Examples.FlowSystem.Simplified4,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Examples.FlowSystem.Simplified4") [: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.7459/0.7459, allocations: 141.8 MB / 149.1 MB, free: 12.63 MB / 138.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001215/0.001215, allocations: 175.7 kB / 181.9 MB, free: 9.352 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.41/1.41, allocations: 221.3 MB / 436 MB, free: 1.73 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.0009656/0.0009655, allocations: 96.28 kB / 0.507 GB, free: 17.66 MB / 378.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001909/0.001909, allocations: 277 kB / 0.5884 GB, free: 3.289 MB / 442.9 MB Notification: Performance of FrontEnd - loaded program: time 8.636e-06/8.857e-06, allocations: 2.031 kB / 0.6759 GB, free: 136 MB / 0.5107 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1916/0.1917, allocations: 82.78 MB / 0.7567 GB, free: 82.23 MB / 0.5107 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.226/1.418, allocations: 421.8 MB / 1.169 GB, free: 271.1 MB / 0.7138 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003222/1.418, allocations: 89.59 kB / 1.169 GB, free: 271.1 MB / 0.7138 GB Notification: Performance of FrontEnd: time 44.06/45.48, allocations: 10.53 GB / 11.7 GB, free: 65.75 MB / 0.9794 GB Notification: Performance of Transformations before backend: time 0.003966/45.48, allocations: 382.2 kB / 11.7 GB, free: 65.68 MB / 0.9794 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1775 * Number of variables: 1775 Notification: Performance of Generate backend data structure: time 0.05303/45.53, allocations: 13.1 MB / 11.71 GB, free: 60.32 MB / 0.9794 GB Notification: Performance of prepare preOptimizeDAE: time 4.53e-05/45.53, allocations: 12 kB / 11.71 GB, free: 60.32 MB / 0.9794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01665/45.55, allocations: 2.259 MB / 11.71 GB, free: 59.46 MB / 0.9794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.07373/45.62, allocations: 23.75 MB / 11.74 GB, free: 56.92 MB / 0.9794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006149/45.62, allocations: 226.2 kB / 11.74 GB, free: 56.92 MB / 0.9794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004632/45.63, allocations: 497.9 kB / 11.74 GB, free: 56.91 MB / 0.9794 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.03384/45.66, allocations: 18.59 MB / 11.76 GB, free: 56.88 MB / 0.9794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04089/45.7, allocations: 13.1 MB / 11.77 GB, free: 56.11 MB / 0.9794 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004917/45.7, allocations: 9.844 kB / 11.77 GB, free: 56.11 MB / 0.9794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003662/45.71, allocations: 10.94 kB / 11.77 GB, free: 56.11 MB / 0.9794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001942/45.71, allocations: 186 kB / 11.77 GB, free: 56.11 MB / 0.9794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1484/45.86, allocations: 78.49 MB / 11.85 GB, free: 20.46 MB / 0.9794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01409/45.87, allocations: 8.39 MB / 11.85 GB, free: 20.39 MB / 0.9794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01454/45.89, allocations: 8.904 MB / 11.86 GB, free: 20.28 MB / 0.9794 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0825/45.97, allocations: 32.7 MB / 11.89 GB, free: 9.914 MB / 0.9794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.01545/45.98, allocations: 8.06 MB / 11.9 GB, free: 7.031 MB / 0.9794 GB Notification: Performance of pre-optimization done (n=427): time 1.071e-05/45.98, allocations: 3.938 kB / 11.9 GB, free: 7.027 MB / 0.9794 GB Notification: Performance of matching and sorting (n=429): time 0.1226/46.11, allocations: 38.63 MB / 11.94 GB, free: 1.273 MB / 0.995 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.949e-05/46.11, allocations: 95.34 kB / 11.94 GB, free: 1.168 MB / 0.995 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.03796/46.14, allocations: 12.23 MB / 11.95 GB, free: 6.531 MB / 1.011 GB Notification: Performance of collectPreVariables (initialization): time 0.003797/46.15, allocations: 37.7 kB / 11.95 GB, free: 6.488 MB / 1.011 GB Notification: Performance of collectInitialEqns (initialization): time 0.008147/46.16, allocations: 3.464 MB / 11.96 GB, free: 3.578 MB / 1.011 GB Notification: Performance of collectInitialBindings (initialization): time 0.006391/46.16, allocations: 1.408 MB / 11.96 GB, free: 2.277 MB / 1.011 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003161/46.17, allocations: 0 / 11.96 GB, free: 2.277 MB / 1.011 GB Notification: Performance of setup shared object (initialization): time 0.0009962/46.17, allocations: 0.5612 MB / 11.96 GB, free: 1.785 MB / 1.011 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.7421/46.91, allocations: 7.213 MB / 11.96 GB, free: 136.2 MB / 1.011 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01301/46.92, allocations: 9.769 MB / 11.97 GB, free: 133.1 MB / 1.011 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0155/46.94, allocations: 8.321 MB / 11.98 GB, free: 133 MB / 1.011 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.914e-05/46.94, allocations: 13.62 kB / 11.98 GB, free: 133 MB / 1.011 GB Notification: Performance of matching and sorting (n=851) (initialization): time 0.04986/46.99, allocations: 23.62 MB / 12.01 GB, free: 132.8 MB / 1.011 GB Notification: Performance of prepare postOptimizeDAE: time 0.005791/46.99, allocations: 34.57 MB / 12.04 GB, free: 96.98 MB / 1.011 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001753/46.99, allocations: 59.2 kB / 12.04 GB, free: 96.98 MB / 1.011 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.6716/47.67, allocations: 161.3 MB / 12.2 GB, free: 83.92 MB / 1.011 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01031/47.68, allocations: 1.467 MB / 12.2 GB, free: 83.92 MB / 1.011 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04966/47.73, allocations: 24.84 MB / 12.22 GB, free: 79.77 MB / 1.011 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02308/47.75, allocations: 0.8327 MB / 12.22 GB, free: 79.71 MB / 1.011 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.004223/47.75, allocations: 0.7431 MB / 12.22 GB, free: 79.71 MB / 1.011 GB Notification: Performance of prepare postOptimizeDAE: time 1.359e-05/47.75, allocations: 5.406 kB / 12.22 GB, free: 79.71 MB / 1.011 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.5752/48.33, allocations: 112.6 MB / 12.33 GB, free: 38.48 MB / 1.011 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003074/48.33, allocations: 52 kB / 12.33 GB, free: 38.43 MB / 1.011 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.479/49.81, allocations: 161.3 MB / 12.49 GB, free: 122.5 MB / 1.011 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008238/49.82, allocations: 1.458 MB / 12.49 GB, free: 122.5 MB / 1.011 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.06201/49.88, allocations: 26.44 MB / 12.52 GB, free: 120.4 MB / 1.011 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02009/49.9, allocations: 0.7963 MB / 12.52 GB, free: 120.3 MB / 1.011 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00426/49.9, allocations: 0.7067 MB / 12.52 GB, free: 120.3 MB / 1.011 GB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: pmpSouth.vol.heaFloSen.Q_flow:VARIABLE(unit = "W" protected = true ) "Heat flow from port_a to port_b as output signal" type: Real pmpNorth.vol.heaFloSen.Q_flow:VARIABLE(unit = "W" protected = true ) "Heat flow from port_a to port_b as output signal" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 237 * 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 (661): * Single equations (assignments): 649 * 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: 0 * Non-linear torn systems: 2 {32 38,5 80} Notification: Performance of prepare postOptimizeDAE: time 0.00652/49.91, allocations: 303.9 kB / 12.52 GB, free: 120.2 MB / 1.011 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.006433/49.92, allocations: 1.23 MB / 12.52 GB, free: 120.2 MB / 1.011 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.05034/49.97, allocations: 18.35 MB / 12.54 GB, free: 119.4 MB / 1.011 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.281e-05/49.97, allocations: 50.09 kB / 12.54 GB, free: 119.4 MB / 1.011 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.745e-05/49.97, allocations: 3.375 kB / 12.54 GB, free: 119.4 MB / 1.011 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.02473/49.99, allocations: 12.52 MB / 12.55 GB, free: 119 MB / 1.011 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2241/50.21, allocations: 65.86 MB / 12.62 GB, free: 109.1 MB / 1.011 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.939e-05/50.21, allocations: 0 / 12.62 GB, free: 109.1 MB / 1.011 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005332/50.22, allocations: 0.798 MB / 12.62 GB, free: 109.1 MB / 1.011 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.2078/50.43, allocations: 66.87 MB / 12.68 GB, free: 76.24 MB / 1.011 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002009/50.43, allocations: 74.84 kB / 12.68 GB, free: 76.2 MB / 1.011 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02077/50.45, allocations: 12.74 MB / 12.7 GB, free: 67.5 MB / 1.011 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.378e-06/50.45, allocations: 4 kB / 12.7 GB, free: 67.5 MB / 1.011 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.8605/51.31, allocations: 58.56 MB / 12.75 GB, free: 130.2 MB / 1.011 GB Notification: Performance of postOpt removeConstants (simulation): time 0.01082/51.32, allocations: 2.722 MB / 12.75 GB, free: 130.1 MB / 1.011 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.005109/51.33, allocations: 11.39 kB / 12.76 GB, free: 130.1 MB / 1.011 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01338/51.34, allocations: 0.6469 MB / 12.76 GB, free: 130.1 MB / 1.011 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001421/51.34, allocations: 286.2 kB / 12.76 GB, free: 130.1 MB / 1.011 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0008941/51.34, allocations: 230.7 kB / 12.76 GB, free: 130.1 MB / 1.011 GB Notification: Performance of sort global known variables: time 0.02008/51.36, allocations: 9.159 MB / 12.77 GB, free: 129.7 MB / 1.011 GB Notification: Performance of remove unused functions: time 0.04451/51.41, allocations: 6.164 MB / 12.77 GB, free: 129.7 MB / 1.011 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 8 (valSouth.vol.dynBal.U,valNorth.vol.dynBal.U,spl.vol.dynBal.U,spl1.vol.dynBal.U,pumpHea.vol.dynBal.U,spl2.vol.dynBal.U,spl3.vol.dynBal.U,pumpCoo.vol.dynBal.U) * 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 (372): * Single equations (assignments): 352 * 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: 0 * Non-linear torn systems: 2 {32 38,5 80} Notification: Performance of Backend phase and start with SimCode phase: time 0.009032/51.42, allocations: 5.269 MB / 12.78 GB, free: 127.8 MB / 1.011 GB Notification: Performance of simCode: created initialization part: time 0.06055/51.48, allocations: 28.24 MB / 12.8 GB, free: 127.3 MB / 1.011 GB Notification: Performance of simCode: created event and clocks part: time 1.404e-05/51.48, allocations: 1.344 kB / 12.8 GB, free: 127.3 MB / 1.011 GB Notification: Performance of simCode: created simulation system equations: time 0.01564/51.49, allocations: 7.414 MB / 12.81 GB, free: 127.3 MB / 1.011 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.037/51.53, allocations: 6.29 MB / 12.82 GB, free: 127.2 MB / 1.011 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05754/51.59, allocations: 20.93 MB / 12.84 GB, free: 123.2 MB / 1.011 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01424/51.6, allocations: 8.425 MB / 12.85 GB, free: 122.2 MB / 1.011 GB Notification: Performance of SimCode: time 1.723e-06/51.6, allocations: 1.719 kB / 12.85 GB, free: 122.2 MB / 1.011 GB Notification: Performance of Templates: time 1.308/52.91, allocations: 426.7 MB / 13.26 GB, free: 109.5 MB / 1.011 GB make -j1 -f BuildingSystems_BuildingSystems.Fluid.Examples.FlowSystem.Simplified4.makefile (rm -f BuildingSystems_BuildingSystems.Fluid.Examples.FlowSystem.Simplified4.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Examples.FlowSystem.Simplified4.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Examples.FlowSystem.Simplified4.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Examples.FlowSystem.Simplified4.sim & ./BuildingSystems_BuildingSystems.Fluid.Examples.FlowSystem.Simplified4 -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.Examples.FlowSystem.Simplified4.pipe 2>&1)