Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.Examples.FlowSystem.Simplified3.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.Simplified3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pmpNorth.m_flow|pmpSouth.m_flow",fileNamePrefix="Buildings_9_Buildings.Fluid.Examples.FlowSystem.Simplified3") translateModel(Buildings.Fluid.Examples.FlowSystem.Simplified3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pmpNorth.m_flow|pmpSouth.m_flow",fileNamePrefix="Buildings_9_Buildings.Fluid.Examples.FlowSystem.Simplified3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.289/2.289, allocations: 387.4 MB / 394.9 MB, free: 13.39 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.00109/0.00109, allocations: 188.7 kB / 487.4 MB, free: 5.047 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.521/1.521, allocations: 221.5 MB / 0.7824 GB, free: 0.9648 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000957/0.0009573, allocations: 100.6 kB / 0.9219 GB, free: 2.211 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 1.766e-05/1.768e-05, allocations: 4 kB / 1.067 GB, free: 185.7 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3352/0.3352, allocations: 142.4 MB / 1.206 GB, free: 43.95 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.335/1.671, allocations: 461.8 MB / 1.657 GB, free: 9.066 MB / 1.073 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002835/1.671, allocations: 96.41 kB / 1.657 GB, free: 9.02 MB / 1.073 GB Notification: Performance of FrontEnd - DAE generated: time 40.06/41.73, allocations: 9.531 GB / 11.19 GB, free: 104 MB / 1.417 GB Notification: Performance of FrontEnd: time 2.976e-06/41.73, allocations: 0 / 11.19 GB, free: 104 MB / 1.417 GB Notification: Performance of Transformations before backend: time 0.004195/41.73, allocations: 427.3 kB / 11.19 GB, free: 103.9 MB / 1.417 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2029 * Number of variables: 2029 Notification: Performance of Generate backend data structure: time 0.06171/41.79, allocations: 13.49 MB / 11.2 GB, free: 97.95 MB / 1.417 GB Notification: Performance of prepare preOptimizeDAE: time 5.487e-05/41.79, allocations: 14.44 kB / 11.2 GB, free: 97.94 MB / 1.417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02052/41.81, allocations: 2.54 MB / 11.2 GB, free: 96.94 MB / 1.417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.07536/41.89, allocations: 21.67 MB / 11.23 GB, free: 94.18 MB / 1.417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007586/41.89, allocations: 251.7 kB / 11.23 GB, free: 94.18 MB / 1.417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0056/41.9, allocations: 0.5891 MB / 11.23 GB, free: 94.17 MB / 1.417 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.03533/41.93, allocations: 19.62 MB / 11.25 GB, free: 93.98 MB / 1.417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04902/41.98, allocations: 14.43 MB / 11.26 GB, free: 88.71 MB / 1.417 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007167/41.98, allocations: 10.78 kB / 11.26 GB, free: 88.71 MB / 1.417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005944/41.99, allocations: 6.5 kB / 11.26 GB, free: 88.71 MB / 1.417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004868/41.99, allocations: 371.2 kB / 11.26 GB, free: 88.67 MB / 1.417 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.1648/42.15, allocations: 78.82 MB / 11.34 GB, free: 22.98 MB / 1.417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01909/42.17, allocations: 12.45 MB / 11.35 GB, free: 11.88 MB / 1.417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0138/42.19, allocations: 9.758 MB / 11.36 GB, free: 2.844 MB / 1.417 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 1.448/43.63, allocations: 33.57 MB / 11.39 GB, free: 112.5 MB / 1.417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.01978/43.65, allocations: 9.041 MB / 11.4 GB, free: 112.4 MB / 1.417 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.05524/43.71, allocations: 14.92 MB / 11.41 GB, free: 112.4 MB / 1.417 GB Notification: Performance of pre-optimization done (n=593): time 7.718e-05/43.71, allocations: 0 / 11.41 GB, free: 112.4 MB / 1.417 GB Notification: Performance of matching and sorting (n=595): time 0.6591/44.37, allocations: 138.8 MB / 11.55 GB, free: 109.1 MB / 1.417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.441e-05/44.37, allocations: 116.3 kB / 11.55 GB, free: 109 MB / 1.417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.03258/44.4, allocations: 13.39 MB / 11.56 GB, free: 108.3 MB / 1.417 GB Notification: Performance of collectPreVariables (initialization): time 0.005193/44.41, allocations: 41.33 kB / 11.56 GB, free: 108.3 MB / 1.417 GB Notification: Performance of collectInitialEqns (initialization): time 0.01086/44.42, allocations: 7.327 MB / 11.57 GB, free: 107 MB / 1.417 GB Notification: Performance of collectInitialBindings (initialization): time 0.00518/44.42, allocations: 2.033 MB / 11.57 GB, free: 106 MB / 1.417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00301/44.43, allocations: 0 / 11.57 GB, free: 106 MB / 1.417 GB Notification: Performance of setup shared object (initialization): time 0.0008572/44.43, allocations: 0.6431 MB / 11.57 GB, free: 105.7 MB / 1.417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0127/44.44, allocations: 7.97 MB / 11.58 GB, free: 105.6 MB / 1.417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01569/44.46, allocations: 10.73 MB / 11.59 GB, free: 102.4 MB / 1.417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01889/44.47, allocations: 9.307 MB / 11.6 GB, free: 102.2 MB / 1.417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001448/44.47, allocations: 12.62 kB / 11.6 GB, free: 102.2 MB / 1.417 GB Notification: Performance of matching and sorting (n=1089) (initialization): time 0.6043/45.08, allocations: 123 MB / 11.72 GB, free: 98.56 MB / 1.417 GB Notification: Performance of prepare postOptimizeDAE: time 0.00704/45.09, allocations: 36.8 MB / 11.76 GB, free: 59.83 MB / 1.417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002407/45.09, allocations: 55 kB / 11.76 GB, free: 59.83 MB / 1.417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.698/45.78, allocations: 143.1 MB / 11.9 GB, free: 12.47 MB / 1.479 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01468/45.8, allocations: 2.688 MB / 11.9 GB, free: 9.953 MB / 1.479 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.203/47, allocations: 65.55 MB / 11.96 GB, free: 173.3 MB / 1.479 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02213/47.02, allocations: 1.081 MB / 11.96 GB, free: 173.3 MB / 1.479 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.004659/47.03, allocations: 0.7952 MB / 11.96 GB, free: 173.3 MB / 1.479 GB Notification: Performance of prepare postOptimizeDAE: time 1.573e-05/47.03, allocations: 3.125 kB / 11.96 GB, free: 173.3 MB / 1.479 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.5972/47.63, allocations: 120.5 MB / 12.08 GB, free: 172.9 MB / 1.479 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002797/47.63, allocations: 53.47 kB / 12.08 GB, free: 172.9 MB / 1.479 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.6263/48.25, allocations: 143.2 MB / 12.22 GB, free: 170.8 MB / 1.479 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01269/48.27, allocations: 2.68 MB / 12.23 GB, free: 170.7 MB / 1.479 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1688/48.43, allocations: 68.22 MB / 12.29 GB, free: 145.4 MB / 1.479 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02596/48.46, allocations: 1.054 MB / 12.29 GB, free: 144.4 MB / 1.479 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.005732/48.47, allocations: 0.7476 MB / 12.29 GB, free: 143.7 MB / 1.479 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 241 * 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 (913): * Single equations (assignments): 901 * Array equations: 4 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 5 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 5 {1,1,1,1,1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(28,89.3%) 28} * Non-linear torn systems: 1 {5 80} Notification: Performance of prepare postOptimizeDAE: time 0.009134/48.48, allocations: 323.4 kB / 12.29 GB, free: 143.6 MB / 1.479 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.008732/48.48, allocations: 1.394 MB / 12.3 GB, free: 142.9 MB / 1.479 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.1932/48.68, allocations: 43.52 MB / 12.34 GB, free: 107 MB / 1.479 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001628/48.68, allocations: 68.69 kB / 12.34 GB, free: 106.9 MB / 1.479 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001229/48.68, allocations: 34.12 kB / 12.34 GB, free: 106.9 MB / 1.479 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.1666/48.84, allocations: 38.4 MB / 12.38 GB, free: 74.48 MB / 1.479 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2217/49.07, allocations: 57.73 MB / 12.43 GB, free: 28.95 MB / 1.479 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.63e-05/49.07, allocations: 0 / 12.43 GB, free: 28.95 MB / 1.479 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007829/49.07, allocations: 1.198 MB / 12.43 GB, free: 27.84 MB / 1.479 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.482/50.56, allocations: 40.47 MB / 12.47 GB, free: 155.1 MB / 1.479 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002279/50.56, allocations: 156.8 kB / 12.47 GB, free: 155.1 MB / 1.479 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.05285/50.61, allocations: 25.82 MB / 12.5 GB, free: 150.4 MB / 1.479 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.803e-06/50.61, allocations: 1.562 kB / 12.5 GB, free: 150.4 MB / 1.479 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1847/50.8, allocations: 48.93 MB / 12.55 GB, free: 149.3 MB / 1.479 GB Notification: Performance of postOpt removeConstants (simulation): time 0.01316/50.81, allocations: 3.251 MB / 12.55 GB, free: 149.2 MB / 1.479 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.007019/50.82, allocations: 75.52 kB / 12.55 GB, free: 149.2 MB / 1.479 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01618/50.83, allocations: 0.8361 MB / 12.55 GB, free: 149.2 MB / 1.479 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002874/50.83, allocations: 428.4 kB / 12.55 GB, free: 149.2 MB / 1.479 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001637/50.84, allocations: 267.3 kB / 12.55 GB, free: 149.2 MB / 1.479 GB Notification: Performance of sorting global known variables: time 0.02638/50.86, allocations: 10.07 MB / 12.56 GB, free: 148.8 MB / 1.479 GB Notification: Performance of sort global known variables: time 5.61e-07/50.86, allocations: 1.219 kB / 12.56 GB, free: 148.8 MB / 1.479 GB Notification: Performance of remove unused functions: time 0.06429/50.93, allocations: 7.893 MB / 12.57 GB, free: 148.8 MB / 1.479 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 74 (pmpSouth.vol.dynBal.U,pmpSouth.filter.s[1],pmpSouth.filter.s[2],pmpNorth.vol.dynBal.U,pmpNorth.filter.s[1],pmpNorth.filter.s[2],valSouth1[1].filter.s[1],valSouth1[1].filter.s[2],valSouth1[2].filter.s[1],valSouth1[2].filter.s[2],valSouth1[3].filter.s[1],valSouth1[3].filter.s[2],valSouth1[4].filter.s[1],valSouth1[4].filter.s[2],valSouth2[1].filter.s[1],valSouth2[1].filter.s[2],valSouth2[2].filter.s[1],valSouth2[2].filter.s[2],valSouth2[3].filter.s[1],valSouth2[3].filter.s[2],valSouth2[4].filter.s[1],valSouth2[4].filter.s[2],valSouth2[5].filter.s[1],valSouth2[5].filter.s[2],valSouth2[6].filter.s[1],valSouth2[6].filter.s[2],valSouth2[7].filter.s[1],valSouth2[7].filter.s[2],valSouth2[8].filter.s[1],valSouth2[8].filter.s[2],valNorth1[1].filter.s[1],valNorth1[1].filter.s[2],valNorth1[2].filter.s[1],valNorth1[2].filter.s[2],valNorth1[3].filter.s[1],valNorth1[3].filter.s[2],valNorth1[4].filter.s[1],valNorth1[4].filter.s[2],valNorth2[1].filter.s[1],valNorth2[1].filter.s[2],valNorth2[2].filter.s[1],valNorth2[2].filter.s[2],valNorth2[3].filter.s[1],valNorth2[3].filter.s[2],valNorth2[4].filter.s[1],valNorth2[4].filter.s[2],valNorth2[5].filter.s[1],valNorth2[5].filter.s[2],valNorth2[6].filter.s[1],valNorth2[6].filter.s[2],valNorth2[7].filter.s[1],valNorth2[7].filter.s[2],valNorth2[8].filter.s[1],valNorth2[8].filter.s[2],valSouth.vol.dynBal.U,valSouth.filter.s[1],valSouth.filter.s[2],valNorth.vol.dynBal.U,valNorth.filter.s[1],valNorth.filter.s[2],spl.vol.dynBal.U,spl1.vol.dynBal.U,pumpHea.vol.dynBal.U,pumpHea.filter.s[1],pumpHea.filter.s[2],valHea.filter.s[1],valHea.filter.s[2],valCoo.filter.s[1],valCoo.filter.s[2],spl2.vol.dynBal.U,spl3.vol.dynBal.U,pumpCoo.vol.dynBal.U,pumpCoo.filter.s[1],pumpCoo.filter.s[2]) * 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 (551): * Single equations (assignments): 531 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 10 * When equations: 3 * If-equations: 0 * Equation systems (linear and non-linear blocks): 5 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 5 {1,1,1,1,1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(28,89.3%) 28} * Non-linear torn systems: 1 {5 80} Notification: Performance of Backend phase and start with SimCode phase: time 0.01171/50.94, allocations: 5.224 MB / 12.57 GB, free: 146.9 MB / 1.479 GB Notification: Performance of simCode: created initialization part: time 0.07072/51.01, allocations: 32.57 MB / 12.6 GB, free: 145.9 MB / 1.479 GB Notification: Performance of simCode: created event and clocks part: time 1.432e-05/51.01, allocations: 2.094 kB / 12.6 GB, free: 145.9 MB / 1.479 GB Notification: Performance of simCode: created simulation system equations: time 0.01772/51.03, allocations: 8.358 MB / 12.61 GB, free: 145.6 MB / 1.479 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.04081/51.07, allocations: 6.982 MB / 12.62 GB, free: 145.6 MB / 1.479 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06792/51.14, allocations: 26.42 MB / 12.65 GB, free: 140.3 MB / 1.479 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01575/51.15, allocations: 8.523 MB / 12.65 GB, free: 139.2 MB / 1.479 GB Notification: Performance of simCode: alias equations: time 0.04291/51.2, allocations: 8.086 MB / 12.66 GB, free: 139.1 MB / 1.479 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004554/51.2, allocations: 0.7971 MB / 12.66 GB, free: 139.1 MB / 1.479 GB Notification: Performance of SimCode: time 9.82e-07/51.2, allocations: 2.156 kB / 12.66 GB, free: 139.1 MB / 1.479 GB Notification: Performance of Templates: time 2.634/53.83, allocations: 408 MB / 13.06 GB, free: 190.9 MB / 1.511 GB make -j1 -f Buildings_9_Buildings.Fluid.Examples.FlowSystem.Simplified3.makefile (rm -f Buildings_9_Buildings.Fluid.Examples.FlowSystem.Simplified3.pipe ; mkfifo Buildings_9_Buildings.Fluid.Examples.FlowSystem.Simplified3.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Examples.FlowSystem.Simplified3.pipe >> ../files/Buildings_9_Buildings.Fluid.Examples.FlowSystem.Simplified3.sim & ./Buildings_9_Buildings.Fluid.Examples.FlowSystem.Simplified3 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.Examples.FlowSystem.Simplified3.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.Examples.FlowSystem.Simplified3_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_Examples_FlowSystem_Simplified3.csv","../files/Buildings_9_Buildings.Fluid.Examples.FlowSystem.Simplified3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches