Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.Examples.FlowSystem.Simplified3.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.Simplified3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pmpNorth.m_flow|pmpSouth.m_flow",fileNamePrefix="Buildings_9_Buildings.Fluid.Examples.FlowSystem.Simplified3") translateModel(Buildings.Fluid.Examples.FlowSystem.Simplified3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pmpNorth.m_flow|pmpSouth.m_flow",fileNamePrefix="Buildings_9_Buildings.Fluid.Examples.FlowSystem.Simplified3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.334/2.334, allocations: 390.3 MB / 405.3 MB, free: 13.51 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.001247/0.001247, allocations: 179.3 kB / 498.1 MB, free: 5.758 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.653/1.653, allocations: 223.2 MB / 0.7948 GB, free: 18.87 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009126/0.0009128, allocations: 100.2 kB / 0.9346 GB, free: 7.16 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003758/0.0003759, allocations: 9.625 kB / 1.084 GB, free: 212.7 MB / 0.8073 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3648/0.3652, allocations: 142.3 MB / 1.223 GB, free: 89.6 MB / 0.8073 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.361/1.726, allocations: 462.6 MB / 1.675 GB, free: 3.562 MB / 1.01 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003041/1.727, allocations: 97.95 kB / 1.675 GB, free: 3.512 MB / 1.01 GB Notification: Performance of FrontEnd - DAE generated: time 39.83/41.56, allocations: 9.6 GB / 11.28 GB, free: 84.21 MB / 1.417 GB Notification: Performance of FrontEnd: time 3.567e-06/41.56, allocations: 9.719 kB / 11.28 GB, free: 84.21 MB / 1.417 GB Notification: Performance of Transformations before backend: time 0.004087/41.57, allocations: 420.3 kB / 11.28 GB, free: 84.14 MB / 1.417 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.09851/41.66, allocations: 20.63 MB / 11.3 GB, free: 76.7 MB / 1.417 GB Notification: Performance of prepare preOptimizeDAE: time 4.875e-05/41.66, allocations: 8.25 kB / 11.3 GB, free: 76.7 MB / 1.417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01959/41.68, allocations: 2.542 MB / 11.3 GB, free: 75.7 MB / 1.417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.09143/41.78, allocations: 21.94 MB / 11.32 GB, free: 73.16 MB / 1.417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00129/41.78, allocations: 0.6806 MB / 11.32 GB, free: 73.14 MB / 1.417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.008385/41.78, allocations: 0.9546 MB / 11.32 GB, free: 73.13 MB / 1.417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05074/41.84, allocations: 15.87 MB / 11.34 GB, free: 72.3 MB / 1.417 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0008215/41.84, allocations: 9.062 kB / 11.34 GB, free: 72.3 MB / 1.417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005187/41.84, allocations: 334 kB / 11.34 GB, free: 72.3 MB / 1.417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006162/41.84, allocations: 363.2 kB / 11.34 GB, free: 72.28 MB / 1.417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04402/41.89, allocations: 20.19 MB / 11.36 GB, free: 72.2 MB / 1.417 GB Warning: The model contains alias variables with redundant start and/or conflicting 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.1859/42.07, allocations: 80.14 MB / 11.44 GB, free: 37.44 MB / 1.417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02528/42.1, allocations: 12.14 MB / 11.45 GB, free: 36.97 MB / 1.417 GB Warning: The model contains alias variables with redundant start and/or conflicting 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.09544/42.19, allocations: 33.43 MB / 11.48 GB, free: 19.32 MB / 1.417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.02062/42.21, allocations: 9.438 MB / 11.49 GB, free: 15.98 MB / 1.417 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.04815/42.26, allocations: 14.83 MB / 11.5 GB, free: 14.5 MB / 1.417 GB Notification: Performance of pre-optimization done (n=593): time 6.987e-05/42.26, allocations: 0 / 11.5 GB, free: 14.5 MB / 1.417 GB Notification: Performance of matching and sorting (n=807): time 2.329/44.59, allocations: 202.1 MB / 11.7 GB, free: 107.7 MB / 1.432 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001459/44.59, allocations: 136.3 kB / 11.7 GB, free: 107.6 MB / 1.432 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.04785/44.64, allocations: 14.42 MB / 11.72 GB, free: 106.9 MB / 1.432 GB Notification: Performance of collectPreVariables (initialization): time 0.005371/44.64, allocations: 232.5 kB / 11.72 GB, free: 106.9 MB / 1.432 GB Notification: Performance of collectInitialEqns (initialization): time 0.01311/44.66, allocations: 7.254 MB / 11.72 GB, free: 105.7 MB / 1.432 GB Notification: Performance of collectInitialBindings (initialization): time 0.0076/44.67, allocations: 2.811 MB / 11.73 GB, free: 104.3 MB / 1.432 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003966/44.67, allocations: 198.8 kB / 11.73 GB, free: 104.3 MB / 1.432 GB Notification: Performance of setup shared object (initialization): time 0.001072/44.67, allocations: 0.7102 MB / 11.73 GB, free: 103.9 MB / 1.432 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.02135/44.69, allocations: 9.889 MB / 11.74 GB, free: 103.9 MB / 1.432 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02681/44.72, allocations: 12.82 MB / 11.75 GB, free: 100.6 MB / 1.432 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02514/44.74, allocations: 11.08 MB / 11.76 GB, free: 100.3 MB / 1.432 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.00013/44.74, allocations: 14.53 kB / 11.76 GB, free: 100.3 MB / 1.432 GB Notification: Performance of matching and sorting (n=1301) (initialization): time 0.5717/45.32, allocations: 128.4 MB / 11.88 GB, free: 96.38 MB / 1.432 GB Notification: Performance of prepare postOptimizeDAE: time 0.009315/45.33, allocations: 36.96 MB / 11.92 GB, free: 57.63 MB / 1.432 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002612/45.33, allocations: 51.84 kB / 11.92 GB, free: 57.63 MB / 1.432 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.5881/45.91, allocations: 146.4 MB / 12.06 GB, free: 2.762 MB / 1.464 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01847/45.93, allocations: 3.236 MB / 12.07 GB, free: 15.71 MB / 1.479 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.584/47.52, allocations: 74.34 MB / 12.14 GB, free: 161.5 MB / 1.495 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02799/47.54, allocations: 1.653 MB / 12.14 GB, free: 161.5 MB / 1.495 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.006102/47.55, allocations: 0.8732 MB / 12.14 GB, free: 161.5 MB / 1.495 GB Notification: Performance of prepare postOptimizeDAE: time 1.796e-05/47.55, allocations: 2.969 kB / 12.14 GB, free: 161.5 MB / 1.495 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.5747/48.12, allocations: 127.2 MB / 12.27 GB, free: 160.9 MB / 1.495 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002833/48.13, allocations: 54.34 kB / 12.27 GB, free: 160.9 MB / 1.495 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.6226/48.75, allocations: 146.7 MB / 12.41 GB, free: 159 MB / 1.495 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01623/48.76, allocations: 3.218 MB / 12.41 GB, free: 159 MB / 1.495 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1487/48.91, allocations: 79.1 MB / 12.49 GB, free: 144.9 MB / 1.495 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02798/48.94, allocations: 1.623 MB / 12.49 GB, free: 143.5 MB / 1.495 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.006046/48.95, allocations: 0.8271 MB / 12.49 GB, free: 142.7 MB / 1.495 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 241 * 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1035): * Single equations (assignments): 1021 * Array equations: 4 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 6 * 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: 6 {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 {6 82,6 82} Notification: Performance of prepare postOptimizeDAE: time 0.02387/48.97, allocations: 3.935 MB / 12.5 GB, free: 140.3 MB / 1.495 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.01105/48.98, allocations: 1.478 MB / 12.5 GB, free: 139.7 MB / 1.495 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2003/49.18, allocations: 50.43 MB / 12.55 GB, free: 99.09 MB / 1.495 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002028/49.18, allocations: 99.94 kB / 12.55 GB, free: 98.99 MB / 1.495 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0002283/49.18, allocations: 28 kB / 12.55 GB, free: 98.96 MB / 1.495 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.176/49.36, allocations: 44.49 MB / 12.59 GB, free: 62.32 MB / 1.495 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 1.574/50.93, allocations: 67.96 MB / 12.66 GB, free: 134.3 MB / 1.495 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001072/50.93, allocations: 0.7812 kB / 12.66 GB, free: 134.3 MB / 1.495 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01258/50.95, allocations: 1.868 MB / 12.66 GB, free: 134.3 MB / 1.495 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.1816/51.13, allocations: 41.76 MB / 12.7 GB, free: 134.3 MB / 1.495 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.003039/51.13, allocations: 333.7 kB / 12.7 GB, free: 134.3 MB / 1.495 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.05827/51.19, allocations: 29.06 MB / 12.73 GB, free: 129 MB / 1.495 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.057e-06/51.19, allocations: 0 / 12.73 GB, free: 129 MB / 1.495 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2158/51.4, allocations: 58.56 MB / 12.78 GB, free: 127.8 MB / 1.495 GB Notification: Performance of postOpt removeConstants (simulation): time 0.01946/51.42, allocations: 3.696 MB / 12.79 GB, free: 127.7 MB / 1.495 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.009868/51.43, allocations: 249.4 kB / 12.79 GB, free: 127.7 MB / 1.495 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.02575/51.46, allocations: 1.345 MB / 12.79 GB, free: 127.7 MB / 1.495 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.004781/51.46, allocations: 0.5722 MB / 12.79 GB, free: 127.7 MB / 1.495 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.003579/51.47, allocations: 361.2 kB / 12.79 GB, free: 127.7 MB / 1.495 GB Notification: Performance of sorting global known variables: time 0.03478/51.5, allocations: 11.07 MB / 12.8 GB, free: 127.3 MB / 1.495 GB Notification: Performance of sort global known variables: time 1.203e-06/51.5, allocations: 2.469 kB / 12.8 GB, free: 127.3 MB / 1.495 GB Notification: Performance of remove unused functions: time 0.07077/51.57, allocations: 8.741 MB / 12.81 GB, free: 127.3 MB / 1.495 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],vol.p) * 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) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (732): * Single equations (assignments): 711 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 10 * When equations: 3 * If-equations: 0 * Equation systems (linear and non-linear blocks): 5 * 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: 5 {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 {6 81,7 83} Notification: Performance of Backend phase and start with SimCode phase: time 0.01348/51.59, allocations: 5.573 MB / 12.82 GB, free: 125.3 MB / 1.495 GB Notification: Performance of simCode: created initialization part: time 0.1038/51.69, allocations: 40.31 MB / 12.86 GB, free: 124.1 MB / 1.495 GB Notification: Performance of simCode: created event and clocks part: time 1.612e-05/51.69, allocations: 3.609 kB / 12.86 GB, free: 124.1 MB / 1.495 GB Notification: Performance of simCode: created simulation system equations: time 0.02852/51.72, allocations: 11.38 MB / 12.87 GB, free: 123.8 MB / 1.495 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0409/51.76, allocations: 7.156 MB / 12.87 GB, free: 123.7 MB / 1.495 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.09497/51.86, allocations: 40.46 MB / 12.91 GB, free: 110.1 MB / 1.495 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02052/51.88, allocations: 8.941 MB / 12.92 GB, free: 109 MB / 1.495 GB Notification: Performance of simCode: alias equations: time 0.03526/51.91, allocations: 5.618 MB / 12.93 GB, free: 108.9 MB / 1.495 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.009168/51.92, allocations: 1.258 MB / 12.93 GB, free: 108.9 MB / 1.495 GB Notification: Performance of SimCode: time 1.613e-06/51.92, allocations: 0 / 12.93 GB, free: 108.9 MB / 1.495 GB Notification: Performance of Templates: time 3.062/54.98, allocations: 450.6 MB / 13.37 GB, free: 184 MB / 1.526 GB make -j1 -f Buildings_9_Buildings.Fluid.Examples.FlowSystem.Simplified3.makefile (rm -f Buildings_9_Buildings.Fluid.Examples.FlowSystem.Simplified3.pipe ; mkfifo Buildings_9_Buildings.Fluid.Examples.FlowSystem.Simplified3.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Examples.FlowSystem.Simplified3.pipe >> ../files/Buildings_9_Buildings.Fluid.Examples.FlowSystem.Simplified3.sim & ./Buildings_9_Buildings.Fluid.Examples.FlowSystem.Simplified3 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.Examples.FlowSystem.Simplified3.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.Examples.FlowSystem.Simplified3_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_Examples_FlowSystem_Simplified3.csv","../files/Buildings_9_Buildings.Fluid.Examples.FlowSystem.Simplified3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches