Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.Examples.FlowSystem.Simplified2.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.Simplified2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Examples.FlowSystem.Simplified2") translateModel(BuildingSystems.Fluid.Examples.FlowSystem.Simplified2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Examples.FlowSystem.Simplified2") [: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.7764/0.7764, allocations: 141.8 MB / 149.1 MB, free: 15.6 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.00123/0.00123, allocations: 176 kB / 181.9 MB, free: 12 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.418/1.418, allocations: 221.3 MB / 436 MB, free: 4.656 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.001075/0.001075, allocations: 103.6 kB / 0.507 GB, free: 18.92 MB / 378.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002114/0.002115, allocations: 276.1 kB / 0.5884 GB, free: 5.93 MB / 442.9 MB Notification: Performance of FrontEnd - loaded program: time 9.748e-06/9.788e-06, allocations: 1.188 kB / 0.6759 GB, free: 138.9 MB / 0.5107 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1997/0.1997, allocations: 82.77 MB / 0.7567 GB, free: 87.15 MB / 0.5107 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.219/1.419, allocations: 421.1 MB / 1.168 GB, free: 248.5 MB / 0.6982 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002545/1.419, allocations: 98.72 kB / 1.168 GB, free: 248.4 MB / 0.6982 GB Notification: Performance of FrontEnd: time 35.69/37.11, allocations: 8.755 GB / 9.923 GB, free: 75.8 MB / 0.9638 GB Notification: Performance of Transformations before backend: time 0.005111/37.11, allocations: 424.9 kB / 9.923 GB, free: 75.72 MB / 0.9638 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.07194/37.19, allocations: 14.36 MB / 9.937 GB, free: 69.59 MB / 0.9638 GB Notification: Performance of prepare preOptimizeDAE: time 5.637e-05/37.19, allocations: 14.41 kB / 9.937 GB, free: 69.58 MB / 0.9638 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0206/37.21, allocations: 2.228 MB / 9.94 GB, free: 68.6 MB / 0.9638 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.09495/37.3, allocations: 25.05 MB / 9.964 GB, free: 65.25 MB / 0.9638 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009458/37.3, allocations: 251.6 kB / 9.964 GB, free: 65.25 MB / 0.9638 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.007632/37.31, allocations: 0.5874 MB / 9.965 GB, free: 65.24 MB / 0.9638 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.05021/37.36, allocations: 19.93 MB / 9.984 GB, free: 65.2 MB / 0.9638 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05727/37.42, allocations: 14.6 MB / 9.999 GB, free: 64.4 MB / 0.9638 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.001309/37.42, allocations: 13.66 kB / 9.999 GB, free: 64.39 MB / 0.9638 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.008751/37.43, allocations: 11.05 kB / 9.999 GB, free: 64.39 MB / 0.9638 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0009579/37.43, allocations: 374 kB / 9.999 GB, free: 64.38 MB / 0.9638 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1909/37.62, allocations: 83.61 MB / 10.08 GB, free: 14.18 MB / 0.9638 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01741/37.64, allocations: 10.55 MB / 10.09 GB, free: 4.824 MB / 0.9638 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01864/37.66, allocations: 9.771 MB / 10.1 GB, free: 12.76 MB / 0.9794 GB Notification: Performance of preOpt evalFunc (simulation): time 0.9347/38.59, allocations: 36.21 MB / 10.14 GB, free: 132.5 MB / 0.9794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0194/38.61, allocations: 9.261 MB / 10.14 GB, free: 132.4 MB / 0.9794 GB Notification: Performance of pre-optimization done (n=616): time 1.075e-05/38.61, allocations: 0 / 10.14 GB, free: 132.4 MB / 0.9794 GB Notification: Performance of matching and sorting (n=618): time 0.7069/39.32, allocations: 150.4 MB / 10.29 GB, free: 123.2 MB / 0.9794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001087/39.32, allocations: 119.5 kB / 10.29 GB, free: 123.1 MB / 0.9794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.04656/39.36, allocations: 13.63 MB / 10.31 GB, free: 122.4 MB / 0.9794 GB Notification: Performance of collectPreVariables (initialization): time 0.005056/39.37, allocations: 39.23 kB / 10.31 GB, free: 122.3 MB / 0.9794 GB Notification: Performance of collectInitialEqns (initialization): time 0.01178/39.38, allocations: 3.682 MB / 10.31 GB, free: 121.2 MB / 0.9794 GB Notification: Performance of collectInitialBindings (initialization): time 0.01458/39.4, allocations: 2.104 MB / 10.31 GB, free: 120.1 MB / 0.9794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004418/39.4, allocations: 0 / 10.31 GB, free: 120.1 MB / 0.9794 GB Notification: Performance of setup shared object (initialization): time 0.001264/39.4, allocations: 0.6438 MB / 10.31 GB, free: 119.7 MB / 0.9794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.02094/39.42, allocations: 8.29 MB / 10.32 GB, free: 119.7 MB / 0.9794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0228/39.44, allocations: 11.07 MB / 10.33 GB, free: 116.5 MB / 0.9794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02386/39.47, allocations: 9.691 MB / 10.34 GB, free: 116.3 MB / 0.9794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001587/39.47, allocations: 14.88 kB / 10.34 GB, free: 116.3 MB / 0.9794 GB Notification: Performance of matching and sorting (n=1102) (initialization): time 0.6375/40.11, allocations: 133.8 MB / 10.47 GB, free: 68.36 MB / 0.9794 GB Notification: Performance of prepare postOptimizeDAE: time 0.006788/40.11, allocations: 35.09 MB / 10.5 GB, free: 31.15 MB / 0.9794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002641/40.11, allocations: 52 kB / 10.5 GB, free: 31.1 MB / 0.9794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.373/41.49, allocations: 161.2 MB / 10.66 GB, free: 115 MB / 0.9794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01617/41.5, allocations: 2.514 MB / 10.66 GB, free: 115 MB / 0.9794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1524/41.66, allocations: 67.34 MB / 10.73 GB, free: 108 MB / 0.9794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02274/41.68, allocations: 0.9203 MB / 10.73 GB, free: 107.9 MB / 0.9794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.004618/41.68, allocations: 0.7994 MB / 10.73 GB, free: 107.9 MB / 0.9794 GB Notification: Performance of prepare postOptimizeDAE: time 1.186e-05/41.68, allocations: 7.844 kB / 10.73 GB, free: 107.9 MB / 0.9794 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.6192/42.3, allocations: 131.1 MB / 10.86 GB, free: 68.72 MB / 0.9794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002431/42.3, allocations: 48 kB / 10.86 GB, free: 68.68 MB / 0.9794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.39/43.69, allocations: 161.2 MB / 11.02 GB, free: 111.8 MB / 0.9794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01421/43.71, allocations: 2.478 MB / 11.02 GB, free: 111.8 MB / 0.9794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1616/43.87, allocations: 68.38 MB / 11.09 GB, free: 108 MB / 0.9794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02362/43.89, allocations: 0.899 MB / 11.09 GB, free: 108 MB / 0.9794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.004815/43.9, allocations: 0.7557 MB / 11.09 GB, free: 108 MB / 0.9794 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 {14 90} Notification: Performance of prepare postOptimizeDAE: time 0.007949/43.9, allocations: 316.5 kB / 11.09 GB, free: 107.8 MB / 0.9794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.008823/43.91, allocations: 1.393 MB / 11.09 GB, free: 107.8 MB / 0.9794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2151/44.13, allocations: 58.13 MB / 11.15 GB, free: 100.3 MB / 0.9794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001908/44.13, allocations: 73.42 kB / 11.15 GB, free: 100.3 MB / 0.9794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001402/44.13, allocations: 33.44 kB / 11.15 GB, free: 100.3 MB / 0.9794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.1911/44.32, allocations: 52 MB / 11.2 GB, free: 77.5 MB / 0.9794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2405/44.56, allocations: 71.84 MB / 11.27 GB, free: 33.25 MB / 0.9794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.693e-05/44.56, allocations: 2.156 kB / 11.27 GB, free: 33.25 MB / 0.9794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.009051/44.57, allocations: 1.194 MB / 11.27 GB, free: 32.45 MB / 0.9794 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.9133/45.48, allocations: 66.79 MB / 11.33 GB, free: 111.7 MB / 0.9794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002639/45.49, allocations: 163.5 kB / 11.33 GB, free: 111.7 MB / 0.9794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.05803/45.54, allocations: 26.35 MB / 11.36 GB, free: 105.1 MB / 0.9794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.957e-06/45.54, allocations: 2.406 kB / 11.36 GB, free: 105.1 MB / 0.9794 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.2042/45.75, allocations: 62.81 MB / 11.42 GB, free: 97.53 MB / 0.9794 GB Notification: Performance of postOpt removeConstants (simulation): time 0.01305/45.76, allocations: 3.257 MB / 11.42 GB, free: 97.13 MB / 0.9794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.007658/45.77, allocations: 80.06 kB / 11.42 GB, free: 97.13 MB / 0.9794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01715/45.79, allocations: 0.7836 MB / 11.43 GB, free: 97.03 MB / 0.9794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002598/45.79, allocations: 379.5 kB / 11.43 GB, free: 97.02 MB / 0.9794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.002209/45.79, allocations: 267.8 kB / 11.43 GB, free: 97.02 MB / 0.9794 GB Notification: Performance of sort global known variables: time 0.02438/45.82, allocations: 10.25 MB / 11.44 GB, free: 96.59 MB / 0.9794 GB Notification: Performance of remove unused functions: time 0.05558/45.87, allocations: 7.692 MB / 11.44 GB, free: 96.59 MB / 0.9794 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 {14 90} Notification: Performance of Backend phase and start with SimCode phase: time 0.01141/45.88, allocations: 5.261 MB / 11.45 GB, free: 94.34 MB / 0.9794 GB Notification: Performance of simCode: created initialization part: time 0.0754/45.96, allocations: 32.84 MB / 11.48 GB, free: 93.34 MB / 0.9794 GB Notification: Performance of simCode: created event and clocks part: time 1.258e-05/45.96, allocations: 1.688 kB / 11.48 GB, free: 93.34 MB / 0.9794 GB Notification: Performance of simCode: created simulation system equations: time 0.02005/45.98, allocations: 8.862 MB / 11.49 GB, free: 93.05 MB / 0.9794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.04222/46.02, allocations: 6.844 MB / 11.5 GB, free: 92.71 MB / 0.9794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.09524/46.12, allocations: 27.48 MB / 11.52 GB, free: 87.39 MB / 0.9794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.02407/46.14, allocations: 9.619 MB / 11.53 GB, free: 83.75 MB / 0.9794 GB Notification: Performance of SimCode: time 1.623e-06/46.14, allocations: 0 / 11.53 GB, free: 83.75 MB / 0.9794 GB Notification: Performance of Templates: time 2.284/48.42, allocations: 460 MB / 11.98 GB, free: 124.3 MB / 0.9794 GB make -j1 -f BuildingSystems_BuildingSystems.Fluid.Examples.FlowSystem.Simplified2.makefile (rm -f BuildingSystems_BuildingSystems.Fluid.Examples.FlowSystem.Simplified2.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Examples.FlowSystem.Simplified2.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Examples.FlowSystem.Simplified2.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Examples.FlowSystem.Simplified2.sim & ./BuildingSystems_BuildingSystems.Fluid.Examples.FlowSystem.Simplified2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.Examples.FlowSystem.Simplified2.pipe 2>&1)