Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Fluid.Examples.FlowSystem.Simplified4.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.Simplified4,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.Simplified4") translateModel(Buildings.Fluid.Examples.FlowSystem.Simplified4,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.Simplified4") 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.906 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.001093/0.001093, allocations: 180.8 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.665/1.665, allocations: 205.2 MB / 0.572 GB, free: 10.59 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.0009346/0.0009348, allocations: 105.2 kB / 0.6764 GB, free: 15.57 MB / 0.5261 GB Notification: Performance of FrontEnd - loaded program: time 3.742e-05/3.744e-05, allocations: 4 kB / 0.7879 GB, free: 97.1 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2165/0.2166, allocations: 106.3 MB / 0.8918 GB, free: 6.676 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.661/1.878, allocations: 457.2 MB / 1.338 GB, free: 244.3 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002811/1.878, allocations: 91.98 kB / 1.338 GB, free: 244.3 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 42.43/44.31, allocations: 10.04 GB / 11.38 GB, free: 93.08 MB / 1.167 GB Notification: Performance of FrontEnd: time 2.254e-06/44.31, allocations: 0 / 11.38 GB, free: 93.08 MB / 1.167 GB Notification: Performance of Transformations before backend: time 0.003064/44.31, allocations: 386.4 kB / 11.38 GB, free: 93 MB / 1.167 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.04288/44.35, allocations: 12.1 MB / 11.39 GB, free: 87.51 MB / 1.167 GB Notification: Performance of prepare preOptimizeDAE: time 4.918e-05/44.35, allocations: 9.562 kB / 11.39 GB, free: 87.51 MB / 1.167 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01379/44.37, allocations: 2.185 MB / 11.39 GB, free: 86.62 MB / 1.167 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.05634/44.42, allocations: 20.05 MB / 11.41 GB, free: 84.07 MB / 1.167 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007878/44.42, allocations: 0.603 MB / 11.41 GB, free: 84.06 MB / 1.167 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003918/44.43, allocations: 0.8012 MB / 11.42 GB, free: 84.06 MB / 1.167 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02918/44.46, allocations: 13.93 MB / 11.43 GB, free: 83.22 MB / 1.167 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003464/44.46, allocations: 15.09 kB / 11.43 GB, free: 83.21 MB / 1.167 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002963/44.46, allocations: 287.5 kB / 11.43 GB, free: 83.21 MB / 1.167 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002207/44.46, allocations: 182.1 kB / 11.43 GB, free: 83.21 MB / 1.167 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02932/44.49, allocations: 18 MB / 11.45 GB, free: 83.09 MB / 1.167 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.1173/44.61, allocations: 74.03 MB / 11.52 GB, free: 41.3 MB / 1.167 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01261/44.62, allocations: 9.461 MB / 11.53 GB, free: 36.7 MB / 1.167 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01149/44.63, allocations: 8.45 MB / 11.54 GB, free: 30.66 MB / 1.167 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.06016/44.69, allocations: 30.16 MB / 11.57 GB, free: 5.883 MB / 1.167 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.01371/44.7, allocations: 8.157 MB / 11.57 GB, free: 0 / 1.167 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.04665/44.75, allocations: 14.99 MB / 11.59 GB, free: 5.539 MB / 1.182 GB Notification: Performance of pre-optimization done (n=427): time 4.082e-05/44.75, allocations: 1.875 kB / 11.59 GB, free: 5.539 MB / 1.182 GB Notification: Performance of matching and sorting (n=613): time 1.227/45.98, allocations: 71.96 MB / 11.66 GB, free: 109.1 MB / 1.182 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001048/45.98, allocations: 113.7 kB / 11.66 GB, free: 109 MB / 1.182 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.03353/46.01, allocations: 12.6 MB / 11.67 GB, free: 108.3 MB / 1.182 GB Notification: Performance of collectPreVariables (initialization): time 0.003834/46.02, allocations: 193.4 kB / 11.67 GB, free: 108.2 MB / 1.182 GB Notification: Performance of collectInitialEqns (initialization): time 0.01035/46.03, allocations: 6.668 MB / 11.68 GB, free: 107.1 MB / 1.182 GB Notification: Performance of collectInitialBindings (initialization): time 0.00486/46.03, allocations: 2.07 MB / 11.68 GB, free: 106.1 MB / 1.182 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003223/46.03, allocations: 157.2 kB / 11.68 GB, free: 106.1 MB / 1.182 GB Notification: Performance of setup shared object (initialization): time 0.0007873/46.03, allocations: 0.6172 MB / 11.68 GB, free: 105.8 MB / 1.182 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.014/46.05, allocations: 7.754 MB / 11.69 GB, free: 105.7 MB / 1.182 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01658/46.07, allocations: 10.53 MB / 11.7 GB, free: 102.6 MB / 1.182 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01722/46.08, allocations: 8.767 MB / 11.71 GB, free: 102.4 MB / 1.182 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001424/46.08, allocations: 15.5 kB / 11.71 GB, free: 102.4 MB / 1.182 GB Notification: Performance of matching and sorting (n=1035) (initialization): time 0.06096/46.14, allocations: 25.86 MB / 11.73 GB, free: 101.4 MB / 1.182 GB Notification: Performance of prepare postOptimizeDAE: time 0.006984/46.15, allocations: 34.79 MB / 11.77 GB, free: 65.33 MB / 1.182 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000242/46.15, allocations: 52.5 kB / 11.77 GB, free: 65.33 MB / 1.182 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.6226/46.77, allocations: 146.4 MB / 11.91 GB, free: 64.23 MB / 1.182 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01068/46.78, allocations: 1.886 MB / 11.91 GB, free: 64.22 MB / 1.182 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03561/46.82, allocations: 24.61 MB / 11.94 GB, free: 58.45 MB / 1.182 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02052/46.84, allocations: 1.284 MB / 11.94 GB, free: 57.69 MB / 1.182 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003629/46.84, allocations: 0.8139 MB / 11.94 GB, free: 57.21 MB / 1.182 GB Notification: Performance of prepare postOptimizeDAE: time 1.249e-05/46.84, allocations: 4 kB / 11.94 GB, free: 57.2 MB / 1.182 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.04713/46.89, allocations: 24.84 MB / 11.96 GB, free: 45.38 MB / 1.182 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002416/46.89, allocations: 52 kB / 11.96 GB, free: 45.32 MB / 1.182 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.697/48.59, allocations: 146.8 MB / 12.11 GB, free: 138.1 MB / 1.214 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01003/48.6, allocations: 1.871 MB / 12.11 GB, free: 138.1 MB / 1.214 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05268/48.65, allocations: 28.87 MB / 12.14 GB, free: 134.3 MB / 1.214 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02475/48.68, allocations: 1.257 MB / 12.14 GB, free: 134.3 MB / 1.214 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.005281/48.68, allocations: 0.7737 MB / 12.14 GB, free: 134.3 MB / 1.214 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.007073/48.69, allocations: 0.5558 MB / 12.14 GB, free: 134.2 MB / 1.214 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.006784/48.7, allocations: 1.29 MB / 12.14 GB, free: 134.2 MB / 1.214 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.08195/48.78, allocations: 26.59 MB / 12.17 GB, free: 133.7 MB / 1.214 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002208/48.78, allocations: 79.89 kB / 12.17 GB, free: 133.7 MB / 1.214 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.699e-05/48.78, allocations: 0 / 12.17 GB, free: 133.7 MB / 1.214 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0672/48.85, allocations: 21.02 MB / 12.19 GB, free: 133.2 MB / 1.214 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.2068/49.05, allocations: 59.75 MB / 12.24 GB, free: 126.8 MB / 1.214 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001022/49.05, allocations: 5.188 kB / 12.24 GB, free: 126.8 MB / 1.214 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007968/49.06, allocations: 1.29 MB / 12.25 GB, free: 126.8 MB / 1.214 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.1794/49.24, allocations: 41.92 MB / 12.29 GB, free: 126.7 MB / 1.214 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002384/49.24, allocations: 203.2 kB / 12.29 GB, free: 126.7 MB / 1.214 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02268/49.26, allocations: 13.64 MB / 12.3 GB, free: 121.6 MB / 1.214 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.185e-05/49.26, allocations: 15.27 kB / 12.3 GB, free: 121.6 MB / 1.214 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1068/49.37, allocations: 38.43 MB / 12.34 GB, free: 117.9 MB / 1.214 GB Notification: Performance of postOpt removeConstants (simulation): time 0.01378/49.39, allocations: 3.066 MB / 12.34 GB, free: 117.1 MB / 1.214 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.007473/49.39, allocations: 133.6 kB / 12.34 GB, free: 117.1 MB / 1.214 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01739/49.41, allocations: 0.9907 MB / 12.34 GB, free: 117 MB / 1.214 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002692/49.41, allocations: 477.6 kB / 12.34 GB, free: 117 MB / 1.214 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.002394/49.42, allocations: 299 kB / 12.34 GB, free: 117 MB / 1.214 GB Notification: Performance of sorting global known variables: time 0.02855/49.44, allocations: 9.596 MB / 12.35 GB, free: 114.2 MB / 1.214 GB Notification: Performance of sort global known variables: time 5.91e-07/49.44, allocations: 0 / 12.35 GB, free: 114.2 MB / 1.214 GB Notification: Performance of remove unused functions: time 0.05816/49.5, allocations: 7.137 MB / 12.36 GB, free: 108 MB / 1.214 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.01353/49.52, allocations: 5.526 MB / 12.36 GB, free: 103.6 MB / 1.214 GB Notification: Performance of simCode: created initialization part: time 0.07586/49.59, allocations: 32.76 MB / 12.4 GB, free: 86.89 MB / 1.214 GB Notification: Performance of simCode: created event and clocks part: time 1.747e-05/49.59, allocations: 4.188 kB / 12.4 GB, free: 86.89 MB / 1.214 GB Notification: Performance of simCode: created simulation system equations: time 0.02039/49.61, allocations: 8.875 MB / 12.4 GB, free: 82.38 MB / 1.214 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.04255/49.65, allocations: 6.812 MB / 12.41 GB, free: 78.61 MB / 1.214 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0679/49.72, allocations: 22.8 MB / 12.43 GB, free: 61.41 MB / 1.214 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01564/49.74, allocations: 7.67 MB / 12.44 GB, free: 56.08 MB / 1.214 GB Notification: Performance of simCode: alias equations: time 0.03728/49.78, allocations: 6.756 MB / 12.45 GB, free: 51.58 MB / 1.214 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004902/49.78, allocations: 0.7899 MB / 12.45 GB, free: 50.89 MB / 1.214 GB Notification: Performance of SimCode: time 1.473e-06/49.78, allocations: 0 / 12.45 GB, free: 50.89 MB / 1.214 GB Notification: Performance of Templates: time 2.627/52.41, allocations: 449.4 MB / 12.89 GB, free: 2.852 MB / 1.229 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Fluid.Examples.FlowSystem.Simplified4.makefile (rm -f Buildings_maint.7.0.x_Buildings.Fluid.Examples.FlowSystem.Simplified4.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Fluid.Examples.FlowSystem.Simplified4.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Fluid.Examples.FlowSystem.Simplified4.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Fluid.Examples.FlowSystem.Simplified4.sim & ./Buildings_maint.7.0.x_Buildings.Fluid.Examples.FlowSystem.Simplified4 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Fluid.Examples.FlowSystem.Simplified4.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Fluid.Examples.FlowSystem.Simplified4_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Fluid_Examples_FlowSystem_Simplified4.csv","../files/Buildings_maint.7.0.x_Buildings.Fluid.Examples.FlowSystem.Simplified4.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches