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.01114/0.01114, allocations: 99.92 kB / 15.73 MB, free: 6.02 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.002297/0.002297, allocations: 202.9 kB / 16.68 MB, free: 5.938 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.437/1.437, 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.578/2.578, allocations: 461.9 MB / 0.7348 GB, free: 11.07 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.00132/0.00132, allocations: 59.91 kB / 1.054 GB, free: 7.699 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8497/0.8511, 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.003734/0.8548, allocations: 1.949 MB / 1.21 GB, free: 11.67 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.003322/0.8582, allocations: 1.993 MB / 1.212 GB, free: 9.66 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006144/0.8588, allocations: 27.88 kB / 1.212 GB, free: 9.633 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 0.000416/0.8593, allocations: 135 kB / 1.212 GB, free: 9.5 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 0.0002099/0.8595, allocations: 27.67 kB / 1.212 GB, free: 9.473 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.00117/0.8607, allocations: 354.4 kB / 1.212 GB, free: 9.129 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0009542/0.8617, allocations: 0.7854 MB / 1.213 GB, free: 8.344 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006572/0.8623, allocations: 467.6 kB / 1.213 GB, free: 7.875 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003541/0.8627, allocations: 259.2 kB / 1.214 GB, free: 7.621 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003779/0.8631, allocations: 262.9 kB / 1.214 GB, free: 7.363 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 0.0001174/0.8632, allocations: 64 kB / 1.214 GB, free: 7.301 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001607/0.8634, allocations: 79.98 kB / 1.214 GB, free: 7.223 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 0.000137/0.8635, allocations: 147.6 kB / 1.214 GB, free: 7.078 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 0.000313/0.8638, allocations: 270.7 kB / 1.214 GB, free: 6.812 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0007433/0.8646, allocations: 0.8331 MB / 1.215 GB, free: 5.98 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 3.837e-06/0.8646, allocations: 0 / 1.215 GB, free: 5.98 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.433e-06/0.8646, allocations: 0 / 1.215 GB, free: 5.98 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 8.566e-06/0.8646, allocations: 0 / 1.215 GB, free: 5.98 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.0014/0.866, allocations: 0.9067 MB / 1.216 GB, free: 5.012 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 4.604e-05/0.8661, allocations: 8.031 kB / 1.216 GB, free: 5.004 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001313/0.8662, allocations: 60.28 kB / 1.216 GB, free: 4.945 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006952/0.8669, allocations: 487.9 kB / 1.217 GB, free: 4.434 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.097e-05/0.867, allocations: 41.38 kB / 1.217 GB, free: 4.391 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.357e-05/0.8671, allocations: 52.38 kB / 1.217 GB, free: 4.34 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008953/0.868, allocations: 0.5456 MB / 1.217 GB, free: 3.789 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.3e-05/0.868, allocations: 192 / 1.217 GB, free: 3.789 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.506e-05/0.868, allocations: 23.92 kB / 1.217 GB, free: 3.766 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.134e-05/0.8681, allocations: 12 kB / 1.217 GB, free: 3.754 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007186/0.8688, allocations: 459.6 kB / 1.218 GB, free: 3.309 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001754/0.8706, allocations: 1.273 MB / 1.219 GB, free: 1.98 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000747/0.8713, allocations: 426.2 kB / 1.219 GB, free: 1.555 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003151/0.8716, allocations: 194.7 kB / 1.219 GB, free: 1.363 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 3.144e-05/0.8717, allocations: 0 / 1.219 GB, free: 1.363 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005332/0.8722, allocations: 326.8 kB / 1.22 GB, free: 1.031 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=36): time 1.753e-06/0.8722, allocations: 0 / 1.22 GB, free: 1.031 MB / 0.9356 GB Notification: Performance of matching and sorting (n=36): time 0.001209/0.8734, allocations: 0.6345 MB / 1.22 GB, free: 400 kB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.955e-05/0.8735, allocations: 59.41 kB / 1.22 GB, free: 328 kB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003328/0.8738, allocations: 326.4 kB / 1.221 GB, free: 15.98 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 5.151e-05/0.8739, allocations: 41.64 kB / 1.221 GB, free: 15.94 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001885/0.8741, allocations: 236.9 kB / 1.221 GB, free: 15.7 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 7.269e-05/0.8742, allocations: 82.91 kB / 1.221 GB, free: 15.62 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001907/0.8744, allocations: 126 kB / 1.221 GB, free: 15.49 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001353/0.8745, allocations: 346.8 kB / 1.222 GB, free: 15.14 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004506/0.875, allocations: 268.1 kB / 1.222 GB, free: 14.88 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005084/0.8755, allocations: 352.1 kB / 1.222 GB, free: 14.51 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006411/0.8761, allocations: 444.9 kB / 1.223 GB, free: 14.05 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.725e-06/0.8762, allocations: 0 / 1.223 GB, free: 14.05 MB / 0.9512 GB Notification: Performance of matching and sorting (n=44) (initialization): time 0.001059/0.8772, allocations: 0.6821 MB / 1.223 GB, free: 13.35 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 5.217e-05/0.8773, allocations: 67.52 kB / 1.223 GB, free: 13.27 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.885e-06/0.8773, allocations: 4 kB / 1.223 GB, free: 13.27 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.649e-05/0.8773, allocations: 0 / 1.223 GB, free: 13.27 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001795/0.8775, allocations: 47.89 kB / 1.223 GB, free: 13.22 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.057e-05/0.8775, allocations: 7.984 kB / 1.223 GB, free: 13.21 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004505/0.878, allocations: 99.7 kB / 1.223 GB, free: 13.11 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.019e-05/0.878, allocations: 27.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.0002545/0.8783, allocations: 248.3 kB / 1.224 GB, free: 12.84 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.32e-05/0.8784, allocations: 31.62 kB / 1.224 GB, free: 12.8 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.76e-05/0.8784, allocations: 38.95 kB / 1.224 GB, free: 12.77 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.759e-06/0.8784, allocations: 4 kB / 1.224 GB, free: 12.77 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.801e-06/0.8785, allocations: 3.938 kB / 1.224 GB, free: 12.76 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.589e-06/0.8785, allocations: 4 kB / 1.224 GB, free: 12.76 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001568/0.88, allocations: 1.1 MB / 1.225 GB, free: 11.6 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.349e-06/0.8801, allocations: 3.984 kB / 1.225 GB, free: 11.59 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001761/0.8802, allocations: 43.89 kB / 1.225 GB, free: 11.55 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.226e-06/0.8802, allocations: 3.938 kB / 1.225 GB, free: 11.55 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.848e-05/0.8803, allocations: 8 kB / 1.225 GB, free: 11.54 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.419e-06/0.8803, allocations: 3.938 kB / 1.225 GB, free: 11.54 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.643e-06/0.8803, allocations: 8 kB / 1.225 GB, free: 11.53 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001165/0.8815, allocations: 0.7731 MB / 1.226 GB, free: 10.74 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 7.076e-05/0.8816, allocations: 100.8 kB / 1.226 GB, free: 10.62 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.263e-05/0.8816, allocations: 11.98 kB / 1.226 GB, free: 10.61 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001747/0.8818, allocations: 35.95 kB / 1.226 GB, free: 10.57 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001171/0.8819, allocations: 47.94 kB / 1.226 GB, free: 10.53 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.623e-05/0.882, allocations: 19.98 kB / 1.226 GB, free: 10.51 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 0.000212/0.8822, allocations: 205.9 kB / 1.226 GB, free: 10.3 MB / 0.9512 GB Notification: Performance of sort global known variables: time 1.963e-06/0.8822, allocations: 0 / 1.226 GB, free: 10.3 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.0004162/0.8826, allocations: 127.5 kB / 1.226 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.0002014/0.8828, allocations: 129.8 kB / 1.226 GB, free: 10.04 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.001003/0.8838, allocations: 0.6587 MB / 1.227 GB, free: 9.359 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 2.565e-06/0.8838, allocations: 0 / 1.227 GB, free: 9.359 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.0003794/0.8842, allocations: 243.8 kB / 1.227 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.0006414/0.8849, allocations: 132.6 kB / 1.227 GB, free: 8.996 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001489/0.8864, allocations: 0.9002 MB / 1.228 GB, free: 8.074 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000447/0.8868, allocations: 0.8891 MB / 1.229 GB, free: 7.16 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 0.0001829/0.887, allocations: 79.17 kB / 1.229 GB, free: 7.078 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.586e-05/0.8871, allocations: 31.44 kB / 1.229 GB, free: 7.047 MB / 0.9512 GB Notification: Performance of SimCode: time 5.11e-07/0.8871, allocations: 0 / 1.229 GB, free: 7.047 MB / 0.9512 GB Notification: Performance of Templates: time 0.01111/0.8982, allocations: 6.451 MB / 1.236 GB, free: 0.7148 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