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.00112/0.00112, allocations: 107.5 kB / 16.41 MB, free: 6.512 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.001125/0.001125, allocations: 186.7 kB / 17.35 MB, free: 5.738 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.295/1.295, allocations: 222.9 MB / 241.1 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.538/2.538, allocations: 469.4 MB / 0.7428 GB, free: 3.508 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001306/0.001306, allocations: 63.91 kB / 1.065 GB, free: 13.79 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7265/0.7278, allocations: 159.1 MB / 1.221 GB, free: 2.348 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.Pumps.Primary.Validation.EnableLeadHeadered): time 0.003291/0.7312, allocations: 1.952 MB / 1.223 GB, free: 400 kB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.003015/0.7342, allocations: 1.993 MB / 1.225 GB, free: 14.38 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004815/0.7347, allocations: 27.81 kB / 1.225 GB, free: 14.36 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 0.0003573/0.7351, allocations: 127.1 kB / 1.225 GB, free: 14.23 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 0.0001396/0.7352, allocations: 31.67 kB / 1.225 GB, free: 14.2 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009275/0.7362, allocations: 354.8 kB / 1.225 GB, free: 13.86 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 0.0007977/0.737, allocations: 0.7893 MB / 1.226 GB, free: 13.06 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006105/0.7376, allocations: 463.6 kB / 1.226 GB, free: 12.6 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002936/0.7379, allocations: 263.2 kB / 1.227 GB, free: 12.34 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003439/0.7383, allocations: 262.9 kB / 1.227 GB, free: 12.08 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 0.0001209/0.7384, allocations: 67.94 kB / 1.227 GB, free: 12.02 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001644/0.7386, allocations: 79.98 kB / 1.227 GB, free: 11.94 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 0.0001347/0.7387, allocations: 143.7 kB / 1.227 GB, free: 11.8 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 0.0002993/0.739, allocations: 270.7 kB / 1.227 GB, free: 11.53 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.0007415/0.7398, allocations: 0.8292 MB / 1.228 GB, free: 10.7 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 3.717e-06/0.7398, allocations: 0 / 1.228 GB, free: 10.7 MB / 0.9512 GB Notification: Performance of FrontEnd: time 1.523e-06/0.7398, allocations: 0 / 1.228 GB, free: 10.7 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 2.419e-05/0.7398, allocations: 0 / 1.228 GB, free: 10.7 MB / 0.9512 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.001553/0.7414, allocations: 0.9029 MB / 1.229 GB, free: 9.738 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 3.568e-05/0.7414, allocations: 12.56 kB / 1.229 GB, free: 9.727 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001357/0.7416, allocations: 60.28 kB / 1.229 GB, free: 9.668 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007864/0.7423, allocations: 488 kB / 1.23 GB, free: 9.152 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.578e-05/0.7424, allocations: 45.36 kB / 1.23 GB, free: 9.105 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001027/0.7425, allocations: 60.31 kB / 1.23 GB, free: 9.047 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009226/0.7434, allocations: 0.5379 MB / 1.23 GB, free: 8.508 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.192e-05/0.7435, allocations: 192 / 1.23 GB, free: 8.508 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.846e-05/0.7435, allocations: 27.92 kB / 1.23 GB, free: 8.48 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.312e-05/0.7435, allocations: 15.94 kB / 1.23 GB, free: 8.465 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00074/0.7443, allocations: 455.6 kB / 1.231 GB, free: 8.023 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00184/0.7461, allocations: 1.273 MB / 1.232 GB, free: 6.695 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007309/0.7469, allocations: 433 kB / 1.232 GB, free: 6.266 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003079/0.7472, allocations: 188.6 kB / 1.233 GB, free: 6.078 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 2.553e-05/0.7472, allocations: 3.984 kB / 1.233 GB, free: 6.074 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004923/0.7477, allocations: 320 kB / 1.233 GB, free: 5.75 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=36): time 1.974e-06/0.7477, allocations: 4 kB / 1.233 GB, free: 5.746 MB / 0.9512 GB Notification: Performance of matching and sorting (n=36): time 0.001174/0.7489, allocations: 0.6371 MB / 1.234 GB, free: 5.102 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.521e-05/0.749, allocations: 63.41 kB / 1.234 GB, free: 5.027 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003088/0.7493, allocations: 330.3 kB / 1.234 GB, free: 4.695 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 5.016e-05/0.7493, allocations: 33.7 kB / 1.234 GB, free: 4.656 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001631/0.7495, allocations: 241 kB / 1.234 GB, free: 4.418 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 7.084e-05/0.7496, allocations: 82.91 kB / 1.234 GB, free: 4.336 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001876/0.7498, allocations: 126 kB / 1.234 GB, free: 4.203 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001093/0.7499, allocations: 342.8 kB / 1.235 GB, free: 3.859 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004722/0.7504, allocations: 268.1 kB / 1.235 GB, free: 3.598 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005294/0.7509, allocations: 356 kB / 1.235 GB, free: 3.223 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006811/0.7516, allocations: 440.9 kB / 1.236 GB, free: 2.766 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.736e-06/0.7516, allocations: 0 / 1.236 GB, free: 2.766 MB / 0.9512 GB Notification: Performance of matching and sorting (n=44) (initialization): time 0.001123/0.7527, allocations: 0.6848 MB / 1.236 GB, free: 2.062 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 5.389e-05/0.7528, allocations: 67.39 kB / 1.237 GB, free: 1.984 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.863e-06/0.7528, allocations: 8.125 kB / 1.237 GB, free: 1.977 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.44e-05/0.7528, allocations: 0 / 1.237 GB, free: 1.977 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001878/0.753, allocations: 43.89 kB / 1.237 GB, free: 1.934 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.437e-06/0.7531, allocations: 4 kB / 1.237 GB, free: 1.93 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004826/0.7535, allocations: 107.6 kB / 1.237 GB, free: 1.824 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.393e-05/0.7536, allocations: 19.98 kB / 1.237 GB, free: 1.805 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.0002648/0.7539, allocations: 244.8 kB / 1.237 GB, free: 1.559 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.465e-05/0.7539, allocations: 39.59 kB / 1.237 GB, free: 1.52 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.107e-05/0.754, allocations: 38.95 kB / 1.237 GB, free: 1.484 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.01e-06/0.754, allocations: 0 / 1.237 GB, free: 1.484 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.603e-06/0.754, allocations: 0 / 1.237 GB, free: 1.484 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 6.658e-05/0.7541, allocations: 108.7 kB / 1.237 GB, free: 1.359 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.997e-05/0.7542, allocations: 15.92 kB / 1.237 GB, free: 1.344 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001611/0.7543, allocations: 31.95 kB / 1.237 GB, free: 1.312 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001094/0.7544, allocations: 47.94 kB / 1.237 GB, free: 1.266 MB / 0.9512 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001399/0.7559, allocations: 0.72 MB / 1.238 GB, free: 0.5391 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.001275/0.7571, allocations: 0.904 MB / 1.239 GB, free: 15.62 MB / 0.9669 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0003707/0.7575, allocations: 231.8 kB / 1.239 GB, free: 15.39 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 0.0001817/0.7577, allocations: 205.9 kB / 1.239 GB, free: 15.19 MB / 0.9669 GB Notification: Performance of Backend: time 3.21e-07/0.7577, allocations: 0 / 1.239 GB, free: 15.19 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.001077/0.7588, allocations: 0.5714 MB / 1.24 GB, free: 14.59 MB / 0.9669 GB Notification: Performance of SimCode: time 0.001626/0.7604, allocations: 1.286 MB / 1.241 GB, free: 13.25 MB / 0.9669 GB Notification: Performance of Templates: time 0.01174/0.7722, allocations: 6.832 MB / 1.248 GB, free: 6.535 MB / 0.9669 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