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.356/1.356, allocations: 251.9 MB / 266.9 MB, free: 10.99 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.00117/0.00117, allocations: 186.5 kB / 326.5 MB, free: 2.223 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.81/1.81, allocations: 205.4 MB / 0.5775 GB, free: 20.25 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.001075/0.001076, allocations: 86.3 kB / 0.6821 GB, free: 12.87 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.000363/0.0003632, allocations: 9.438 kB / 0.7962 GB, free: 135.2 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2443/0.2446, allocations: 106.3 MB / 0.9001 GB, free: 63.91 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.074/1.318, allocations: 457.3 MB / 1.347 GB, free: 7.719 MB / 0.8542 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003509/1.319, allocations: 106.8 kB / 1.347 GB, free: 7.664 MB / 0.8542 GB Notification: Performance of FrontEnd - DAE generated: time 42.9/44.22, allocations: 10.07 GB / 11.42 GB, free: 76.8 MB / 1.167 GB Notification: Performance of FrontEnd: time 3.476e-06/44.22, allocations: 3.656 kB / 11.42 GB, free: 76.8 MB / 1.167 GB Notification: Performance of Transformations before backend: time 0.003329/44.23, allocations: 384 kB / 11.42 GB, free: 76.73 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.07368/44.3, allocations: 18.7 MB / 11.44 GB, free: 70.26 MB / 1.167 GB Notification: Performance of prepare preOptimizeDAE: time 4.883e-05/44.3, allocations: 10.19 kB / 11.44 GB, free: 70.26 MB / 1.167 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0155/44.32, allocations: 2.182 MB / 11.44 GB, free: 69.4 MB / 1.167 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.07276/44.39, allocations: 20.26 MB / 11.46 GB, free: 67.14 MB / 1.167 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009376/44.39, allocations: 0.6017 MB / 11.46 GB, free: 67.12 MB / 1.167 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004655/44.39, allocations: 0.8035 MB / 11.46 GB, free: 67.12 MB / 1.167 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03517/44.43, allocations: 14.17 MB / 11.47 GB, free: 66.33 MB / 1.167 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003093/44.43, allocations: 24.78 kB / 11.47 GB, free: 66.33 MB / 1.167 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002735/44.43, allocations: 288.5 kB / 11.47 GB, free: 66.33 MB / 1.167 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001615/44.43, allocations: 187.8 kB / 11.47 GB, free: 66.33 MB / 1.167 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03314/44.47, allocations: 18.41 MB / 11.49 GB, free: 66.27 MB / 1.167 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.147/44.61, allocations: 74.09 MB / 11.57 GB, free: 32.51 MB / 1.167 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01671/44.63, allocations: 9.735 MB / 11.57 GB, free: 32.34 MB / 1.167 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.06207/44.69, allocations: 29.81 MB / 11.6 GB, free: 23.88 MB / 1.167 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.01708/44.71, allocations: 8.211 MB / 11.61 GB, free: 23.76 MB / 1.167 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.05027/44.76, allocations: 14.73 MB / 11.63 GB, free: 23.49 MB / 1.167 GB Notification: Performance of pre-optimization done (n=427): time 9.257e-05/44.76, allocations: 1.875 kB / 11.63 GB, free: 23.49 MB / 1.167 GB Notification: Performance of matching and sorting (n=616): time 0.3909/45.15, allocations: 105.2 MB / 11.73 GB, free: 13.74 MB / 1.167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001225/45.15, allocations: 113.8 kB / 11.73 GB, free: 13.67 MB / 1.167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.03605/45.19, allocations: 12.75 MB / 11.74 GB, free: 12.94 MB / 1.167 GB Notification: Performance of collectPreVariables (initialization): time 0.005759/45.19, allocations: 191.4 kB / 11.74 GB, free: 12.91 MB / 1.167 GB Notification: Performance of collectInitialEqns (initialization): time 0.01234/45.2, allocations: 6.657 MB / 11.75 GB, free: 11.39 MB / 1.167 GB Notification: Performance of collectInitialBindings (initialization): time 0.005653/45.21, allocations: 2.079 MB / 11.75 GB, free: 10.04 MB / 1.167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003735/45.21, allocations: 154.7 kB / 11.75 GB, free: 10.04 MB / 1.167 GB Notification: Performance of setup shared object (initialization): time 0.0008558/45.21, allocations: 0.6239 MB / 11.75 GB, free: 9.715 MB / 1.167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01698/45.23, allocations: 8.31 MB / 11.76 GB, free: 9.676 MB / 1.167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02026/45.25, allocations: 11.09 MB / 11.77 GB, free: 5.613 MB / 1.167 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01874/45.27, allocations: 9.296 MB / 11.78 GB, free: 1.652 MB / 1.167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001023/45.27, allocations: 14.28 kB / 11.78 GB, free: 1.652 MB / 1.167 GB Notification: Performance of matching and sorting (n=1038) (initialization): time 0.08238/45.35, allocations: 27.55 MB / 11.81 GB, free: 9.234 MB / 1.182 GB Notification: Performance of prepare postOptimizeDAE: time 0.01506/45.37, allocations: 34.78 MB / 11.84 GB, free: 4.512 MB / 1.214 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002504/45.37, allocations: 54.08 kB / 11.84 GB, free: 4.461 MB / 1.214 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.763/47.13, allocations: 147 MB / 11.98 GB, free: 115.9 MB / 1.214 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01185/47.14, allocations: 1.87 MB / 11.99 GB, free: 115.9 MB / 1.214 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04296/47.19, allocations: 24.82 MB / 12.01 GB, free: 110.9 MB / 1.214 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02444/47.21, allocations: 1.287 MB / 12.01 GB, free: 110.8 MB / 1.214 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.005262/47.22, allocations: 0.81 MB / 12.01 GB, free: 110.8 MB / 1.214 GB Notification: Performance of prepare postOptimizeDAE: time 1.955e-05/47.22, allocations: 8.625 kB / 12.01 GB, free: 110.8 MB / 1.214 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.06926/47.29, allocations: 25.99 MB / 12.04 GB, free: 110.3 MB / 1.214 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003251/47.29, allocations: 53.53 kB / 12.04 GB, free: 110.3 MB / 1.214 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.5994/47.89, allocations: 147.2 MB / 12.18 GB, free: 66.71 MB / 1.214 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01046/47.9, allocations: 1.861 MB / 12.18 GB, free: 64.99 MB / 1.214 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.06204/47.96, allocations: 29.53 MB / 12.21 GB, free: 42.95 MB / 1.214 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02297/47.98, allocations: 1.248 MB / 12.21 GB, free: 41.9 MB / 1.214 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.005122/47.99, allocations: 0.7705 MB / 12.21 GB, free: 41.19 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (758): * Single equations (assignments): 744 * 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,6 82,6 82} Notification: Performance of prepare postOptimizeDAE: time 0.01634/48, allocations: 3.354 MB / 12.22 GB, free: 39.17 MB / 1.214 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.007819/48.01, allocations: 1.291 MB / 12.22 GB, free: 38.57 MB / 1.214 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.188/48.2, allocations: 46.75 MB / 12.26 GB, free: 0.8398 MB / 1.214 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001703/48.2, allocations: 74.69 kB / 12.26 GB, free: 0.7695 MB / 1.214 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.51e-05/48.2, allocations: 0 / 12.26 GB, free: 0.7695 MB / 1.214 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.261/49.46, allocations: 41.18 MB / 12.3 GB, free: 132.8 MB / 1.245 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.1175/49.58, allocations: 48.08 MB / 12.35 GB, free: 126.6 MB / 1.245 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001031/49.58, allocations: 5.781 kB / 12.35 GB, free: 126.6 MB / 1.245 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007548/49.58, allocations: 1.287 MB / 12.35 GB, free: 126.6 MB / 1.245 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.1751/49.76, allocations: 42.02 MB / 12.39 GB, free: 126.5 MB / 1.245 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002283/49.76, allocations: 200.7 kB / 12.39 GB, free: 126.5 MB / 1.245 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01967/49.78, allocations: 13.76 MB / 12.41 GB, free: 121.4 MB / 1.245 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.291e-05/49.78, allocations: 12.94 kB / 12.41 GB, free: 121.4 MB / 1.245 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1312/49.91, allocations: 44.43 MB / 12.45 GB, free: 117.9 MB / 1.245 GB Notification: Performance of postOpt removeConstants (simulation): time 0.01559/49.93, allocations: 3.059 MB / 12.45 GB, free: 117.8 MB / 1.245 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.008457/49.94, allocations: 138.6 kB / 12.45 GB, free: 117.8 MB / 1.245 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01989/49.96, allocations: 0.9919 MB / 12.45 GB, free: 117.8 MB / 1.245 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003155/49.96, allocations: 477.2 kB / 12.45 GB, free: 117.8 MB / 1.245 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.002776/49.96, allocations: 296.1 kB / 12.45 GB, free: 117.8 MB / 1.245 GB Notification: Performance of sorting global known variables: time 0.03104/49.99, allocations: 9.742 MB / 12.46 GB, free: 117.4 MB / 1.245 GB Notification: Performance of sort global known variables: time 1.983e-06/49.99, allocations: 1.312 kB / 12.46 GB, free: 117.4 MB / 1.245 GB Notification: Performance of remove unused functions: time 0.06142/50.06, allocations: 7.149 MB / 12.47 GB, free: 117.4 MB / 1.245 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) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (536): * Single equations (assignments): 514 * 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,30 38,6 82} Notification: Performance of Backend phase and start with SimCode phase: time 0.01392/50.07, allocations: 5.548 MB / 12.48 GB, free: 115.4 MB / 1.245 GB Notification: Performance of simCode: created initialization part: time 0.08838/50.16, allocations: 33.96 MB / 12.51 GB, free: 114.7 MB / 1.245 GB Notification: Performance of simCode: created event and clocks part: time 1.833e-05/50.16, allocations: 3.719 kB / 12.51 GB, free: 114.7 MB / 1.245 GB Notification: Performance of simCode: created simulation system equations: time 0.02102/50.18, allocations: 9.365 MB / 12.52 GB, free: 114.6 MB / 1.245 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.04092/50.22, allocations: 6.793 MB / 12.53 GB, free: 114.5 MB / 1.245 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08194/50.3, allocations: 32.03 MB / 12.56 GB, free: 102.7 MB / 1.245 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0198/50.32, allocations: 7.65 MB / 12.56 GB, free: 101.7 MB / 1.245 GB Notification: Performance of simCode: alias equations: time 0.02862/50.35, allocations: 4.054 MB / 12.57 GB, free: 101.4 MB / 1.245 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007219/50.36, allocations: 1.091 MB / 12.57 GB, free: 101.4 MB / 1.245 GB Notification: Performance of SimCode: time 1.232e-06/50.36, allocations: 1.938 kB / 12.57 GB, free: 101.4 MB / 1.245 GB Notification: Performance of Templates: time 2.587/52.95, allocations: 419.1 MB / 12.98 GB, free: 128.9 MB / 1.245 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