Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.Examples.FlowSystem.Simplified4.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.Simplified4,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pmpNorth.m_flow|pmpSouth.m_flow",fileNamePrefix="Buildings_9_Buildings.Fluid.Examples.FlowSystem.Simplified4") translateModel(Buildings.Fluid.Examples.FlowSystem.Simplified4,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pmpNorth.m_flow|pmpSouth.m_flow",fileNamePrefix="Buildings_9_Buildings.Fluid.Examples.FlowSystem.Simplified4") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.341/2.341, allocations: 390.3 MB / 405.3 MB, free: 13.54 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.001139/0.001139, allocations: 187 kB / 498.1 MB, free: 5.809 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.783/1.783, allocations: 223.2 MB / 0.7948 GB, free: 17.96 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.001062/0.001061, allocations: 98.61 kB / 0.9346 GB, free: 6.285 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003819/0.000382, allocations: 7.375 kB / 1.084 GB, free: 221.3 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3617/0.3621, allocations: 142.3 MB / 1.223 GB, free: 114.4 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.362/1.724, allocations: 463 MB / 1.675 GB, free: 14.37 MB / 0.9948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000344/1.725, allocations: 95.95 kB / 1.675 GB, free: 14.32 MB / 0.9948 GB Notification: Performance of FrontEnd - DAE generated: time 45.55/47.28, allocations: 10.58 GB / 12.25 GB, free: 109.4 MB / 1.448 GB Notification: Performance of FrontEnd: time 2.164e-06/47.28, allocations: 0 / 12.25 GB, free: 109.4 MB / 1.448 GB Notification: Performance of Transformations before backend: time 0.003603/47.28, allocations: 396.9 kB / 12.25 GB, free: 109.3 MB / 1.448 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1775 * Number of variables: 1775 Notification: Performance of Generate backend data structure: time 0.08174/47.36, allocations: 18.82 MB / 12.27 GB, free: 102.8 MB / 1.448 GB Notification: Performance of prepare preOptimizeDAE: time 4.837e-05/47.36, allocations: 10.59 kB / 12.27 GB, free: 102.8 MB / 1.448 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01786/47.38, allocations: 2.559 MB / 12.27 GB, free: 102 MB / 1.448 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.07588/47.46, allocations: 20.6 MB / 12.29 GB, free: 99.68 MB / 1.448 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001148/47.46, allocations: 0.6013 MB / 12.29 GB, free: 99.66 MB / 1.448 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005459/47.46, allocations: 0.8153 MB / 12.29 GB, free: 99.66 MB / 1.448 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05096/47.51, allocations: 14.33 MB / 12.31 GB, free: 98.88 MB / 1.448 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.000776/47.51, allocations: 21.95 kB / 12.31 GB, free: 98.87 MB / 1.448 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005049/47.52, allocations: 297 kB / 12.31 GB, free: 98.87 MB / 1.448 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002354/47.52, allocations: 178.6 kB / 12.31 GB, free: 98.87 MB / 1.448 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0377/47.56, allocations: 18.65 MB / 12.33 GB, free: 98.81 MB / 1.448 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.1506/47.71, allocations: 74.56 MB / 12.4 GB, free: 64.93 MB / 1.448 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01814/47.73, allocations: 9.975 MB / 12.41 GB, free: 64.77 MB / 1.448 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.07489/47.8, allocations: 30.02 MB / 12.44 GB, free: 56.29 MB / 1.448 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.01687/47.82, allocations: 8.364 MB / 12.45 GB, free: 56.18 MB / 1.448 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.04486/47.86, allocations: 14.74 MB / 12.46 GB, free: 55.88 MB / 1.448 GB Notification: Performance of pre-optimization done (n=427): time 4.705e-05/47.86, allocations: 1.688 kB / 12.46 GB, free: 55.88 MB / 1.448 GB Notification: Performance of matching and sorting (n=616): time 0.4031/48.27, allocations: 107.7 MB / 12.57 GB, free: 45.95 MB / 1.448 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001079/48.27, allocations: 115.6 kB / 12.57 GB, free: 45.88 MB / 1.448 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.03562/48.3, allocations: 12.93 MB / 12.58 GB, free: 45.14 MB / 1.448 GB Notification: Performance of collectPreVariables (initialization): time 0.004363/48.31, allocations: 195.7 kB / 12.58 GB, free: 45.11 MB / 1.448 GB Notification: Performance of collectInitialEqns (initialization): time 0.01109/48.32, allocations: 6.671 MB / 12.59 GB, free: 43.33 MB / 1.448 GB Notification: Performance of collectInitialBindings (initialization): time 0.005777/48.32, allocations: 2.083 MB / 12.59 GB, free: 41.71 MB / 1.448 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003085/48.33, allocations: 157.9 kB / 12.59 GB, free: 41.59 MB / 1.448 GB Notification: Performance of setup shared object (initialization): time 0.0006888/48.33, allocations: 0.6213 MB / 12.59 GB, free: 41.14 MB / 1.448 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01822/48.34, allocations: 8.604 MB / 12.6 GB, free: 37.91 MB / 1.448 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02135/48.37, allocations: 11.38 MB / 12.61 GB, free: 31.3 MB / 1.448 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02023/48.39, allocations: 9.551 MB / 12.62 GB, free: 27.31 MB / 1.448 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.918e-05/48.39, allocations: 15.12 kB / 12.62 GB, free: 27.31 MB / 1.448 GB Notification: Performance of matching and sorting (n=1038) (initialization): time 0.07099/48.46, allocations: 27.6 MB / 12.64 GB, free: 10.3 MB / 1.448 GB Notification: Performance of prepare postOptimizeDAE: time 0.01316/48.47, allocations: 34.9 MB / 12.68 GB, free: 5.578 MB / 1.479 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.00025/48.47, allocations: 52 kB / 12.68 GB, free: 5.527 MB / 1.479 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.019/50.49, allocations: 152.9 MB / 12.83 GB, free: 140 MB / 1.479 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01295/50.5, allocations: 1.987 MB / 12.83 GB, free: 140 MB / 1.479 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05212/50.56, allocations: 24.82 MB / 12.85 GB, free: 134.9 MB / 1.479 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02866/50.58, allocations: 1.4 MB / 12.85 GB, free: 134.9 MB / 1.479 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.006384/50.59, allocations: 0.8169 MB / 12.86 GB, free: 134.9 MB / 1.479 GB Notification: Performance of prepare postOptimizeDAE: time 2.074e-05/50.59, allocations: 4.062 kB / 12.86 GB, free: 134.9 MB / 1.479 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.06824/50.66, allocations: 26.54 MB / 12.88 GB, free: 134.6 MB / 1.479 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002978/50.66, allocations: 51.66 kB / 12.88 GB, free: 134.6 MB / 1.479 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.5913/51.25, allocations: 147.2 MB / 13.03 GB, free: 132.8 MB / 1.479 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01148/51.26, allocations: 1.974 MB / 13.03 GB, free: 132.7 MB / 1.479 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05736/51.32, allocations: 29.52 MB / 13.06 GB, free: 128.8 MB / 1.479 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02622/51.35, allocations: 1.374 MB / 13.06 GB, free: 128.7 MB / 1.479 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.005193/51.35, allocations: 0.7756 MB / 13.06 GB, free: 128.7 MB / 1.479 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 237 * 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 (758): * Single equations (assignments): 744 * 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: 0 * Non-linear torn systems: 3 {32 38,6 82,6 82} Notification: Performance of prepare postOptimizeDAE: time 0.01676/51.37, allocations: 3.384 MB / 13.06 GB, free: 128.5 MB / 1.479 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.008682/51.38, allocations: 1.3 MB / 13.06 GB, free: 128.5 MB / 1.479 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.1953/51.57, allocations: 47.35 MB / 13.11 GB, free: 99.7 MB / 1.479 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001821/51.57, allocations: 79.98 kB / 13.11 GB, free: 99.62 MB / 1.479 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.703e-05/51.57, allocations: 0 / 13.11 GB, free: 99.62 MB / 1.479 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.1653/51.74, allocations: 41.72 MB / 13.15 GB, free: 65.17 MB / 1.479 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 postOpt removeSimpleEquations (simulation): time 0.1212/51.86, allocations: 48.85 MB / 13.2 GB, free: 31.64 MB / 1.479 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.415e-05/51.86, allocations: 12.03 kB / 13.2 GB, free: 31.63 MB / 1.479 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007886/51.87, allocations: 1.386 MB / 13.2 GB, free: 30.34 MB / 1.479 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.1756/52.04, allocations: 42.02 MB / 13.24 GB, free: 5.488 MB / 1.495 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002864/52.05, allocations: 214.5 kB / 13.24 GB, free: 5.379 MB / 1.495 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02461/52.07, allocations: 13.76 MB / 13.25 GB, free: 10.71 MB / 1.51 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.47e-05/52.07, allocations: 12.59 kB / 13.25 GB, free: 10.7 MB / 1.51 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 1.462/53.53, allocations: 45.32 MB / 13.3 GB, free: 168.5 MB / 1.51 GB Notification: Performance of postOpt removeConstants (simulation): time 0.01401/53.55, allocations: 3.136 MB / 13.3 GB, free: 168.4 MB / 1.51 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.006644/53.55, allocations: 135.6 kB / 13.3 GB, free: 168.4 MB / 1.51 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01716/53.57, allocations: 1.092 MB / 13.3 GB, free: 168.4 MB / 1.51 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002343/53.57, allocations: 478.2 kB / 13.3 GB, free: 168.4 MB / 1.51 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001302/53.57, allocations: 310.2 kB / 13.3 GB, free: 168.4 MB / 1.51 GB Notification: Performance of sorting global known variables: time 0.02547/53.6, allocations: 9.884 MB / 13.31 GB, free: 168 MB / 1.51 GB Notification: Performance of sort global known variables: time 4.91e-07/53.6, allocations: 0 / 13.31 GB, free: 168 MB / 1.51 GB Notification: Performance of remove unused functions: time 0.06473/53.66, allocations: 7.237 MB / 13.32 GB, free: 168 MB / 1.51 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 29 * Number of states: 8 (valSouth.vol.dynBal.U,valNorth.vol.dynBal.U,spl.vol.dynBal.U,spl1.vol.dynBal.U,pumpHea.vol.dynBal.U,spl2.vol.dynBal.U,spl3.vol.dynBal.U,pumpCoo.vol.dynBal.U) * 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 (536): * Single equations (assignments): 514 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 10 * When equations: 3 * 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: 0 * Non-linear torn systems: 3 {8 74,30 38,6 82} Notification: Performance of Backend phase and start with SimCode phase: time 0.01271/53.68, allocations: 5.554 MB / 13.32 GB, free: 166 MB / 1.51 GB Notification: Performance of simCode: created initialization part: time 0.08916/53.77, allocations: 34.83 MB / 13.36 GB, free: 165.4 MB / 1.51 GB Notification: Performance of simCode: created event and clocks part: time 2.048e-05/53.77, allocations: 3.594 kB / 13.36 GB, free: 165.4 MB / 1.51 GB Notification: Performance of simCode: created simulation system equations: time 0.02306/53.79, allocations: 9.643 MB / 13.37 GB, free: 165.3 MB / 1.51 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.04046/53.83, allocations: 6.733 MB / 13.38 GB, free: 165.3 MB / 1.51 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07639/53.91, allocations: 32.6 MB / 13.41 GB, free: 153.3 MB / 1.51 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0233/53.93, allocations: 7.703 MB / 13.41 GB, free: 152.4 MB / 1.51 GB Notification: Performance of simCode: alias equations: time 0.02923/53.96, allocations: 4.135 MB / 13.42 GB, free: 152.2 MB / 1.51 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00814/53.97, allocations: 1.101 MB / 13.42 GB, free: 152.2 MB / 1.51 GB Notification: Performance of SimCode: time 1.744e-06/53.97, allocations: 0 / 13.42 GB, free: 152.2 MB / 1.51 GB Notification: Performance of Templates: time 3.092/57.06, allocations: 419.8 MB / 13.83 GB, free: 201.8 MB / 1.542 GB make -j1 -f Buildings_9_Buildings.Fluid.Examples.FlowSystem.Simplified4.makefile (rm -f Buildings_9_Buildings.Fluid.Examples.FlowSystem.Simplified4.pipe ; mkfifo Buildings_9_Buildings.Fluid.Examples.FlowSystem.Simplified4.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Examples.FlowSystem.Simplified4.pipe >> ../files/Buildings_9_Buildings.Fluid.Examples.FlowSystem.Simplified4.sim & ./Buildings_9_Buildings.Fluid.Examples.FlowSystem.Simplified4 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.Examples.FlowSystem.Simplified4.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.Examples.FlowSystem.Simplified4_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_Examples_FlowSystem_Simplified4.csv","../files/Buildings_9_Buildings.Fluid.Examples.FlowSystem.Simplified4.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches