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.001345/0.001345, allocations: 115.3 kB / 15.34 MB, free: 0.5117 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.001466/0.001466, allocations: 191.1 kB / 16.25 MB, free: 6.641 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.455/1.455, allocations: 222.9 MB / 239.9 MB, free: 4.57 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.916/2.916, allocations: 472.6 MB / 0.7448 GB, free: 4.902 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001252/0.001252, allocations: 67.83 kB / 0.9116 GB, free: 33.62 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3244/0.3257, allocations: 159.9 MB / 1.068 GB, free: 10.74 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.Pumps.Primary.Validation.EnableLeadHeadered): time 0.003418/0.3292, allocations: 1.979 MB / 1.07 GB, free: 8.758 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.003003/0.3322, allocations: 1.946 MB / 1.072 GB, free: 6.797 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002887/0.3325, allocations: 19.88 kB / 1.072 GB, free: 6.777 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0003792/0.3329, allocations: 123.2 kB / 1.072 GB, free: 6.656 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0001089/0.333, allocations: 15.86 kB / 1.072 GB, free: 6.641 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008822/0.3339, allocations: 314.8 kB / 1.072 GB, free: 6.336 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0008114/0.3347, allocations: 0.7932 MB / 1.073 GB, free: 5.543 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000608/0.3354, allocations: 463.9 kB / 1.073 GB, free: 5.078 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002697/0.3356, allocations: 263.3 kB / 1.074 GB, free: 4.82 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002881/0.3359, allocations: 251 kB / 1.074 GB, free: 4.574 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 9.468e-05/0.336, allocations: 60 kB / 1.074 GB, free: 4.516 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001368/0.3362, allocations: 79.92 kB / 1.074 GB, free: 4.438 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.0001899/0.3364, allocations: 139.6 kB / 1.074 GB, free: 4.301 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0003286/0.3367, allocations: 278.7 kB / 1.074 GB, free: 4.027 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0009664/0.3377, allocations: 0.7946 MB / 1.075 GB, free: 3.23 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 5.35e-06/0.3377, allocations: 0 / 1.075 GB, free: 3.23 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.754e-06/0.3377, allocations: 4 kB / 1.075 GB, free: 3.227 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 1.282e-05/0.3377, allocations: 0 / 1.075 GB, free: 3.227 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.001555/0.3393, allocations: 0.9066 MB / 1.076 GB, free: 2.258 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.457e-05/0.3393, allocations: 16.03 kB / 1.076 GB, free: 2.242 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001266/0.3395, allocations: 60.27 kB / 1.076 GB, free: 2.184 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006544/0.3401, allocations: 472 kB / 1.076 GB, free: 1.688 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.012e-05/0.3402, allocations: 37.38 kB / 1.077 GB, free: 1.648 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.989e-05/0.3403, allocations: 56.36 kB / 1.077 GB, free: 1.594 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001025/0.3413, allocations: 0.5417 MB / 1.077 GB, free: 1.051 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.646e-05/0.3414, allocations: 4.188 kB / 1.077 GB, free: 1.047 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.728e-05/0.3414, allocations: 19.94 kB / 1.077 GB, free: 1.027 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.065e-05/0.3414, allocations: 12 kB / 1.077 GB, free: 1.016 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007418/0.3422, allocations: 463.6 kB / 1.078 GB, free: 0.5625 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002108/0.3443, allocations: 1.293 MB / 1.079 GB, free: 15.21 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007079/0.345, allocations: 426.2 kB / 1.079 GB, free: 14.79 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003019/0.3453, allocations: 188.6 kB / 1.079 GB, free: 14.6 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 3.219e-05/0.3454, allocations: 0 / 1.079 GB, free: 14.6 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005772/0.3459, allocations: 326.8 kB / 1.08 GB, free: 14.27 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=36): time 5.981e-06/0.346, allocations: 4 kB / 1.08 GB, free: 14.27 MB / 0.8419 GB Notification: Performance of matching and sorting (n=36): time 0.001167/0.3471, allocations: 0.6383 MB / 1.08 GB, free: 13.62 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001285/0.3473, allocations: 67.39 kB / 1.08 GB, free: 13.54 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003837/0.3477, allocations: 322.3 kB / 1.081 GB, free: 13.22 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 5.616e-05/0.3477, allocations: 37.7 kB / 1.081 GB, free: 13.18 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002136/0.348, allocations: 237 kB / 1.081 GB, free: 12.94 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 8.533e-05/0.348, allocations: 86.89 kB / 1.081 GB, free: 12.86 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002069/0.3483, allocations: 122 kB / 1.081 GB, free: 12.73 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001733/0.3484, allocations: 350.8 kB / 1.082 GB, free: 12.38 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000486/0.3489, allocations: 272.1 kB / 1.082 GB, free: 12.11 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005278/0.3495, allocations: 352 kB / 1.082 GB, free: 11.74 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007119/0.3502, allocations: 448.9 kB / 1.083 GB, free: 11.28 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.296e-06/0.3502, allocations: 0 / 1.083 GB, free: 11.28 MB / 0.8419 GB Notification: Performance of matching and sorting (n=44) (initialization): time 0.001347/0.3516, allocations: 0.6818 MB / 1.083 GB, free: 10.58 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 7.576e-05/0.3516, allocations: 59.41 kB / 1.083 GB, free: 10.51 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.169e-05/0.3517, allocations: 12.11 kB / 1.083 GB, free: 10.5 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.79e-05/0.3517, allocations: 0 / 1.083 GB, free: 10.5 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001989/0.3519, allocations: 47.89 kB / 1.083 GB, free: 10.45 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.169e-05/0.3519, allocations: 4 kB / 1.083 GB, free: 10.45 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005947/0.3525, allocations: 107.6 kB / 1.083 GB, free: 10.34 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.506e-05/0.3526, allocations: 16 kB / 1.083 GB, free: 10.32 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.000294/0.3529, allocations: 253.7 kB / 1.084 GB, free: 10.07 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.997e-05/0.3529, allocations: 35.61 kB / 1.084 GB, free: 10.04 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.91e-05/0.353, allocations: 42.95 kB / 1.084 GB, free: 9.996 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.468e-06/0.353, allocations: 4 kB / 1.084 GB, free: 9.992 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.34e-06/0.353, allocations: 0 / 1.084 GB, free: 9.992 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.518e-06/0.353, allocations: 0 / 1.084 GB, free: 9.992 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001559/0.3546, allocations: 1.1 MB / 1.085 GB, free: 8.828 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.923e-06/0.3546, allocations: 0 / 1.085 GB, free: 8.828 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001636/0.3548, allocations: 39.89 kB / 1.085 GB, free: 8.789 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.615e-06/0.3548, allocations: 0 / 1.085 GB, free: 8.789 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.889e-05/0.3548, allocations: 15.98 kB / 1.085 GB, free: 8.773 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.839e-06/0.3548, allocations: 7.938 kB / 1.085 GB, free: 8.766 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.332e-06/0.3548, allocations: 0 / 1.085 GB, free: 8.766 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001322/0.3562, allocations: 0.7757 MB / 1.086 GB, free: 7.973 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 7.018e-05/0.3563, allocations: 108.8 kB / 1.086 GB, free: 7.848 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.068e-05/0.3563, allocations: 8 kB / 1.086 GB, free: 7.84 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001931/0.3565, allocations: 39.83 kB / 1.086 GB, free: 7.801 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001284/0.3566, allocations: 55.92 kB / 1.086 GB, free: 7.746 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.115e-05/0.3567, allocations: 15.98 kB / 1.086 GB, free: 7.73 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0002083/0.3569, allocations: 201.9 kB / 1.086 GB, free: 7.531 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.5e-07/0.3569, allocations: 7.938 kB / 1.086 GB, free: 7.523 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0004203/0.3573, allocations: 119.5 kB / 1.086 GB, free: 7.406 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.0002619/0.3576, allocations: 135.6 kB / 1.086 GB, free: 7.266 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.001301/0.3589, allocations: 0.7016 MB / 1.087 GB, free: 6.539 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 2.555e-06/0.3589, allocations: 4 kB / 1.087 GB, free: 6.535 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0003958/0.3593, allocations: 239.9 kB / 1.087 GB, free: 6.301 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000655/0.36, allocations: 132.9 kB / 1.087 GB, free: 6.18 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001739/0.3617, allocations: 1.055 MB / 1.088 GB, free: 5.098 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005458/0.3623, allocations: 0.8852 MB / 1.089 GB, free: 4.184 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.0003139/0.3626, allocations: 83.2 kB / 1.089 GB, free: 4.098 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.249e-05/0.3627, allocations: 35.44 kB / 1.089 GB, free: 4.066 MB / 0.8419 GB Notification: Performance of SimCode: time 6.21e-07/0.3627, allocations: 0 / 1.089 GB, free: 4.066 MB / 0.8419 GB Notification: Performance of Templates: time 0.01242/0.3751, allocations: 6.298 MB / 1.096 GB, free: 13.88 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