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.001415/0.001415, allocations: 109.6 kB / 16.41 MB, free: 6.508 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.001583/0.001583, allocations: 189.7 kB / 17.34 MB, free: 5.742 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.394/1.394, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.602/2.602, allocations: 461.9 MB / 0.7354 GB, free: 11.05 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001451/0.001451, allocations: 68.09 kB / 1.055 GB, free: 7.699 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8303/0.8318, allocations: 157.4 MB / 1.208 GB, free: 13.61 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.Pumps.Primary.Validation.EnableLeadHeadered): time 0.003283/0.8351, allocations: 1.961 MB / 1.21 GB, free: 11.66 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.002791/0.8379, allocations: 1.985 MB / 1.212 GB, free: 9.656 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002512/0.8382, allocations: 27.88 kB / 1.212 GB, free: 9.629 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 0.0003249/0.8385, allocations: 135 kB / 1.212 GB, free: 9.496 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 0.0001007/0.8387, allocations: 27.67 kB / 1.212 GB, free: 9.469 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.000808/0.8395, allocations: 355.1 kB / 1.213 GB, free: 9.125 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.000716/0.8402, allocations: 0.7854 MB / 1.214 GB, free: 8.34 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005698/0.8408, allocations: 471.6 kB / 1.214 GB, free: 7.867 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002528/0.8411, allocations: 263.2 kB / 1.214 GB, free: 7.609 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000289/0.8414, allocations: 262.9 kB / 1.214 GB, free: 7.352 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 9.298e-05/0.8415, allocations: 64 kB / 1.215 GB, free: 7.289 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001391/0.8416, allocations: 75.94 kB / 1.215 GB, free: 7.215 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 0.0001363/0.8417, allocations: 151.6 kB / 1.215 GB, free: 7.066 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 0.0002655/0.842, allocations: 266.8 kB / 1.215 GB, free: 6.805 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0007281/0.8428, allocations: 0.8331 MB / 1.216 GB, free: 5.973 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 4.138e-06/0.8428, allocations: 3.938 kB / 1.216 GB, free: 5.969 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.183e-06/0.8428, allocations: 0 / 1.216 GB, free: 5.969 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 1.04e-05/0.8428, allocations: 0 / 1.216 GB, free: 5.969 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.001365/0.8442, allocations: 0.8951 MB / 1.217 GB, free: 5.012 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 3.458e-05/0.8442, allocations: 8.031 kB / 1.217 GB, free: 5.004 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001225/0.8443, allocations: 64.28 kB / 1.217 GB, free: 4.941 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006563/0.845, allocations: 487.9 kB / 1.217 GB, free: 4.43 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.247e-05/0.845, allocations: 41.38 kB / 1.217 GB, free: 4.387 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.929e-05/0.8452, allocations: 60.36 kB / 1.217 GB, free: 4.328 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008787/0.846, allocations: 0.5456 MB / 1.218 GB, free: 3.777 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.345e-05/0.8461, allocations: 192 / 1.218 GB, free: 3.777 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.18e-05/0.8461, allocations: 23.88 kB / 1.218 GB, free: 3.754 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.062e-05/0.8461, allocations: 12 kB / 1.218 GB, free: 3.742 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007267/0.8469, allocations: 455.6 kB / 1.218 GB, free: 3.301 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001683/0.8486, allocations: 1.281 MB / 1.22 GB, free: 1.965 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007004/0.8493, allocations: 418.2 kB / 1.22 GB, free: 1.547 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003203/0.8496, allocations: 196.6 kB / 1.22 GB, free: 1.352 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 2.71e-05/0.8496, allocations: 4 kB / 1.22 GB, free: 1.348 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004836/0.8501, allocations: 314.8 kB / 1.22 GB, free: 1.027 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=36): time 1.863e-06/0.8501, allocations: 0 / 1.22 GB, free: 1.027 MB / 0.9356 GB Notification: Performance of matching and sorting (n=36): time 0.00117/0.8513, allocations: 0.6384 MB / 1.221 GB, free: 392 kB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.211e-05/0.8514, allocations: 67.33 kB / 1.221 GB, free: 312 kB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003192/0.8517, allocations: 322.4 kB / 1.221 GB, free: 15.98 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 4.744e-05/0.8517, allocations: 33.7 kB / 1.222 GB, free: 15.94 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001667/0.8519, allocations: 236.9 kB / 1.222 GB, free: 15.7 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 6.514e-05/0.852, allocations: 82.91 kB / 1.222 GB, free: 15.62 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001855/0.8522, allocations: 134 kB / 1.222 GB, free: 15.48 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.000126/0.8523, allocations: 342.8 kB / 1.222 GB, free: 15.13 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004619/0.8528, allocations: 268.1 kB / 1.223 GB, free: 14.87 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005107/0.8533, allocations: 348.1 kB / 1.223 GB, free: 14.5 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006784/0.854, allocations: 444.9 kB / 1.223 GB, free: 14.04 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.625e-06/0.854, allocations: 0 / 1.223 GB, free: 14.04 MB / 0.9512 GB Notification: Performance of matching and sorting (n=44) (initialization): time 0.001079/0.8551, allocations: 0.6821 MB / 1.224 GB, free: 13.34 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 4.871e-05/0.8551, allocations: 63.41 kB / 1.224 GB, free: 13.27 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.6e-06/0.8552, allocations: 4 kB / 1.224 GB, free: 13.27 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.481e-05/0.8552, allocations: 3.984 kB / 1.224 GB, free: 13.26 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001885/0.8554, allocations: 52.02 kB / 1.224 GB, free: 13.21 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.057e-06/0.8554, allocations: 4 kB / 1.224 GB, free: 13.21 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004556/0.8559, allocations: 95.72 kB / 1.224 GB, free: 13.11 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.368e-05/0.8559, allocations: 23.98 kB / 1.224 GB, free: 13.09 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.0002747/0.8562, allocations: 252.3 kB / 1.224 GB, free: 12.84 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.291e-05/0.8562, allocations: 31.62 kB / 1.224 GB, free: 12.8 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.439e-05/0.8563, allocations: 38.95 kB / 1.224 GB, free: 12.77 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.38e-06/0.8563, allocations: 4 kB / 1.225 GB, free: 12.77 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.858e-06/0.8563, allocations: 0 / 1.225 GB, free: 12.77 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.422e-06/0.8564, allocations: 11.86 kB / 1.225 GB, free: 12.75 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001507/0.8579, allocations: 1.1 MB / 1.226 GB, free: 11.6 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.334e-06/0.8579, allocations: 3.938 kB / 1.226 GB, free: 11.59 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001654/0.8581, allocations: 47.89 kB / 1.226 GB, free: 11.55 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.955e-06/0.8581, allocations: 0 / 1.226 GB, free: 11.55 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.72e-05/0.8581, allocations: 11.98 kB / 1.226 GB, free: 11.54 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.28e-06/0.8581, allocations: 7.938 kB / 1.226 GB, free: 11.53 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.343e-06/0.8581, allocations: 0 / 1.226 GB, free: 11.53 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001156/0.8593, allocations: 0.7731 MB / 1.226 GB, free: 10.74 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 7.001e-05/0.8594, allocations: 100.8 kB / 1.227 GB, free: 10.62 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.971e-05/0.8594, allocations: 11.98 kB / 1.227 GB, free: 10.61 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001827/0.8596, allocations: 35.89 kB / 1.227 GB, free: 10.57 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001155/0.8597, allocations: 55.92 kB / 1.227 GB, free: 10.52 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.111e-05/0.8598, allocations: 16 kB / 1.227 GB, free: 10.5 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 0.0001884/0.86, allocations: 205.9 kB / 1.227 GB, free: 10.3 MB / 0.9512 GB Notification: Performance of sort global known variables: time 1.4e-07/0.86, allocations: 0 / 1.227 GB, free: 10.3 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.0003921/0.8604, allocations: 123.5 kB / 1.227 GB, free: 10.18 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.0001726/0.8605, allocations: 133.7 kB / 1.227 GB, free: 10.04 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.001015/0.8616, allocations: 0.6588 MB / 1.228 GB, free: 9.355 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/0.8616, allocations: 0 / 1.228 GB, free: 9.355 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.0003819/0.862, allocations: 239.5 kB / 1.228 GB, free: 9.121 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006679/0.8626, allocations: 146 kB / 1.228 GB, free: 8.984 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001373/0.864, allocations: 0.9176 MB / 1.229 GB, free: 8.039 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004395/0.8645, allocations: 0.8813 MB / 1.23 GB, free: 7.133 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.658e-05/0.8646, allocations: 35.44 kB / 1.23 GB, free: 7.098 MB / 0.9512 GB Notification: Performance of SimCode: time 4.1e-07/0.8646, allocations: 0 / 1.23 GB, free: 7.098 MB / 0.9512 GB Notification: Performance of Templates: time 0.008605/0.8732, allocations: 6.546 MB / 1.236 GB, free: 0.6016 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/jenkins1/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