Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Fluid.Examples.FlowSystem.Simplified5.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.Simplified5,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.Simplified5") translateModel(Buildings.Fluid.Examples.FlowSystem.Simplified5,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.Simplified5") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.481/1.481, allocations: 249.3 MB / 261.8 MB, free: 5.855 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.001041/0.001041, allocations: 186.5 kB / 321.3 MB, free: 14.64 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.504/1.504, allocations: 205.2 MB / 0.572 GB, free: 10.67 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.001039/0.001039, allocations: 90.45 kB / 0.6764 GB, free: 15.65 MB / 0.5261 GB Notification: Performance of FrontEnd - loaded program: time 3.774e-05/3.777e-05, allocations: 4 kB / 0.7879 GB, free: 97.12 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.248/0.248, allocations: 106.3 MB / 0.8918 GB, free: 6.684 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.652/1.9, allocations: 457.9 MB / 1.339 GB, free: 281.3 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002439/1.9, allocations: 100.8 kB / 1.339 GB, free: 281.2 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 41.5/43.4, allocations: 9.98 GB / 11.32 GB, free: 75.43 MB / 1.135 GB Notification: Performance of FrontEnd: time 1.643e-06/43.4, allocations: 0 / 11.32 GB, free: 75.43 MB / 1.135 GB Notification: Performance of Transformations before backend: time 0.003495/43.4, allocations: 353.8 kB / 11.32 GB, free: 75.36 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: 1521 * Number of variables: 1521 Notification: Performance of Generate backend data structure: time 0.04798/43.45, allocations: 11.13 MB / 11.33 GB, free: 70.3 MB / 1.135 GB Notification: Performance of prepare preOptimizeDAE: time 5.455e-05/43.45, allocations: 10.16 kB / 11.33 GB, free: 70.3 MB / 1.135 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01717/43.47, allocations: 2.226 MB / 11.33 GB, free: 69.47 MB / 1.135 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.06688/43.54, allocations: 18.59 MB / 11.35 GB, free: 67.13 MB / 1.135 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001059/43.54, allocations: 0.5296 MB / 11.35 GB, free: 67.12 MB / 1.135 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005423/43.54, allocations: 0.719 MB / 11.35 GB, free: 67.11 MB / 1.135 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0365/43.58, allocations: 13.04 MB / 11.36 GB, free: 66.46 MB / 1.135 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004666/43.58, allocations: 7.5 kB / 11.36 GB, free: 66.46 MB / 1.135 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003652/43.58, allocations: 246 kB / 11.36 GB, free: 66.46 MB / 1.135 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001688/43.58, allocations: 150.4 kB / 11.37 GB, free: 66.46 MB / 1.135 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03132/43.61, allocations: 17.47 MB / 11.38 GB, free: 66.37 MB / 1.135 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.1345/43.75, allocations: 69.9 MB / 11.45 GB, free: 30.98 MB / 1.135 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01567/43.76, allocations: 9.392 MB / 11.46 GB, free: 26.41 MB / 1.135 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01469/43.78, allocations: 8.408 MB / 11.47 GB, free: 22.61 MB / 1.135 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.06926/43.85, allocations: 29.4 MB / 11.5 GB, free: 1.191 MB / 1.135 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.02314/43.87, allocations: 8.672 MB / 11.5 GB, free: 12.73 MB / 1.151 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.04966/43.92, allocations: 15.23 MB / 11.52 GB, free: 1.949 MB / 1.151 GB Notification: Performance of pre-optimization done (n=393): time 5.268e-05/43.92, allocations: 0 / 11.52 GB, free: 1.949 MB / 1.151 GB Notification: Performance of matching and sorting (n=581): time 1.254/45.18, allocations: 74.67 MB / 11.59 GB, free: 93.4 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001072/45.18, allocations: 114.7 kB / 11.59 GB, free: 93.33 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02983/45.21, allocations: 11.85 MB / 11.6 GB, free: 92.61 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 0.004369/45.21, allocations: 187.8 kB / 11.6 GB, free: 92.58 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 0.01167/45.22, allocations: 6.015 MB / 11.61 GB, free: 91.62 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 0.005289/45.23, allocations: 1.958 MB / 11.61 GB, free: 90.63 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002948/45.23, allocations: 141 kB / 11.61 GB, free: 90.63 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 0.0006322/45.23, allocations: 0.5971 MB / 11.61 GB, free: 90.31 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01361/45.24, allocations: 7.739 MB / 11.62 GB, free: 90.3 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01665/45.26, allocations: 10.32 MB / 11.63 GB, free: 87.43 MB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01513/45.28, allocations: 8.682 MB / 11.64 GB, free: 87.25 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001268/45.28, allocations: 13.62 kB / 11.64 GB, free: 87.25 MB / 1.151 GB Notification: Performance of matching and sorting (n=962) (initialization): time 0.06795/45.34, allocations: 26.02 MB / 11.66 GB, free: 86.23 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 0.006447/45.35, allocations: 29.65 MB / 11.69 GB, free: 55.55 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002763/45.35, allocations: 48.86 kB / 11.69 GB, free: 55.55 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.9136/46.27, allocations: 170.4 MB / 11.86 GB, free: 49.44 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01023/46.28, allocations: 1.688 MB / 11.86 GB, free: 48.24 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04902/46.32, allocations: 26.57 MB / 11.89 GB, free: 32.35 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02078/46.35, allocations: 1.205 MB / 11.89 GB, free: 31.63 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.004957/46.35, allocations: 0.7996 MB / 11.89 GB, free: 30.91 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 1.683e-05/46.35, allocations: 4.938 kB / 11.89 GB, free: 30.91 MB / 1.151 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.05387/46.4, allocations: 25.08 MB / 11.91 GB, free: 14.71 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002338/46.4, allocations: 44 kB / 11.91 GB, free: 14.67 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.689/48.09, allocations: 170.6 MB / 12.08 GB, free: 122 MB / 1.182 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008273/48.1, allocations: 1.682 MB / 12.08 GB, free: 122 MB / 1.182 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05947/48.16, allocations: 30.92 MB / 12.11 GB, free: 118.2 MB / 1.182 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01859/48.18, allocations: 1.175 MB / 12.11 GB, free: 118.2 MB / 1.182 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003726/48.18, allocations: 0.7543 MB / 12.11 GB, free: 118.2 MB / 1.182 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 (662): * Single equations (assignments): 648 * 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 {39 57,6 79,8 77} Notification: Performance of prepare postOptimizeDAE: time 0.006244/48.19, allocations: 0.5254 MB / 12.11 GB, free: 118.1 MB / 1.182 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.007376/48.2, allocations: 1.207 MB / 12.12 GB, free: 118.1 MB / 1.182 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.06097/48.26, allocations: 23.23 MB / 12.14 GB, free: 117.5 MB / 1.182 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000142/48.26, allocations: 83.66 kB / 12.14 GB, free: 117.5 MB / 1.182 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.844e-05/48.26, allocations: 0 / 12.14 GB, free: 117.5 MB / 1.182 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.03879/48.3, allocations: 17.71 MB / 12.16 GB, free: 116.8 MB / 1.182 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 postOpt removeSimpleEquations (simulation): time 0.1499/48.45, allocations: 53.92 MB / 12.21 GB, free: 110.2 MB / 1.182 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.032e-05/48.45, allocations: 7.188 kB / 12.21 GB, free: 110.2 MB / 1.182 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00616/48.45, allocations: 1.19 MB / 12.21 GB, free: 110.2 MB / 1.182 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.2099/48.66, allocations: 48.87 MB / 12.26 GB, free: 104.7 MB / 1.182 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002237/48.67, allocations: 203.4 kB / 12.26 GB, free: 104.6 MB / 1.182 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02444/48.69, allocations: 14.71 MB / 12.27 GB, free: 94.2 MB / 1.182 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.191e-05/48.69, allocations: 11.28 kB / 12.27 GB, free: 94.19 MB / 1.182 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.06702/48.76, allocations: 32.61 MB / 12.3 GB, free: 76.37 MB / 1.182 GB Notification: Performance of postOpt removeConstants (simulation): time 0.01138/48.77, allocations: 2.917 MB / 12.31 GB, free: 74.62 MB / 1.182 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.005649/48.77, allocations: 127.4 kB / 12.31 GB, free: 74.59 MB / 1.182 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01502/48.79, allocations: 0.9403 MB / 12.31 GB, free: 74.03 MB / 1.182 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002434/48.79, allocations: 463.5 kB / 12.31 GB, free: 73.8 MB / 1.182 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001807/48.79, allocations: 283.3 kB / 12.31 GB, free: 73.61 MB / 1.182 GB Notification: Performance of sorting global known variables: time 0.0207/48.81, allocations: 9.032 MB / 12.32 GB, free: 68.5 MB / 1.182 GB Notification: Performance of sort global known variables: time 4.81e-07/48.81, allocations: 0 / 12.32 GB, free: 68.5 MB / 1.182 GB Notification: Performance of remove unused functions: time 0.04478/48.86, allocations: 6.512 MB / 12.32 GB, free: 62.8 MB / 1.182 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 31 * Number of states: 3 (valSouth.vol.dynBal.U,valNorth.vol.dynBal.U,heater.outCon.T) * 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 (491): * Single equations (assignments): 469 * 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 {5 76,37 57,8 77} Notification: Performance of Backend phase and start with SimCode phase: time 0.009606/48.87, allocations: 5.006 MB / 12.33 GB, free: 58.57 MB / 1.182 GB Notification: Performance of simCode: created initialization part: time 0.07392/48.94, allocations: 33.34 MB / 12.36 GB, free: 41.44 MB / 1.182 GB Notification: Performance of simCode: created event and clocks part: time 1.453e-05/48.94, allocations: 4.875 kB / 12.36 GB, free: 41.43 MB / 1.182 GB Notification: Performance of simCode: created simulation system equations: time 0.01957/48.96, allocations: 9.168 MB / 12.37 GB, free: 36.69 MB / 1.182 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.03492/49, allocations: 6.28 MB / 12.38 GB, free: 33.2 MB / 1.182 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05108/49.05, allocations: 21.26 MB / 12.4 GB, free: 13.29 MB / 1.182 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.011/51.06, allocations: 7.176 MB / 12.4 GB, free: 108.4 MB / 1.182 GB Notification: Performance of simCode: alias equations: time 0.03548/51.1, allocations: 6.345 MB / 12.41 GB, free: 108.2 MB / 1.182 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00414/51.1, allocations: 0.7178 MB / 12.41 GB, free: 108.2 MB / 1.182 GB Notification: Performance of SimCode: time 1.603e-06/51.1, allocations: 0 / 12.41 GB, free: 108.2 MB / 1.182 GB Notification: Performance of Templates: time 0.6357/51.74, allocations: 435.9 MB / 12.84 GB, free: 6.086 MB / 1.261 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Fluid.Examples.FlowSystem.Simplified5.makefile (rm -f Buildings_maint.7.0.x_Buildings.Fluid.Examples.FlowSystem.Simplified5.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Fluid.Examples.FlowSystem.Simplified5.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Fluid.Examples.FlowSystem.Simplified5.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Fluid.Examples.FlowSystem.Simplified5.sim & ./Buildings_maint.7.0.x_Buildings.Fluid.Examples.FlowSystem.Simplified5 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Fluid.Examples.FlowSystem.Simplified5.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Fluid.Examples.FlowSystem.Simplified5_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Fluid_Examples_FlowSystem_Simplified5.csv","../files/Buildings_maint.7.0.x_Buildings.Fluid.Examples.FlowSystem.Simplified5.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches