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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001707/0.001707, allocations: 117 kB / 17.08 MB, free: 5.977 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001915/0.001915, allocations: 191.7 kB / 20.03 MB, free: 3.047 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.405/1.405, allocations: 222.9 MB / 245.7 MB, free: 4.207 MB / 190.1 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.841/2.841, allocations: 489.3 MB / 0.7687 GB, free: 3.754 MB / 0.6075 GB " [Timeout remaining time 177] 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=2500,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=2500,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") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 0.00188/0.00188, allocations: 59.91 kB / 1.103 GB, free: 0.793 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8884/0.8903, allocations: 163.8 MB / 1.263 GB, free: 7.988 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.Pumps.Primary.Validation.EnableLeadHeadered): time 0.003069/0.8934, allocations: 1.979 MB / 1.265 GB, free: 6.652 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.002722/0.8962, allocations: 1.979 MB / 1.266 GB, free: 5.211 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002862/0.8965, allocations: 29.72 kB / 1.266 GB, free: 5.199 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.0002945/0.8968, allocations: 134.5 kB / 1.267 GB, free: 5.117 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 9.983e-05/0.8969, allocations: 21.53 kB / 1.267 GB, free: 5.102 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008422/0.8977, allocations: 356 kB / 1.267 GB, free: 4.902 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.0007957/0.8985, allocations: 0.7852 MB / 1.268 GB, free: 4.551 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005849/0.8991, allocations: 467.5 kB / 1.268 GB, free: 4.344 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002787/0.8994, allocations: 269.4 kB / 1.268 GB, free: 4.219 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003268/0.8997, allocations: 259.2 kB / 1.269 GB, free: 4.094 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 0.0001253/0.8999, allocations: 63.25 kB / 1.269 GB, free: 4.094 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001671/0.9001, allocations: 77.86 kB / 1.269 GB, free: 4.09 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 0.0001342/0.9002, allocations: 146.2 kB / 1.269 GB, free: 4.004 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 0.0002784/0.9005, allocations: 270.8 kB / 1.269 GB, free: 3.828 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.0008193/0.9013, allocations: 0.8291 MB / 1.27 GB, free: 3.539 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 4.048e-06/0.9013, allocations: 0.7812 kB / 1.27 GB, free: 3.539 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.473e-06/0.9013, allocations: 0 / 1.27 GB, free: 3.539 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 9.608e-06/0.9013, allocations: 0.8125 kB / 1.27 GB, free: 3.539 MB / 0.9981 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.001323/0.9027, allocations: 0.9147 MB / 1.271 GB, free: 2.867 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 3.57e-05/0.9027, allocations: 9.469 kB / 1.271 GB, free: 2.867 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001245/0.9028, allocations: 60.23 kB / 1.271 GB, free: 2.84 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006301/0.9035, allocations: 496 kB / 1.271 GB, free: 2.516 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.416e-05/0.9035, allocations: 43.66 kB / 1.271 GB, free: 2.5 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001115/0.9036, allocations: 54.84 kB / 1.272 GB, free: 2.484 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009148/0.9046, allocations: 0.5384 MB / 1.272 GB, free: 2.301 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.567e-05/0.9046, allocations: 1.125 kB / 1.272 GB, free: 2.301 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.363e-05/0.9046, allocations: 27.77 kB / 1.272 GB, free: 2.281 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.577e-05/0.9047, allocations: 14.62 kB / 1.272 GB, free: 2.277 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000739/0.9054, allocations: 459.3 kB / 1.273 GB, free: 2.145 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001799/0.9072, allocations: 1.275 MB / 1.274 GB, free: 1.5 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007705/0.908, allocations: 432 kB / 1.274 GB, free: 1.359 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003213/0.9083, allocations: 187.9 kB / 1.274 GB, free: 1.301 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 3.241e-05/0.9084, allocations: 3 kB / 1.274 GB, free: 1.301 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005175/0.9089, allocations: 318.4 kB / 1.275 GB, free: 1.188 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=36): time 2.104e-06/0.9089, allocations: 0 / 1.275 GB, free: 1.188 MB / 0.9981 GB Notification: Performance of matching and sorting (n=36): time 0.001243/0.9102, allocations: 0.6398 MB / 1.275 GB, free: 0.9961 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.999e-05/0.9102, allocations: 61.8 kB / 1.275 GB, free: 0.9297 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003301/0.9105, allocations: 328 kB / 1.276 GB, free: 0.7422 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 5.253e-05/0.9106, allocations: 40.95 kB / 1.276 GB, free: 0.7031 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001324/0.9107, allocations: 241.2 kB / 1.276 GB, free: 0.5117 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 5.656e-05/0.9108, allocations: 85.25 kB / 1.276 GB, free: 456 kB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001963/0.911, allocations: 125.4 kB / 1.276 GB, free: 404 kB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 6.441e-05/0.9111, allocations: 346.2 kB / 1.276 GB, free: 68 kB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004894/0.9116, allocations: 272 kB / 1.277 GB, free: 0 / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005835/0.9122, allocations: 345.4 kB / 1.277 GB, free: 15.86 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007289/0.9129, allocations: 451.7 kB / 1.278 GB, free: 15.65 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.695e-06/0.9129, allocations: 0 / 1.278 GB, free: 15.65 MB / 1.014 GB Notification: Performance of matching and sorting (n=44) (initialization): time 0.001181/0.9141, allocations: 0.6947 MB / 1.278 GB, free: 15.39 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 6.093e-05/0.9142, allocations: 61.64 kB / 1.278 GB, free: 15.32 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.342e-06/0.9142, allocations: 3.281 kB / 1.278 GB, free: 15.32 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.587e-05/0.9142, allocations: 4.359 kB / 1.278 GB, free: 15.32 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001828/0.9144, allocations: 43.17 kB / 1.278 GB, free: 15.32 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.916e-06/0.9144, allocations: 3.234 kB / 1.278 GB, free: 15.32 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004885/0.9149, allocations: 104.5 kB / 1.278 GB, free: 15.3 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.859e-05/0.915, allocations: 19.89 kB / 1.278 GB, free: 15.3 MB / 1.014 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.0003455/0.9153, allocations: 255.6 kB / 1.279 GB, free: 15.12 MB / 1.014 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.034e-05/0.9154, allocations: 34.89 kB / 1.279 GB, free: 15.1 MB / 1.014 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.651e-05/0.9155, allocations: 44.77 kB / 1.279 GB, free: 15.07 MB / 1.014 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.638e-06/0.9155, allocations: 3.031 kB / 1.279 GB, free: 15.07 MB / 1.014 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.325e-06/0.9155, allocations: 0.7969 kB / 1.279 GB, free: 15.07 MB / 1.014 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.951e-06/0.9155, allocations: 1.875 kB / 1.279 GB, free: 15.07 MB / 1.014 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001704/0.9172, allocations: 1.089 MB / 1.28 GB, free: 14.53 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.286e-06/0.9172, allocations: 0 / 1.28 GB, free: 14.53 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001744/0.9174, allocations: 42.8 kB / 1.28 GB, free: 14.52 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.707e-06/0.9174, allocations: 6.688 kB / 1.28 GB, free: 14.52 MB / 1.014 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.093e-05/0.9175, allocations: 10.56 kB / 1.28 GB, free: 14.52 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.5e-06/0.9175, allocations: 5.031 kB / 1.28 GB, free: 14.51 MB / 1.014 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.533e-06/0.9175, allocations: 0 / 1.28 GB, free: 14.51 MB / 1.014 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001284/0.9188, allocations: 0.7922 MB / 1.281 GB, free: 14.19 MB / 1.014 GB Notification: Performance of postOpt removeConstants (simulation): time 9.905e-05/0.9189, allocations: 111.3 kB / 1.281 GB, free: 14.07 MB / 1.014 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.769e-05/0.9189, allocations: 9.609 kB / 1.281 GB, free: 14.07 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001886/0.9191, allocations: 35.36 kB / 1.281 GB, free: 14.06 MB / 1.014 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001344/0.9193, allocations: 52.16 kB / 1.281 GB, free: 14.05 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.614e-05/0.9193, allocations: 17.62 kB / 1.281 GB, free: 14.04 MB / 1.014 GB Notification: Performance of sorting global known variables: time 0.0002289/0.9195, allocations: 205.6 kB / 1.281 GB, free: 13.94 MB / 1.014 GB Notification: Performance of sort global known variables: time 1.4e-07/0.9195, allocations: 3.938 kB / 1.281 GB, free: 13.93 MB / 1.014 GB Notification: Performance of remove unused functions: time 0.0005393/0.9201, allocations: 120 kB / 1.281 GB, free: 13.9 MB / 1.014 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.0002038/0.9203, allocations: 135 kB / 1.281 GB, free: 13.79 MB / 1.014 GB Notification: Performance of simCode: created initialization part: time 0.001148/0.9215, allocations: 0.6514 MB / 1.282 GB, free: 13.54 MB / 1.014 GB Notification: Performance of simCode: created event and clocks part: time 2.375e-06/0.9215, allocations: 4.062 kB / 1.282 GB, free: 13.53 MB / 1.014 GB Notification: Performance of simCode: created simulation system equations: time 0.000436/0.9219, allocations: 237.6 kB / 1.282 GB, free: 13.47 MB / 1.014 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007061/0.9226, allocations: 148.2 kB / 1.282 GB, free: 13.43 MB / 1.014 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001659/0.9243, allocations: 0.9343 MB / 1.283 GB, free: 12.93 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005724/0.9249, allocations: 0.8773 MB / 1.284 GB, free: 12.21 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001073/0.925, allocations: 32.48 kB / 1.284 GB, free: 12.21 MB / 1.014 GB Notification: Performance of SimCode: time 5.91e-07/0.925, allocations: 0 / 1.284 GB, free: 12.21 MB / 1.014 GB Notification: Performance of Templates: time 0.01218/0.9372, allocations: 6.542 MB / 1.29 GB, free: 11.55 MB / 1.014 GB " [Timeout remaining time 299] make -j1 -f Buildings_latest_Buildings.Templates.Plants.Controls.Pumps.Primary.Validation.EnableLeadHeadered.makefile [Timeout 300] (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=800 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Templates.Plants.Controls.Pumps.Primary.Validation.EnableLeadHeadered.pipe 2>&1) [Timeout 800] 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_2/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Templates.Plants.Controls.Pumps.Primary.Validation.EnableLeadHeadered.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 12.007194043137133]