Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Fluid.Examples.FlowSystem.Simplified6.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.Simplified6,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.Simplified6") translateModel(Buildings.Fluid.Examples.FlowSystem.Simplified6,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.Simplified6") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.476/1.476, allocations: 249.3 MB / 261.8 MB, free: 5.922 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.001072/0.001072, allocations: 168.9 kB / 321.3 MB, free: 14.66 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.523/1.523, allocations: 205.2 MB / 0.572 GB, free: 10.68 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.0008017/0.0008016, allocations: 90.41 kB / 0.6764 GB, free: 15.64 MB / 0.5261 GB Notification: Performance of FrontEnd - loaded program: time 4.613e-05/4.615e-05, allocations: 8 kB / 0.7879 GB, free: 97.11 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2343/0.2343, allocations: 106.3 MB / 0.8918 GB, free: 6.684 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.692/1.926, allocations: 458.5 MB / 1.34 GB, free: 280.7 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002492/1.927, allocations: 91.95 kB / 1.34 GB, free: 280.6 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 44.24/46.17, allocations: 10.21 GB / 11.55 GB, free: 76.71 MB / 1.135 GB Notification: Performance of FrontEnd: time 3.757e-06/46.17, allocations: 0 / 11.55 GB, free: 76.71 MB / 1.135 GB Notification: Performance of Transformations before backend: time 0.003627/46.17, allocations: 352.8 kB / 11.55 GB, free: 76.64 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.05143/46.22, allocations: 11.05 MB / 11.56 GB, free: 72.11 MB / 1.135 GB Notification: Performance of prepare preOptimizeDAE: time 5.941e-05/46.22, allocations: 11.78 kB / 11.56 GB, free: 72.11 MB / 1.135 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01826/46.24, allocations: 2.069 MB / 11.56 GB, free: 71.32 MB / 1.135 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.06077/46.3, allocations: 18.25 MB / 11.58 GB, free: 69.21 MB / 1.135 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009715/46.3, allocations: 0.5302 MB / 11.58 GB, free: 69.2 MB / 1.135 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003585/46.31, allocations: 0.7173 MB / 11.58 GB, free: 69.2 MB / 1.135 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02534/46.33, allocations: 8.245 MB / 11.59 GB, free: 68.13 MB / 1.135 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004336/46.33, allocations: 16.22 kB / 11.59 GB, free: 68.13 MB / 1.135 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002647/46.34, allocations: 254.2 kB / 11.59 GB, free: 68.13 MB / 1.135 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002428/46.34, allocations: 159.7 kB / 11.59 GB, free: 68.13 MB / 1.135 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01563/46.35, allocations: 6.557 MB / 11.59 GB, free: 68.08 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.08744/46.44, allocations: 49.68 MB / 11.64 GB, free: 41.43 MB / 1.135 GB Notification: Performance of preOpt comSubExp (simulation): time 0.008667/46.45, allocations: 4.597 MB / 11.65 GB, free: 41.26 MB / 1.135 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006096/46.45, allocations: 3.578 MB / 11.65 GB, free: 41.2 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.0408/46.5, allocations: 13.61 MB / 11.66 GB, free: 38.12 MB / 1.135 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005972/46.5, allocations: 3.193 MB / 11.67 GB, free: 38.02 MB / 1.135 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.01172/46.51, allocations: 2.393 MB / 11.67 GB, free: 37.82 MB / 1.135 GB Notification: Performance of pre-optimization done (n=326): time 2.42e-05/46.51, allocations: 3.469 kB / 11.67 GB, free: 37.82 MB / 1.135 GB Notification: Performance of matching and sorting (n=514): time 0.1055/46.62, allocations: 35.44 MB / 11.7 GB, free: 30.54 MB / 1.135 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.38e-05/46.62, allocations: 108.9 kB / 11.7 GB, free: 30.46 MB / 1.135 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0288/46.65, allocations: 12.04 MB / 11.72 GB, free: 29.68 MB / 1.135 GB Notification: Performance of collectPreVariables (initialization): time 0.00224/46.65, allocations: 176.2 kB / 11.72 GB, free: 29.64 MB / 1.135 GB Notification: Performance of collectInitialEqns (initialization): time 0.008834/46.66, allocations: 6.223 MB / 11.72 GB, free: 28.19 MB / 1.135 GB Notification: Performance of collectInitialBindings (initialization): time 0.002738/46.66, allocations: 1.738 MB / 11.72 GB, free: 27.08 MB / 1.135 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00154/46.66, allocations: 142.8 kB / 11.72 GB, free: 27.08 MB / 1.135 GB Notification: Performance of setup shared object (initialization): time 0.0007019/46.66, allocations: 0.5965 MB / 11.72 GB, free: 26.76 MB / 1.135 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00725/46.67, allocations: 3.863 MB / 11.73 GB, free: 26.74 MB / 1.135 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009419/46.68, allocations: 6.773 MB / 11.74 GB, free: 23.39 MB / 1.135 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009868/46.69, allocations: 4.689 MB / 11.74 GB, free: 23.21 MB / 1.135 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001538/46.69, allocations: 21.47 kB / 11.74 GB, free: 23.21 MB / 1.135 GB Notification: Performance of matching and sorting (n=957) (initialization): time 0.03396/46.73, allocations: 13.82 MB / 11.75 GB, free: 22.18 MB / 1.135 GB Notification: Performance of prepare postOptimizeDAE: time 0.01256/46.74, allocations: 38.52 MB / 11.79 GB, free: 14.13 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000221/46.74, allocations: 56.94 kB / 11.79 GB, free: 14.13 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007796/46.75, allocations: 3.395 MB / 11.79 GB, free: 13.99 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0104/46.76, allocations: 1.797 MB / 11.8 GB, free: 13.98 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01378/46.77, allocations: 12.32 MB / 11.81 GB, free: 23.23 MB / 1.182 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01521/46.79, allocations: 1.128 MB / 11.81 GB, free: 23.12 MB / 1.182 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002157/46.79, allocations: 492.6 kB / 11.81 GB, free: 23.12 MB / 1.182 GB Notification: Performance of prepare postOptimizeDAE: time 1.397e-05/46.79, allocations: 3.812 kB / 11.81 GB, free: 23.12 MB / 1.182 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02659/46.81, allocations: 12.82 MB / 11.82 GB, free: 22.64 MB / 1.182 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002289/46.81, allocations: 56.16 kB / 11.82 GB, free: 22.64 MB / 1.182 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0075/46.82, allocations: 3.655 MB / 11.83 GB, free: 22.5 MB / 1.182 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008535/46.83, allocations: 1.786 MB / 11.83 GB, free: 22.49 MB / 1.182 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02261/46.85, allocations: 16.62 MB / 11.84 GB, free: 16.85 MB / 1.182 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01596/46.87, allocations: 1.1 MB / 11.84 GB, free: 16.75 MB / 1.182 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002002/46.87, allocations: 447.5 kB / 11.85 GB, free: 16.75 MB / 1.182 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 269 * 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 (742): * Single equations (assignments): 725 * 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: 6 * 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: 6 {1 4,1 2,1 2,1 2,6 79,7 78} Notification: Performance of prepare postOptimizeDAE: time 0.002546/46.87, allocations: 0.5447 MB / 11.85 GB, free: 16.61 MB / 1.182 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003417/46.88, allocations: 1.198 MB / 11.85 GB, free: 15.94 MB / 1.182 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02405/46.9, allocations: 12.23 MB / 11.86 GB, free: 15.17 MB / 1.182 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.537e-05/46.9, allocations: 61.22 kB / 11.86 GB, free: 15.17 MB / 1.182 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.171e-05/46.9, allocations: 0 / 11.86 GB, free: 15.17 MB / 1.182 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01415/46.92, allocations: 9.669 MB / 11.87 GB, free: 14.41 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.06246/46.98, allocations: 24.16 MB / 11.89 GB, free: 12.04 MB / 1.182 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.37e-05/46.98, allocations: 6.594 kB / 11.89 GB, free: 12.04 MB / 1.182 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006012/46.98, allocations: 1.096 MB / 11.89 GB, free: 11.98 MB / 1.182 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005589/46.99, allocations: 2.404 MB / 11.9 GB, free: 11.8 MB / 1.182 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001313/46.99, allocations: 169.9 kB / 11.9 GB, free: 11.8 MB / 1.182 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009679/47, allocations: 10.99 MB / 11.91 GB, free: 5.051 MB / 1.182 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.498e-06/47, allocations: 7.625 kB / 11.91 GB, free: 5.051 MB / 1.182 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03075/47.03, allocations: 18.8 MB / 11.92 GB, free: 396 kB / 1.182 GB Notification: Performance of postOpt removeConstants (simulation): time 0.01055/47.04, allocations: 2.523 MB / 11.93 GB, free: 15.04 MB / 1.198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.005275/47.05, allocations: 111.9 kB / 11.93 GB, free: 14.96 MB / 1.198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01279/47.06, allocations: 0.9083 MB / 11.93 GB, free: 14.79 MB / 1.198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001633/47.06, allocations: 400.9 kB / 11.93 GB, free: 14.73 MB / 1.198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001316/47.06, allocations: 245.1 kB / 11.93 GB, free: 14.69 MB / 1.198 GB Notification: Performance of sorting global known variables: time 0.02294/47.09, allocations: 9.155 MB / 11.94 GB, free: 8.438 MB / 1.198 GB Notification: Performance of sort global known variables: time 1.012e-06/47.09, allocations: 0 / 11.94 GB, free: 8.438 MB / 1.198 GB Notification: Performance of remove unused functions: time 0.04503/47.13, allocations: 5.941 MB / 11.94 GB, free: 2.547 MB / 1.198 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 (441): * Single equations (assignments): 416 * 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: 6 * 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: 6 {8 73,1 4,1 2,1 2,1 2,8 77} Notification: Performance of Backend phase and start with SimCode phase: time 0.9248/48.06, allocations: 4.996 MB / 11.95 GB, free: 131.8 MB / 1.198 GB Notification: Performance of simCode: created initialization part: time 0.03741/48.09, allocations: 16.6 MB / 11.96 GB, free: 131.2 MB / 1.198 GB Notification: Performance of simCode: created event and clocks part: time 1.284e-05/48.09, allocations: 2.75 kB / 11.96 GB, free: 131.2 MB / 1.198 GB Notification: Performance of simCode: created simulation system equations: time 0.008614/48.1, allocations: 4.598 MB / 11.97 GB, free: 131.1 MB / 1.198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.03401/48.14, allocations: 5.977 MB / 11.98 GB, free: 131 MB / 1.198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04223/48.18, allocations: 19.36 MB / 11.99 GB, free: 126.8 MB / 1.198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01041/48.19, allocations: 7.083 MB / 12 GB, free: 125.9 MB / 1.198 GB Notification: Performance of simCode: alias equations: time 0.03058/48.22, allocations: 6.462 MB / 12.01 GB, free: 125.7 MB / 1.198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003139/48.22, allocations: 0.6706 MB / 12.01 GB, free: 125.7 MB / 1.198 GB Notification: Performance of SimCode: time 8.81e-07/48.22, allocations: 0 / 12.01 GB, free: 125.7 MB / 1.198 GB Notification: Performance of Templates: time 0.4156/48.64, allocations: 301.4 MB / 12.3 GB, free: 36.64 MB / 1.198 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Fluid.Examples.FlowSystem.Simplified6.makefile (rm -f Buildings_maint.7.0.x_Buildings.Fluid.Examples.FlowSystem.Simplified6.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Fluid.Examples.FlowSystem.Simplified6.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Fluid.Examples.FlowSystem.Simplified6.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Fluid.Examples.FlowSystem.Simplified6.sim & ./Buildings_maint.7.0.x_Buildings.Fluid.Examples.FlowSystem.Simplified6 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Fluid.Examples.FlowSystem.Simplified6.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Fluid.Examples.FlowSystem.Simplified6_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Fluid_Examples_FlowSystem_Simplified6.csv","../files/Buildings_maint.7.0.x_Buildings.Fluid.Examples.FlowSystem.Simplified6.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches