Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.Examples.FlowSystem.Simplified1.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.Simplified1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Examples.FlowSystem.Simplified1") translateModel(BuildingSystems.Fluid.Examples.FlowSystem.Simplified1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Examples.FlowSystem.Simplified1") [: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.7532/0.7532, allocations: 141.8 MB / 149.1 MB, free: 12.75 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.001167/0.001167, allocations: 169.4 kB / 181.9 MB, free: 9.457 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.475/1.475, allocations: 221.3 MB / 436 MB, free: 1.863 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.001044/0.001044, allocations: 97.33 kB / 0.507 GB, free: 10.64 MB / 394.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001803/0.001803, allocations: 281 kB / 0.5885 GB, free: 7.48 MB / 474.9 MB Notification: Performance of FrontEnd - loaded program: time 7.284e-06/7.303e-06, allocations: 0 / 0.6759 GB, free: 13.85 MB / 0.5575 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5221/0.5221, allocations: 82.77 MB / 0.7567 GB, free: 138.7 MB / 0.5575 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8032/1.325, allocations: 420.9 MB / 1.168 GB, free: 12.33 MB / 0.7138 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002571/1.326, allocations: 93.55 kB / 1.168 GB, free: 12.29 MB / 0.7138 GB Notification: Performance of FrontEnd: time 35.72/37.05, allocations: 8.754 GB / 9.922 GB, free: 88.61 MB / 0.995 GB Notification: Performance of Transformations before backend: time 0.006734/37.05, allocations: 425.4 kB / 9.923 GB, free: 88.53 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.06752/37.12, allocations: 14.37 MB / 9.937 GB, free: 82.45 MB / 0.995 GB Notification: Performance of prepare preOptimizeDAE: time 4.516e-05/37.12, allocations: 8.188 kB / 9.937 GB, free: 82.45 MB / 0.995 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01795/37.14, allocations: 2.232 MB / 9.939 GB, free: 81.46 MB / 0.995 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0819/37.22, allocations: 25.04 MB / 9.963 GB, free: 78.12 MB / 0.995 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007175/37.22, allocations: 252.1 kB / 9.963 GB, free: 78.12 MB / 0.995 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.006268/37.23, allocations: 0.5844 MB / 9.964 GB, free: 78.11 MB / 0.995 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.04037/37.27, allocations: 19.93 MB / 9.983 GB, free: 78.07 MB / 0.995 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0547/37.32, allocations: 14.61 MB / 9.998 GB, free: 77.25 MB / 0.995 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.001058/37.32, allocations: 12.69 kB / 9.998 GB, free: 77.25 MB / 0.995 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005794/37.33, allocations: 11.62 kB / 9.998 GB, free: 77.25 MB / 0.995 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006269/37.33, allocations: 388.4 kB / 9.998 GB, free: 77.22 MB / 0.995 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1944/37.52, allocations: 83.57 MB / 10.08 GB, free: 18.95 MB / 0.995 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01808/37.54, allocations: 10.56 MB / 10.09 GB, free: 9.582 MB / 0.995 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01532/37.56, allocations: 9.582 MB / 10.1 GB, free: 0.9727 MB / 0.995 GB Notification: Performance of preOpt evalFunc (simulation): time 0.8544/38.41, allocations: 36.2 MB / 10.13 GB, free: 132.2 MB / 0.995 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.02079/38.43, allocations: 9.272 MB / 10.14 GB, free: 132.1 MB / 0.995 GB Notification: Performance of pre-optimization done (n=616): time 1.57e-05/38.43, allocations: 3.062 kB / 10.14 GB, free: 132.1 MB / 0.995 GB Notification: Performance of matching and sorting (n=618): time 0.7032/39.14, allocations: 150.3 MB / 10.29 GB, free: 122.7 MB / 0.995 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.407e-05/39.14, allocations: 120.9 kB / 10.29 GB, free: 122.6 MB / 0.995 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.04122/39.18, allocations: 13.64 MB / 10.3 GB, free: 121.9 MB / 0.995 GB Notification: Performance of collectPreVariables (initialization): time 0.004123/39.18, allocations: 38.98 kB / 10.3 GB, free: 121.8 MB / 0.995 GB Notification: Performance of collectInitialEqns (initialization): time 0.007745/39.19, allocations: 3.682 MB / 10.31 GB, free: 120.6 MB / 0.995 GB Notification: Performance of collectInitialBindings (initialization): time 0.01185/39.2, allocations: 2.103 MB / 10.31 GB, free: 119.5 MB / 0.995 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004223/39.21, allocations: 1.406 kB / 10.31 GB, free: 119.5 MB / 0.995 GB Notification: Performance of setup shared object (initialization): time 0.001204/39.21, allocations: 0.6449 MB / 10.31 GB, free: 119.2 MB / 0.995 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01655/39.22, allocations: 8.291 MB / 10.32 GB, free: 119.2 MB / 0.995 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0174/39.24, allocations: 11.06 MB / 10.33 GB, free: 116 MB / 0.995 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02402/39.26, allocations: 9.688 MB / 10.34 GB, free: 115.8 MB / 0.995 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002278/39.26, allocations: 15.5 kB / 10.34 GB, free: 115.8 MB / 0.995 GB Notification: Performance of matching and sorting (n=1102) (initialization): time 0.6481/39.91, allocations: 133.8 MB / 10.47 GB, free: 66.45 MB / 0.995 GB Notification: Performance of prepare postOptimizeDAE: time 0.007315/39.92, allocations: 35.09 MB / 10.5 GB, free: 29.24 MB / 0.995 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002273/39.92, allocations: 52 kB / 10.5 GB, free: 29.19 MB / 0.995 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.318/41.24, allocations: 161.4 MB / 10.66 GB, free: 117 MB / 0.995 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01545/41.25, allocations: 2.504 MB / 10.66 GB, free: 117 MB / 0.995 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1452/41.4, allocations: 67.57 MB / 10.73 GB, free: 109.9 MB / 0.995 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02609/41.43, allocations: 0.924 MB / 10.73 GB, free: 109.9 MB / 0.995 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.005494/41.43, allocations: 0.801 MB / 10.73 GB, free: 109.9 MB / 0.995 GB Notification: Performance of prepare postOptimizeDAE: time 1.397e-05/41.43, allocations: 5.562 kB / 10.73 GB, free: 109.9 MB / 0.995 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.6221/42.05, allocations: 131.1 MB / 10.86 GB, free: 75.22 MB / 0.995 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002798/42.05, allocations: 51.94 kB / 10.86 GB, free: 75.17 MB / 0.995 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.39/43.44, allocations: 161.2 MB / 11.02 GB, free: 114.4 MB / 0.995 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01325/43.46, allocations: 2.471 MB / 11.02 GB, free: 114.4 MB / 0.995 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1553/43.61, allocations: 68.51 MB / 11.09 GB, free: 110.6 MB / 0.995 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02485/43.64, allocations: 0.8992 MB / 11.09 GB, free: 110.6 MB / 0.995 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.005553/43.64, allocations: 0.755 MB / 11.09 GB, free: 110.6 MB / 0.995 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 231 * 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 (907): * Single equations (assignments): 893 * Array equations: 4 * Algorithm blocks: 1 * Record equations: 0 * 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 {39 65} Notification: Performance of prepare postOptimizeDAE: time 0.007688/43.65, allocations: 319.2 kB / 11.09 GB, free: 110.5 MB / 0.995 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.008286/43.66, allocations: 1.389 MB / 11.09 GB, free: 110.5 MB / 0.995 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2115/43.87, allocations: 58.11 MB / 11.15 GB, free: 102.9 MB / 0.995 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001896/43.87, allocations: 72.58 kB / 11.15 GB, free: 102.9 MB / 0.995 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001051/43.87, allocations: 31.16 kB / 11.15 GB, free: 102.9 MB / 0.995 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.1858/44.06, allocations: 52 MB / 11.2 GB, free: 86.43 MB / 0.995 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2226/44.28, allocations: 71.83 MB / 11.27 GB, free: 42.19 MB / 0.995 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.868e-05/44.28, allocations: 2.812 kB / 11.27 GB, free: 42.19 MB / 0.995 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007874/44.29, allocations: 1.158 MB / 11.27 GB, free: 41.31 MB / 0.995 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.8503/45.14, allocations: 69.47 MB / 11.34 GB, free: 116.1 MB / 0.995 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002778/45.14, allocations: 163.7 kB / 11.34 GB, free: 116.1 MB / 0.995 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.05473/45.19, allocations: 26.46 MB / 11.36 GB, free: 109.5 MB / 0.995 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.977e-06/45.19, allocations: 2.219 kB / 11.36 GB, free: 109.5 MB / 0.995 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.2047/45.4, allocations: 62.8 MB / 11.42 GB, free: 101.9 MB / 0.995 GB Notification: Performance of postOpt removeConstants (simulation): time 0.01355/45.41, allocations: 3.257 MB / 11.43 GB, free: 101.7 MB / 0.995 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.008065/45.42, allocations: 81.2 kB / 11.43 GB, free: 101.7 MB / 0.995 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01916/45.44, allocations: 0.7796 MB / 11.43 GB, free: 101.6 MB / 0.995 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002778/45.44, allocations: 383.8 kB / 11.43 GB, free: 101.6 MB / 0.995 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00133/45.44, allocations: 265.3 kB / 11.43 GB, free: 101.6 MB / 0.995 GB Notification: Performance of sort global known variables: time 0.02355/45.47, allocations: 10.26 MB / 11.44 GB, free: 101.1 MB / 0.995 GB Notification: Performance of remove unused functions: time 0.05128/45.52, allocations: 7.684 MB / 11.45 GB, free: 101.1 MB / 0.995 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 (562): * Single equations (assignments): 540 * 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 {39 65} Notification: Performance of Backend phase and start with SimCode phase: time 0.01117/45.53, allocations: 5.26 MB / 11.45 GB, free: 98.88 MB / 0.995 GB Notification: Performance of simCode: created initialization part: time 0.07427/45.61, allocations: 33.29 MB / 11.48 GB, free: 97.87 MB / 0.995 GB Notification: Performance of simCode: created event and clocks part: time 1.213e-05/45.61, allocations: 3.25 kB / 11.48 GB, free: 97.87 MB / 0.995 GB Notification: Performance of simCode: created simulation system equations: time 0.01848/45.62, allocations: 9.056 MB / 11.49 GB, free: 97.55 MB / 0.995 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.04043/45.66, allocations: 6.853 MB / 11.5 GB, free: 97.2 MB / 0.995 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08778/45.75, allocations: 27.47 MB / 11.53 GB, free: 91.89 MB / 0.995 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.02159/45.77, allocations: 9.62 MB / 11.54 GB, free: 90.68 MB / 0.995 GB Notification: Performance of SimCode: time 1.172e-06/45.77, allocations: 0 / 11.54 GB, free: 90.68 MB / 0.995 GB Notification: Performance of Templates: time 1.541/47.31, allocations: 459.3 MB / 11.98 GB, free: 51.09 MB / 0.995 GB make -j1 -f BuildingSystems_BuildingSystems.Fluid.Examples.FlowSystem.Simplified1.makefile (rm -f BuildingSystems_BuildingSystems.Fluid.Examples.FlowSystem.Simplified1.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Examples.FlowSystem.Simplified1.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Examples.FlowSystem.Simplified1.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Examples.FlowSystem.Simplified1.sim & ./BuildingSystems_BuildingSystems.Fluid.Examples.FlowSystem.Simplified1 -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.Examples.FlowSystem.Simplified1.pipe 2>&1)