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.384/2.384, allocations: 387.1 MB / 399.7 MB, free: 9.512 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.001054/0.001054, allocations: 176.9 kB / 492.3 MB, free: 0.6289 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.55/1.55, allocations: 221.3 MB / 0.7871 GB, free: 13 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.0009286/0.0009288, allocations: 94.77 kB / 0.9267 GB, free: 14.05 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 2.945e-05/2.948e-05, allocations: 4 kB / 1.073 GB, free: 180.4 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3066/0.3067, allocations: 142.3 MB / 1.212 GB, free: 38.56 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.371/1.678, allocations: 463 MB / 1.665 GB, free: 100 kB / 1.073 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000335/1.678, allocations: 97.77 kB / 1.665 GB, free: 52 kB / 1.073 GB Notification: Performance of FrontEnd - DAE generated: time 44.94/46.62, allocations: 10.55 GB / 12.21 GB, free: 103.4 MB / 1.432 GB Notification: Performance of FrontEnd: time 2.635e-06/46.62, allocations: 0 / 12.21 GB, free: 103.4 MB / 1.432 GB Notification: Performance of Transformations before backend: time 0.002997/46.62, allocations: 398.3 kB / 12.21 GB, free: 103.3 MB / 1.432 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.05334/46.68, allocations: 12.16 MB / 12.22 GB, free: 97.84 MB / 1.432 GB Notification: Performance of prepare preOptimizeDAE: time 4.31e-05/46.68, allocations: 9 kB / 12.22 GB, free: 97.84 MB / 1.432 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01792/46.69, allocations: 2.554 MB / 12.23 GB, free: 96.92 MB / 1.432 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.06641/46.76, allocations: 20.4 MB / 12.25 GB, free: 94.36 MB / 1.432 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008734/46.76, allocations: 0.6022 MB / 12.25 GB, free: 94.35 MB / 1.432 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004207/46.77, allocations: 0.8122 MB / 12.25 GB, free: 94.34 MB / 1.432 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03151/46.8, allocations: 14.03 MB / 12.26 GB, free: 93.51 MB / 1.432 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.000236/46.8, allocations: 13.56 kB / 12.26 GB, free: 93.5 MB / 1.432 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001893/46.8, allocations: 291.7 kB / 12.26 GB, free: 93.5 MB / 1.432 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001455/46.8, allocations: 190.8 kB / 12.26 GB, free: 93.49 MB / 1.432 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03003/46.83, allocations: 18.1 MB / 12.28 GB, free: 93.38 MB / 1.432 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.1252/46.96, allocations: 74.52 MB / 12.35 GB, free: 58.84 MB / 1.432 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01365/46.97, allocations: 9.574 MB / 12.36 GB, free: 54.48 MB / 1.432 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01179/46.98, allocations: 8.509 MB / 12.37 GB, free: 50.65 MB / 1.432 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.06548/47.05, allocations: 30.39 MB / 12.4 GB, free: 33.9 MB / 1.432 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0123/47.06, allocations: 8.127 MB / 12.41 GB, free: 30.93 MB / 1.432 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.04161/47.1, allocations: 14.97 MB / 12.42 GB, free: 22.62 MB / 1.432 GB Notification: Performance of pre-optimization done (n=427): time 4.046e-05/47.1, allocations: 0 / 12.42 GB, free: 22.62 MB / 1.432 GB Notification: Performance of matching and sorting (n=613): time 1.381/48.48, allocations: 74.17 MB / 12.49 GB, free: 124 MB / 1.448 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.668e-05/48.48, allocations: 114.8 kB / 12.49 GB, free: 124 MB / 1.448 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02945/48.51, allocations: 12.79 MB / 12.51 GB, free: 123.2 MB / 1.448 GB Notification: Performance of collectPreVariables (initialization): time 0.003826/48.51, allocations: 191.7 kB / 12.51 GB, free: 123.2 MB / 1.448 GB Notification: Performance of collectInitialEqns (initialization): time 0.01047/48.53, allocations: 6.682 MB / 12.51 GB, free: 122.1 MB / 1.448 GB Notification: Performance of collectInitialBindings (initialization): time 0.0052/48.53, allocations: 2.074 MB / 12.51 GB, free: 121.1 MB / 1.448 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002338/48.53, allocations: 156.9 kB / 12.52 GB, free: 121.1 MB / 1.448 GB Notification: Performance of setup shared object (initialization): time 0.0006633/48.53, allocations: 0.6134 MB / 12.52 GB, free: 120.8 MB / 1.448 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0146/48.55, allocations: 7.833 MB / 12.52 GB, free: 120.8 MB / 1.448 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01709/48.57, allocations: 10.61 MB / 12.53 GB, free: 117.6 MB / 1.448 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01637/48.58, allocations: 8.817 MB / 12.54 GB, free: 117.5 MB / 1.448 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.53e-05/48.58, allocations: 19.33 kB / 12.54 GB, free: 117.5 MB / 1.448 GB Notification: Performance of matching and sorting (n=1035) (initialization): time 0.05969/48.64, allocations: 26 MB / 12.57 GB, free: 116.4 MB / 1.448 GB Notification: Performance of prepare postOptimizeDAE: time 0.006404/48.65, allocations: 34.9 MB / 12.6 GB, free: 80.36 MB / 1.448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003484/48.65, allocations: 53.47 kB / 12.6 GB, free: 80.36 MB / 1.448 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.6341/49.28, allocations: 146.4 MB / 12.74 GB, free: 79.9 MB / 1.448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01485/49.3, allocations: 1.992 MB / 12.75 GB, free: 79.88 MB / 1.448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04669/49.34, allocations: 24.61 MB / 12.77 GB, free: 74.64 MB / 1.448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02326/49.37, allocations: 1.399 MB / 12.77 GB, free: 74.52 MB / 1.448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.004791/49.37, allocations: 0.819 MB / 12.77 GB, free: 74.52 MB / 1.448 GB Notification: Performance of prepare postOptimizeDAE: time 1.679e-05/49.37, allocations: 5.438 kB / 12.77 GB, free: 74.52 MB / 1.448 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.05271/49.43, allocations: 24.96 MB / 12.8 GB, free: 74.09 MB / 1.448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002576/49.43, allocations: 53.88 kB / 12.8 GB, free: 74.09 MB / 1.448 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.6186/50.04, allocations: 146.8 MB / 12.94 GB, free: 20.97 MB / 1.448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01045/50.05, allocations: 1.982 MB / 12.94 GB, free: 19.12 MB / 1.448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05173/50.11, allocations: 28.87 MB / 12.97 GB, free: 13.21 MB / 1.464 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02323/50.13, allocations: 1.373 MB / 12.97 GB, free: 12.01 MB / 1.464 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.004667/50.13, allocations: 0.7726 MB / 12.97 GB, free: 11.3 MB / 1.464 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (761): * Single equations (assignments): 747 * 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,5 80,5 80} Notification: Performance of prepare postOptimizeDAE: time 0.006077/50.14, allocations: 0.5597 MB / 12.97 GB, free: 11.08 MB / 1.464 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.006555/50.15, allocations: 1.303 MB / 12.97 GB, free: 9.758 MB / 1.464 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.07852/50.23, allocations: 26.75 MB / 13 GB, free: 7.465 MB / 1.479 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002409/50.23, allocations: 74.69 kB / 13 GB, free: 7.395 MB / 1.479 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.363e-05/50.23, allocations: 0 / 13 GB, free: 7.395 MB / 1.479 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.331/51.56, allocations: 21.17 MB / 13.02 GB, free: 147.7 MB / 1.479 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.1946/51.75, allocations: 60.13 MB / 13.08 GB, free: 141.4 MB / 1.479 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.602e-05/51.75, allocations: 7.625 kB / 13.08 GB, free: 141.4 MB / 1.479 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007471/51.76, allocations: 1.398 MB / 13.08 GB, free: 141.4 MB / 1.479 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.181/51.94, allocations: 41.91 MB / 13.12 GB, free: 141.3 MB / 1.479 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00257/51.94, allocations: 205.2 kB / 13.12 GB, free: 141.3 MB / 1.479 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02182/51.96, allocations: 13.64 MB / 13.14 GB, free: 136.2 MB / 1.479 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.529e-05/51.96, allocations: 15.36 kB / 13.14 GB, free: 136.2 MB / 1.479 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1035/52.07, allocations: 38.74 MB / 13.17 GB, free: 132.7 MB / 1.479 GB Notification: Performance of postOpt removeConstants (simulation): time 0.01428/52.08, allocations: 3.132 MB / 13.18 GB, free: 131.9 MB / 1.479 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.007508/52.09, allocations: 138.3 kB / 13.18 GB, free: 131.9 MB / 1.479 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.02052/52.11, allocations: 1.095 MB / 13.18 GB, free: 131.9 MB / 1.479 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002781/52.11, allocations: 481.1 kB / 13.18 GB, free: 131.9 MB / 1.479 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001976/52.12, allocations: 308.9 kB / 13.18 GB, free: 131.9 MB / 1.479 GB Notification: Performance of sorting global known variables: time 0.02495/52.14, allocations: 9.738 MB / 13.19 GB, free: 131.5 MB / 1.479 GB Notification: Performance of sort global known variables: time 8.52e-07/52.14, allocations: 0 / 13.19 GB, free: 131.5 MB / 1.479 GB Notification: Performance of remove unused functions: time 0.05551/52.2, allocations: 7.216 MB / 13.2 GB, free: 131.5 MB / 1.479 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) * Top-level inputs: 0 Notification: Strong component statistics for simulation (537): * Single equations (assignments): 515 * 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 {7 74,30 38,5 80} Notification: Performance of Backend phase and start with SimCode phase: time 0.01185/52.21, allocations: 5.549 MB / 13.2 GB, free: 129.5 MB / 1.479 GB Notification: Performance of simCode: created initialization part: time 0.0745/52.28, allocations: 33.03 MB / 13.23 GB, free: 128.7 MB / 1.479 GB Notification: Performance of simCode: created event and clocks part: time 2.373e-05/52.28, allocations: 2.875 kB / 13.23 GB, free: 128.7 MB / 1.479 GB Notification: Performance of simCode: created simulation system equations: time 0.01963/52.3, allocations: 8.96 MB / 13.24 GB, free: 128.6 MB / 1.479 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.03717/52.34, allocations: 6.731 MB / 13.25 GB, free: 128.5 MB / 1.479 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04894/52.39, allocations: 23.05 MB / 13.27 GB, free: 123.8 MB / 1.479 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01051/52.4, allocations: 7.734 MB / 13.28 GB, free: 122.8 MB / 1.479 GB Notification: Performance of simCode: alias equations: time 0.03349/52.43, allocations: 6.844 MB / 13.29 GB, free: 122.7 MB / 1.479 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003753/52.44, allocations: 0.8035 MB / 13.29 GB, free: 122.7 MB / 1.479 GB Notification: Performance of SimCode: time 1.322e-06/52.44, allocations: 0 / 13.29 GB, free: 122.7 MB / 1.479 GB Notification: Performance of Templates: time 2.962/55.4, allocations: 450.2 MB / 13.73 GB, free: 157.9 MB / 1.511 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