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.01057/0.01057, allocations: 102.3 kB / 15.73 MB, free: 6.008 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.002522/0.002522, allocations: 198.5 kB / 16.68 MB, free: 5.93 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.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.619/2.619, allocations: 461.9 MB / 0.7348 GB, free: 11.07 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001178/0.001178, allocations: 71.84 kB / 1.054 GB, free: 7.691 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8741/0.8753, allocations: 157.4 MB / 1.208 GB, free: 13.64 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.Pumps.Primary.Validation.EnableLeadHeadered): time 0.003167/0.8785, allocations: 1.954 MB / 1.21 GB, free: 11.69 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.002783/0.8813, allocations: 1.985 MB / 1.212 GB, free: 9.688 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002277/0.8816, allocations: 23.88 kB / 1.212 GB, free: 9.664 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 0.000313/0.8819, allocations: 135 kB / 1.212 GB, free: 9.531 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 0.0001017/0.882, allocations: 35.66 kB / 1.212 GB, free: 9.496 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007947/0.8828, allocations: 346.8 kB / 1.212 GB, free: 9.16 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0007393/0.8836, allocations: 0.7932 MB / 1.213 GB, free: 8.367 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005539/0.8841, allocations: 467.6 kB / 1.213 GB, free: 7.898 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002396/0.8844, allocations: 267.2 kB / 1.214 GB, free: 7.637 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002826/0.8847, allocations: 258.9 kB / 1.214 GB, free: 7.383 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 8.305e-05/0.8848, allocations: 64 kB / 1.214 GB, free: 7.32 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001412/0.8849, allocations: 83.92 kB / 1.214 GB, free: 7.238 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 0.0001232/0.885, allocations: 135.7 kB / 1.214 GB, free: 7.105 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 0.0003399/0.8854, allocations: 274.7 kB / 1.214 GB, free: 6.836 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.000733/0.8861, allocations: 0.8292 MB / 1.215 GB, free: 6.008 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 6.202e-06/0.8861, allocations: 0 / 1.215 GB, free: 6.008 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.693e-06/0.8861, allocations: 3.938 kB / 1.215 GB, free: 6.004 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 1.235e-05/0.8862, allocations: 0 / 1.215 GB, free: 6.004 MB / 0.9356 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.001411/0.8876, allocations: 0.899 MB / 1.216 GB, free: 5.043 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 3.741e-05/0.8876, allocations: 12.02 kB / 1.216 GB, free: 5.031 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001364/0.8878, allocations: 60.28 kB / 1.216 GB, free: 4.973 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006762/0.8884, allocations: 495.9 kB / 1.217 GB, free: 4.453 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.11e-05/0.8885, allocations: 37.36 kB / 1.217 GB, free: 4.414 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.536e-05/0.8886, allocations: 56.38 kB / 1.217 GB, free: 4.359 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001006/0.8896, allocations: 0.5417 MB / 1.217 GB, free: 3.812 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.065e-05/0.8896, allocations: 192 / 1.217 GB, free: 3.812 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.57e-05/0.8897, allocations: 23.92 kB / 1.217 GB, free: 3.789 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.968e-06/0.8897, allocations: 16 kB / 1.217 GB, free: 3.773 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007162/0.8904, allocations: 455.6 kB / 1.218 GB, free: 3.332 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001824/0.8923, allocations: 1.273 MB / 1.219 GB, free: 2.004 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007741/0.893, allocations: 432.7 kB / 1.219 GB, free: 1.574 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003116/0.8934, allocations: 188.6 kB / 1.219 GB, free: 1.387 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 2.943e-05/0.8934, allocations: 11.98 kB / 1.22 GB, free: 1.375 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000515/0.8939, allocations: 318.8 kB / 1.22 GB, free: 1.051 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=36): time 1.653e-06/0.8939, allocations: 0 / 1.22 GB, free: 1.051 MB / 0.9356 GB Notification: Performance of matching and sorting (n=36): time 0.001278/0.8952, allocations: 0.6345 MB / 1.22 GB, free: 420 kB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.256e-05/0.8953, allocations: 59.34 kB / 1.22 GB, free: 348 kB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003032/0.8956, allocations: 326.4 kB / 1.221 GB, free: 8 kB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 7.304e-05/0.8957, allocations: 45.69 kB / 1.221 GB, free: 15.96 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001694/0.8958, allocations: 229 kB / 1.221 GB, free: 15.73 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 7.151e-05/0.8959, allocations: 86.89 kB / 1.221 GB, free: 15.64 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001938/0.8961, allocations: 126 kB / 1.221 GB, free: 15.51 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001275/0.8963, allocations: 342.8 kB / 1.222 GB, free: 15.16 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004763/0.8967, allocations: 268.1 kB / 1.222 GB, free: 14.9 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005148/0.8973, allocations: 344.1 kB / 1.222 GB, free: 14.54 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006909/0.898, allocations: 444.9 kB / 1.223 GB, free: 14.08 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.306e-06/0.898, allocations: 0 / 1.223 GB, free: 14.08 MB / 0.9512 GB Notification: Performance of matching and sorting (n=44) (initialization): time 0.001166/0.8992, allocations: 0.69 MB / 1.223 GB, free: 13.37 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 6.742e-05/0.8992, allocations: 67.39 kB / 1.223 GB, free: 13.29 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.42e-06/0.8992, allocations: 0 / 1.223 GB, free: 13.29 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.893e-05/0.8993, allocations: 4 kB / 1.223 GB, free: 13.29 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001927/0.8995, allocations: 43.89 kB / 1.223 GB, free: 13.25 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.121e-05/0.8995, allocations: 7.984 kB / 1.223 GB, free: 13.24 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004819/0.9, allocations: 103.7 kB / 1.223 GB, free: 13.14 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.841e-05/0.9, allocations: 23.94 kB / 1.224 GB, free: 13.11 MB / 0.9512 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.0003199/0.9004, allocations: 248.2 kB / 1.224 GB, free: 12.86 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.799e-05/0.9004, allocations: 31.62 kB / 1.224 GB, free: 12.83 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.28e-05/0.9005, allocations: 38.95 kB / 1.224 GB, free: 12.8 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.005e-06/0.9005, allocations: 8 kB / 1.224 GB, free: 12.79 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.134e-06/0.9005, allocations: 0 / 1.224 GB, free: 12.79 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.153e-06/0.9005, allocations: 0 / 1.224 GB, free: 12.79 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001618/0.9022, allocations: 1.108 MB / 1.225 GB, free: 11.62 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.127e-06/0.9022, allocations: 0 / 1.225 GB, free: 11.62 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001854/0.9024, allocations: 43.83 kB / 1.225 GB, free: 11.58 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.231e-06/0.9024, allocations: 4 kB / 1.225 GB, free: 11.57 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.918e-05/0.9024, allocations: 15.98 kB / 1.225 GB, free: 11.56 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.151e-06/0.9024, allocations: 7.938 kB / 1.225 GB, free: 11.55 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.502e-06/0.9025, allocations: 0 / 1.225 GB, free: 11.55 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001255/0.9037, allocations: 0.7731 MB / 1.226 GB, free: 10.76 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001045/0.9038, allocations: 104.8 kB / 1.226 GB, free: 10.64 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.276e-05/0.9039, allocations: 8 kB / 1.226 GB, free: 10.63 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001959/0.9041, allocations: 35.89 kB / 1.226 GB, free: 10.6 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001387/0.9042, allocations: 55.92 kB / 1.226 GB, free: 10.54 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.61e-05/0.9043, allocations: 15.92 kB / 1.226 GB, free: 10.53 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 0.0002436/0.9045, allocations: 209.9 kB / 1.226 GB, free: 10.32 MB / 0.9512 GB Notification: Performance of sort global known variables: time 1.41e-07/0.9045, allocations: 0 / 1.226 GB, free: 10.32 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.0004864/0.905, allocations: 123.5 kB / 1.226 GB, free: 10.2 MB / 0.9512 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.0002896/0.9053, allocations: 137.8 kB / 1.226 GB, free: 10.05 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.001248/0.9066, allocations: 0.651 MB / 1.227 GB, free: 9.379 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 2.805e-06/0.9066, allocations: 256 / 1.227 GB, free: 9.379 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.0004291/0.907, allocations: 239.6 kB / 1.227 GB, free: 9.145 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007619/0.9078, allocations: 137.3 kB / 1.227 GB, free: 9.016 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001724/0.9095, allocations: 0.8983 MB / 1.228 GB, free: 8.094 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007393/0.9103, allocations: 0.8852 MB / 1.229 GB, free: 7.184 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 0.0002127/0.9105, allocations: 75.19 kB / 1.229 GB, free: 7.105 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.431e-05/0.9106, allocations: 35.42 kB / 1.229 GB, free: 7.07 MB / 0.9512 GB Notification: Performance of SimCode: time 2.11e-07/0.9106, allocations: 0 / 1.229 GB, free: 7.07 MB / 0.9512 GB Notification: Performance of Templates: time 0.01146/0.9221, allocations: 6.441 MB / 1.236 GB, free: 0.7461 MB / 0.9512 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