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.001585/0.001585, allocations: 108 kB / 15.6 MB, free: 132 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.001592/0.001592, allocations: 197.2 kB / 16.54 MB, free: 6.672 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.45/1.45, 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.839/2.839, allocations: 472.6 MB / 0.7451 GB, free: 4.648 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001297/0.001297, allocations: 75.48 kB / 0.9121 GB, free: 33.39 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3306/0.332, allocations: 159.9 MB / 1.068 GB, free: 10.4 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.Pumps.Primary.Validation.EnableLeadHeadered): time 0.00342/0.3354, allocations: 1.972 MB / 1.07 GB, free: 8.426 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.002674/0.3381, allocations: 1.977 MB / 1.072 GB, free: 6.434 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002437/0.3384, allocations: 35.81 kB / 1.072 GB, free: 6.398 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0003031/0.3387, allocations: 127 kB / 1.072 GB, free: 6.273 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.000111/0.3388, allocations: 31.72 kB / 1.072 GB, free: 6.242 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008295/0.3396, allocations: 342.5 kB / 1.073 GB, free: 5.91 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0006915/0.3404, allocations: 0.7892 MB / 1.073 GB, free: 5.121 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005673/0.3409, allocations: 471.9 kB / 1.074 GB, free: 4.648 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002218/0.3412, allocations: 255.3 kB / 1.074 GB, free: 4.398 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002649/0.3414, allocations: 247 kB / 1.074 GB, free: 4.156 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 0.0001028/0.3415, allocations: 64 kB / 1.074 GB, free: 4.094 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000156/0.3417, allocations: 83.91 kB / 1.074 GB, free: 4.012 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.0001224/0.3418, allocations: 135.6 kB / 1.075 GB, free: 3.879 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0002597/0.3421, allocations: 278.7 kB / 1.075 GB, free: 3.605 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0006614/0.3428, allocations: 0.7907 MB / 1.076 GB, free: 2.812 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.499e-06/0.3428, allocations: 4 kB / 1.076 GB, free: 2.809 MB / 0.8262 GB Notification: Performance of FrontEnd: time 4.379e-06/0.3428, allocations: 0 / 1.076 GB, free: 2.809 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 9.638e-06/0.3428, allocations: 7.875 kB / 1.076 GB, free: 2.801 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.001321/0.3441, allocations: 0.9049 MB / 1.076 GB, free: 1.832 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.418e-05/0.3442, allocations: 8.031 kB / 1.076 GB, free: 1.824 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001346/0.3443, allocations: 60.28 kB / 1.077 GB, free: 1.766 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006671/0.345, allocations: 480 kB / 1.077 GB, free: 1.262 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.888e-05/0.345, allocations: 37.38 kB / 1.077 GB, free: 1.223 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001027/0.3451, allocations: 60.36 kB / 1.077 GB, free: 1.164 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009018/0.346, allocations: 0.5417 MB / 1.078 GB, free: 0.6172 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.234e-05/0.3461, allocations: 192 / 1.078 GB, free: 0.6172 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.438e-05/0.3461, allocations: 19.94 kB / 1.078 GB, free: 0.5977 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.449e-05/0.3461, allocations: 16 kB / 1.078 GB, free: 0.582 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007257/0.3469, allocations: 463.6 kB / 1.078 GB, free: 136 kB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001798/0.3487, allocations: 1.293 MB / 1.079 GB, free: 14.79 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007519/0.3494, allocations: 421.5 kB / 1.08 GB, free: 14.37 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003292/0.3498, allocations: 188.6 kB / 1.08 GB, free: 14.18 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 2.783e-05/0.3498, allocations: 11.92 kB / 1.08 GB, free: 14.17 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004962/0.3503, allocations: 314.9 kB / 1.08 GB, free: 13.85 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=36): time 1.833e-06/0.3503, allocations: 7.875 kB / 1.08 GB, free: 13.84 MB / 0.8419 GB Notification: Performance of matching and sorting (n=36): time 0.00119/0.3515, allocations: 0.6432 MB / 1.081 GB, free: 13.19 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.132e-05/0.3516, allocations: 59.34 kB / 1.081 GB, free: 13.12 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002993/0.3519, allocations: 326.4 kB / 1.081 GB, free: 12.8 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 4.629e-05/0.3519, allocations: 33.7 kB / 1.081 GB, free: 12.76 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002264/0.3522, allocations: 236.9 kB / 1.082 GB, free: 12.52 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001088/0.3523, allocations: 78.91 kB / 1.082 GB, free: 12.44 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001869/0.3525, allocations: 138 kB / 1.082 GB, free: 12.3 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001438/0.3526, allocations: 338.8 kB / 1.082 GB, free: 11.96 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004752/0.3531, allocations: 272.1 kB / 1.082 GB, free: 11.7 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005208/0.3537, allocations: 356 kB / 1.083 GB, free: 11.32 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006588/0.3543, allocations: 440.9 kB / 1.083 GB, free: 10.86 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.529e-06/0.3543, allocations: 4 kB / 1.083 GB, free: 10.86 MB / 0.8419 GB Notification: Performance of matching and sorting (n=44) (initialization): time 0.001092/0.3554, allocations: 0.6845 MB / 1.084 GB, free: 10.16 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 6.124e-05/0.3555, allocations: 63.39 kB / 1.084 GB, free: 10.08 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.482e-06/0.3555, allocations: 0 / 1.084 GB, free: 10.08 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.457e-05/0.3555, allocations: 4 kB / 1.084 GB, free: 10.08 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001797/0.3557, allocations: 52.02 kB / 1.084 GB, free: 10.03 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.272e-06/0.3557, allocations: 0 / 1.084 GB, free: 10.03 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004938/0.3562, allocations: 107.6 kB / 1.084 GB, free: 9.922 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.479e-05/0.3563, allocations: 16 kB / 1.084 GB, free: 9.906 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.0002714/0.3566, allocations: 260.2 kB / 1.084 GB, free: 9.645 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.716e-05/0.3566, allocations: 35.66 kB / 1.084 GB, free: 9.609 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.558e-05/0.3567, allocations: 38.95 kB / 1.084 GB, free: 9.574 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.17e-06/0.3567, allocations: 4 kB / 1.084 GB, free: 9.57 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.881e-06/0.3567, allocations: 0 / 1.084 GB, free: 9.57 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.289e-06/0.3567, allocations: 0 / 1.084 GB, free: 9.57 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001515/0.3583, allocations: 1.1 MB / 1.085 GB, free: 8.406 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.705e-06/0.3583, allocations: 0 / 1.085 GB, free: 8.406 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001727/0.3584, allocations: 43.89 kB / 1.085 GB, free: 8.363 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.965e-06/0.3585, allocations: 0 / 1.085 GB, free: 8.363 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.214e-05/0.3585, allocations: 11.98 kB / 1.085 GB, free: 8.352 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.567e-06/0.3585, allocations: 3.938 kB / 1.085 GB, free: 8.348 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.164e-06/0.3585, allocations: 8 kB / 1.085 GB, free: 8.34 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001173/0.3597, allocations: 0.7776 MB / 1.086 GB, free: 7.547 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 6.64e-05/0.3598, allocations: 104.7 kB / 1.086 GB, free: 7.426 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.951e-05/0.3598, allocations: 15.94 kB / 1.086 GB, free: 7.41 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001829/0.36, allocations: 35.95 kB / 1.086 GB, free: 7.375 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001118/0.3601, allocations: 55.92 kB / 1.086 GB, free: 7.32 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.162e-05/0.3602, allocations: 15.98 kB / 1.086 GB, free: 7.305 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.000188/0.3604, allocations: 209.9 kB / 1.087 GB, free: 7.098 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.7e-07/0.3604, allocations: 3.938 kB / 1.087 GB, free: 7.094 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0003859/0.3608, allocations: 123.5 kB / 1.087 GB, free: 6.973 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.0001761/0.3609, allocations: 130.4 kB / 1.087 GB, free: 6.836 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.001159/0.3621, allocations: 0.7016 MB / 1.088 GB, free: 6.109 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.3621, allocations: 0 / 1.088 GB, free: 6.109 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0003816/0.3625, allocations: 232 kB / 1.088 GB, free: 5.883 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000667/0.3632, allocations: 145.4 kB / 1.088 GB, free: 5.75 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00138/0.3646, allocations: 0.8945 MB / 1.089 GB, free: 4.828 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004543/0.3651, allocations: 0.8931 MB / 1.09 GB, free: 3.902 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.0001977/0.3653, allocations: 71.23 kB / 1.09 GB, free: 3.828 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.749e-05/0.3653, allocations: 35.44 kB / 1.09 GB, free: 3.797 MB / 0.8419 GB Notification: Performance of SimCode: time 3.7e-07/0.3653, allocations: 0 / 1.09 GB, free: 3.797 MB / 0.8419 GB Notification: Performance of Templates: time 0.01118/0.3765, allocations: 6.422 MB / 1.096 GB, free: 13.49 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