Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Templates.Plants.Controls.Pumps.Primary.Validation.EnableLeadHeadered.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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/Buildings 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Buildings.Templates.Plants.Controls.Pumps.Primary.Validation.EnableLeadHeadered,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|u1ValIso.1..y|u1ValIso.2..y|enaParTwo.y1|enaSerTwo.y1|uValIso.1..y|uValIso.2..y|enaParMod.y1|enaSerMod.y1",fileNamePrefix="Buildings_latest_Buildings.Templates.Plants.Controls.Pumps.Primary.Validation.EnableLeadHeadered") translateModel(Buildings.Templates.Plants.Controls.Pumps.Primary.Validation.EnableLeadHeadered,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|u1ValIso.1..y|u1ValIso.2..y|enaParTwo.y1|enaSerTwo.y1|uValIso.1..y|uValIso.2..y|enaParMod.y1|enaSerMod.y1",fileNamePrefix="Buildings_latest_Buildings.Templates.Plants.Controls.Pumps.Primary.Validation.EnableLeadHeadered") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001058/0.001058, allocations: 115.3 kB / 16.42 MB, free: 6.02 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00102/0.00102, allocations: 186.1 kB / 17.35 MB, free: 5.633 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.302/1.302, allocations: 222.9 MB / 241 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.539/2.539, allocations: 461.9 MB / 0.7355 GB, free: 11.08 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001348/0.001348, allocations: 59.89 kB / 1.055 GB, free: 7.73 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6463/0.6476, allocations: 157.4 MB / 1.208 GB, free: 13.63 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.Pumps.Primary.Validation.EnableLeadHeadered): time 0.00328/0.6509, allocations: 1.962 MB / 1.21 GB, free: 11.67 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.002813/0.6538, allocations: 1.985 MB / 1.212 GB, free: 9.672 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003754/0.6542, allocations: 27.81 kB / 1.212 GB, free: 9.645 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 0.0003471/0.6545, allocations: 127.1 kB / 1.212 GB, free: 9.52 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 0.0001243/0.6547, allocations: 27.67 kB / 1.212 GB, free: 9.492 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008721/0.6555, allocations: 350.1 kB / 1.213 GB, free: 9.152 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0008042/0.6564, allocations: 0.7931 MB / 1.214 GB, free: 8.359 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006109/0.657, allocations: 463.6 kB / 1.214 GB, free: 7.895 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002992/0.6573, allocations: 267.2 kB / 1.214 GB, free: 7.633 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003531/0.6576, allocations: 266.9 kB / 1.215 GB, free: 7.371 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 0.0001262/0.6578, allocations: 64 kB / 1.215 GB, free: 7.309 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001584/0.6579, allocations: 75.98 kB / 1.215 GB, free: 7.234 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 0.000133/0.6581, allocations: 143.6 kB / 1.215 GB, free: 7.094 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 0.0003127/0.6584, allocations: 270.7 kB / 1.215 GB, free: 6.828 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0007555/0.6592, allocations: 0.8331 MB / 1.216 GB, free: 5.996 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 4.278e-06/0.6592, allocations: 4 kB / 1.216 GB, free: 5.992 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.112e-06/0.6592, allocations: 0 / 1.216 GB, free: 5.992 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 1.822e-05/0.6592, allocations: 0 / 1.216 GB, free: 5.992 MB / 0.9356 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 108 * Number of variables: 108 Notification: Performance of Generate backend data structure: time 0.001539/0.6608, allocations: 0.895 MB / 1.217 GB, free: 5.035 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 3.747e-05/0.6608, allocations: 12.03 kB / 1.217 GB, free: 5.023 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000136/0.6609, allocations: 68.27 kB / 1.217 GB, free: 4.957 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006974/0.6616, allocations: 483.9 kB / 1.217 GB, free: 4.449 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.287e-05/0.6617, allocations: 49.3 kB / 1.217 GB, free: 4.398 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001027/0.6618, allocations: 48.38 kB / 1.217 GB, free: 4.352 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009412/0.6628, allocations: 0.5418 MB / 1.218 GB, free: 3.805 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.187e-05/0.6628, allocations: 192 / 1.218 GB, free: 3.805 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.586e-05/0.6628, allocations: 23.94 kB / 1.218 GB, free: 3.781 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.167e-05/0.6629, allocations: 15.98 kB / 1.218 GB, free: 3.766 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007602/0.6636, allocations: 459.6 kB / 1.218 GB, free: 3.32 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001792/0.6654, allocations: 1.269 MB / 1.22 GB, free: 1.996 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007343/0.6662, allocations: 434.1 kB / 1.22 GB, free: 1.562 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003195/0.6665, allocations: 184.6 kB / 1.22 GB, free: 1.379 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 2.349e-05/0.6665, allocations: 4 kB / 1.22 GB, free: 1.375 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004993/0.667, allocations: 326.8 kB / 1.221 GB, free: 1.043 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=36): time 1.904e-06/0.667, allocations: 0 / 1.221 GB, free: 1.043 MB / 0.9356 GB Notification: Performance of matching and sorting (n=36): time 0.001193/0.6682, allocations: 0.6384 MB / 1.221 GB, free: 408 kB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.482e-05/0.6683, allocations: 55.41 kB / 1.221 GB, free: 340 kB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003187/0.6686, allocations: 326.4 kB / 1.221 GB, free: 0 / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 6.552e-05/0.6687, allocations: 41.69 kB / 1.222 GB, free: 15.95 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001654/0.6689, allocations: 233 kB / 1.222 GB, free: 15.72 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 6.987e-05/0.6689, allocations: 82.89 kB / 1.222 GB, free: 15.64 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001979/0.6691, allocations: 130 kB / 1.222 GB, free: 15.5 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001183/0.6693, allocations: 338.8 kB / 1.222 GB, free: 15.16 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004756/0.6698, allocations: 272.1 kB / 1.223 GB, free: 14.89 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000527/0.6703, allocations: 344.1 kB / 1.223 GB, free: 14.53 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007102/0.671, allocations: 444.9 kB / 1.223 GB, free: 14.07 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.565e-06/0.671, allocations: 0 / 1.223 GB, free: 14.07 MB / 0.9512 GB Notification: Performance of matching and sorting (n=44) (initialization): time 0.001126/0.6722, allocations: 0.6861 MB / 1.224 GB, free: 13.37 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 5.132e-05/0.6722, allocations: 77.2 kB / 1.224 GB, free: 13.28 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.711e-06/0.6722, allocations: 0 / 1.224 GB, free: 13.28 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.505e-05/0.6723, allocations: 4 kB / 1.224 GB, free: 13.28 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001896/0.6724, allocations: 43.89 kB / 1.224 GB, free: 13.23 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.074e-06/0.6725, allocations: 4 kB / 1.224 GB, free: 13.23 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004756/0.6729, allocations: 107.7 kB / 1.224 GB, free: 13.12 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.286e-05/0.673, allocations: 19.94 kB / 1.224 GB, free: 13.11 MB / 0.9512 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 32 ($whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,enaParMod.lat.y,enaParMod.cloParMod[2].y,enaParMod.cloParMod[1].y,enaParMod.allCloPar.y,enaParMod.anyOpePar.y,enaParTwo.lat.y,enaParTwo.allCloPar.y,enaParTwo.anyOpePar.y,enaSerMod.opeSerMod[2].y,enaSerMod.opeSerMod[1].y,enaSerMod.allOpeSer.y,enaSerMod.anyCloSer.y,enaSerMod.lat.y,enaSerTwo.allOpeSer.y,enaSerTwo.anyCloSer.y,enaSerTwo.lat.y,u1ValIso[2].y,$PRE.u1ValIso[2].y,u1ValIso[1].y,$PRE.u1ValIso[1].y,$whenCondition5,$whenCondition6,$whenCondition7,$whenCondition8,$whenCondition9,$whenCondition10,$whenCondition11,$whenCondition12) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (40): * Single equations (assignments): 38 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002646/0.6733, allocations: 252.3 kB / 1.224 GB, free: 12.85 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.773e-05/0.6733, allocations: 35.55 kB / 1.224 GB, free: 12.82 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.015e-05/0.6734, allocations: 42.95 kB / 1.225 GB, free: 12.78 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.759e-06/0.6734, allocations: 0 / 1.225 GB, free: 12.78 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.543e-06/0.6734, allocations: 4 kB / 1.225 GB, free: 12.77 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 6.474e-05/0.6735, allocations: 104.7 kB / 1.225 GB, free: 12.65 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.089e-05/0.6736, allocations: 11.98 kB / 1.225 GB, free: 12.64 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001609/0.6737, allocations: 31.95 kB / 1.225 GB, free: 12.61 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001137/0.6739, allocations: 51.94 kB / 1.225 GB, free: 12.56 MB / 0.9512 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001392/0.6752, allocations: 0.711 MB / 1.225 GB, free: 11.84 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.001279/0.6765, allocations: 0.9 MB / 1.226 GB, free: 10.92 MB / 0.9512 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0003715/0.6769, allocations: 240.4 kB / 1.227 GB, free: 10.69 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 0.0001851/0.6771, allocations: 201.9 kB / 1.227 GB, free: 10.49 MB / 0.9512 GB Notification: Performance of Backend: time 5.81e-07/0.6771, allocations: 0 / 1.227 GB, free: 10.49 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.001043/0.6782, allocations: 0.5788 MB / 1.227 GB, free: 9.883 MB / 0.9512 GB Notification: Performance of SimCode: time 0.001607/0.6798, allocations: 1.276 MB / 1.229 GB, free: 8.566 MB / 0.9512 GB Notification: Performance of Templates: time 0.01168/0.6915, allocations: 6.84 MB / 1.235 GB, free: 1.836 MB / 0.9512 GB make -j1 -f Buildings_latest_Buildings.Templates.Plants.Controls.Pumps.Primary.Validation.EnableLeadHeadered.makefile (rm -f Buildings_latest_Buildings.Templates.Plants.Controls.Pumps.Primary.Validation.EnableLeadHeadered.pipe ; mkfifo Buildings_latest_Buildings.Templates.Plants.Controls.Pumps.Primary.Validation.EnableLeadHeadered.pipe ; head -c 1048576 < Buildings_latest_Buildings.Templates.Plants.Controls.Pumps.Primary.Validation.EnableLeadHeadered.pipe >> ../files/Buildings_latest_Buildings.Templates.Plants.Controls.Pumps.Primary.Validation.EnableLeadHeadered.sim & ./Buildings_latest_Buildings.Templates.Plants.Controls.Pumps.Primary.Validation.EnableLeadHeadered -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Templates.Plants.Controls.Pumps.Primary.Validation.EnableLeadHeadered.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Templates.Plants.Controls.Pumps.Primary.Validation.EnableLeadHeadered_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Templates_Plants_Controls_Pumps_Primary_Validation_EnableLeadHeadered.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Templates.Plants.Controls.Pumps.Primary.Validation.EnableLeadHeadered.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches