Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Fluid.Examples.FlowSystem.Basic.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/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 Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: translateModel(Buildings.Fluid.Examples.FlowSystem.Basic,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pmpNorth.m_flow|pmpSouth.m_flow",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Fluid.Examples.FlowSystem.Basic") translateModel(Buildings.Fluid.Examples.FlowSystem.Basic,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pmpNorth.m_flow|pmpSouth.m_flow",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Fluid.Examples.FlowSystem.Basic") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.479/1.479, allocations: 249.3 MB / 261.9 MB, free: 5.938 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009922/0.0009921, allocations: 172.9 kB / 321.3 MB, free: 14.68 MB / 266.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.623/1.623, allocations: 205.2 MB / 0.572 GB, free: 10.64 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009201/0.00092, allocations: 86.48 kB / 0.6764 GB, free: 15.61 MB / 0.5261 GB Notification: Performance of FrontEnd - loaded program: time 3.414e-05/3.416e-05, allocations: 4 kB / 0.7879 GB, free: 97.12 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2387/0.2387, allocations: 106.3 MB / 0.8918 GB, free: 6.695 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.558/1.797, allocations: 456.2 MB / 1.337 GB, free: 283.2 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002407/1.797, allocations: 91.95 kB / 1.337 GB, free: 283.1 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 26.71/28.51, allocations: 6.241 GB / 7.579 GB, free: 47.78 MB / 1.135 GB Notification: Performance of FrontEnd: time 2.504e-06/28.51, allocations: 4 kB / 7.579 GB, free: 47.78 MB / 1.135 GB Notification: Performance of Transformations before backend: time 0.00474/28.51, allocations: 0.5265 MB / 7.579 GB, free: 47.25 MB / 1.135 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2061 * Number of variables: 2061 Notification: Performance of Generate backend data structure: time 0.06084/28.57, allocations: 14.15 MB / 7.593 GB, free: 32.98 MB / 1.135 GB Notification: Performance of prepare preOptimizeDAE: time 5.606e-05/28.57, allocations: 12.03 kB / 7.593 GB, free: 32.97 MB / 1.135 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01829/28.59, allocations: 2.308 MB / 7.595 GB, free: 30.64 MB / 1.135 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.07836/28.67, allocations: 23.3 MB / 7.618 GB, free: 7.266 MB / 1.135 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001143/28.67, allocations: 0.7227 MB / 7.619 GB, free: 6.539 MB / 1.135 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.006788/28.68, allocations: 1.034 MB / 7.62 GB, free: 5.508 MB / 1.135 GB Notification: Performance of preOpt clockPartitioning (simulation): time 2.326/31, allocations: 16.68 MB / 7.636 GB, free: 63.51 MB / 1.136 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.000555/31, allocations: 12.41 kB / 7.636 GB, free: 63.51 MB / 1.136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004763/31.01, allocations: 360.3 kB / 7.636 GB, free: 63.51 MB / 1.136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003588/31.01, allocations: 213.5 kB / 7.636 GB, free: 63.51 MB / 1.136 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05076/31.06, allocations: 19.48 MB / 7.655 GB, free: 63.45 MB / 1.136 GB Warning: The model contains alias variables with conflicting start and/or nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.175/31.24, allocations: 78.35 MB / 7.732 GB, free: 32.69 MB / 1.136 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02382/31.26, allocations: 12.24 MB / 7.744 GB, free: 32.23 MB / 1.136 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01542/31.28, allocations: 9.43 MB / 7.753 GB, free: 32.13 MB / 1.136 GB Warning: The model contains alias variables with conflicting start and/or nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt evalFunc (simulation): time 0.08811/31.36, allocations: 33.71 MB / 7.786 GB, free: 23.64 MB / 1.136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.01963/31.38, allocations: 9.291 MB / 7.795 GB, free: 23.47 MB / 1.136 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.05079/31.43, allocations: 15.15 MB / 7.81 GB, free: 23.3 MB / 1.136 GB Notification: Performance of pre-optimization done (n=606): time 8.097e-05/31.43, allocations: 0 / 7.81 GB, free: 23.3 MB / 1.136 GB Notification: Performance of matching and sorting (n=860): time 0.7587/32.19, allocations: 171.3 MB / 7.977 GB, free: 12.06 MB / 1.136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001242/32.19, allocations: 2.539 MB / 7.98 GB, free: 25.05 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.04414/32.24, allocations: 14.7 MB / 7.994 GB, free: 23.22 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 0.006506/32.24, allocations: 275.2 kB / 7.994 GB, free: 23.11 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 0.01239/32.26, allocations: 7.884 MB / 8.002 GB, free: 20.68 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 0.006647/32.26, allocations: 2.981 MB / 8.005 GB, free: 18.62 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004268/32.27, allocations: 213.8 kB / 8.005 GB, free: 18.58 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 0.001113/32.27, allocations: 0.7605 MB / 8.006 GB, free: 18.13 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.02193/32.29, allocations: 9.641 MB / 8.015 GB, free: 10.21 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02871/32.32, allocations: 13.38 MB / 8.028 GB, free: 12.89 MB / 1.167 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02624/32.35, allocations: 11.05 MB / 8.039 GB, free: 3.645 MB / 1.167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001349/32.35, allocations: 12 kB / 8.039 GB, free: 3.633 MB / 1.167 GB Notification: Performance of matching and sorting (n=1448) (initialization): time 2.769/35.12, allocations: 130.4 MB / 8.166 GB, free: 100 MB / 1.183 GB Notification: Performance of prepare postOptimizeDAE: time 0.005585/35.12, allocations: 32.97 MB / 8.199 GB, free: 65.73 MB / 1.183 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004553/35.12, allocations: 105.5 kB / 8.199 GB, free: 65.73 MB / 1.183 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.6361/35.76, allocations: 151.8 MB / 8.347 GB, free: 61.01 MB / 1.183 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01352/35.77, allocations: 2.391 MB / 8.349 GB, free: 60.49 MB / 1.183 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1725/35.94, allocations: 75.91 MB / 8.423 GB, free: 24.68 MB / 1.183 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02792/35.97, allocations: 1.391 MB / 8.425 GB, free: 23.55 MB / 1.183 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.005188/35.98, allocations: 0.9092 MB / 8.426 GB, free: 22.73 MB / 1.183 GB Notification: Performance of prepare postOptimizeDAE: time 1.859e-05/35.98, allocations: 4 kB / 8.426 GB, free: 22.72 MB / 1.183 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 1.716/37.69, allocations: 128.2 MB / 8.551 GB, free: 134.1 MB / 1.229 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0006088/37.69, allocations: 114.5 kB / 8.551 GB, free: 134.1 MB / 1.229 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.6503/38.34, allocations: 152.7 MB / 8.7 GB, free: 133.5 MB / 1.229 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01175/38.36, allocations: 2.363 MB / 8.702 GB, free: 133.5 MB / 1.229 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.156/38.51, allocations: 82.51 MB / 8.783 GB, free: 129.1 MB / 1.229 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02326/38.54, allocations: 1.383 MB / 8.784 GB, free: 129 MB / 1.229 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.005427/38.54, allocations: 0.8669 MB / 8.785 GB, free: 129 MB / 1.229 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 (990): * Single equations (assignments): 910 * Array equations: 36 * Algorithm blocks: 1 * Record equations: 32 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 8 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 8 {1,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: 2 {33 119,33 119} Notification: Performance of prepare postOptimizeDAE: time 0.008161/38.55, allocations: 0.7184 MB / 8.786 GB, free: 128.9 MB / 1.229 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.007696/38.56, allocations: 1.561 MB / 8.787 GB, free: 128.9 MB / 1.229 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.1975/38.75, allocations: 50.87 MB / 8.837 GB, free: 111.9 MB / 1.229 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001783/38.75, allocations: 99.98 kB / 8.837 GB, free: 111.8 MB / 1.229 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001043/38.75, allocations: 31.95 kB / 8.837 GB, free: 111.7 MB / 1.229 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.1708/38.93, allocations: 44.73 MB / 8.881 GB, free: 74.98 MB / 1.229 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2278/39.15, allocations: 69.95 MB / 8.949 GB, free: 21.16 MB / 1.229 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001329/39.15, allocations: 0 / 8.949 GB, free: 21.16 MB / 1.229 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.189/40.34, allocations: 1.571 MB / 8.951 GB, free: 135.1 MB / 1.229 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.1946/40.54, allocations: 44.73 MB / 8.994 GB, free: 135 MB / 1.229 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002983/40.54, allocations: 351.8 kB / 8.995 GB, free: 135 MB / 1.229 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0632/40.6, allocations: 33.11 MB / 9.027 GB, free: 128 MB / 1.229 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.488e-06/40.6, allocations: 2.875 kB / 9.027 GB, free: 128 MB / 1.229 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2012/40.8, allocations: 58.49 MB / 9.084 GB, free: 126.6 MB / 1.229 GB Notification: Performance of postOpt removeConstants (simulation): time 0.01472/40.82, allocations: 3.711 MB / 9.088 GB, free: 126 MB / 1.229 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.007283/40.83, allocations: 288.9 kB / 9.088 GB, free: 126 MB / 1.229 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.02006/40.85, allocations: 1.187 MB / 9.089 GB, free: 126 MB / 1.229 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003984/40.85, allocations: 0.6 MB / 9.09 GB, free: 126 MB / 1.229 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00241/40.85, allocations: 362.3 kB / 9.09 GB, free: 126 MB / 1.229 GB Notification: Performance of sorting global known variables: time 0.02672/40.88, allocations: 11.23 MB / 9.101 GB, free: 125.5 MB / 1.229 GB Notification: Performance of sort global known variables: time 8.82e-07/40.88, allocations: 4.328 kB / 9.101 GB, free: 125.5 MB / 1.229 GB Notification: Performance of remove unused functions: time 0.0513/40.93, allocations: 8.789 MB / 9.11 GB, free: 125.5 MB / 1.229 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.x[1],pmpSouth.filter.x[2],pmpNorth.vol.dynBal.U,pmpNorth.filter.x[1],pmpNorth.filter.x[2],valSouth1[1].filter.x[1],valSouth1[1].filter.x[2],valSouth1[2].filter.x[1],valSouth1[2].filter.x[2],valSouth1[3].filter.x[1],valSouth1[3].filter.x[2],valSouth1[4].filter.x[1],valSouth1[4].filter.x[2],valSouth2[1].filter.x[1],valSouth2[1].filter.x[2],valSouth2[2].filter.x[1],valSouth2[2].filter.x[2],valSouth2[3].filter.x[1],valSouth2[3].filter.x[2],valSouth2[4].filter.x[1],valSouth2[4].filter.x[2],valSouth2[5].filter.x[1],valSouth2[5].filter.x[2],valSouth2[6].filter.x[1],valSouth2[6].filter.x[2],valSouth2[7].filter.x[1],valSouth2[7].filter.x[2],valSouth2[8].filter.x[1],valSouth2[8].filter.x[2],valNorth1[1].filter.x[1],valNorth1[1].filter.x[2],valNorth1[2].filter.x[1],valNorth1[2].filter.x[2],valNorth1[3].filter.x[1],valNorth1[3].filter.x[2],valNorth1[4].filter.x[1],valNorth1[4].filter.x[2],valNorth2[1].filter.x[1],valNorth2[1].filter.x[2],valNorth2[2].filter.x[1],valNorth2[2].filter.x[2],valNorth2[3].filter.x[1],valNorth2[3].filter.x[2],valNorth2[4].filter.x[1],valNorth2[4].filter.x[2],valNorth2[5].filter.x[1],valNorth2[5].filter.x[2],valNorth2[6].filter.x[1],valNorth2[6].filter.x[2],valNorth2[7].filter.x[1],valNorth2[7].filter.x[2],valNorth2[8].filter.x[1],valNorth2[8].filter.x[2],valSouth.vol.dynBal.U,valSouth.filter.x[1],valSouth.filter.x[2],valNorth.vol.dynBal.U,valNorth.filter.x[1],valNorth.filter.x[2],spl.vol.dynBal.U,spl1.vol.dynBal.U,pumpHea.vol.dynBal.U,pumpHea.filter.x[1],pumpHea.filter.x[2],valHea.filter.x[1],valHea.filter.x[2],valCoo.filter.x[1],valCoo.filter.x[2],spl2.vol.dynBal.U,spl3.vol.dynBal.U,pumpCoo.vol.dynBal.U,pumpCoo.filter.x[1],pumpCoo.filter.x[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 (669): * Single equations (assignments): 645 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 10 * When equations: 3 * If-equations: 0 * Equation systems (linear and non-linear blocks): 8 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 8 {1,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: 2 {33 118,33 119} Notification: Performance of Backend phase and start with SimCode phase: time 0.0113/40.94, allocations: 5.63 MB / 9.115 GB, free: 123.5 MB / 1.229 GB Notification: Performance of simCode: created initialization part: time 0.09422/41.04, allocations: 43.28 MB / 9.157 GB, free: 120 MB / 1.229 GB Notification: Performance of simCode: created event and clocks part: time 2.649e-05/41.04, allocations: 9.156 kB / 9.158 GB, free: 120 MB / 1.229 GB Notification: Performance of simCode: created simulation system equations: time 0.02629/41.06, allocations: 11.4 MB / 9.169 GB, free: 119.5 MB / 1.229 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.04712/41.11, allocations: 7.783 MB / 9.176 GB, free: 119.4 MB / 1.229 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07244/41.18, allocations: 29.63 MB / 9.205 GB, free: 113.7 MB / 1.229 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02068/41.2, allocations: 9.511 MB / 9.214 GB, free: 112.5 MB / 1.229 GB Notification: Performance of simCode: alias equations: time 0.04804/41.25, allocations: 8.601 MB / 9.223 GB, free: 112.3 MB / 1.229 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005985/41.26, allocations: 0.9337 MB / 9.224 GB, free: 112.3 MB / 1.229 GB Notification: Performance of SimCode: time 1.403e-06/41.26, allocations: 2.969 kB / 9.224 GB, free: 112.3 MB / 1.229 GB Notification: Performance of Templates: time 1.661/42.92, allocations: 0.5131 GB / 9.737 GB, free: 52.81 MB / 1.229 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Fluid.Examples.FlowSystem.Basic.makefile (rm -f Buildings_maint.7.0.x_Buildings.Fluid.Examples.FlowSystem.Basic.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Fluid.Examples.FlowSystem.Basic.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Fluid.Examples.FlowSystem.Basic.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Fluid.Examples.FlowSystem.Basic.sim & ./Buildings_maint.7.0.x_Buildings.Fluid.Examples.FlowSystem.Basic -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Fluid.Examples.FlowSystem.Basic.pipe 2>&1)