Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildSysPro_BuildSysPro.IBPSA.Fluid.Examples.FlowSystem.Simplified4.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.0/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 BuildSysPro with version 3.4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.0/package.mo) Running command: translateModel(BuildSysPro.IBPSA.Fluid.Examples.FlowSystem.Simplified4,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildSysPro_BuildSysPro.IBPSA.Fluid.Examples.FlowSystem.Simplified4") translateModel(BuildSysPro.IBPSA.Fluid.Examples.FlowSystem.Simplified4,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildSysPro_BuildSysPro.IBPSA.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/BuildSysPro 3.5.0/package.mo): time 0.8204/0.8204, allocations: 127.3 MB / 134.6 MB, free: 4.078 MB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001197/0.001197, allocations: 181.3 kB / 164.4 MB, free: 6.895 MB / 138.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.805/1.805, allocations: 205.1 MB / 399.1 MB, free: 6.078 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009558/0.0009558, allocations: 91.27 kB / 476.3 MB, free: 8.832 MB / 378.7 MB Notification: Performance of FrontEnd - loaded program: time 1.025e-05/1.028e-05, allocations: 0 / 0.546 GB, free: 42.76 MB / 378.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1745/0.1745, allocations: 76.75 MB / 0.6209 GB, free: 13.93 MB / 426.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.067/1.241, allocations: 428.1 MB / 1.039 GB, free: 53.21 MB / 0.6198 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002479/1.242, allocations: 91.95 kB / 1.039 GB, free: 53.17 MB / 0.6198 GB Notification: Performance of FrontEnd: time 44.09/45.33, allocations: 9.944 GB / 10.98 GB, free: 59.62 MB / 0.9323 GB Notification: Performance of Transformations before backend: time 0.004116/45.33, allocations: 389.7 kB / 10.98 GB, free: 59.55 MB / 0.9323 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1743 * Number of variables: 1743 Notification: Performance of Generate backend data structure: time 0.06131/45.39, allocations: 12.96 MB / 11 GB, free: 54.43 MB / 0.9323 GB Notification: Performance of prepare preOptimizeDAE: time 4.828e-05/45.39, allocations: 9.281 kB / 11 GB, free: 54.43 MB / 0.9323 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01893/45.41, allocations: 2.428 MB / 11 GB, free: 53.58 MB / 0.9323 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.08897/45.5, allocations: 24.91 MB / 11.02 GB, free: 51.23 MB / 0.9323 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000843/45.5, allocations: 219.9 kB / 11.02 GB, free: 51.23 MB / 0.9323 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.006203/45.51, allocations: 486.3 kB / 11.02 GB, free: 51.23 MB / 0.9323 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.03895/45.55, allocations: 18.44 MB / 11.04 GB, free: 51.2 MB / 0.9323 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04534/45.59, allocations: 12.97 MB / 11.05 GB, free: 50.43 MB / 0.9323 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006863/45.59, allocations: 13.72 kB / 11.05 GB, free: 50.43 MB / 0.9323 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004621/45.6, allocations: 9.562 kB / 11.05 GB, free: 50.43 MB / 0.9323 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002872/45.6, allocations: 183.9 kB / 11.05 GB, free: 50.43 MB / 0.9323 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1626/45.76, allocations: 78.35 MB / 11.13 GB, free: 14.9 MB / 0.9323 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01502/45.78, allocations: 8.272 MB / 11.14 GB, free: 14.82 MB / 0.9323 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01824/45.79, allocations: 8.827 MB / 11.15 GB, free: 14.72 MB / 0.9323 GB Notification: Performance of preOpt evalFunc (simulation): time 0.07537/45.87, allocations: 30.5 MB / 11.18 GB, free: 5.812 MB / 0.9323 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0179/45.89, allocations: 8.034 MB / 11.19 GB, free: 5.703 MB / 0.9323 GB Notification: Performance of pre-optimization done (n=424): time 1.01e-05/45.89, allocations: 0 / 11.19 GB, free: 5.703 MB / 0.9323 GB Notification: Performance of matching and sorting (n=426): time 0.1696/46.06, allocations: 47.58 MB / 11.23 GB, free: 2.336 MB / 0.9323 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.417e-05/46.06, allocations: 98.12 kB / 11.23 GB, free: 2.27 MB / 0.9323 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.03178/46.09, allocations: 11.88 MB / 11.24 GB, free: 1.539 MB / 0.9323 GB Notification: Performance of collectPreVariables (initialization): time 0.003239/46.09, allocations: 40.17 kB / 11.24 GB, free: 1.508 MB / 0.9323 GB Notification: Performance of collectInitialEqns (initialization): time 0.006425/46.1, allocations: 3.437 MB / 11.25 GB, free: 15.33 MB / 0.948 GB Notification: Performance of collectInitialBindings (initialization): time 0.00549/46.1, allocations: 1.398 MB / 11.25 GB, free: 14.23 MB / 0.948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002927/46.11, allocations: 1.531 kB / 11.25 GB, free: 14.23 MB / 0.948 GB Notification: Performance of setup shared object (initialization): time 0.0007454/46.11, allocations: 0.5637 MB / 11.25 GB, free: 13.8 MB / 0.948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01684/46.12, allocations: 7.537 MB / 11.26 GB, free: 10.76 MB / 0.948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01813/46.14, allocations: 10.17 MB / 11.27 GB, free: 3.551 MB / 0.948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0331/46.18, allocations: 9.804 MB / 11.28 GB, free: 15.59 MB / 0.9636 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001248/46.18, allocations: 20 kB / 11.28 GB, free: 15.57 MB / 0.9636 GB Notification: Performance of matching and sorting (n=849) (initialization): time 0.9549/47.13, allocations: 31.45 MB / 11.31 GB, free: 122.1 MB / 0.9636 GB Notification: Performance of prepare postOptimizeDAE: time 0.009402/47.14, allocations: 35.97 MB / 11.34 GB, free: 85.12 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003104/47.14, allocations: 54.16 kB / 11.34 GB, free: 85.12 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.6891/47.83, allocations: 162.5 MB / 11.5 GB, free: 72.38 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01073/47.84, allocations: 1.496 MB / 11.5 GB, free: 72.37 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.06039/47.9, allocations: 27.22 MB / 11.53 GB, free: 68.21 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02381/47.92, allocations: 1.117 MB / 11.53 GB, free: 68.13 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.005253/47.93, allocations: 0.7594 MB / 11.53 GB, free: 68.13 MB / 0.9636 GB Notification: Performance of prepare postOptimizeDAE: time 1.977e-05/47.93, allocations: 8.062 kB / 11.53 GB, free: 68.13 MB / 0.9636 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.5998/48.53, allocations: 113.9 MB / 11.64 GB, free: 30.08 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002199/48.53, allocations: 56 kB / 11.64 GB, free: 30.03 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.549/50.08, allocations: 161.3 MB / 11.8 GB, free: 112.5 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009255/50.09, allocations: 1.451 MB / 11.8 GB, free: 112.5 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.06588/50.15, allocations: 26.39 MB / 11.83 GB, free: 110.5 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0245/50.18, allocations: 0.763 MB / 11.83 GB, free: 110.4 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.006065/50.19, allocations: 0.7013 MB / 11.83 GB, free: 110.4 MB / 0.9636 GB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: pmpNorth.vol.heaFloSen.Q_flow:VARIABLE(unit = "W" protected = true ) "Heat flow from port_a to port_b as output signal" type: Real pmpSouth.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: 245 * 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 (659): * Single equations (assignments): 647 * 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 {31 39,5 80} Notification: Performance of prepare postOptimizeDAE: time 0.00918/50.19, allocations: 302.2 kB / 11.83 GB, free: 110.3 MB / 0.9636 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.008235/50.2, allocations: 1.213 MB / 11.83 GB, free: 110.3 MB / 0.9636 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.1025/50.31, allocations: 24.85 MB / 11.85 GB, free: 109.3 MB / 0.9636 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002325/50.31, allocations: 53.17 kB / 11.85 GB, free: 109.3 MB / 0.9636 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.25e-05/50.31, allocations: 0 / 11.85 GB, free: 109.3 MB / 0.9636 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.06976/50.38, allocations: 19.19 MB / 11.87 GB, free: 108.7 MB / 0.9636 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.112/50.49, allocations: 36.02 MB / 11.91 GB, free: 105.3 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.197e-05/50.49, allocations: 0 / 11.91 GB, free: 105.3 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006255/50.49, allocations: 0.8339 MB / 11.91 GB, free: 105.3 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.2115/50.71, allocations: 67.98 MB / 11.97 GB, free: 68.72 MB / 0.9636 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002332/50.71, allocations: 88.5 kB / 11.97 GB, free: 68.68 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1114/50.82, allocations: 38.59 MB / 12.01 GB, free: 45.7 MB / 0.9636 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.947e-06/50.82, allocations: 8 kB / 12.01 GB, free: 45.69 MB / 0.9636 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 1.005/51.82, allocations: 65.2 MB / 12.08 GB, free: 114.2 MB / 0.9636 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0121/51.84, allocations: 2.71 MB / 12.08 GB, free: 114.1 MB / 0.9636 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.007263/51.84, allocations: 11.7 kB / 12.08 GB, free: 114.1 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01911/51.86, allocations: 0.9675 MB / 12.08 GB, free: 114 MB / 0.9636 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002841/51.87, allocations: 297.8 kB / 12.08 GB, free: 114 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001386/51.87, allocations: 221.6 kB / 12.08 GB, free: 114 MB / 0.9636 GB Notification: Performance of sort global known variables: time 0.02403/51.89, allocations: 8.899 MB / 12.09 GB, free: 113.6 MB / 0.9636 GB Notification: Performance of remove unused functions: time 0.05071/51.94, allocations: 6.38 MB / 12.09 GB, free: 113.6 MB / 0.9636 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * 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 (368): * Single equations (assignments): 349 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 9 * 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 {30 40,5 80} Notification: Performance of Backend phase and start with SimCode phase: time 0.009768/51.95, allocations: 5.364 MB / 12.1 GB, free: 111.3 MB / 0.9636 GB Notification: Performance of simCode: created initialization part: time 0.06443/52.02, allocations: 29.23 MB / 12.13 GB, free: 110.6 MB / 0.9636 GB Notification: Performance of simCode: created event and clocks part: time 1.512e-05/52.02, allocations: 3.812 kB / 12.13 GB, free: 110.6 MB / 0.9636 GB Notification: Performance of simCode: created simulation system equations: time 0.01927/52.04, allocations: 8.358 MB / 12.14 GB, free: 110.3 MB / 0.9636 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0372/52.07, allocations: 6.235 MB / 12.14 GB, free: 110 MB / 0.9636 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1023/52.18, allocations: 26.92 MB / 12.17 GB, free: 105.4 MB / 0.9636 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01941/52.19, allocations: 8.277 MB / 12.18 GB, free: 104.3 MB / 0.9636 GB Notification: Performance of SimCode: time 1.573e-06/52.19, allocations: 3.094 kB / 12.18 GB, free: 104.3 MB / 0.9636 GB Notification: Performance of Templates: time 2.096/54.29, allocations: 463.8 MB / 12.63 GB, free: 93.34 MB / 0.9637 GB make -j1 -f BuildSysPro_BuildSysPro.IBPSA.Fluid.Examples.FlowSystem.Simplified4.makefile (rm -f BuildSysPro_BuildSysPro.IBPSA.Fluid.Examples.FlowSystem.Simplified4.pipe ; mkfifo BuildSysPro_BuildSysPro.IBPSA.Fluid.Examples.FlowSystem.Simplified4.pipe ; head -c 1048576 < BuildSysPro_BuildSysPro.IBPSA.Fluid.Examples.FlowSystem.Simplified4.pipe >> ../files/BuildSysPro_BuildSysPro.IBPSA.Fluid.Examples.FlowSystem.Simplified4.sim & ./BuildSysPro_BuildSysPro.IBPSA.Fluid.Examples.FlowSystem.Simplified4 -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildSysPro_BuildSysPro.IBPSA.Fluid.Examples.FlowSystem.Simplified4.pipe 2>&1)