Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.Examples.FlowSystem.Simplified2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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) 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 Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo) Running command: translateModel(Buildings.Fluid.Examples.FlowSystem.Simplified2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pmpNorth.m_flow|pmpSouth.m_flow",fileNamePrefix="Buildings_9_Buildings.Fluid.Examples.FlowSystem.Simplified2") translateModel(Buildings.Fluid.Examples.FlowSystem.Simplified2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pmpNorth.m_flow|pmpSouth.m_flow",fileNamePrefix="Buildings_9_Buildings.Fluid.Examples.FlowSystem.Simplified2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.231/2.231, allocations: 387.4 MB / 394.9 MB, free: 13.38 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001078/0.001078, allocations: 180.9 kB / 487.4 MB, free: 5.031 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.596/1.596, allocations: 221.5 MB / 0.7824 GB, free: 0.957 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001021/0.001021, allocations: 99.84 kB / 0.9219 GB, free: 2.184 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 1.894e-05/1.897e-05, allocations: 4 kB / 1.067 GB, free: 185.7 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3289/0.3289, allocations: 142.4 MB / 1.206 GB, free: 43.96 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.355/1.684, allocations: 461.7 MB / 1.657 GB, free: 9.277 MB / 1.073 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002697/1.684, allocations: 91.2 kB / 1.657 GB, free: 9.234 MB / 1.073 GB Notification: Performance of FrontEnd - DAE generated: time 37.17/38.85, allocations: 8.728 GB / 10.38 GB, free: 109.3 MB / 1.401 GB Notification: Performance of FrontEnd: time 1.472e-06/38.85, allocations: 4.406 kB / 10.39 GB, free: 109.3 MB / 1.401 GB Notification: Performance of Transformations before backend: time 0.005128/38.86, allocations: 429.5 kB / 10.39 GB, free: 109.2 MB / 1.401 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.0616/38.92, allocations: 13.5 MB / 10.4 GB, free: 103.8 MB / 1.401 GB Notification: Performance of prepare preOptimizeDAE: time 4.565e-05/38.92, allocations: 10.19 kB / 10.4 GB, free: 103.8 MB / 1.401 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01873/38.94, allocations: 2.542 MB / 10.4 GB, free: 102.9 MB / 1.401 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.07316/39.01, allocations: 21.67 MB / 10.42 GB, free: 100.4 MB / 1.401 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006819/39.01, allocations: 254.5 kB / 10.42 GB, free: 100.4 MB / 1.401 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.006289/39.02, allocations: 0.5848 MB / 10.42 GB, free: 100.4 MB / 1.401 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.03874/39.06, allocations: 19.68 MB / 10.44 GB, free: 100.4 MB / 1.401 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04592/39.1, allocations: 14.47 MB / 10.46 GB, free: 99.62 MB / 1.401 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.000558/39.1, allocations: 19.27 kB / 10.46 GB, free: 99.61 MB / 1.401 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004717/39.11, allocations: 7.719 kB / 10.46 GB, free: 99.61 MB / 1.401 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003877/39.11, allocations: 370.9 kB / 10.46 GB, free: 99.6 MB / 1.401 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.1526/39.26, allocations: 78.48 MB / 10.53 GB, free: 66.09 MB / 1.401 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02371/39.29, allocations: 12.71 MB / 10.55 GB, free: 65.66 MB / 1.401 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01893/39.3, allocations: 9.457 MB / 10.56 GB, free: 65.59 MB / 1.401 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.08517/39.39, allocations: 33.79 MB / 10.59 GB, free: 56.75 MB / 1.401 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.01877/39.41, allocations: 9.137 MB / 10.6 GB, free: 56.59 MB / 1.401 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.04726/39.46, allocations: 14.92 MB / 10.61 GB, free: 56.32 MB / 1.401 GB Notification: Performance of pre-optimization done (n=614): time 7.467e-05/39.46, allocations: 0 / 10.61 GB, free: 56.32 MB / 1.401 GB Notification: Performance of matching and sorting (n=616): time 0.6575/40.11, allocations: 139.4 MB / 10.75 GB, free: 50.22 MB / 1.401 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001035/40.11, allocations: 117.8 kB / 10.75 GB, free: 50.15 MB / 1.401 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.03797/40.15, allocations: 13.38 MB / 10.76 GB, free: 49.37 MB / 1.401 GB Notification: Performance of collectPreVariables (initialization): time 0.004798/40.16, allocations: 45.78 kB / 10.76 GB, free: 49.33 MB / 1.401 GB Notification: Performance of collectInitialEqns (initialization): time 0.01267/40.17, allocations: 7.293 MB / 10.77 GB, free: 47.7 MB / 1.401 GB Notification: Performance of collectInitialBindings (initialization): time 0.006431/40.18, allocations: 2.102 MB / 10.77 GB, free: 46.3 MB / 1.401 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.005053/40.18, allocations: 0 / 10.77 GB, free: 46.3 MB / 1.401 GB Notification: Performance of setup shared object (initialization): time 0.001258/40.18, allocations: 0.6457 MB / 10.77 GB, free: 45.98 MB / 1.401 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01764/40.2, allocations: 8.035 MB / 10.78 GB, free: 44.68 MB / 1.401 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01844/40.22, allocations: 10.79 MB / 10.79 GB, free: 35.7 MB / 1.401 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02048/40.24, allocations: 9.369 MB / 10.8 GB, free: 27.93 MB / 1.401 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001615/40.24, allocations: 16 kB / 10.8 GB, free: 27.92 MB / 1.401 GB Notification: Performance of matching and sorting (n=1100) (initialization): time 2.047/42.29, allocations: 124.2 MB / 10.92 GB, free: 116.5 MB / 1.417 GB Notification: Performance of prepare postOptimizeDAE: time 0.007304/42.29, allocations: 35.28 MB / 10.95 GB, free: 79.59 MB / 1.417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002342/42.29, allocations: 51.44 kB / 10.95 GB, free: 79.59 MB / 1.417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.632/42.93, allocations: 143.4 MB / 11.09 GB, free: 78.22 MB / 1.417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01487/42.94, allocations: 2.696 MB / 11.1 GB, free: 78.21 MB / 1.417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1402/43.08, allocations: 67.29 MB / 11.16 GB, free: 71.9 MB / 1.417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02562/43.11, allocations: 1.075 MB / 11.16 GB, free: 71.84 MB / 1.417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.006054/43.11, allocations: 0.8031 MB / 11.16 GB, free: 71.84 MB / 1.417 GB Notification: Performance of prepare postOptimizeDAE: time 1.765e-05/43.11, allocations: 2.938 kB / 11.16 GB, free: 71.84 MB / 1.417 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.5763/43.69, allocations: 120.7 MB / 11.28 GB, free: 29.7 MB / 1.417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003524/43.69, allocations: 52 kB / 11.28 GB, free: 29.65 MB / 1.417 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.759/45.45, allocations: 143.4 MB / 11.42 GB, free: 203.8 MB / 1.51 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01248/45.46, allocations: 2.672 MB / 11.42 GB, free: 203.8 MB / 1.51 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1447/45.61, allocations: 69.41 MB / 11.49 GB, free: 200.5 MB / 1.51 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02078/45.63, allocations: 1.044 MB / 11.49 GB, free: 200.5 MB / 1.51 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.004688/45.63, allocations: 0.7576 MB / 11.49 GB, free: 200.5 MB / 1.51 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 (905): * Single equations (assignments): 891 * 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.005772/45.64, allocations: 315.2 kB / 11.49 GB, free: 200.4 MB / 1.51 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.006211/45.64, allocations: 1.4 MB / 11.5 GB, free: 200.4 MB / 1.51 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.1923/45.84, allocations: 43.9 MB / 11.54 GB, free: 199.8 MB / 1.51 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001288/45.84, allocations: 70.31 kB / 11.54 GB, free: 199.8 MB / 1.51 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001112/45.84, allocations: 34.8 kB / 11.54 GB, free: 199.8 MB / 1.51 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.164/46, allocations: 38.75 MB / 11.58 GB, free: 199.1 MB / 1.51 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2287/46.23, allocations: 58.92 MB / 11.63 GB, free: 195.1 MB / 1.51 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.8e-05/46.23, allocations: 6.359 kB / 11.63 GB, free: 195.1 MB / 1.51 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00769/46.24, allocations: 1.224 MB / 11.64 GB, free: 195.1 MB / 1.51 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.1822/46.42, allocations: 40.74 MB / 11.68 GB, free: 195 MB / 1.51 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002437/46.42, allocations: 158.1 kB / 11.68 GB, free: 195 MB / 1.51 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.05519/46.48, allocations: 27.51 MB / 11.7 GB, free: 189.1 MB / 1.51 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.558e-06/46.48, allocations: 5.031 kB / 11.7 GB, free: 189.1 MB / 1.51 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1905/46.67, allocations: 49.34 MB / 11.75 GB, free: 187.6 MB / 1.51 GB Notification: Performance of postOpt removeConstants (simulation): time 0.01234/46.68, allocations: 3.285 MB / 11.75 GB, free: 186.7 MB / 1.51 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.007208/46.69, allocations: 74.69 kB / 11.75 GB, free: 186.7 MB / 1.51 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01724/46.7, allocations: 0.8883 MB / 11.75 GB, free: 186.7 MB / 1.51 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003201/46.71, allocations: 451.7 kB / 11.76 GB, free: 186.7 MB / 1.51 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.002293/46.71, allocations: 268.7 kB / 11.76 GB, free: 186.7 MB / 1.51 GB Notification: Performance of sorting global known variables: time 0.02376/46.73, allocations: 10.07 MB / 11.77 GB, free: 183.6 MB / 1.51 GB Notification: Performance of sort global known variables: time 1.513e-06/46.73, allocations: 2.062 kB / 11.77 GB, free: 183.6 MB / 1.51 GB Notification: Performance of remove unused functions: time 0.05505/46.79, allocations: 7.914 MB / 11.77 GB, free: 176.2 MB / 1.51 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 (559): * Single equations (assignments): 537 * 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.01184/46.8, allocations: 5.226 MB / 11.78 GB, free: 172.1 MB / 1.51 GB Notification: Performance of simCode: created initialization part: time 0.0706/46.87, allocations: 32.98 MB / 11.81 GB, free: 155.2 MB / 1.51 GB Notification: Performance of simCode: created event and clocks part: time 1.307e-05/46.87, allocations: 4 kB / 11.81 GB, free: 155.2 MB / 1.51 GB Notification: Performance of simCode: created simulation system equations: time 0.01863/46.89, allocations: 8.515 MB / 11.82 GB, free: 150.9 MB / 1.51 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.04313/46.93, allocations: 7.101 MB / 11.83 GB, free: 147.3 MB / 1.51 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06256/47, allocations: 26.54 MB / 11.85 GB, free: 128 MB / 1.51 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01505/47.01, allocations: 8.545 MB / 11.86 GB, free: 123 MB / 1.51 GB Notification: Performance of simCode: alias equations: time 0.0387/47.05, allocations: 8.11 MB / 11.87 GB, free: 117.8 MB / 1.51 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004143/47.05, allocations: 0.8053 MB / 11.87 GB, free: 117.1 MB / 1.51 GB Notification: Performance of SimCode: time 1.242e-06/47.05, allocations: 0 / 11.87 GB, free: 117.1 MB / 1.51 GB Notification: Performance of Templates: time 2.737/49.79, allocations: 413 MB / 12.27 GB, free: 171.4 MB / 1.511 GB make -j1 -f Buildings_9_Buildings.Fluid.Examples.FlowSystem.Simplified2.makefile (rm -f Buildings_9_Buildings.Fluid.Examples.FlowSystem.Simplified2.pipe ; mkfifo Buildings_9_Buildings.Fluid.Examples.FlowSystem.Simplified2.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Examples.FlowSystem.Simplified2.pipe >> ../files/Buildings_9_Buildings.Fluid.Examples.FlowSystem.Simplified2.sim & ./Buildings_9_Buildings.Fluid.Examples.FlowSystem.Simplified2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.Examples.FlowSystem.Simplified2.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.Examples.FlowSystem.Simplified2_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_Examples_FlowSystem_Simplified2.csv","../files/Buildings_9_Buildings.Fluid.Examples.FlowSystem.Simplified2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches