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.008523/0.008522, allocations: 97.88 kB / 15.73 MB, free: 6.004 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.001934/0.001934, allocations: 192.6 kB / 16.67 MB, free: 5.934 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.399/1.399, allocations: 222.9 MB / 240.4 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.715/2.715, allocations: 472.6 MB / 0.7453 GB, free: 440 kB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.00132/0.00132, allocations: 63.91 kB / 1.069 GB, free: 9.582 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8729/0.8742, allocations: 159.9 MB / 1.226 GB, free: 13.51 MB / 0.9512 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.Pumps.Primary.Validation.EnableLeadHeadered): time 0.003467/0.8777, allocations: 1.966 MB / 1.228 GB, free: 11.54 MB / 0.9512 GB Notification: Performance of NFInst.instExpressions: time 0.003502/0.8813, allocations: 1.989 MB / 1.229 GB, free: 9.539 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003772/0.8817, allocations: 23.88 kB / 1.229 GB, free: 9.516 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 0.0003445/0.882, allocations: 131 kB / 1.23 GB, free: 9.387 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 0.0001156/0.8822, allocations: 31.67 kB / 1.23 GB, free: 9.355 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009701/0.8832, allocations: 354.9 kB / 1.23 GB, free: 9.012 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 0.0007644/0.8839, allocations: 0.7892 MB / 1.231 GB, free: 8.219 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006662/0.8846, allocations: 471.6 kB / 1.231 GB, free: 7.75 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003331/0.885, allocations: 255.3 kB / 1.231 GB, free: 7.5 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003715/0.8853, allocations: 266.9 kB / 1.232 GB, free: 7.238 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 0.0001162/0.8855, allocations: 60 kB / 1.232 GB, free: 7.18 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001799/0.8857, allocations: 79.98 kB / 1.232 GB, free: 7.102 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 0.0001665/0.8858, allocations: 151.5 kB / 1.232 GB, free: 6.953 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 0.000328/0.8862, allocations: 270.7 kB / 1.232 GB, free: 6.688 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.0008373/0.887, allocations: 0.8218 MB / 1.233 GB, free: 5.867 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 5.801e-06/0.887, allocations: 4 kB / 1.233 GB, free: 5.863 MB / 0.9512 GB Notification: Performance of FrontEnd: time 1.863e-06/0.887, allocations: 0 / 1.233 GB, free: 5.863 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 1.504e-05/0.8871, allocations: 0 / 1.233 GB, free: 5.863 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.001584/0.8886, allocations: 0.916 MB / 1.234 GB, free: 4.879 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 4.512e-05/0.8887, allocations: 12.03 kB / 1.234 GB, free: 4.867 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001338/0.8888, allocations: 60.61 kB / 1.234 GB, free: 4.809 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007323/0.8896, allocations: 0.4923 MB / 1.234 GB, free: 4.277 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.712e-05/0.8896, allocations: 41.38 kB / 1.235 GB, free: 4.238 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000105/0.8897, allocations: 52.31 kB / 1.235 GB, free: 4.188 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009579/0.8907, allocations: 0.5418 MB / 1.235 GB, free: 3.641 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.672e-05/0.8907, allocations: 4.172 kB / 1.235 GB, free: 3.637 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.617e-05/0.8908, allocations: 19.94 kB / 1.235 GB, free: 3.617 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.267e-05/0.8908, allocations: 16 kB / 1.235 GB, free: 3.602 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007918/0.8916, allocations: 463.6 kB / 1.236 GB, free: 3.148 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00192/0.8935, allocations: 1.274 MB / 1.237 GB, free: 1.82 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007483/0.8943, allocations: 422.3 kB / 1.237 GB, free: 1.398 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003336/0.8946, allocations: 188.6 kB / 1.237 GB, free: 1.211 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 3.571e-05/0.8947, allocations: 4 kB / 1.237 GB, free: 1.207 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005459/0.8952, allocations: 330.8 kB / 1.238 GB, free: 0.8711 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=36): time 2.735e-06/0.8953, allocations: 0 / 1.238 GB, free: 0.8711 MB / 0.9512 GB Notification: Performance of matching and sorting (n=36): time 0.001265/0.8965, allocations: 0.6362 MB / 1.238 GB, free: 236 kB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.513e-05/0.8966, allocations: 55.41 kB / 1.238 GB, free: 168 kB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003698/0.897, allocations: 334.5 kB / 1.239 GB, free: 15.83 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 4.932e-05/0.897, allocations: 37.7 kB / 1.239 GB, free: 15.79 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001844/0.8972, allocations: 237.5 kB / 1.239 GB, free: 15.55 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 6.911e-05/0.8973, allocations: 83.33 kB / 1.239 GB, free: 15.47 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002163/0.8975, allocations: 130 kB / 1.239 GB, free: 15.33 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001501/0.8977, allocations: 342.8 kB / 1.24 GB, free: 14.99 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005071/0.8982, allocations: 272 kB / 1.24 GB, free: 14.72 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005242/0.8987, allocations: 352 kB / 1.24 GB, free: 14.35 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007088/0.8994, allocations: 444.9 kB / 1.241 GB, free: 13.89 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.006e-06/0.8995, allocations: 0 / 1.241 GB, free: 13.89 MB / 0.9669 GB Notification: Performance of matching and sorting (n=44) (initialization): time 0.001179/0.9006, allocations: 0.6901 MB / 1.241 GB, free: 13.18 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 7.339e-05/0.9007, allocations: 72.8 kB / 1.241 GB, free: 13.1 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.653e-06/0.9007, allocations: 0 / 1.241 GB, free: 13.1 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.981e-05/0.9008, allocations: 4 kB / 1.241 GB, free: 13.1 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001926/0.901, allocations: 39.89 kB / 1.241 GB, free: 13.06 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.578e-06/0.901, allocations: 7.984 kB / 1.241 GB, free: 13.05 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004813/0.9015, allocations: 107.8 kB / 1.241 GB, free: 12.95 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.768e-05/0.9015, allocations: 19.98 kB / 1.241 GB, free: 12.93 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.0003504/0.9019, allocations: 252.8 kB / 1.242 GB, free: 12.67 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.453e-05/0.9019, allocations: 31.77 kB / 1.242 GB, free: 12.64 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.034e-05/0.902, allocations: 46.89 kB / 1.242 GB, free: 12.59 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.292e-06/0.9021, allocations: 4 kB / 1.242 GB, free: 12.59 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.442e-06/0.9021, allocations: 4 kB / 1.242 GB, free: 12.59 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.31e-06/0.9021, allocations: 0 / 1.242 GB, free: 12.59 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001686/0.9038, allocations: 1.1 MB / 1.243 GB, free: 11.43 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.946e-06/0.9038, allocations: 3.938 kB / 1.243 GB, free: 11.42 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001745/0.904, allocations: 39.89 kB / 1.243 GB, free: 11.38 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.971e-06/0.904, allocations: 4 kB / 1.243 GB, free: 11.38 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.934e-05/0.904, allocations: 12 kB / 1.243 GB, free: 11.37 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.917e-06/0.904, allocations: 3.938 kB / 1.243 GB, free: 11.36 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.322e-06/0.904, allocations: 0 / 1.243 GB, free: 11.36 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001273/0.9053, allocations: 0.777 MB / 1.244 GB, free: 10.57 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 7.003e-05/0.9054, allocations: 113 kB / 1.244 GB, free: 10.44 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.653e-05/0.9055, allocations: 7.984 kB / 1.244 GB, free: 10.43 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001934/0.9056, allocations: 35.89 kB / 1.244 GB, free: 10.39 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000126/0.9058, allocations: 47.94 kB / 1.244 GB, free: 10.35 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.874e-05/0.9058, allocations: 23.98 kB / 1.244 GB, free: 10.32 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 0.0001986/0.906, allocations: 201.9 kB / 1.244 GB, free: 10.13 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.3e-07/0.906, allocations: 0 / 1.244 GB, free: 10.13 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0004553/0.9065, allocations: 135.5 kB / 1.244 GB, free: 9.996 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.0001899/0.9067, allocations: 125.8 kB / 1.244 GB, free: 9.867 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.001081/0.9078, allocations: 0.6626 MB / 1.245 GB, free: 9.18 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 2.555e-06/0.9078, allocations: 0 / 1.245 GB, free: 9.18 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.0003958/0.9082, allocations: 239.9 kB / 1.245 GB, free: 8.945 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006994/0.9089, allocations: 135.5 kB / 1.245 GB, free: 8.824 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001445/0.9104, allocations: 0.905 MB / 1.246 GB, free: 7.887 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000435/0.9108, allocations: 0.8852 MB / 1.247 GB, free: 6.973 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 0.0002086/0.911, allocations: 79.22 kB / 1.247 GB, free: 6.895 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.37e-05/0.9111, allocations: 35.38 kB / 1.247 GB, free: 6.859 MB / 0.9669 GB Notification: Performance of SimCode: time 6.01e-07/0.9111, allocations: 0 / 1.247 GB, free: 6.859 MB / 0.9669 GB Notification: Performance of Templates: time 0.0116/0.9227, allocations: 6.437 MB / 1.253 GB, free: 0.5312 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