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.0009747/0.0009749, allocations: 92.23 kB / 16.02 MB, free: 80 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.001307/0.001307, allocations: 184 kB / 16.92 MB, free: 6.922 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.447/1.447, allocations: 223.3 MB / 241 MB, free: 5.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.759/2.759, allocations: 462.6 MB / 0.737 GB, free: 15.57 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003511/0.0003512, allocations: 6.719 kB / 0.9034 GB, free: 36.5 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3172/0.3175, allocations: 159.6 MB / 1.059 GB, free: 4.98 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.Pumps.Primary.Validation.EnableLeadHeadered): time 0.002618/0.3202, allocations: 1.576 MB / 1.061 GB, free: 3.402 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.003397/0.3236, allocations: 2.008 MB / 1.063 GB, free: 1.379 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005804/0.3242, allocations: 19.88 kB / 1.063 GB, free: 1.359 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0003654/0.3246, allocations: 119.2 kB / 1.063 GB, free: 1.242 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0001962/0.3248, allocations: 15.88 kB / 1.063 GB, free: 1.227 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.001075/0.3259, allocations: 352.5 kB / 1.063 GB, free: 0.8867 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0009128/0.3268, allocations: 0.7969 MB / 1.064 GB, free: 88 kB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006955/0.3276, allocations: 447.9 kB / 1.065 GB, free: 15.64 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003221/0.3279, allocations: 187.3 kB / 1.065 GB, free: 15.46 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003365/0.3282, allocations: 210.9 kB / 1.065 GB, free: 15.25 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 0.0001042/0.3284, allocations: 20 kB / 1.065 GB, free: 15.23 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001391/0.3285, allocations: 35.98 kB / 1.065 GB, free: 15.2 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.0001318/0.3286, allocations: 103.6 kB / 1.065 GB, free: 15.1 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0003443/0.329, allocations: 252.4 kB / 1.065 GB, free: 14.84 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0007236/0.3297, allocations: 0.6936 MB / 1.066 GB, free: 14.15 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.488e-06/0.3297, allocations: 3.938 kB / 1.066 GB, free: 14.14 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.513e-06/0.3297, allocations: 0 / 1.066 GB, free: 14.14 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 2.61e-05/0.3298, allocations: 0 / 1.066 GB, free: 14.14 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.001701/0.3315, allocations: 0.8076 MB / 1.067 GB, free: 13.27 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.306e-05/0.3315, allocations: 19.97 kB / 1.067 GB, free: 13.25 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002416/0.3318, allocations: 68.28 kB / 1.067 GB, free: 13.18 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008073/0.3326, allocations: 487.9 kB / 1.067 GB, free: 12.67 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.049e-05/0.3327, allocations: 45.36 kB / 1.067 GB, free: 12.62 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001583/0.3328, allocations: 64.36 kB / 1.067 GB, free: 12.56 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001157/0.334, allocations: 0.6197 MB / 1.068 GB, free: 11.93 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.544e-05/0.334, allocations: 192 / 1.068 GB, free: 11.93 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.132e-05/0.3341, allocations: 27.91 kB / 1.068 GB, free: 11.91 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.102e-05/0.3341, allocations: 12 kB / 1.068 GB, free: 11.89 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000886/0.335, allocations: 487.6 kB / 1.069 GB, free: 11.42 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002239/0.3373, allocations: 1.386 MB / 1.07 GB, free: 9.98 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009741/0.3383, allocations: 0.5099 MB / 1.07 GB, free: 9.461 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004038/0.3387, allocations: 238.8 kB / 1.071 GB, free: 9.227 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 2.922e-05/0.3387, allocations: 4 kB / 1.071 GB, free: 9.223 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008369/0.3395, allocations: 0.5492 MB / 1.071 GB, free: 8.66 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=44): time 2.234e-06/0.3396, allocations: 4 kB / 1.071 GB, free: 8.656 MB / 0.8262 GB Notification: Performance of matching and sorting (n=44): time 0.001731/0.3413, allocations: 0.8171 MB / 1.072 GB, free: 7.832 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.355e-05/0.3414, allocations: 63.39 kB / 1.072 GB, free: 7.758 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003681/0.3417, allocations: 326.3 kB / 1.072 GB, free: 7.434 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 9.277e-05/0.3418, allocations: 53.7 kB / 1.072 GB, free: 7.375 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002039/0.3421, allocations: 233 kB / 1.073 GB, free: 7.141 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001159/0.3422, allocations: 110.7 kB / 1.073 GB, free: 7.031 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001355/0.3423, allocations: 89.67 kB / 1.073 GB, free: 6.938 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001553/0.3425, allocations: 354.8 kB / 1.073 GB, free: 6.582 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006175/0.3431, allocations: 328.9 kB / 1.073 GB, free: 6.262 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007811/0.3439, allocations: 448.8 kB / 1.074 GB, free: 5.781 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008953/0.3448, allocations: 0.5207 MB / 1.074 GB, free: 5.219 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.508e-06/0.3448, allocations: 0 / 1.074 GB, free: 5.219 MB / 0.8262 GB Notification: Performance of matching and sorting (n=64) (initialization): time 0.001423/0.3463, allocations: 0.8248 MB / 1.075 GB, free: 4.379 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 6.384e-05/0.3463, allocations: 71.39 kB / 1.075 GB, free: 4.297 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.514e-06/0.3463, allocations: 4.25 kB / 1.075 GB, free: 4.293 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.085e-05/0.3464, allocations: 4 kB / 1.075 GB, free: 4.289 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002206/0.3466, allocations: 59.83 kB / 1.075 GB, free: 4.23 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.199e-05/0.3466, allocations: 7.938 kB / 1.075 GB, free: 4.223 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006108/0.3472, allocations: 143.5 kB / 1.075 GB, free: 4.082 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.883e-05/0.3473, allocations: 23.98 kB / 1.075 GB, free: 4.059 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,enaParMod.lat.y,enaParMod.lat.clr,$PRE.enaParMod.lat.clr,enaParMod.lat.u,$PRE.enaParMod.lat.u,enaParMod.cloParMod[2].y,enaParMod.cloParMod[1].y,enaParTwo.lat.y,enaParTwo.lat.clr,$PRE.enaParTwo.lat.clr,enaParTwo.lat.u,$PRE.enaParTwo.lat.u,enaSerMod.opeSerMod[2].y,enaSerMod.opeSerMod[1].y,enaSerMod.lat.y,enaSerMod.lat.clr,$PRE.enaSerMod.lat.clr,enaSerMod.lat.u,$PRE.enaSerMod.lat.u,enaSerTwo.lat.y,enaSerTwo.lat.clr,$PRE.enaSerTwo.lat.clr,enaSerTwo.lat.u,$PRE.enaSerTwo.lat.u,u1ValIso[2].y,$PRE.u1ValIso[2].y,u1ValIso[1].y,$PRE.u1ValIso[1].y,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition12,$whenCondition11,$whenCondition10,$whenCondition9,$whenCondition16,$whenCondition15,$whenCondition14,$whenCondition13,$whenCondition20,$whenCondition19,$whenCondition18,$whenCondition17) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003581/0.3477, allocations: 261.6 kB / 1.076 GB, free: 3.793 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.211e-05/0.3477, allocations: 39.61 kB / 1.076 GB, free: 3.754 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001175/0.3479, allocations: 47.31 kB / 1.076 GB, free: 3.707 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.975e-06/0.3479, allocations: 4 kB / 1.076 GB, free: 3.703 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.344e-06/0.3479, allocations: 3.938 kB / 1.076 GB, free: 3.699 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.663e-06/0.3479, allocations: 11.98 kB / 1.076 GB, free: 3.688 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001824/0.3497, allocations: 1.225 MB / 1.077 GB, free: 2.406 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.457e-06/0.3498, allocations: 0 / 1.077 GB, free: 2.406 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001918/0.35, allocations: 47.89 kB / 1.077 GB, free: 2.359 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.268e-06/0.35, allocations: 0 / 1.077 GB, free: 2.359 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.406e-05/0.35, allocations: 19.97 kB / 1.077 GB, free: 2.34 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.089e-06/0.35, allocations: 7.938 kB / 1.077 GB, free: 2.332 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.729e-06/0.35, allocations: 4 kB / 1.077 GB, free: 2.328 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001747/0.3518, allocations: 1.019 MB / 1.078 GB, free: 1.293 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 8.108e-05/0.3519, allocations: 108.6 kB / 1.078 GB, free: 1.168 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.894e-05/0.352, allocations: 23.98 kB / 1.078 GB, free: 1.145 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002257/0.3522, allocations: 39.95 kB / 1.078 GB, free: 1.105 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000179/0.3524, allocations: 83.89 kB / 1.078 GB, free: 1.023 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.469e-05/0.3525, allocations: 27.97 kB / 1.078 GB, free: 0.9961 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.000256/0.3527, allocations: 210 kB / 1.079 GB, free: 0.7852 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.6e-07/0.3527, allocations: 0 / 1.079 GB, free: 0.7852 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0004988/0.3532, allocations: 143.5 kB / 1.079 GB, free: 0.6445 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 (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.0002287/0.3535, allocations: 157.1 kB / 1.079 GB, free: 496 kB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.001481/0.355, allocations: 0.8145 MB / 1.08 GB, free: 15.64 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 5.561e-06/0.355, allocations: 8.062 kB / 1.08 GB, free: 15.64 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0005885/0.3556, allocations: 367.5 kB / 1.08 GB, free: 15.28 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007171/0.3563, allocations: 135.9 kB / 1.08 GB, free: 15.15 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001943/0.3583, allocations: 1.184 MB / 1.081 GB, free: 13.93 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005508/0.3588, allocations: 0.894 MB / 1.082 GB, free: 13.01 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001561/0.359, allocations: 47.41 kB / 1.082 GB, free: 12.96 MB / 0.8419 GB Notification: Performance of SimCode: time 7.41e-07/0.359, allocations: 0 / 1.082 GB, free: 12.96 MB / 0.8419 GB Notification: Performance of Templates: time 0.01183/0.3708, allocations: 7.424 MB / 1.089 GB, free: 5.613 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)