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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001226/0.001226, allocations: 110 kB / 18.93 MB, free: 2.945 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001279/0.001279, allocations: 186.9 kB / 22.23 MB, free: 5.16 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.345/1.345, allocations: 225.6 MB / 251 MB, free: 13.01 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.1-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.1-master/package.mo): time 2.932/2.932, allocations: 0.4893 GB / 0.7884 GB, free: 33.07 MB / 0.6231 GB " [Timeout remaining time 177] Using package Buildings with version 12.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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=2500,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=2500,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") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 0.001855/0.001855, allocations: 67.02 kB / 1.145 GB, free: 30.7 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3081/0.31, allocations: 174.9 MB / 1.316 GB, free: 9.68 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.Pumps.Primary.Validation.EnableLeadHeadered): time 0.003453/0.3135, allocations: 1.992 MB / 1.318 GB, free: 7.684 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.002798/0.3163, allocations: 1.989 MB / 1.32 GB, free: 5.68 MB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002565/0.3165, allocations: 35.69 kB / 1.32 GB, free: 5.645 MB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 0.000343/0.3169, allocations: 139 kB / 1.32 GB, free: 5.508 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 0.0001068/0.317, allocations: 31.72 kB / 1.32 GB, free: 5.477 MB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.000855/0.3178, allocations: 377.8 kB / 1.32 GB, free: 5.109 MB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.0008579/0.3187, allocations: 0.7891 MB / 1.321 GB, free: 4.316 MB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000486/0.3192, allocations: 264.2 kB / 1.321 GB, free: 4.043 MB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002845/0.3194, allocations: 263.3 kB / 1.322 GB, free: 3.785 MB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003381/0.3198, allocations: 266.9 kB / 1.322 GB, free: 3.523 MB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 9.589e-05/0.3199, allocations: 64 kB / 1.322 GB, free: 3.461 MB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001398/0.32, allocations: 75.98 kB / 1.322 GB, free: 3.387 MB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 0.0001335/0.3202, allocations: 143.6 kB / 1.322 GB, free: 3.246 MB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 0.0002859/0.3204, allocations: 278.6 kB / 1.323 GB, free: 2.973 MB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.0008047/0.3212, allocations: 0.8252 MB / 1.323 GB, free: 2.145 MB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 3.627e-06/0.3212, allocations: 0 / 1.323 GB, free: 2.145 MB / 1.014 GB Notification: Performance of FrontEnd: time 1.192e-06/0.3212, allocations: 0 / 1.323 GB, free: 2.145 MB / 1.014 GB Notification: Performance of Transformations before backend: time 1.254e-05/0.3213, allocations: 0 / 1.323 GB, free: 2.145 MB / 1.014 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.001414/0.3227, allocations: 0.8446 MB / 1.324 GB, free: 1.254 MB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 3.494e-05/0.3227, allocations: 12.03 kB / 1.324 GB, free: 1.242 MB / 1.014 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001182/0.3228, allocations: 64.55 kB / 1.324 GB, free: 1.18 MB / 1.014 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008004/0.3236, allocations: 428.5 kB / 1.325 GB, free: 0.7383 MB / 1.014 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.541e-05/0.3237, allocations: 45.36 kB / 1.325 GB, free: 0.6914 MB / 1.014 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001084/0.3238, allocations: 52.38 kB / 1.325 GB, free: 0.6406 MB / 1.014 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009024/0.3247, allocations: 0.5418 MB / 1.325 GB, free: 100 kB / 1.014 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.308e-05/0.3247, allocations: 192 / 1.325 GB, free: 100 kB / 1.014 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.208e-05/0.3247, allocations: 19.94 kB / 1.325 GB, free: 80 kB / 1.014 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.754e-05/0.3248, allocations: 8 kB / 1.325 GB, free: 72 kB / 1.014 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007449/0.3255, allocations: 467.6 kB / 1.326 GB, free: 15.62 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001807/0.3273, allocations: 1.246 MB / 1.327 GB, free: 14.33 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006942/0.328, allocations: 394.2 kB / 1.327 GB, free: 13.93 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002916/0.3283, allocations: 172.6 kB / 1.327 GB, free: 13.76 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 2.982e-05/0.3283, allocations: 7.984 kB / 1.327 GB, free: 13.75 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005098/0.3288, allocations: 326.8 kB / 1.328 GB, free: 13.42 MB / 1.029 GB Notification: Performance of pre-optimization done (n=36): time 4.979e-06/0.3288, allocations: 4 kB / 1.328 GB, free: 13.42 MB / 1.029 GB Notification: Performance of matching and sorting (n=36): time 0.001147/0.33, allocations: 0.6412 MB / 1.328 GB, free: 12.77 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.882e-05/0.33, allocations: 59.39 kB / 1.328 GB, free: 12.7 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003211/0.3304, allocations: 325.7 kB / 1.329 GB, free: 12.37 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 5.074e-05/0.3304, allocations: 37.7 kB / 1.329 GB, free: 12.33 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001778/0.3306, allocations: 237.5 kB / 1.329 GB, free: 12.09 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 7.187e-05/0.3307, allocations: 87.33 kB / 1.329 GB, free: 12.01 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001892/0.3309, allocations: 130 kB / 1.329 GB, free: 11.87 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001455/0.331, allocations: 342.8 kB / 1.33 GB, free: 11.53 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004592/0.3315, allocations: 272.1 kB / 1.33 GB, free: 11.26 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005113/0.332, allocations: 348.8 kB / 1.33 GB, free: 10.89 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006772/0.3326, allocations: 444.9 kB / 1.331 GB, free: 10.43 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.364e-06/0.3326, allocations: 0 / 1.331 GB, free: 10.43 MB / 1.029 GB Notification: Performance of matching and sorting (n=44) (initialization): time 0.001093/0.3337, allocations: 0.6928 MB / 1.331 GB, free: 9.723 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 5.052e-05/0.3338, allocations: 63.41 kB / 1.331 GB, free: 9.648 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.045e-06/0.3338, allocations: 3.984 kB / 1.331 GB, free: 9.645 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.602e-05/0.3338, allocations: 8.125 kB / 1.331 GB, free: 9.637 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001781/0.334, allocations: 47.89 kB / 1.331 GB, free: 9.59 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.382e-06/0.334, allocations: 0 / 1.331 GB, free: 9.59 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004154/0.3344, allocations: 99.77 kB / 1.332 GB, free: 9.492 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.282e-05/0.3345, allocations: 19.98 kB / 1.332 GB, free: 9.473 MB / 1.029 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.0002665/0.3347, allocations: 252.2 kB / 1.332 GB, free: 9.219 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.401e-05/0.3348, allocations: 31.77 kB / 1.332 GB, free: 9.188 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.067e-05/0.3349, allocations: 42.95 kB / 1.332 GB, free: 9.141 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.08e-06/0.3349, allocations: 4 kB / 1.332 GB, free: 9.137 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.518e-06/0.3349, allocations: 0 / 1.332 GB, free: 9.137 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.987e-06/0.3349, allocations: 3.984 kB / 1.332 GB, free: 9.133 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001557/0.3364, allocations: 1.077 MB / 1.333 GB, free: 8.004 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.215e-06/0.3364, allocations: 0 / 1.333 GB, free: 8.004 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001636/0.3366, allocations: 39.95 kB / 1.333 GB, free: 7.965 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.254e-06/0.3366, allocations: 0 / 1.333 GB, free: 7.965 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.803e-05/0.3366, allocations: 11.98 kB / 1.333 GB, free: 7.953 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.586e-06/0.3366, allocations: 3.938 kB / 1.333 GB, free: 7.949 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.475e-06/0.3366, allocations: 3.938 kB / 1.333 GB, free: 7.945 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001152/0.3378, allocations: 0.7848 MB / 1.334 GB, free: 7.145 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 4.383e-05/0.3378, allocations: 31.78 kB / 1.334 GB, free: 7.113 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.275e-05/0.3379, allocations: 8 kB / 1.334 GB, free: 7.105 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001782/0.338, allocations: 39.89 kB / 1.334 GB, free: 7.066 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001104/0.3382, allocations: 59.91 kB / 1.334 GB, free: 7.008 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.758e-05/0.3382, allocations: 12 kB / 1.334 GB, free: 6.996 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.0001957/0.3384, allocations: 213.2 kB / 1.334 GB, free: 6.789 MB / 1.029 GB Notification: Performance of sort global known variables: time 8e-08/0.3384, allocations: 0 / 1.334 GB, free: 6.789 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0003623/0.3387, allocations: 123.6 kB / 1.334 GB, free: 6.668 MB / 1.029 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.0001654/0.3389, allocations: 130.3 kB / 1.334 GB, free: 6.531 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0009905/0.3399, allocations: 0.6269 MB / 1.335 GB, free: 5.879 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.244e-06/0.3399, allocations: 0 / 1.335 GB, free: 5.879 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.000355/0.3403, allocations: 211.7 kB / 1.335 GB, free: 5.672 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005932/0.3408, allocations: 143.7 kB / 1.335 GB, free: 5.543 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001329/0.3422, allocations: 0.903 MB / 1.336 GB, free: 4.609 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004795/0.3427, allocations: 0.8853 MB / 1.337 GB, free: 3.695 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 0.0001724/0.3428, allocations: 79.17 kB / 1.337 GB, free: 3.621 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.376e-05/0.3429, allocations: 39.42 kB / 1.337 GB, free: 3.582 MB / 1.029 GB Notification: Performance of SimCode: time 2.6e-07/0.3429, allocations: 0 / 1.337 GB, free: 3.582 MB / 1.029 GB Notification: Performance of Templates: time 0.01126/0.3542, allocations: 6.606 MB / 1.344 GB, free: 13.08 MB / 1.045 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Templates.Plants.Controls.Pumps.Primary.Validation.EnableLeadHeadered.makefile [Timeout 300] (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=800 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Templates.Plants.Controls.Pumps.Primary.Validation.EnableLeadHeadered.pipe 2>&1) [Timeout 800] 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) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 8.182345112785697]