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.001828/0.001829, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002532/0.002532, allocations: 195.3 kB / 16.53 MB, free: 6.664 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.461/1.461, allocations: 222.9 MB / 240.2 MB, free: 4.406 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.811/2.811, allocations: 472.6 MB / 0.7451 GB, free: 4.734 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001373/0.001373, allocations: 69.52 kB / 0.912 GB, free: 33.3 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3721/0.3735, allocations: 159.9 MB / 1.068 GB, free: 10.42 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.Pumps.Primary.Validation.EnableLeadHeadered): time 0.004022/0.3776, allocations: 1.968 MB / 1.07 GB, free: 8.441 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.003561/0.3812, allocations: 1.985 MB / 1.072 GB, free: 6.441 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003113/0.3815, allocations: 31.75 kB / 1.072 GB, free: 6.41 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0003733/0.3819, allocations: 131 kB / 1.072 GB, free: 6.281 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0001245/0.382, allocations: 27.72 kB / 1.072 GB, free: 6.254 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.000986/0.383, allocations: 338.6 kB / 1.073 GB, free: 5.926 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0008624/0.3839, allocations: 0.8009 MB / 1.073 GB, free: 5.125 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007029/0.3846, allocations: 463.9 kB / 1.074 GB, free: 4.66 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003168/0.3849, allocations: 259.3 kB / 1.074 GB, free: 4.406 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003211/0.3853, allocations: 250.9 kB / 1.074 GB, free: 4.16 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 0.0001119/0.3854, allocations: 64 kB / 1.074 GB, free: 4.098 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001656/0.3856, allocations: 79.97 kB / 1.074 GB, free: 4.02 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.0001663/0.3857, allocations: 139.6 kB / 1.075 GB, free: 3.883 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0003112/0.3861, allocations: 274.7 kB / 1.075 GB, free: 3.613 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0007701/0.3868, allocations: 0.8023 MB / 1.076 GB, free: 2.809 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.599e-06/0.3868, allocations: 0 / 1.076 GB, free: 2.809 MB / 0.8262 GB Notification: Performance of FrontEnd: time 3.316e-06/0.3869, allocations: 0 / 1.076 GB, free: 2.809 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 2.236e-05/0.3869, allocations: 3.938 kB / 1.076 GB, free: 2.805 MB / 0.8262 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.001613/0.3885, allocations: 0.8971 MB / 1.076 GB, free: 1.844 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.35e-05/0.3886, allocations: 19.97 kB / 1.076 GB, free: 1.824 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001479/0.3887, allocations: 60.28 kB / 1.077 GB, free: 1.766 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007078/0.3894, allocations: 468 kB / 1.077 GB, free: 1.273 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.802e-05/0.3895, allocations: 45.38 kB / 1.077 GB, free: 1.227 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001015/0.3896, allocations: 52.31 kB / 1.077 GB, free: 1.176 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008651/0.3905, allocations: 0.5496 MB / 1.078 GB, free: 0.6211 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.175e-05/0.3905, allocations: 192 / 1.078 GB, free: 0.6211 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.931e-05/0.3905, allocations: 19.94 kB / 1.078 GB, free: 0.6016 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.382e-05/0.3906, allocations: 12 kB / 1.078 GB, free: 0.5898 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007308/0.3913, allocations: 459.6 kB / 1.078 GB, free: 148 kB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0018/0.3931, allocations: 1.293 MB / 1.079 GB, free: 14.79 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007319/0.3938, allocations: 426.2 kB / 1.08 GB, free: 14.37 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003114/0.3942, allocations: 188.6 kB / 1.08 GB, free: 14.18 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 3.262e-05/0.3942, allocations: 7.984 kB / 1.08 GB, free: 14.17 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004974/0.3947, allocations: 314.9 kB / 1.08 GB, free: 13.85 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=36): time 1.743e-06/0.3947, allocations: 3.938 kB / 1.08 GB, free: 13.85 MB / 0.8419 GB Notification: Performance of matching and sorting (n=36): time 0.001186/0.3959, allocations: 0.6431 MB / 1.081 GB, free: 13.2 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.747e-05/0.396, allocations: 55.41 kB / 1.081 GB, free: 13.13 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003178/0.3963, allocations: 326.4 kB / 1.081 GB, free: 12.81 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 4.848e-05/0.3964, allocations: 33.7 kB / 1.081 GB, free: 12.77 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001667/0.3965, allocations: 240.9 kB / 1.081 GB, free: 12.53 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 6.698e-05/0.3966, allocations: 82.91 kB / 1.082 GB, free: 12.45 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001971/0.3968, allocations: 130 kB / 1.082 GB, free: 12.31 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001431/0.397, allocations: 342.8 kB / 1.082 GB, free: 11.97 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004614/0.3974, allocations: 264.1 kB / 1.082 GB, free: 11.71 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000507/0.3979, allocations: 363.9 kB / 1.083 GB, free: 11.33 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006721/0.3986, allocations: 444.9 kB / 1.083 GB, free: 10.87 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.605e-06/0.3986, allocations: 0 / 1.083 GB, free: 10.87 MB / 0.8419 GB Notification: Performance of matching and sorting (n=44) (initialization): time 0.00111/0.3997, allocations: 0.6806 MB / 1.084 GB, free: 10.17 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 5.452e-05/0.3998, allocations: 63.52 kB / 1.084 GB, free: 10.09 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.54e-06/0.3998, allocations: 8 kB / 1.084 GB, free: 10.09 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.463e-05/0.3999, allocations: 0 / 1.084 GB, free: 10.09 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001764/0.4, allocations: 47.89 kB / 1.084 GB, free: 10.04 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.179e-05/0.4001, allocations: 7.984 kB / 1.084 GB, free: 10.03 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004834/0.4006, allocations: 103.6 kB / 1.084 GB, free: 9.93 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.636e-05/0.4006, allocations: 27.98 kB / 1.084 GB, free: 9.902 MB / 0.8419 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.0002842/0.4009, allocations: 256.2 kB / 1.084 GB, free: 9.645 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.617e-05/0.401, allocations: 31.62 kB / 1.084 GB, free: 9.613 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.11e-05/0.4011, allocations: 38.95 kB / 1.084 GB, free: 9.578 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.999e-06/0.4011, allocations: 4 kB / 1.084 GB, free: 9.574 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.582e-06/0.4011, allocations: 0 / 1.084 GB, free: 9.574 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.953e-06/0.4011, allocations: 3.984 kB / 1.084 GB, free: 9.57 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001554/0.4026, allocations: 1.096 MB / 1.085 GB, free: 8.41 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.144e-06/0.4027, allocations: 0 / 1.085 GB, free: 8.41 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001645/0.4028, allocations: 43.89 kB / 1.085 GB, free: 8.367 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.789e-06/0.4028, allocations: 8 kB / 1.085 GB, free: 8.359 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.174e-05/0.4029, allocations: 11.98 kB / 1.085 GB, free: 8.348 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.057e-06/0.4029, allocations: 3.938 kB / 1.085 GB, free: 8.344 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.806e-06/0.4029, allocations: 4 kB / 1.085 GB, free: 8.34 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001223/0.4041, allocations: 0.7776 MB / 1.086 GB, free: 7.547 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 7.431e-05/0.4042, allocations: 112.6 kB / 1.086 GB, free: 7.418 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.741e-05/0.4043, allocations: 11.94 kB / 1.086 GB, free: 7.406 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001836/0.4045, allocations: 35.89 kB / 1.086 GB, free: 7.371 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001189/0.4046, allocations: 51.92 kB / 1.086 GB, free: 7.32 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.983e-05/0.4046, allocations: 12 kB / 1.086 GB, free: 7.309 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0001955/0.4048, allocations: 213.9 kB / 1.087 GB, free: 7.098 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.5e-07/0.4048, allocations: 0 / 1.087 GB, free: 7.098 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0003815/0.4052, allocations: 119.5 kB / 1.087 GB, free: 6.98 MB / 0.8419 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.0001976/0.4054, allocations: 134.4 kB / 1.087 GB, free: 6.84 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.001147/0.4066, allocations: 0.6978 MB / 1.088 GB, free: 6.117 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.4066, allocations: 256 / 1.088 GB, free: 6.117 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0003803/0.407, allocations: 231.7 kB / 1.088 GB, free: 5.891 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006559/0.4077, allocations: 145.1 kB / 1.088 GB, free: 5.762 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001406/0.4091, allocations: 0.9073 MB / 1.089 GB, free: 4.828 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004561/0.4095, allocations: 0.8852 MB / 1.09 GB, free: 3.914 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.0001935/0.4097, allocations: 79.23 kB / 1.09 GB, free: 3.832 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.249e-05/0.4098, allocations: 27.44 kB / 1.09 GB, free: 3.809 MB / 0.8419 GB Notification: Performance of SimCode: time 2.4e-07/0.4098, allocations: 0 / 1.09 GB, free: 3.809 MB / 0.8419 GB Notification: Performance of Templates: time 0.01124/0.4211, allocations: 6.415 MB / 1.096 GB, free: 13.5 MB / 0.8575 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