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.409/1.409, allocations: 251.9 MB / 266.9 MB, free: 10.87 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0011/0.0011, allocations: 184.6 kB / 326.5 MB, free: 2.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.958/1.958, allocations: 205.4 MB / 0.5775 GB, free: 20.2 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.001109/0.001109, allocations: 93.86 kB / 0.6821 GB, free: 12.89 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.000351/0.0003508, allocations: 13.11 kB / 0.7962 GB, free: 135.1 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2549/0.2553, allocations: 106.3 MB / 0.9001 GB, free: 63.96 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.056/1.311, allocations: 457.9 MB / 1.347 GB, free: 7.148 MB / 0.8542 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003395/1.311, allocations: 98.83 kB / 1.347 GB, free: 7.098 MB / 0.8542 GB Notification: Performance of FrontEnd - DAE generated: time 43.12/44.43, allocations: 10.01 GB / 11.36 GB, free: 80.3 MB / 1.151 GB Notification: Performance of FrontEnd: time 2.825e-06/44.43, allocations: 0 / 11.36 GB, free: 80.3 MB / 1.151 GB Notification: Performance of Transformations before backend: time 0.003156/44.43, allocations: 352.8 kB / 11.36 GB, free: 80.24 MB / 1.151 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.07037/44.5, allocations: 17.52 MB / 11.37 GB, free: 74.3 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 6.063e-05/44.5, allocations: 8.688 kB / 11.37 GB, free: 74.3 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02117/44.53, allocations: 2.225 MB / 11.38 GB, free: 73.52 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.06341/44.59, allocations: 18.8 MB / 11.4 GB, free: 71.41 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009762/44.59, allocations: 0.5323 MB / 11.4 GB, free: 71.4 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00485/44.6, allocations: 0.712 MB / 11.4 GB, free: 71.4 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03628/44.63, allocations: 13.29 MB / 11.41 GB, free: 70.8 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005459/44.63, allocations: 11.2 kB / 11.41 GB, free: 70.8 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004038/44.64, allocations: 246.4 kB / 11.41 GB, free: 70.8 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002202/44.64, allocations: 151.2 kB / 11.41 GB, free: 70.8 MB / 1.151 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03599/44.67, allocations: 17.92 MB / 11.43 GB, free: 70.75 MB / 1.151 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.1464/44.82, allocations: 69.96 MB / 11.5 GB, free: 38.99 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01769/44.84, allocations: 9.707 MB / 11.51 GB, free: 38.82 MB / 1.151 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.07266/44.91, allocations: 29.13 MB / 11.53 GB, free: 30.78 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.01875/44.93, allocations: 8.256 MB / 11.54 GB, free: 30.66 MB / 1.151 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.04781/44.98, allocations: 15.07 MB / 11.56 GB, free: 30.46 MB / 1.151 GB Notification: Performance of pre-optimization done (n=394): time 7.081e-05/44.98, allocations: 0 / 11.56 GB, free: 30.46 MB / 1.151 GB Notification: Performance of matching and sorting (n=583): time 0.4224/45.4, allocations: 114.2 MB / 11.67 GB, free: 20.75 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.132e-05/45.4, allocations: 114.3 kB / 11.67 GB, free: 20.68 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0298/45.43, allocations: 11.97 MB / 11.68 GB, free: 19.97 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 0.004267/45.43, allocations: 186.6 kB / 11.68 GB, free: 19.94 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 0.008515/45.44, allocations: 6.007 MB / 11.69 GB, free: 18.64 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 0.005095/45.45, allocations: 1.962 MB / 11.69 GB, free: 17.36 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002011/45.45, allocations: 146.3 kB / 11.69 GB, free: 17.36 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 0.0005334/45.45, allocations: 0.6039 MB / 11.69 GB, free: 17.04 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01511/45.46, allocations: 8.309 MB / 11.7 GB, free: 17 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01846/45.48, allocations: 10.89 MB / 11.71 GB, free: 14.04 MB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01803/45.5, allocations: 9.221 MB / 11.72 GB, free: 10.36 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.853e-05/45.5, allocations: 14.34 kB / 11.72 GB, free: 10.36 MB / 1.151 GB Notification: Performance of matching and sorting (n=964) (initialization): time 0.06706/45.57, allocations: 27.23 MB / 11.74 GB, free: 11.73 MB / 1.167 GB Notification: Performance of prepare postOptimizeDAE: time 1.105/46.67, allocations: 29.64 MB / 11.77 GB, free: 101.5 MB / 1.182 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002343/46.67, allocations: 45.69 kB / 11.77 GB, free: 101.5 MB / 1.182 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.6902/47.36, allocations: 170.6 MB / 11.94 GB, free: 101.2 MB / 1.182 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01051/47.37, allocations: 1.682 MB / 11.94 GB, free: 101.1 MB / 1.182 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04369/47.42, allocations: 26.74 MB / 11.97 GB, free: 95.96 MB / 1.182 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02027/47.44, allocations: 1.205 MB / 11.97 GB, free: 95.91 MB / 1.182 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.004399/47.44, allocations: 0.7982 MB / 11.97 GB, free: 95.91 MB / 1.182 GB Notification: Performance of prepare postOptimizeDAE: time 2.124e-05/47.44, allocations: 8.812 kB / 11.97 GB, free: 95.9 MB / 1.182 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.05655/47.5, allocations: 26.24 MB / 11.99 GB, free: 95.43 MB / 1.182 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000233/47.5, allocations: 45.34 kB / 11.99 GB, free: 95.43 MB / 1.182 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.6682/48.17, allocations: 170.9 MB / 12.16 GB, free: 12.61 MB / 1.198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009128/48.18, allocations: 1.661 MB / 12.16 GB, free: 11.07 MB / 1.198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05905/48.24, allocations: 31.77 MB / 12.19 GB, free: 3.352 MB / 1.214 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02251/48.26, allocations: 1.177 MB / 12.19 GB, free: 2.355 MB / 1.214 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.004705/48.26, allocations: 0.7624 MB / 12.2 GB, free: 1.652 MB / 1.214 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (658): * Single equations (assignments): 644 * 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 82,6 82} Notification: Performance of prepare postOptimizeDAE: time 0.01568/48.28, allocations: 3.097 MB / 12.2 GB, free: 15.75 MB / 1.229 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.005245/48.28, allocations: 1.203 MB / 12.2 GB, free: 15.2 MB / 1.229 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.171/49.46, allocations: 24.45 MB / 12.22 GB, free: 149.9 MB / 1.229 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000187/49.46, allocations: 76.56 kB / 12.22 GB, free: 149.9 MB / 1.229 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.128e-05/49.46, allocations: 1.219 kB / 12.22 GB, free: 149.9 MB / 1.229 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.05197/49.51, allocations: 18.93 MB / 12.24 GB, free: 149.3 MB / 1.229 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.114/49.62, allocations: 45.39 MB / 12.29 GB, free: 143 MB / 1.229 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001015/49.62, allocations: 7.062 kB / 12.29 GB, free: 143 MB / 1.229 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006786/49.63, allocations: 1.183 MB / 12.29 GB, free: 143 MB / 1.229 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.2026/49.83, allocations: 48.98 MB / 12.34 GB, free: 142.9 MB / 1.229 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002407/49.83, allocations: 199.5 kB / 12.34 GB, free: 142.9 MB / 1.229 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02571/49.86, allocations: 14.86 MB / 12.35 GB, free: 137.7 MB / 1.229 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.57e-05/49.86, allocations: 15.64 kB / 12.35 GB, free: 137.7 MB / 1.229 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.06448/49.92, allocations: 30.97 MB / 12.38 GB, free: 134.3 MB / 1.229 GB Notification: Performance of postOpt removeConstants (simulation): time 0.01307/49.94, allocations: 2.916 MB / 12.38 GB, free: 134.2 MB / 1.229 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.006542/49.94, allocations: 132.1 kB / 12.38 GB, free: 134.2 MB / 1.229 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01715/49.96, allocations: 0.9261 MB / 12.38 GB, free: 134.2 MB / 1.229 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002639/49.96, allocations: 465.2 kB / 12.38 GB, free: 134.2 MB / 1.229 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001604/49.97, allocations: 282.6 kB / 12.38 GB, free: 134.2 MB / 1.229 GB Notification: Performance of sorting global known variables: time 0.02351/49.99, allocations: 9.163 MB / 12.39 GB, free: 133.9 MB / 1.229 GB Notification: Performance of sort global known variables: time 6.41e-07/49.99, allocations: 0 / 12.39 GB, free: 133.9 MB / 1.229 GB Notification: Performance of remove unused functions: time 0.05999/50.05, allocations: 6.531 MB / 12.4 GB, free: 133.8 MB / 1.229 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 29 * 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) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (489): * Single equations (assignments): 467 * 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,38 56,6 82} Notification: Performance of Backend phase and start with SimCode phase: time 0.01211/50.06, allocations: 5.015 MB / 12.4 GB, free: 132 MB / 1.229 GB Notification: Performance of simCode: created initialization part: time 0.0849/50.15, allocations: 34.58 MB / 12.44 GB, free: 131.3 MB / 1.229 GB Notification: Performance of simCode: created event and clocks part: time 1.909e-05/50.15, allocations: 2.188 kB / 12.44 GB, free: 131.3 MB / 1.229 GB Notification: Performance of simCode: created simulation system equations: time 0.02185/50.17, allocations: 9.653 MB / 12.45 GB, free: 131.1 MB / 1.229 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.03482/50.2, allocations: 6.265 MB / 12.45 GB, free: 131 MB / 1.229 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0589/50.26, allocations: 29.85 MB / 12.48 GB, free: 120.1 MB / 1.229 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01093/50.27, allocations: 7.157 MB / 12.49 GB, free: 119.2 MB / 1.229 GB Notification: Performance of simCode: alias equations: time 0.02027/50.29, allocations: 3.74 MB / 12.49 GB, free: 118.8 MB / 1.229 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005042/50.3, allocations: 0.9878 MB / 12.5 GB, free: 118.8 MB / 1.229 GB Notification: Performance of SimCode: time 2.534e-06/50.3, allocations: 0 / 12.5 GB, free: 118.8 MB / 1.229 GB Notification: Performance of Templates: time 2.304/52.6, allocations: 406.9 MB / 12.89 GB, free: 132.6 MB / 1.229 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