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.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.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="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_latest_Buildings.Templates.Plants.Controls.Pumps.Primary.Validation.EnableLeadHeadered") translateModel(Buildings.Templates.Plants.Controls.Pumps.Primary.Validation.EnableLeadHeadered,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",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.001315/0.001315, allocations: 90.75 kB / 15.06 MB, free: 1.098 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.001471/0.001471, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.62/1.62, allocations: 223.3 MB / 240 MB, free: 5.297 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.993/2.993, allocations: 462.6 MB / 0.736 GB, free: 15.8 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.000378/0.0003781, allocations: 7.906 kB / 0.9021 GB, free: 36.59 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3839/0.3843, allocations: 159.6 MB / 1.058 GB, free: 5.387 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.Pumps.Primary.Validation.EnableLeadHeadered): time 0.002476/0.3868, allocations: 1.486 MB / 1.059 GB, free: 3.902 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.003359/0.3902, allocations: 1.977 MB / 1.061 GB, free: 1.91 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005746/0.3908, allocations: 23.88 kB / 1.061 GB, free: 1.887 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0003764/0.3912, allocations: 115.2 kB / 1.062 GB, free: 1.773 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0001872/0.3914, allocations: 23.84 kB / 1.062 GB, free: 1.75 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.001109/0.3926, allocations: 277.2 kB / 1.062 GB, free: 1.48 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.001012/0.3936, allocations: 0.7191 MB / 1.063 GB, free: 0.7578 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005959/0.3942, allocations: 313 kB / 1.063 GB, free: 460 kB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003638/0.3946, allocations: 195.3 kB / 1.063 GB, free: 264 kB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003621/0.3949, allocations: 187.1 kB / 1.063 GB, free: 76 kB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 0.0001037/0.395, allocations: 20 kB / 1.063 GB, free: 56 kB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001397/0.3952, allocations: 35.98 kB / 1.063 GB, free: 20 kB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 0.0001401/0.3953, allocations: 107.6 kB / 1.063 GB, free: 15.91 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0001855/0.3955, allocations: 105.5 kB / 1.063 GB, free: 15.8 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0007974/0.3963, allocations: 0.6939 MB / 1.064 GB, free: 15.11 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 5.4e-06/0.3964, allocations: 0 / 1.064 GB, free: 15.11 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.533e-06/0.3964, allocations: 0 / 1.064 GB, free: 15.11 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 3.406e-05/0.3964, allocations: 0 / 1.064 GB, free: 15.11 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.001711/0.3981, allocations: 0.8268 MB / 1.065 GB, free: 14.22 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.1e-05/0.3982, allocations: 8.031 kB / 1.065 GB, free: 14.21 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002179/0.3984, allocations: 63.34 kB / 1.065 GB, free: 14.15 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007144/0.3991, allocations: 478.9 kB / 1.065 GB, free: 13.64 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.112e-05/0.3992, allocations: 52.94 kB / 1.066 GB, free: 13.59 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001172/0.3993, allocations: 67.98 kB / 1.066 GB, free: 13.52 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001063/0.4004, allocations: 0.5997 MB / 1.066 GB, free: 12.91 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.177e-05/0.4004, allocations: 3.938 kB / 1.066 GB, free: 12.91 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.247e-05/0.4005, allocations: 23.97 kB / 1.066 GB, free: 12.89 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.298e-05/0.4005, allocations: 12 kB / 1.066 GB, free: 12.88 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008136/0.4013, allocations: 491.6 kB / 1.067 GB, free: 12.39 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002094/0.4034, allocations: 1.386 MB / 1.068 GB, free: 10.96 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000905/0.4043, allocations: 0.5099 MB / 1.069 GB, free: 10.44 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003844/0.4047, allocations: 228.7 kB / 1.069 GB, free: 10.21 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 3.531e-05/0.4048, allocations: 7.984 kB / 1.069 GB, free: 10.21 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008621/0.4057, allocations: 0.5453 MB / 1.069 GB, free: 9.648 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=44): time 1.853e-06/0.4057, allocations: 0 / 1.069 GB, free: 9.648 MB / 0.8262 GB Notification: Performance of matching and sorting (n=44): time 0.001549/0.4072, allocations: 0.817 MB / 1.07 GB, free: 8.824 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.361e-05/0.4073, allocations: 67.28 kB / 1.07 GB, free: 8.746 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003169/0.4076, allocations: 330.4 kB / 1.07 GB, free: 8.418 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 6.808e-05/0.4077, allocations: 49.7 kB / 1.071 GB, free: 8.363 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001776/0.4079, allocations: 240.9 kB / 1.071 GB, free: 8.121 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 0.000106/0.408, allocations: 110.7 kB / 1.071 GB, free: 8.012 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.972e-05/0.408, allocations: 12 kB / 1.071 GB, free: 8 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001375/0.4082, allocations: 346.8 kB / 1.071 GB, free: 7.652 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005605/0.4087, allocations: 336.8 kB / 1.072 GB, free: 7.324 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000633/0.4094, allocations: 440.9 kB / 1.072 GB, free: 6.852 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005005/0.4099, allocations: 325.2 kB / 1.072 GB, free: 6.527 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.166e-06/0.4099, allocations: 0 / 1.072 GB, free: 6.527 MB / 0.8262 GB Notification: Performance of matching and sorting (n=64) (initialization): time 0.001351/0.4113, allocations: 0.8171 MB / 1.073 GB, free: 5.691 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 6.426e-05/0.4113, allocations: 67.34 kB / 1.073 GB, free: 5.613 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.507e-06/0.4114, allocations: 4 kB / 1.073 GB, free: 5.609 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.748e-05/0.4114, allocations: 4 kB / 1.073 GB, free: 5.605 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002181/0.4116, allocations: 60.08 kB / 1.073 GB, free: 5.547 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.109e-05/0.4116, allocations: 4 kB / 1.073 GB, free: 5.543 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005059/0.4121, allocations: 143.5 kB / 1.073 GB, free: 5.402 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.407e-05/0.4122, allocations: 27.98 kB / 1.073 GB, free: 5.375 MB / 0.8262 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 52 ($PRE.enaSerTwo.lat.y,$PRE.enaSerMod.lat.y,$PRE.enaParTwo.lat.y,$PRE.enaParMod.lat.y,$whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,$whenCondition17,$whenCondition18,$whenCondition19,$whenCondition20,$whenCondition13,$whenCondition14,$whenCondition15,$whenCondition16,$whenCondition9,$whenCondition10,$whenCondition11,$whenCondition12,$whenCondition5,$whenCondition6,$whenCondition7,$whenCondition8,$PRE.u1ValIso[1].y,u1ValIso[1].y,$PRE.u1ValIso[2].y,u1ValIso[2].y,$PRE.enaSerTwo.lat.u,enaSerTwo.lat.u,$PRE.enaSerTwo.lat.clr,enaSerTwo.lat.clr,enaSerTwo.lat.y,$PRE.enaSerMod.lat.u,enaSerMod.lat.u,$PRE.enaSerMod.lat.clr,enaSerMod.lat.clr,enaSerMod.lat.y,enaSerMod.opeSerMod[1].y,enaSerMod.opeSerMod[2].y,$PRE.enaParTwo.lat.u,enaParTwo.lat.u,$PRE.enaParTwo.lat.clr,enaParTwo.lat.clr,enaParTwo.lat.y,enaParMod.cloParMod[1].y,enaParMod.cloParMod[2].y,$PRE.enaParMod.lat.u,enaParMod.lat.u,$PRE.enaParMod.lat.clr,enaParMod.lat.clr,enaParMod.lat.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (60): * Single equations (assignments): 58 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003489/0.4126, allocations: 269.7 kB / 1.074 GB, free: 5.102 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.218e-05/0.4126, allocations: 35.61 kB / 1.074 GB, free: 5.066 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001126/0.4127, allocations: 51.27 kB / 1.074 GB, free: 5.016 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.899e-06/0.4127, allocations: 4 kB / 1.074 GB, free: 5.012 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.243e-06/0.4128, allocations: 0 / 1.074 GB, free: 5.012 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.033e-06/0.4128, allocations: 3.984 kB / 1.074 GB, free: 5.008 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001607/0.4144, allocations: 1.214 MB / 1.075 GB, free: 3.738 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.244e-06/0.4144, allocations: 0 / 1.075 GB, free: 3.738 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000186/0.4146, allocations: 51.89 kB / 1.075 GB, free: 3.688 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.724e-06/0.4146, allocations: 7.953 kB / 1.075 GB, free: 3.68 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.656e-05/0.4147, allocations: 23.97 kB / 1.075 GB, free: 3.656 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.917e-06/0.4147, allocations: 4 kB / 1.075 GB, free: 3.652 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.436e-06/0.4147, allocations: 3.938 kB / 1.075 GB, free: 3.648 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00155/0.4162, allocations: 1.007 MB / 1.076 GB, free: 2.625 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 7.291e-05/0.4163, allocations: 112.7 kB / 1.076 GB, free: 2.496 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.12e-05/0.4164, allocations: 27.94 kB / 1.076 GB, free: 2.469 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002009/0.4166, allocations: 35.95 kB / 1.076 GB, free: 2.434 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000189/0.4168, allocations: 103.8 kB / 1.076 GB, free: 2.332 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.205e-05/0.4169, allocations: 23.98 kB / 1.076 GB, free: 2.309 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0001945/0.4171, allocations: 205.9 kB / 1.076 GB, free: 2.105 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.2e-07/0.4171, allocations: 0 / 1.076 GB, free: 2.105 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0004745/0.4175, allocations: 155.5 kB / 1.077 GB, free: 1.953 MB / 0.8262 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: 38 ($whenCondition17,$whenCondition18,$whenCondition19,$whenCondition20,$whenCondition13,$whenCondition14,$whenCondition15,$whenCondition16,$whenCondition9,$whenCondition10,$whenCondition11,$whenCondition12,$whenCondition5,$whenCondition6,$whenCondition7,$whenCondition8,$whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,u1ValIso[1].y,u1ValIso[2].y,enaSerTwo.lat.u,enaSerTwo.lat.clr,enaSerTwo.lat.y,enaSerMod.lat.u,enaSerMod.lat.clr,enaSerMod.lat.y,enaSerMod.opeSerMod[1].y,enaSerMod.opeSerMod[2].y,enaParTwo.lat.u,enaParTwo.lat.clr,enaParTwo.lat.y,enaParMod.cloParMod[1].y,enaParMod.cloParMod[2].y,enaParMod.lat.u,enaParMod.lat.clr,enaParMod.lat.y) * Number of discrete states: 12 (enaSerMod.lat.u,enaSerMod.lat.clr,enaParMod.lat.u,enaParMod.lat.clr,enaParMod.lat.y,enaSerMod.lat.y,enaParTwo.lat.u,enaParTwo.lat.clr,enaParTwo.lat.y,enaSerTwo.lat.u,enaSerTwo.lat.clr,enaSerTwo.lat.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (44): * Single equations (assignments): 38 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 6 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002325/0.4178, allocations: 142.9 kB / 1.077 GB, free: 1.805 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.001277/0.4191, allocations: 0.814 MB / 1.078 GB, free: 0.9648 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.545e-06/0.4191, allocations: 0 / 1.078 GB, free: 0.9648 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0005149/0.4196, allocations: 364.1 kB / 1.078 GB, free: 0.6094 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006505/0.4203, allocations: 141.3 kB / 1.078 GB, free: 480 kB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001673/0.4219, allocations: 1.111 MB / 1.079 GB, free: 15.33 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005227/0.4225, allocations: 0.898 MB / 1.08 GB, free: 14.4 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.0002544/0.4227, allocations: 87.28 kB / 1.08 GB, free: 14.31 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001301/0.4229, allocations: 47.36 kB / 1.08 GB, free: 14.27 MB / 0.8419 GB Notification: Performance of SimCode: time 2.2e-07/0.4229, allocations: 0 / 1.08 GB, free: 14.27 MB / 0.8419 GB Notification: Performance of Templates: time 0.01276/0.4357, allocations: 6.939 MB / 1.087 GB, free: 7.449 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 -lv LOG_STATS > Buildings_latest_Buildings.Templates.Plants.Controls.Pumps.Primary.Validation.EnableLeadHeadered.pipe 2>&1)