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.007126/0.007126, allocations: 101.1 kB / 15.88 MB, free: 5.867 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.001554/0.001554, allocations: 193.5 kB / 16.79 MB, free: 5.809 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.363/1.363, allocations: 222.9 MB / 240.5 MB, free: 4.535 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.712/2.712, allocations: 461.8 MB / 0.7348 GB, free: 14.2 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001251/0.001251, allocations: 62.7 kB / 0.8991 GB, free: 36.99 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2829/0.2842, allocations: 157.4 MB / 1.053 GB, free: 8.289 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.Pumps.Primary.Validation.EnableLeadHeadered): time 0.003379/0.2876, allocations: 1.979 MB / 1.055 GB, free: 6.305 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.002882/0.2905, allocations: 2.02 MB / 1.057 GB, free: 4.27 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003953/0.2909, allocations: 23.88 kB / 1.057 GB, free: 4.246 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0003353/0.2912, allocations: 119.1 kB / 1.057 GB, free: 4.129 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0001223/0.2914, allocations: 19.84 kB / 1.057 GB, free: 4.109 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.000898/0.2923, allocations: 354.4 kB / 1.057 GB, free: 3.766 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0007617/0.2931, allocations: 0.7931 MB / 1.058 GB, free: 2.969 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005889/0.2937, allocations: 451.9 kB / 1.058 GB, free: 2.523 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003022/0.294, allocations: 239.2 kB / 1.059 GB, free: 2.289 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002909/0.2943, allocations: 247 kB / 1.059 GB, free: 2.047 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 0.0001103/0.2944, allocations: 36 kB / 1.059 GB, free: 2.012 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001395/0.2945, allocations: 55.92 kB / 1.059 GB, free: 1.957 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 0.0001263/0.2947, allocations: 127.6 kB / 1.059 GB, free: 1.832 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0003018/0.295, allocations: 258.7 kB / 1.059 GB, free: 1.578 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0005973/0.2956, allocations: 0.7055 MB / 1.06 GB, free: 0.8711 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.917e-06/0.2956, allocations: 4 kB / 1.06 GB, free: 0.8672 MB / 0.8106 GB Notification: Performance of FrontEnd: time 8.62e-07/0.2956, allocations: 0 / 1.06 GB, free: 0.8672 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 1.798e-05/0.2956, allocations: 0 / 1.06 GB, free: 0.8672 MB / 0.8106 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.001608/0.2972, allocations: 0.9361 MB / 1.061 GB, free: 15.86 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.72e-05/0.2973, allocations: 15.97 kB / 1.061 GB, free: 15.85 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000153/0.2975, allocations: 60.38 kB / 1.061 GB, free: 15.79 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007047/0.2982, allocations: 491.9 kB / 1.061 GB, free: 15.27 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.786e-05/0.2982, allocations: 45.36 kB / 1.061 GB, free: 15.23 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001099/0.2983, allocations: 64.38 kB / 1.062 GB, free: 15.16 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001011/0.2994, allocations: 0.6002 MB / 1.062 GB, free: 14.55 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.234e-05/0.2994, allocations: 192 / 1.062 GB, free: 14.55 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.698e-05/0.2994, allocations: 35.86 kB / 1.062 GB, free: 14.52 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.132e-05/0.2995, allocations: 12 kB / 1.062 GB, free: 14.51 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007854/0.3002, allocations: 479.6 kB / 1.063 GB, free: 14.04 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001932/0.3022, allocations: 1.39 MB / 1.064 GB, free: 12.6 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008158/0.303, allocations: 0.4904 MB / 1.064 GB, free: 12.1 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003627/0.3034, allocations: 224.6 kB / 1.065 GB, free: 11.88 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 3.648e-05/0.3034, allocations: 4 kB / 1.065 GB, free: 11.87 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000774/0.3042, allocations: 0.5376 MB / 1.065 GB, free: 11.32 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=44): time 3.396e-06/0.3042, allocations: 4 kB / 1.065 GB, free: 11.32 MB / 0.8262 GB Notification: Performance of matching and sorting (n=44): time 0.001425/0.3057, allocations: 0.7975 MB / 1.066 GB, free: 10.51 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.32e-05/0.3057, allocations: 63.41 kB / 1.066 GB, free: 10.44 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003017/0.306, allocations: 330.3 kB / 1.066 GB, free: 10.11 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 7.454e-05/0.3061, allocations: 53.7 kB / 1.066 GB, free: 10.05 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001682/0.3063, allocations: 233 kB / 1.067 GB, free: 9.816 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 9.73e-05/0.3064, allocations: 106.7 kB / 1.067 GB, free: 9.711 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000228/0.3066, allocations: 158.1 kB / 1.067 GB, free: 9.551 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001177/0.3067, allocations: 346.8 kB / 1.067 GB, free: 9.203 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005575/0.3073, allocations: 328.8 kB / 1.068 GB, free: 8.879 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006163/0.3079, allocations: 436.9 kB / 1.068 GB, free: 8.414 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007432/0.3087, allocations: 0.509 MB / 1.068 GB, free: 7.867 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.216e-06/0.3087, allocations: 0 / 1.068 GB, free: 7.867 MB / 0.8262 GB Notification: Performance of matching and sorting (n=64) (initialization): time 0.001311/0.31, allocations: 0.8094 MB / 1.069 GB, free: 7.039 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 5.347e-05/0.3101, allocations: 63.39 kB / 1.069 GB, free: 6.965 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.706e-06/0.3101, allocations: 4 kB / 1.069 GB, free: 6.961 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.9e-05/0.3101, allocations: 4 kB / 1.069 GB, free: 6.957 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002051/0.3103, allocations: 55.88 kB / 1.069 GB, free: 6.902 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.325e-05/0.3104, allocations: 11.94 kB / 1.069 GB, free: 6.891 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005044/0.3109, allocations: 115.6 kB / 1.069 GB, free: 6.777 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.669e-05/0.3109, allocations: 23.98 kB / 1.07 GB, free: 6.754 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.000299/0.3112, allocations: 265.6 kB / 1.07 GB, free: 6.484 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.312e-05/0.3113, allocations: 39.62 kB / 1.07 GB, free: 6.445 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001002/0.3114, allocations: 47.3 kB / 1.07 GB, free: 6.398 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.708e-06/0.3114, allocations: 4 kB / 1.07 GB, free: 6.395 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.912e-06/0.3114, allocations: 0 / 1.07 GB, free: 6.395 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.529e-06/0.3114, allocations: 4 kB / 1.07 GB, free: 6.391 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001553/0.313, allocations: 1.206 MB / 1.071 GB, free: 5.129 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.445e-06/0.313, allocations: 4 kB / 1.071 GB, free: 5.125 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001832/0.3132, allocations: 47.88 kB / 1.071 GB, free: 5.078 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.906e-06/0.3132, allocations: 0 / 1.071 GB, free: 5.078 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.394e-05/0.3133, allocations: 19.98 kB / 1.071 GB, free: 5.059 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.585e-06/0.3133, allocations: 0 / 1.071 GB, free: 5.059 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.192e-06/0.3133, allocations: 0 / 1.071 GB, free: 5.059 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001509/0.3148, allocations: 0.999 MB / 1.072 GB, free: 4.043 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 6.661e-05/0.3149, allocations: 116.7 kB / 1.072 GB, free: 3.91 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.219e-05/0.315, allocations: 23.98 kB / 1.072 GB, free: 3.887 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002035/0.3152, allocations: 31.95 kB / 1.072 GB, free: 3.855 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001923/0.3154, allocations: 87.88 kB / 1.072 GB, free: 3.77 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.102e-05/0.3154, allocations: 23.98 kB / 1.072 GB, free: 3.746 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.000199/0.3156, allocations: 210 kB / 1.073 GB, free: 3.539 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.4e-07/0.3156, allocations: 4 kB / 1.073 GB, free: 3.535 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0004429/0.3161, allocations: 143.5 kB / 1.073 GB, free: 3.395 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.0002063/0.3163, allocations: 157 kB / 1.073 GB, free: 3.234 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.001211/0.3175, allocations: 0.8023 MB / 1.074 GB, free: 2.41 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.645e-06/0.3175, allocations: 0 / 1.074 GB, free: 2.41 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.000505/0.318, allocations: 355.6 kB / 1.074 GB, free: 2.062 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006606/0.3187, allocations: 133.9 kB / 1.074 GB, free: 1.934 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0016/0.3203, allocations: 1.168 MB / 1.075 GB, free: 0.7305 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004248/0.3208, allocations: 0.8863 MB / 1.076 GB, free: 15.82 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001506/0.3209, allocations: 47.41 kB / 1.076 GB, free: 15.77 MB / 0.8419 GB Notification: Performance of SimCode: time 2.21e-07/0.3209, allocations: 0 / 1.076 GB, free: 15.77 MB / 0.8419 GB Notification: Performance of Templates: time 0.012/0.3329, allocations: 7.503 MB / 1.083 GB, free: 8.34 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)