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.001354/0.001355, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001511/0.001511, allocations: 192.3 kB / 16.13 MB, free: 6.703 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.504/1.504, allocations: 222.9 MB / 239.8 MB, free: 4.637 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.777/2.777, allocations: 461.9 MB / 0.7342 GB, free: 15 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001263/0.001263, allocations: 60.69 kB / 0.8984 GB, free: 37.27 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3743/0.3756, allocations: 157.4 MB / 1.052 GB, free: 8.836 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.Pumps.Primary.Validation.EnableLeadHeadered): time 0.003404/0.379, allocations: 1.989 MB / 1.054 GB, free: 6.84 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.002894/0.3819, allocations: 1.957 MB / 1.056 GB, free: 4.867 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002392/0.3822, allocations: 23.88 kB / 1.056 GB, free: 4.844 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0003232/0.3825, allocations: 115.2 kB / 1.056 GB, free: 4.73 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 9.97e-05/0.3826, allocations: 15.84 kB / 1.056 GB, free: 4.715 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008158/0.3835, allocations: 318.6 kB / 1.056 GB, free: 4.406 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0006451/0.3841, allocations: 0.7227 MB / 1.057 GB, free: 3.68 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005831/0.3847, allocations: 451.9 kB / 1.058 GB, free: 3.234 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002167/0.3849, allocations: 203.3 kB / 1.058 GB, free: 3.035 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002671/0.3852, allocations: 226.9 kB / 1.058 GB, free: 2.812 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 7.364e-05/0.3853, allocations: 32 kB / 1.058 GB, free: 2.781 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001252/0.3854, allocations: 47.91 kB / 1.058 GB, free: 2.734 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 0.000139/0.3856, allocations: 119.6 kB / 1.058 GB, free: 2.617 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0002567/0.3858, allocations: 234.7 kB / 1.058 GB, free: 2.387 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0006732/0.3865, allocations: 0.7672 MB / 1.059 GB, free: 1.617 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 7.805e-06/0.3865, allocations: 3.984 kB / 1.059 GB, free: 1.613 MB / 0.8106 GB Notification: Performance of FrontEnd: time 8.11e-07/0.3865, allocations: 0 / 1.059 GB, free: 1.613 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 8.265e-06/0.3865, allocations: 0 / 1.059 GB, free: 1.613 MB / 0.8106 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.001554/0.3881, allocations: 0.902 MB / 1.06 GB, free: 0.6445 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.743e-05/0.3882, allocations: 12.03 kB / 1.06 GB, free: 0.6328 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001435/0.3883, allocations: 56.38 kB / 1.06 GB, free: 0.5781 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000721/0.389, allocations: 471.9 kB / 1.061 GB, free: 80 kB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.502e-05/0.3891, allocations: 45.36 kB / 1.061 GB, free: 36 kB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001126/0.3892, allocations: 52.42 kB / 1.061 GB, free: 15.98 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009643/0.3902, allocations: 0.5456 MB / 1.061 GB, free: 15.44 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.22e-05/0.3902, allocations: 192 / 1.061 GB, free: 15.44 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.432e-05/0.3902, allocations: 19.94 kB / 1.061 GB, free: 15.42 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.156e-05/0.3903, allocations: 16 kB / 1.061 GB, free: 15.4 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007502/0.391, allocations: 459.6 kB / 1.062 GB, free: 14.95 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001896/0.3929, allocations: 1.293 MB / 1.063 GB, free: 13.61 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007476/0.3937, allocations: 430.2 kB / 1.063 GB, free: 13.18 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003112/0.394, allocations: 188.6 kB / 1.063 GB, free: 12.99 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 2.972e-05/0.394, allocations: 4 kB / 1.063 GB, free: 12.98 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000542/0.3946, allocations: 319.9 kB / 1.064 GB, free: 12.66 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=36): time 2.064e-06/0.3946, allocations: 0 / 1.064 GB, free: 12.66 MB / 0.8262 GB Notification: Performance of matching and sorting (n=36): time 0.001183/0.3958, allocations: 0.6374 MB / 1.064 GB, free: 12.02 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.41e-05/0.3959, allocations: 55.41 kB / 1.064 GB, free: 11.95 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003153/0.3962, allocations: 326.3 kB / 1.065 GB, free: 11.62 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 5.265e-05/0.3962, allocations: 41.64 kB / 1.065 GB, free: 11.58 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001774/0.3964, allocations: 237 kB / 1.065 GB, free: 11.34 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 8.079e-05/0.3965, allocations: 82.89 kB / 1.065 GB, free: 11.26 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001928/0.3967, allocations: 130 kB / 1.065 GB, free: 11.12 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001467/0.3969, allocations: 338.8 kB / 1.066 GB, free: 10.79 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004775/0.3973, allocations: 272.1 kB / 1.066 GB, free: 10.52 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005471/0.3979, allocations: 352 kB / 1.066 GB, free: 10.15 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006834/0.3986, allocations: 448.9 kB / 1.067 GB, free: 9.684 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.056e-06/0.3986, allocations: 0 / 1.067 GB, free: 9.684 MB / 0.8262 GB Notification: Performance of matching and sorting (n=44) (initialization): time 0.001156/0.3998, allocations: 0.6884 MB / 1.067 GB, free: 8.977 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 6.171e-05/0.3998, allocations: 67.52 kB / 1.067 GB, free: 8.898 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.174e-06/0.3999, allocations: 4 kB / 1.067 GB, free: 8.895 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.77e-05/0.3999, allocations: 7.938 kB / 1.067 GB, free: 8.887 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001894/0.4001, allocations: 43.89 kB / 1.067 GB, free: 8.844 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.879e-06/0.4001, allocations: 4 kB / 1.067 GB, free: 8.84 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004964/0.4006, allocations: 103.6 kB / 1.067 GB, free: 8.738 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.076e-05/0.4007, allocations: 27.98 kB / 1.068 GB, free: 8.711 MB / 0.8262 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.0002954/0.401, allocations: 244.2 kB / 1.068 GB, free: 8.461 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.684e-05/0.401, allocations: 31.62 kB / 1.068 GB, free: 8.43 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.902e-05/0.4011, allocations: 38.95 kB / 1.068 GB, free: 8.391 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.394e-06/0.4011, allocations: 4 kB / 1.068 GB, free: 8.387 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.608e-06/0.4011, allocations: 0 / 1.068 GB, free: 8.387 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.362e-06/0.4011, allocations: 4 kB / 1.068 GB, free: 8.383 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001664/0.4028, allocations: 1.101 MB / 1.069 GB, free: 7.219 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.294e-06/0.4028, allocations: 0 / 1.069 GB, free: 7.219 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001781/0.403, allocations: 43.88 kB / 1.069 GB, free: 7.176 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.251e-06/0.403, allocations: 8 kB / 1.069 GB, free: 7.168 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.93e-05/0.4031, allocations: 8 kB / 1.069 GB, free: 7.16 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.607e-06/0.4031, allocations: 3.938 kB / 1.069 GB, free: 7.156 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.512e-06/0.4031, allocations: 0 / 1.069 GB, free: 7.156 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001224/0.4043, allocations: 0.7799 MB / 1.07 GB, free: 6.359 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 7.902e-05/0.4044, allocations: 108.7 kB / 1.07 GB, free: 6.234 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.05e-05/0.4044, allocations: 7.984 kB / 1.07 GB, free: 6.227 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000184/0.4046, allocations: 35.89 kB / 1.07 GB, free: 6.191 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000114/0.4048, allocations: 51.8 kB / 1.07 GB, free: 6.141 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.564e-05/0.4048, allocations: 19.98 kB / 1.07 GB, free: 6.121 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0001966/0.405, allocations: 201.9 kB / 1.07 GB, free: 5.922 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.403e-06/0.405, allocations: 0 / 1.07 GB, free: 5.922 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0004142/0.4054, allocations: 131.5 kB / 1.07 GB, free: 5.793 MB / 0.8262 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.0001844/0.4056, allocations: 129.8 kB / 1.07 GB, free: 5.656 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.001055/0.4067, allocations: 0.6544 MB / 1.071 GB, free: 4.977 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 5.931e-06/0.4067, allocations: 8.25 kB / 1.071 GB, free: 4.969 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.000397/0.4071, allocations: 236.5 kB / 1.071 GB, free: 4.738 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006824/0.4078, allocations: 126.4 kB / 1.071 GB, free: 4.617 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00155/0.4094, allocations: 1.045 MB / 1.072 GB, free: 3.551 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005606/0.4099, allocations: 0.8855 MB / 1.073 GB, free: 2.641 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.0002275/0.4102, allocations: 79.22 kB / 1.073 GB, free: 2.559 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.306e-05/0.4103, allocations: 35.44 kB / 1.073 GB, free: 2.523 MB / 0.8262 GB Notification: Performance of SimCode: time 6.21e-07/0.4103, allocations: 0 / 1.073 GB, free: 2.523 MB / 0.8262 GB Notification: Performance of Templates: time 0.01186/0.4221, allocations: 6.066 MB / 1.079 GB, free: 12.57 MB / 0.8419 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