Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.Examples.FlowSystem.Basic.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.Basic,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Examples.FlowSystem.Basic") translateModel(BuildingSystems.Fluid.Examples.FlowSystem.Basic,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Examples.FlowSystem.Basic") [: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.7577/0.7577, allocations: 141.8 MB / 149.1 MB, free: 3.918 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.001227/0.001227, allocations: 183.5 kB / 181.9 MB, free: 15.64 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.44/1.44, allocations: 221.4 MB / 436 MB, free: 8.742 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.001062/0.001062, allocations: 92.05 kB / 0.507 GB, free: 24.27 MB / 394.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002112/0.002111, allocations: 281.8 kB / 0.5884 GB, free: 11.8 MB / 442.9 MB Notification: Performance of FrontEnd - loaded program: time 9.959e-06/9.979e-06, allocations: 0 / 0.6759 GB, free: 2.172 MB / 0.5107 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5215/0.5215, allocations: 82.77 MB / 0.7567 GB, free: 112.4 MB / 0.5263 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7903/1.312, allocations: 420.8 MB / 1.168 GB, free: 9.957 MB / 0.6982 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002447/1.312, allocations: 89.56 kB / 1.168 GB, free: 9.914 MB / 0.6982 GB Notification: Performance of FrontEnd: time 26.01/27.32, allocations: 6.469 GB / 7.637 GB, free: 54.26 MB / 0.9482 GB Notification: Performance of Transformations before backend: time 0.003618/27.33, allocations: 439.8 kB / 7.637 GB, free: 54.18 MB / 0.9482 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.05968/27.39, allocations: 14.38 MB / 7.651 GB, free: 48.45 MB / 0.9482 GB Notification: Performance of prepare preOptimizeDAE: time 5.219e-05/27.39, allocations: 11.23 kB / 7.651 GB, free: 48.45 MB / 0.9482 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01704/27.4, allocations: 2.232 MB / 7.653 GB, free: 47.49 MB / 0.9482 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.08253/27.49, allocations: 25.1 MB / 7.678 GB, free: 45.07 MB / 0.9482 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007632/27.49, allocations: 252.3 kB / 7.678 GB, free: 45.07 MB / 0.9482 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005855/27.49, allocations: 0.5986 MB / 7.679 GB, free: 45.05 MB / 0.9482 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.03865/27.53, allocations: 20.14 MB / 7.698 GB, free: 45.02 MB / 0.9482 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05115/27.58, allocations: 14.75 MB / 7.713 GB, free: 44.26 MB / 0.9482 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007109/27.58, allocations: 15.41 kB / 7.713 GB, free: 44.26 MB / 0.9482 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005089/27.59, allocations: 10.5 kB / 7.713 GB, free: 44.26 MB / 0.9482 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005034/27.59, allocations: 378.3 kB / 7.713 GB, free: 44.25 MB / 0.9482 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1683/27.76, allocations: 82.75 MB / 7.794 GB, free: 10.85 MB / 0.9482 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01829/27.78, allocations: 11.09 MB / 7.805 GB, free: 10.7 MB / 0.9482 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01573/27.79, allocations: 10.11 MB / 7.815 GB, free: 10.57 MB / 0.9482 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0826/27.87, allocations: 36.8 MB / 7.851 GB, free: 1.383 MB / 0.9482 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.01919/27.89, allocations: 9.489 MB / 7.86 GB, free: 1.223 MB / 0.9482 GB Notification: Performance of pre-optimization done (n=640): time 1.71e-05/27.89, allocations: 0 / 7.86 GB, free: 1.223 MB / 0.9482 GB Notification: Performance of matching and sorting (n=642): time 1.547/29.44, allocations: 153.8 MB / 8.01 GB, free: 121.4 MB / 0.9794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.045e-05/29.44, allocations: 119.8 kB / 8.01 GB, free: 121.3 MB / 0.9794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.03511/29.48, allocations: 13.6 MB / 8.024 GB, free: 120.6 MB / 0.9794 GB Notification: Performance of collectPreVariables (initialization): time 0.004462/29.48, allocations: 43.2 kB / 8.024 GB, free: 120.6 MB / 0.9794 GB Notification: Performance of collectInitialEqns (initialization): time 0.008428/29.49, allocations: 3.635 MB / 8.027 GB, free: 120.3 MB / 0.9794 GB Notification: Performance of collectInitialBindings (initialization): time 0.01201/29.5, allocations: 2.195 MB / 8.029 GB, free: 120.3 MB / 0.9794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00517/29.51, allocations: 4 kB / 8.029 GB, free: 120.3 MB / 0.9794 GB Notification: Performance of setup shared object (initialization): time 0.001149/29.51, allocations: 0.6442 MB / 8.03 GB, free: 120 MB / 0.9794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01658/29.52, allocations: 8.448 MB / 8.038 GB, free: 120 MB / 0.9794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01767/29.54, allocations: 11.26 MB / 8.049 GB, free: 116.8 MB / 0.9794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0217/29.56, allocations: 9.867 MB / 8.059 GB, free: 116.6 MB / 0.9794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001269/29.56, allocations: 13.16 kB / 8.059 GB, free: 116.6 MB / 0.9794 GB Notification: Performance of matching and sorting (n=1102) (initialization): time 0.6439/30.21, allocations: 134.7 MB / 8.19 GB, free: 106.4 MB / 0.9794 GB Notification: Performance of prepare postOptimizeDAE: time 0.007522/30.22, allocations: 31.73 MB / 8.221 GB, free: 72.89 MB / 0.9794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003152/30.22, allocations: 47.66 kB / 8.221 GB, free: 72.89 MB / 0.9794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.354/31.57, allocations: 162.4 MB / 8.38 GB, free: 115.6 MB / 0.9794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0142/31.58, allocations: 2.415 MB / 8.382 GB, free: 115.6 MB / 0.9794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1387/31.72, allocations: 69.04 MB / 8.45 GB, free: 109.8 MB / 0.9794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0222/31.74, allocations: 0.9173 MB / 8.451 GB, free: 109.8 MB / 0.9794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.004652/31.75, allocations: 0.7912 MB / 8.451 GB, free: 109.8 MB / 0.9794 GB Notification: Performance of prepare postOptimizeDAE: time 1.265e-05/31.75, allocations: 2.594 kB / 8.451 GB, free: 109.8 MB / 0.9794 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.6203/32.37, allocations: 131.7 MB / 8.58 GB, free: 100.7 MB / 0.9794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002692/32.37, allocations: 46.44 kB / 8.58 GB, free: 100.7 MB / 0.9794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.497/33.87, allocations: 162.2 MB / 8.738 GB, free: 115.1 MB / 0.9794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0128/33.88, allocations: 2.379 MB / 8.741 GB, free: 115.1 MB / 0.9794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1582/34.04, allocations: 72.49 MB / 8.812 GB, free: 112.5 MB / 0.9794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02451/34.06, allocations: 0.8958 MB / 8.812 GB, free: 112.5 MB / 0.9794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.005004/34.07, allocations: 0.7453 MB / 8.813 GB, free: 112.5 MB / 0.9794 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 207 * 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 (859): * Single equations (assignments): 845 * 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 {33 119} Notification: Performance of prepare postOptimizeDAE: time 0.006074/34.07, allocations: 310.9 kB / 8.813 GB, free: 112.4 MB / 0.9794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.006172/34.08, allocations: 1.391 MB / 8.815 GB, free: 112.4 MB / 0.9794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2136/34.29, allocations: 59.01 MB / 8.872 GB, free: 105.7 MB / 0.9794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002414/34.29, allocations: 74 kB / 8.873 GB, free: 105.7 MB / 0.9794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001118/34.29, allocations: 31.41 kB / 8.873 GB, free: 105.7 MB / 0.9794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.1952/34.49, allocations: 52.78 MB / 8.924 GB, free: 98.6 MB / 0.9794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2428/34.73, allocations: 73.1 MB / 8.995 GB, free: 88.21 MB / 0.9794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.224e-05/34.73, allocations: 0 / 8.995 GB, free: 88.21 MB / 0.9794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007613/34.74, allocations: 1.107 MB / 8.997 GB, free: 87.36 MB / 0.9794 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.2074/34.95, allocations: 67.9 MB / 9.063 GB, free: 31.13 MB / 0.9794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.003135/34.95, allocations: 167.1 kB / 9.063 GB, free: 31.05 MB / 0.9794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.921/35.87, allocations: 27.79 MB / 9.09 GB, free: 115 MB / 0.9794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.796e-06/35.87, allocations: 2.031 kB / 9.09 GB, free: 115 MB / 0.9794 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.2132/36.08, allocations: 63.86 MB / 9.153 GB, free: 109.9 MB / 0.9794 GB Notification: Performance of postOpt removeConstants (simulation): time 0.02207/36.11, allocations: 3.306 MB / 9.156 GB, free: 109.6 MB / 0.9794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.01175/36.12, allocations: 78.16 kB / 9.156 GB, free: 109.6 MB / 0.9794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.02228/36.14, allocations: 0.7868 MB / 9.157 GB, free: 109.5 MB / 0.9794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00386/36.15, allocations: 397.3 kB / 9.157 GB, free: 109.5 MB / 0.9794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.003394/36.15, allocations: 277.4 kB / 9.157 GB, free: 109.5 MB / 0.9794 GB Notification: Performance of sort global known variables: time 0.03603/36.18, allocations: 10.24 MB / 9.167 GB, free: 109 MB / 0.9794 GB Notification: Performance of remove unused functions: time 0.05983/36.24, allocations: 7.687 MB / 9.175 GB, free: 109 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 (538): * Single equations (assignments): 516 * 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 {33 119} Notification: Performance of Backend phase and start with SimCode phase: time 0.01295/36.26, allocations: 5.252 MB / 9.18 GB, free: 106.8 MB / 0.9794 GB Notification: Performance of simCode: created initialization part: time 0.08245/36.34, allocations: 33.88 MB / 9.213 GB, free: 105.7 MB / 0.9794 GB Notification: Performance of simCode: created event and clocks part: time 2.069e-05/36.34, allocations: 2.156 kB / 9.213 GB, free: 105.7 MB / 0.9794 GB Notification: Performance of simCode: created simulation system equations: time 0.02303/36.36, allocations: 9.329 MB / 9.222 GB, free: 105.4 MB / 0.9794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.04806/36.41, allocations: 6.867 MB / 9.229 GB, free: 105.1 MB / 0.9794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1162/36.53, allocations: 27.54 MB / 9.256 GB, free: 99.74 MB / 0.9794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.02968/36.56, allocations: 9.597 MB / 9.265 GB, free: 98.52 MB / 0.9794 GB Notification: Performance of SimCode: time 1.894e-06/36.56, allocations: 0 / 9.265 GB, free: 98.52 MB / 0.9794 GB Notification: Performance of Templates: time 1.55/38.11, allocations: 466.6 MB / 9.721 GB, free: 83.16 MB / 0.9794 GB make -j1 -f BuildingSystems_BuildingSystems.Fluid.Examples.FlowSystem.Basic.makefile (rm -f BuildingSystems_BuildingSystems.Fluid.Examples.FlowSystem.Basic.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Examples.FlowSystem.Basic.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Examples.FlowSystem.Basic.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Examples.FlowSystem.Basic.sim & ./BuildingSystems_BuildingSystems.Fluid.Examples.FlowSystem.Basic -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.Examples.FlowSystem.Basic.pipe 2>&1)