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.001463/0.001463, allocations: 102.2 kB / 16.27 MB, free: 6 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.001433/0.001433, allocations: 193.3 kB / 17.2 MB, free: 5.609 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.405/1.405, allocations: 222.9 MB / 240.9 MB, free: 15.26 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.512/2.512, allocations: 469.4 MB / 0.7427 GB, free: 3.652 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001237/0.001237, allocations: 69.86 kB / 0.9088 GB, free: 14.12 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2955/0.2967, allocations: 159.1 MB / 1.064 GB, free: 15.01 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.Pumps.Primary.Validation.EnableLeadHeadered): time 0.003191/0.3, allocations: 1.949 MB / 1.066 GB, free: 13.05 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.002593/0.3026, allocations: 1.993 MB / 1.068 GB, free: 11.04 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000223/0.3028, allocations: 31.81 kB / 1.068 GB, free: 11.01 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.0002871/0.3031, allocations: 127.1 kB / 1.068 GB, free: 10.89 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.0001052/0.3033, allocations: 35.66 kB / 1.068 GB, free: 10.85 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.000764/0.304, allocations: 345.2 kB / 1.069 GB, free: 10.52 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.0006384/0.3047, allocations: 0.7932 MB / 1.069 GB, free: 9.727 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005249/0.3052, allocations: 463.9 kB / 1.07 GB, free: 9.266 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000225/0.3054, allocations: 267.2 kB / 1.07 GB, free: 9.004 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002503/0.3057, allocations: 247 kB / 1.07 GB, free: 8.762 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 0.0001024/0.3058, allocations: 64 kB / 1.07 GB, free: 8.699 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000142/0.306, allocations: 75.92 kB / 1.07 GB, free: 8.625 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 0.000118/0.3061, allocations: 143.6 kB / 1.071 GB, free: 8.484 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 0.0002451/0.3063, allocations: 270.7 kB / 1.071 GB, free: 8.219 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.0006332/0.307, allocations: 0.7945 MB / 1.072 GB, free: 7.422 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 4.248e-06/0.307, allocations: 0 / 1.072 GB, free: 7.422 MB / 0.8419 GB Notification: Performance of FrontEnd: time 1.142e-06/0.307, allocations: 0 / 1.072 GB, free: 7.422 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 1.036e-05/0.307, allocations: 4 kB / 1.072 GB, free: 7.418 MB / 0.8419 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.001322/0.3083, allocations: 0.9049 MB / 1.073 GB, free: 6.445 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 3.699e-05/0.3084, allocations: 8.625 kB / 1.073 GB, free: 6.438 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001232/0.3085, allocations: 60.28 kB / 1.073 GB, free: 6.379 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006301/0.3092, allocations: 472.1 kB / 1.073 GB, free: 5.883 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.606e-05/0.3092, allocations: 37.38 kB / 1.073 GB, free: 5.848 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.744e-05/0.3093, allocations: 56.38 kB / 1.073 GB, free: 5.793 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008583/0.3102, allocations: 0.5456 MB / 1.074 GB, free: 5.246 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.149e-05/0.3102, allocations: 192 / 1.074 GB, free: 5.246 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.494e-05/0.3102, allocations: 19.94 kB / 1.074 GB, free: 5.227 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.13e-05/0.3103, allocations: 12 kB / 1.074 GB, free: 5.215 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006949/0.311, allocations: 455.6 kB / 1.074 GB, free: 4.77 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001702/0.3127, allocations: 1.308 MB / 1.075 GB, free: 3.406 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006983/0.3134, allocations: 434.2 kB / 1.076 GB, free: 2.973 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003015/0.3137, allocations: 184.6 kB / 1.076 GB, free: 2.789 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 3.244e-05/0.3137, allocations: 8 kB / 1.076 GB, free: 2.781 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005346/0.3143, allocations: 324 kB / 1.076 GB, free: 2.453 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=36): time 3.005e-06/0.3143, allocations: 0 / 1.076 GB, free: 2.453 MB / 0.8419 GB Notification: Performance of matching and sorting (n=36): time 0.001249/0.3155, allocations: 0.6334 MB / 1.077 GB, free: 1.812 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.956e-05/0.3156, allocations: 59.39 kB / 1.077 GB, free: 1.742 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003271/0.3159, allocations: 330.3 kB / 1.077 GB, free: 1.414 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 4.779e-05/0.316, allocations: 37.7 kB / 1.077 GB, free: 1.371 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001852/0.3162, allocations: 229 kB / 1.078 GB, free: 1.141 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 8.015e-05/0.3163, allocations: 86.81 kB / 1.078 GB, free: 1.055 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001873/0.3165, allocations: 129.9 kB / 1.078 GB, free: 0.9219 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001535/0.3166, allocations: 350.8 kB / 1.078 GB, free: 0.5703 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004479/0.3171, allocations: 264.1 kB / 1.078 GB, free: 320 kB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.5423/0.8594, allocations: 353.8 kB / 1.079 GB, free: 22.35 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001029/0.8605, allocations: 440.8 kB / 1.079 GB, free: 22.25 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.688e-06/0.8605, allocations: 2.25 kB / 1.079 GB, free: 22.25 MB / 0.8419 GB Notification: Performance of matching and sorting (n=44) (initialization): time 0.001448/0.862, allocations: 0.6883 MB / 1.08 GB, free: 22.14 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 5.79e-05/0.862, allocations: 69.41 kB / 1.08 GB, free: 22.08 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.366e-06/0.862, allocations: 0.8438 kB / 1.08 GB, free: 22.08 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.449e-05/0.8621, allocations: 4.094 kB / 1.08 GB, free: 22.08 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002026/0.8623, allocations: 44.89 kB / 1.08 GB, free: 22.08 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.165e-05/0.8623, allocations: 2.938 kB / 1.08 GB, free: 22.08 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005401/0.8628, allocations: 119.5 kB / 1.08 GB, free: 22.08 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.45e-05/0.8629, allocations: 20.52 kB / 1.08 GB, free: 22.08 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.000354/0.8633, allocations: 247.1 kB / 1.08 GB, free: 21.97 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.313e-05/0.8633, allocations: 28.41 kB / 1.08 GB, free: 21.97 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.643e-05/0.8634, allocations: 38.77 kB / 1.08 GB, free: 21.96 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.273e-06/0.8634, allocations: 8.094 kB / 1.08 GB, free: 21.96 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.744e-06/0.8635, allocations: 0.75 kB / 1.08 GB, free: 21.96 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.785e-06/0.8635, allocations: 2.109 kB / 1.08 GB, free: 21.96 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001668/0.8651, allocations: 1.088 MB / 1.081 GB, free: 21.65 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.206e-06/0.8652, allocations: 5.188 kB / 1.081 GB, free: 21.65 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000174/0.8653, allocations: 43.59 kB / 1.081 GB, free: 21.64 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.328e-06/0.8653, allocations: 1.156 kB / 1.081 GB, free: 21.64 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.958e-05/0.8654, allocations: 8.531 kB / 1.081 GB, free: 21.64 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.487e-06/0.8654, allocations: 6.25 kB / 1.081 GB, free: 21.64 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.415e-06/0.8654, allocations: 1.078 kB / 1.081 GB, free: 21.64 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001229/0.8666, allocations: 0.7865 MB / 1.082 GB, free: 21.35 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 5.634e-05/0.8667, allocations: 112.8 kB / 1.082 GB, free: 21.25 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.098e-05/0.8668, allocations: 9.156 kB / 1.082 GB, free: 21.25 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001853/0.867, allocations: 34.56 kB / 1.082 GB, free: 21.25 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000134/0.8671, allocations: 54.19 kB / 1.082 GB, free: 21.23 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.253e-05/0.8671, allocations: 12.47 kB / 1.082 GB, free: 21.23 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0002161/0.8674, allocations: 208.2 kB / 1.083 GB, free: 21.12 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.2e-07/0.8674, allocations: 1.062 kB / 1.083 GB, free: 21.12 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0004547/0.8678, allocations: 125.8 kB / 1.083 GB, free: 21.11 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.0001808/0.868, allocations: 130.2 kB / 1.083 GB, free: 21.01 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.001217/0.8692, allocations: 0.6955 MB / 1.084 GB, free: 20.74 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 2.495e-06/0.8692, allocations: 0.8125 kB / 1.084 GB, free: 20.74 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0004337/0.8697, allocations: 246.3 kB / 1.084 GB, free: 20.68 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006804/0.8704, allocations: 134 kB / 1.084 GB, free: 20.65 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001639/0.872, allocations: 0.9299 MB / 1.085 GB, free: 20.17 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003791/0.8724, allocations: 0.88 MB / 1.086 GB, free: 19.45 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.193e-05/0.8725, allocations: 32.3 kB / 1.086 GB, free: 19.44 MB / 0.8419 GB Notification: Performance of SimCode: time 6.62e-07/0.8725, allocations: 4 kB / 1.086 GB, free: 19.43 MB / 0.8419 GB Notification: Performance of Templates: time 0.01435/0.8869, allocations: 6.536 MB / 1.092 GB, free: 18.81 MB / 0.8419 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