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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-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.009119/0.009118, allocations: 98.02 kB / 15.73 MB, free: 6.062 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.001965/0.001965, allocations: 195.1 kB / 16.68 MB, free: 5.969 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.415/1.415, allocations: 222.9 MB / 240.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.79/2.79, allocations: 472.6 MB / 0.7453 GB, free: 0.5234 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001802/0.001802, allocations: 64.12 kB / 1.069 GB, free: 9.637 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8809/0.8827, allocations: 159.9 MB / 1.226 GB, free: 13.74 MB / 0.9512 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.Pumps.Primary.Validation.EnableLeadHeadered): time 0.003311/0.8861, allocations: 1.96 MB / 1.227 GB, free: 11.78 MB / 0.9512 GB Notification: Performance of NFInst.instExpressions: time 0.002962/0.8891, allocations: 1.981 MB / 1.229 GB, free: 9.781 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003283/0.8894, allocations: 23.88 kB / 1.229 GB, free: 9.758 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 0.0003459/0.8898, allocations: 135 kB / 1.23 GB, free: 9.625 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 0.0001103/0.8899, allocations: 27.67 kB / 1.23 GB, free: 9.598 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009592/0.8909, allocations: 358.8 kB / 1.23 GB, free: 9.25 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 0.0008256/0.8917, allocations: 0.7931 MB / 1.231 GB, free: 8.453 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006374/0.8924, allocations: 475.6 kB / 1.231 GB, free: 7.98 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002913/0.8927, allocations: 259.3 kB / 1.231 GB, free: 7.727 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003345/0.893, allocations: 266.9 kB / 1.232 GB, free: 7.465 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 0.0001044/0.8931, allocations: 64 kB / 1.232 GB, free: 7.402 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001724/0.8933, allocations: 79.92 kB / 1.232 GB, free: 7.324 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 0.0001449/0.8935, allocations: 143.6 kB / 1.232 GB, free: 7.184 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 0.0003104/0.8938, allocations: 270.8 kB / 1.232 GB, free: 6.918 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.0008538/0.8946, allocations: 0.8299 MB / 1.233 GB, free: 6.086 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 5.751e-06/0.8947, allocations: 0 / 1.233 GB, free: 6.086 MB / 0.9512 GB Notification: Performance of FrontEnd: time 1.623e-06/0.8947, allocations: 0 / 1.233 GB, free: 6.086 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 9.308e-06/0.8947, allocations: 0 / 1.233 GB, free: 6.086 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.001527/0.8962, allocations: 0.9122 MB / 1.234 GB, free: 5.105 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 5.467e-05/0.8963, allocations: 12.03 kB / 1.234 GB, free: 5.094 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000128/0.8964, allocations: 60.61 kB / 1.234 GB, free: 5.035 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007383/0.8972, allocations: 496.2 kB / 1.234 GB, free: 4.512 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.315e-05/0.8972, allocations: 41.38 kB / 1.234 GB, free: 4.473 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.855e-05/0.8973, allocations: 52.36 kB / 1.235 GB, free: 4.422 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009195/0.8982, allocations: 0.5456 MB / 1.235 GB, free: 3.871 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.298e-05/0.8983, allocations: 4.188 kB / 1.235 GB, free: 3.867 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.682e-05/0.8983, allocations: 27.94 kB / 1.235 GB, free: 3.84 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.356e-05/0.8983, allocations: 8 kB / 1.235 GB, free: 3.832 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007397/0.8991, allocations: 463.6 kB / 1.236 GB, free: 3.379 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001792/0.9009, allocations: 1.274 MB / 1.237 GB, free: 2.051 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007334/0.9016, allocations: 430.2 kB / 1.237 GB, free: 1.621 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003082/0.902, allocations: 184.6 kB / 1.237 GB, free: 1.438 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 4.171e-05/0.902, allocations: 4 kB / 1.237 GB, free: 1.434 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005278/0.9025, allocations: 322.9 kB / 1.238 GB, free: 1.105 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=36): time 2.404e-06/0.9025, allocations: 0 / 1.238 GB, free: 1.105 MB / 0.9512 GB Notification: Performance of matching and sorting (n=36): time 0.001198/0.9038, allocations: 0.64 MB / 1.238 GB, free: 472 kB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.114e-05/0.9038, allocations: 63.39 kB / 1.238 GB, free: 396 kB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003244/0.9041, allocations: 330.5 kB / 1.239 GB, free: 56 kB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 4.45e-05/0.9042, allocations: 33.7 kB / 1.239 GB, free: 16 kB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002033/0.9044, allocations: 237.5 kB / 1.239 GB, free: 15.78 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 7.456e-05/0.9045, allocations: 83.33 kB / 1.239 GB, free: 15.7 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002073/0.9047, allocations: 130 kB / 1.239 GB, free: 15.56 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.000142/0.9049, allocations: 342.8 kB / 1.239 GB, free: 15.22 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004958/0.9054, allocations: 276.1 kB / 1.24 GB, free: 14.95 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005419/0.9059, allocations: 344.1 kB / 1.24 GB, free: 14.59 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007235/0.9066, allocations: 444.9 kB / 1.241 GB, free: 14.12 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.585e-06/0.9067, allocations: 0 / 1.241 GB, free: 14.12 MB / 0.9669 GB Notification: Performance of matching and sorting (n=44) (initialization): time 0.001198/0.9079, allocations: 0.7017 MB / 1.241 GB, free: 13.41 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 5.894e-05/0.9079, allocations: 63.41 kB / 1.241 GB, free: 13.33 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.735e-06/0.9079, allocations: 3.984 kB / 1.241 GB, free: 13.33 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.51e-05/0.908, allocations: 4 kB / 1.241 GB, free: 13.32 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002038/0.9082, allocations: 43.89 kB / 1.241 GB, free: 13.28 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.214e-05/0.9082, allocations: 4 kB / 1.241 GB, free: 13.28 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004741/0.9087, allocations: 107.9 kB / 1.241 GB, free: 13.17 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.936e-05/0.9087, allocations: 19.98 kB / 1.241 GB, free: 13.15 MB / 0.9669 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.000304/0.909, allocations: 253.7 kB / 1.242 GB, free: 12.89 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.897e-05/0.9091, allocations: 31.77 kB / 1.242 GB, free: 12.86 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.703e-05/0.9092, allocations: 46.95 kB / 1.242 GB, free: 12.82 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.32e-06/0.9092, allocations: 11.88 kB / 1.242 GB, free: 12.81 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.083e-06/0.9092, allocations: 0 / 1.242 GB, free: 12.81 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.706e-06/0.9092, allocations: 3.984 kB / 1.242 GB, free: 12.8 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001605/0.9109, allocations: 1.092 MB / 1.243 GB, free: 11.64 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.274e-06/0.9109, allocations: 0 / 1.243 GB, free: 11.64 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001709/0.911, allocations: 35.89 kB / 1.243 GB, free: 11.61 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.317e-06/0.9111, allocations: 8 kB / 1.243 GB, free: 11.6 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.172e-05/0.9111, allocations: 15.98 kB / 1.243 GB, free: 11.58 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.308e-06/0.9111, allocations: 3.938 kB / 1.243 GB, free: 11.58 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.784e-06/0.9111, allocations: 0 / 1.243 GB, free: 11.58 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001258/0.9124, allocations: 0.7731 MB / 1.244 GB, free: 10.79 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 8.266e-05/0.9125, allocations: 112.9 kB / 1.244 GB, free: 10.66 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.892e-05/0.9125, allocations: 7.984 kB / 1.244 GB, free: 10.65 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001877/0.9127, allocations: 35.89 kB / 1.244 GB, free: 10.61 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001196/0.9128, allocations: 55.86 kB / 1.244 GB, free: 10.56 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.569e-05/0.9129, allocations: 16 kB / 1.244 GB, free: 10.54 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 0.0002154/0.9131, allocations: 205.9 kB / 1.244 GB, free: 10.34 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.4e-07/0.9131, allocations: 0 / 1.244 GB, free: 10.34 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.000433/0.9136, allocations: 127.6 kB / 1.244 GB, free: 10.22 MB / 0.9669 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (uValIso[1].y,uValIso[2].y) * Number of discrete variables: 30 (enaSerTwo.anyCloSer.y,enaSerTwo.allOpeSer.y,enaParTwo.anyOpePar.y,enaParTwo.allCloPar.y,enaParMod.anyOpePar.y,enaParMod.allCloPar.y,enaSerMod.anyCloSer.y,enaSerMod.allOpeSer.y,$whenCondition12,$whenCondition11,$whenCondition10,$whenCondition9,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,u1ValIso[1].y,u1ValIso[2].y,enaSerTwo.lat.y,enaSerMod.lat.y,enaSerMod.opeSerMod[1].y,enaSerMod.opeSerMod[2].y,enaParTwo.lat.y,enaParMod.cloParMod[1].y,enaParMod.cloParMod[2].y,enaParMod.lat.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (36): * Single equations (assignments): 30 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 6 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001904/0.9138, allocations: 129.8 kB / 1.244 GB, free: 10.09 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.001081/0.9148, allocations: 0.6627 MB / 1.245 GB, free: 9.398 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 2.284e-06/0.9149, allocations: 4.25 kB / 1.245 GB, free: 9.395 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.0004067/0.9153, allocations: 231.7 kB / 1.245 GB, free: 9.168 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007023/0.916, allocations: 144.1 kB / 1.245 GB, free: 9.039 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001485/0.9175, allocations: 0.905 MB / 1.246 GB, free: 8.102 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005012/0.918, allocations: 0.8813 MB / 1.247 GB, free: 7.195 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 0.000203/0.9182, allocations: 83.17 kB / 1.247 GB, free: 7.113 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.601e-05/0.9183, allocations: 31.44 kB / 1.247 GB, free: 7.082 MB / 0.9669 GB Notification: Performance of SimCode: time 2.11e-07/0.9183, allocations: 3.938 kB / 1.247 GB, free: 7.078 MB / 0.9669 GB Notification: Performance of Templates: time 0.012/0.9303, allocations: 6.441 MB / 1.253 GB, free: 0.7461 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/jenkins/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