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.454/1.454, allocations: 249.5 MB / 257 MB, free: 6.926 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.001068/0.001068, allocations: 179.6 kB / 316.3 MB, free: 3.227 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.645/1.645, allocations: 205.3 MB / 0.5671 GB, free: 15.89 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.0008885/0.0008884, allocations: 96.28 kB / 0.6714 GB, free: 5 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 2.763e-05/2.753e-05, allocations: 4 kB / 0.7814 GB, free: 102.7 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.233/0.2331, allocations: 106.3 MB / 0.8852 GB, free: 12.28 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.708/1.941, allocations: 458.1 MB / 1.333 GB, free: 248.7 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002457/1.941, allocations: 99.22 kB / 1.333 GB, free: 248.7 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 41.24/43.18, allocations: 9.934 GB / 11.27 GB, free: 77 MB / 1.135 GB Notification: Performance of FrontEnd: time 1.933e-06/43.18, allocations: 0 / 11.27 GB, free: 77 MB / 1.135 GB Notification: Performance of Transformations before backend: time 0.002668/43.18, allocations: 355.3 kB / 11.27 GB, free: 76.94 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.04152/43.22, allocations: 11.13 MB / 11.28 GB, free: 71.88 MB / 1.135 GB Notification: Performance of prepare preOptimizeDAE: time 4.843e-05/43.22, allocations: 13.28 kB / 11.28 GB, free: 71.88 MB / 1.135 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01442/43.24, allocations: 2.223 MB / 11.28 GB, free: 71.05 MB / 1.135 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.05705/43.3, allocations: 18.59 MB / 11.3 GB, free: 68.71 MB / 1.135 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000441/43.3, allocations: 201.1 kB / 11.3 GB, free: 68.71 MB / 1.135 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003528/43.3, allocations: 436.8 kB / 11.3 GB, free: 68.7 MB / 1.135 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02621/43.33, allocations: 17.83 MB / 11.32 GB, free: 68.67 MB / 1.135 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02325/43.35, allocations: 12.17 MB / 11.33 GB, free: 68.05 MB / 1.135 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001143/43.35, allocations: 10.81 kB / 11.33 GB, free: 68.04 MB / 1.135 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009736/43.35, allocations: 3.25 kB / 11.33 GB, free: 68.04 MB / 1.135 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.433e-05/43.35, allocations: 151.5 kB / 11.33 GB, free: 68.04 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.1065/43.46, allocations: 68.99 MB / 11.4 GB, free: 35.59 MB / 1.135 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01217/43.47, allocations: 10.17 MB / 11.41 GB, free: 32.54 MB / 1.135 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01045/43.48, allocations: 8.738 MB / 11.41 GB, free: 28.63 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.06499/43.55, allocations: 29.28 MB / 11.44 GB, free: 12.73 MB / 1.135 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.01313/43.56, allocations: 7.947 MB / 11.45 GB, free: 9.18 MB / 1.135 GB Notification: Performance of preOpt simplifyInStream (simulation): time 1.084/44.64, allocations: 15.68 MB / 11.47 GB, free: 85.13 MB / 1.135 GB Notification: Performance of pre-optimization done (n=393): time 5.643e-05/44.64, allocations: 0.5 kB / 11.47 GB, free: 85.13 MB / 1.135 GB Notification: Performance of matching and sorting (n=395): time 0.1133/44.76, allocations: 37.04 MB / 11.5 GB, free: 83.35 MB / 1.135 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.44e-05/44.76, allocations: 95.03 kB / 11.5 GB, free: 83.28 MB / 1.135 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.03075/44.79, allocations: 11.13 MB / 11.51 GB, free: 82.63 MB / 1.135 GB Notification: Performance of collectPreVariables (initialization): time 0.003473/44.79, allocations: 38.73 kB / 11.51 GB, free: 82.6 MB / 1.135 GB Notification: Performance of collectInitialEqns (initialization): time 0.008388/44.8, allocations: 5.985 MB / 11.52 GB, free: 81.66 MB / 1.135 GB Notification: Performance of collectInitialBindings (initialization): time 0.004339/44.8, allocations: 1.294 MB / 11.52 GB, free: 80.99 MB / 1.135 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002271/44.81, allocations: 3.688 kB / 11.52 GB, free: 80.99 MB / 1.135 GB Notification: Performance of setup shared object (initialization): time 0.0005331/44.81, allocations: 0.5374 MB / 11.52 GB, free: 80.67 MB / 1.135 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01091/44.82, allocations: 6.884 MB / 11.53 GB, free: 80.66 MB / 1.135 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01351/44.83, allocations: 9.293 MB / 11.54 GB, free: 77.8 MB / 1.135 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01507/44.85, allocations: 7.938 MB / 11.54 GB, free: 77.68 MB / 1.135 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001259/44.85, allocations: 14.12 kB / 11.54 GB, free: 77.68 MB / 1.135 GB Notification: Performance of matching and sorting (n=776) (initialization): time 0.05981/44.91, allocations: 22.88 MB / 11.57 GB, free: 76.79 MB / 1.135 GB Notification: Performance of prepare postOptimizeDAE: time 0.008287/44.91, allocations: 29.53 MB / 11.6 GB, free: 46.11 MB / 1.135 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002115/44.91, allocations: 48.77 kB / 11.6 GB, free: 46.11 MB / 1.135 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.7357/45.65, allocations: 167.2 MB / 11.76 GB, free: 45.19 MB / 1.135 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009058/45.66, allocations: 1.289 MB / 11.76 GB, free: 45.18 MB / 1.135 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04913/45.71, allocations: 25.49 MB / 11.78 GB, free: 41.03 MB / 1.135 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01897/45.73, allocations: 0.8099 MB / 11.79 GB, free: 40.95 MB / 1.135 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.004017/45.73, allocations: 0.7278 MB / 11.79 GB, free: 40.95 MB / 1.135 GB Notification: Performance of prepare postOptimizeDAE: time 2.006e-05/45.73, allocations: 3.75 kB / 11.79 GB, free: 40.95 MB / 1.135 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.04805/45.78, allocations: 20.83 MB / 11.81 GB, free: 39.84 MB / 1.135 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002722/45.78, allocations: 44 kB / 11.81 GB, free: 39.8 MB / 1.135 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.747/47.53, allocations: 167.2 MB / 11.97 GB, free: 124.5 MB / 1.182 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006254/47.53, allocations: 1.277 MB / 11.97 GB, free: 124.5 MB / 1.182 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05133/47.59, allocations: 28.32 MB / 12 GB, free: 121.9 MB / 1.182 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01516/47.6, allocations: 0.7874 MB / 12 GB, free: 121.9 MB / 1.182 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003274/47.6, allocations: 0.6865 MB / 12 GB, free: 121.9 MB / 1.182 GB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: pmpNorth.vol.heaFloSen.Q_flow:VARIABLE(unit = "W" protected = true ) "Heat flow from port_a to port_b as output signal" type: Real pmpSouth.vol.heaFloSen.Q_flow:VARIABLE(unit = "W" protected = true ) "Heat flow from port_a to port_b as output signal" type: Real pumpHea.vol.heaFloSen.Q_flow:VARIABLE(unit = "W" protected = true ) "Heat flow from port_a to port_b as output signal" type: Real pumpCoo.vol.heaFloSen.Q_flow:VARIABLE(unit = "W" protected = true ) "Heat flow from port_a to port_b as output signal" type: Real 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 (560): * Single equations (assignments): 548 * Array equations: 4 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 5 * 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: 5 {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: 2 {40 56,7 78} Notification: Performance of prepare postOptimizeDAE: time 0.004796/47.61, allocations: 294.6 kB / 12 GB, free: 121.8 MB / 1.182 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.004625/47.61, allocations: 1.14 MB / 12 GB, free: 121.8 MB / 1.182 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0355/47.65, allocations: 17.23 MB / 12.02 GB, free: 121.4 MB / 1.182 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.379e-05/47.65, allocations: 50.91 kB / 12.02 GB, free: 121.4 MB / 1.182 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.916e-06/47.65, allocations: 3.953 kB / 12.02 GB, free: 121.4 MB / 1.182 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.02187/47.67, allocations: 12.44 MB / 12.03 GB, free: 120.9 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.1315/47.8, allocations: 45.27 MB / 12.07 GB, free: 114.9 MB / 1.182 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.343e-05/47.8, allocations: 5.359 kB / 12.07 GB, free: 114.9 MB / 1.182 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003953/47.81, allocations: 0.6917 MB / 12.08 GB, free: 114.9 MB / 1.182 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.2113/48.02, allocations: 47.69 MB / 12.12 GB, free: 114.8 MB / 1.182 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00171/48.02, allocations: 72.7 kB / 12.12 GB, free: 114.8 MB / 1.182 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02071/48.04, allocations: 13.17 MB / 12.14 GB, free: 110.8 MB / 1.182 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.035e-06/48.04, allocations: 2.875 kB / 12.14 GB, free: 110.8 MB / 1.182 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1452/48.19, allocations: 40.96 MB / 12.18 GB, free: 109.5 MB / 1.182 GB Notification: Performance of postOpt removeConstants (simulation): time 0.009176/48.19, allocations: 2.53 MB / 12.18 GB, free: 108.8 MB / 1.182 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.005881/48.2, allocations: 6.125 kB / 12.18 GB, free: 108.8 MB / 1.182 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01383/48.21, allocations: 0.6161 MB / 12.18 GB, free: 108.8 MB / 1.182 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0019/48.22, allocations: 297 kB / 12.18 GB, free: 108.8 MB / 1.182 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001508/48.22, allocations: 198.8 kB / 12.18 GB, free: 108.8 MB / 1.182 GB Notification: Performance of sorting global known variables: time 0.01731/48.24, allocations: 8.34 MB / 12.19 GB, free: 108.4 MB / 1.182 GB Notification: Performance of sort global known variables: time 1.393e-06/48.24, allocations: 3.938 kB / 12.19 GB, free: 108.4 MB / 1.182 GB Notification: Performance of remove unused functions: time 0.04238/48.28, allocations: 5.671 MB / 12.19 GB, free: 108.4 MB / 1.182 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * 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 (324): * Single equations (assignments): 304 * 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: 2 * 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: 0 * Non-linear torn systems: 2 {38 56,5 80} Notification: Performance of Backend phase and start with SimCode phase: time 0.009541/48.29, allocations: 4.696 MB / 12.2 GB, free: 106.4 MB / 1.182 GB Notification: Performance of simCode: created initialization part: time 0.06396/48.35, allocations: 28.58 MB / 12.22 GB, free: 93.32 MB / 1.182 GB Notification: Performance of simCode: created event and clocks part: time 1.242e-05/48.35, allocations: 8.062 kB / 12.22 GB, free: 93.31 MB / 1.182 GB Notification: Performance of simCode: created simulation system equations: time 0.01566/48.37, allocations: 7.172 MB / 12.23 GB, free: 89.72 MB / 1.182 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.03307/48.4, allocations: 6.108 MB / 12.24 GB, free: 86.3 MB / 1.182 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03919/48.44, allocations: 18.35 MB / 12.26 GB, free: 72.49 MB / 1.182 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006615/48.45, allocations: 6.78 MB / 12.26 GB, free: 68.33 MB / 1.182 GB Notification: Performance of simCode: alias equations: time 0.02331/48.47, allocations: 5.723 MB / 12.27 GB, free: 64.64 MB / 1.182 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002031/48.47, allocations: 0.6032 MB / 12.27 GB, free: 64.13 MB / 1.182 GB Notification: Performance of SimCode: time 1.222e-06/48.47, allocations: 0 / 12.27 GB, free: 64.13 MB / 1.182 GB Notification: Performance of Templates: time 2.312/50.78, allocations: 367.9 MB / 12.63 GB, free: 68.41 MB / 1.182 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