Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_1.6_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex.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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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.Utilities.Validation.LastTrueIndex,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex") translateModel(Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex") 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: 111.3 kB / 15.23 MB, free: 0.6602 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.001838/0.001838, allocations: 198 kB / 16.14 MB, free: 6.664 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.415/1.415, allocations: 222.9 MB / 239.8 MB, free: 4.578 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.824/2.824, allocations: 472.6 MB / 0.7447 GB, free: 4.98 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001253/0.001253, allocations: 67.98 kB / 0.9114 GB, free: 33.58 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3571/0.3584, allocations: 159.9 MB / 1.068 GB, free: 10.93 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex): time 0.002292/0.3607, allocations: 0.776 MB / 1.068 GB, free: 10.16 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.0002353/0.3609, allocations: 43.84 kB / 1.068 GB, free: 10.11 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.632e-05/0.361, allocations: 3.938 kB / 1.068 GB, free: 10.11 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0001414/0.3612, allocations: 15.92 kB / 1.068 GB, free: 10.09 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.000151/0.3614, allocations: 11.98 kB / 1.068 GB, free: 10.08 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 6.913e-05/0.3614, allocations: 16 kB / 1.068 GB, free: 10.07 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0002662/0.3617, allocations: 175.5 kB / 1.069 GB, free: 9.895 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000401/0.3621, allocations: 244.9 kB / 1.069 GB, free: 9.652 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001002/0.3622, allocations: 83.59 kB / 1.069 GB, free: 9.57 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001361/0.3624, allocations: 99.48 kB / 1.069 GB, free: 9.473 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 4.915e-05/0.3624, allocations: 19.98 kB / 1.069 GB, free: 9.453 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 3.238e-05/0.3625, allocations: 12 kB / 1.069 GB, free: 9.441 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 7.657e-05/0.3625, allocations: 55.78 kB / 1.069 GB, free: 9.387 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0001305/0.3627, allocations: 115.2 kB / 1.069 GB, free: 9.273 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0003554/0.363, allocations: 338.9 kB / 1.069 GB, free: 8.941 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 6.242e-06/0.363, allocations: 0 / 1.069 GB, free: 8.941 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.282e-06/0.3631, allocations: 4 kB / 1.069 GB, free: 8.938 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 6.392e-06/0.3631, allocations: 0 / 1.069 GB, free: 8.938 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: 64 * Number of variables: 64 Notification: Performance of Generate backend data structure: time 0.0008254/0.3639, allocations: 0.546 MB / 1.07 GB, free: 8.34 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 5.191e-05/0.364, allocations: 8.031 kB / 1.07 GB, free: 8.332 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.75e-05/0.364, allocations: 32.56 kB / 1.07 GB, free: 8.301 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004424/0.3645, allocations: 313.2 kB / 1.07 GB, free: 7.957 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.498e-05/0.3645, allocations: 32.88 kB / 1.07 GB, free: 7.926 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.755e-05/0.3646, allocations: 24.38 kB / 1.07 GB, free: 7.902 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005256/0.3651, allocations: 339 kB / 1.071 GB, free: 7.562 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.218e-05/0.3651, allocations: 192 / 1.071 GB, free: 7.562 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.001e-05/0.3652, allocations: 15.94 kB / 1.071 GB, free: 7.547 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.458e-05/0.3652, allocations: 8 kB / 1.071 GB, free: 7.539 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004157/0.3656, allocations: 255.8 kB / 1.071 GB, free: 7.289 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001228/0.3669, allocations: 0.9168 MB / 1.072 GB, free: 6.316 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 7.933e-05/0.3669, allocations: 57.14 kB / 1.072 GB, free: 6.242 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.685e-05/0.367, allocations: 37.75 kB / 1.072 GB, free: 6.199 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 2.088e-05/0.367, allocations: 7.922 kB / 1.072 GB, free: 6.191 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.028e-05/0.3671, allocations: 38.56 kB / 1.072 GB, free: 6.145 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=2): time 9.82e-07/0.3671, allocations: 0 / 1.072 GB, free: 6.145 MB / 0.8262 GB Notification: Performance of matching and sorting (n=2): time 0.0002596/0.3673, allocations: 125.3 kB / 1.072 GB, free: 6.016 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.154e-05/0.3674, allocations: 81.11 kB / 1.072 GB, free: 5.918 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004749/0.3679, allocations: 473.4 kB / 1.073 GB, free: 5.453 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.806e-05/0.3679, allocations: 25.7 kB / 1.073 GB, free: 5.422 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001245/0.368, allocations: 195.8 kB / 1.073 GB, free: 5.227 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 7.044e-06/0.368, allocations: 0 / 1.073 GB, free: 5.227 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.26e-05/0.3681, allocations: 45.7 kB / 1.073 GB, free: 5.176 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001156/0.3682, allocations: 342.8 kB / 1.073 GB, free: 4.832 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.449e-05/0.3683, allocations: 55.95 kB / 1.073 GB, free: 4.777 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.883e-05/0.3684, allocations: 77.66 kB / 1.073 GB, free: 4.695 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001241/0.3686, allocations: 97.67 kB / 1.073 GB, free: 4.594 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.014e-06/0.3686, allocations: 0 / 1.073 GB, free: 4.594 MB / 0.8262 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002396/0.3688, allocations: 185.1 kB / 1.074 GB, free: 4.406 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.538e-05/0.3688, allocations: 5.719 kB / 1.074 GB, free: 4.402 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.324e-06/0.3688, allocations: 7.984 kB / 1.074 GB, free: 4.395 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.41e-05/0.3689, allocations: 3.938 kB / 1.074 GB, free: 4.391 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001242/0.369, allocations: 24 kB / 1.074 GB, free: 4.367 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.582e-06/0.369, allocations: 0 / 1.074 GB, free: 4.367 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.579e-05/0.3691, allocations: 35.59 kB / 1.074 GB, free: 4.332 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.052e-05/0.3691, allocations: 7.984 kB / 1.074 GB, free: 4.324 MB / 0.8262 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 14 (idxLasTru.booToInt[1].y,idxLasTru.booToInt[2].y,idxLasTru.booToInt[3].y,idxLasTru.booToInt[4].y,idxLasTru.booToInt[5].y,idxLasTru.booToInt[6].y,idxLasTru.y,idxLasTruAllFal.booToInt[1].y,idxLasTruAllFal.booToInt[2].y,idxLasTruAllFal.booToInt[3].y,idxLasTruAllFal.booToInt[4].y,idxLasTruAllFal.booToInt[5].y,idxLasTruAllFal.booToInt[6].y,idxLasTruAllFal.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (14): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 0 * 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.0001722/0.3693, allocations: 197.7 kB / 1.074 GB, free: 4.121 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.893e-05/0.3693, allocations: 27.66 kB / 1.074 GB, free: 4.094 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001798/0.3695, allocations: 160.6 kB / 1.074 GB, free: 3.922 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.334e-05/0.3696, allocations: 184.2 kB / 1.074 GB, free: 3.734 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.953e-05/0.3697, allocations: 176.3 kB / 1.074 GB, free: 3.555 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.262e-05/0.3697, allocations: 184.2 kB / 1.075 GB, free: 3.367 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003353/0.3701, allocations: 0.5205 MB / 1.075 GB, free: 2.789 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.722e-05/0.3701, allocations: 108.9 kB / 1.075 GB, free: 2.676 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.269e-05/0.3702, allocations: 101.1 kB / 1.075 GB, free: 2.57 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.354e-05/0.3702, allocations: 188.2 kB / 1.075 GB, free: 2.379 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.473e-05/0.3703, allocations: 184.2 kB / 1.076 GB, free: 2.191 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.826e-05/0.3704, allocations: 180.4 kB / 1.076 GB, free: 2.008 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.077e-05/0.3704, allocations: 188.2 kB / 1.076 GB, free: 1.816 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001546/0.3706, allocations: 323.5 kB / 1.076 GB, free: 1.477 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001235/0.3707, allocations: 225.5 kB / 1.077 GB, free: 1.23 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.094e-05/0.3708, allocations: 184.3 kB / 1.077 GB, free: 1.043 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001026/0.3709, allocations: 104.9 kB / 1.077 GB, free: 0.9336 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.136e-05/0.371, allocations: 188.2 kB / 1.077 GB, free: 0.7422 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.266e-05/0.3711, allocations: 101 kB / 1.077 GB, free: 0.6367 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0003692/0.3714, allocations: 359.1 kB / 1.077 GB, free: 292 kB / 0.8262 GB Notification: Performance of sort global known variables: time 1.4e-07/0.3714, allocations: 3.938 kB / 1.077 GB, free: 288 kB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002556/0.3717, allocations: 32 kB / 1.077 GB, free: 256 kB / 0.8262 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (0): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 0 * 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 Backend phase and start with SimCode phase: time 0.0001543/0.3719, allocations: 178.5 kB / 1.078 GB, free: 68 kB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0001791/0.372, allocations: 76 kB / 1.078 GB, free: 15.99 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 1.974e-06/0.3721, allocations: 0 / 1.078 GB, free: 15.99 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 4.478e-06/0.3721, allocations: 7.938 kB / 1.078 GB, free: 15.98 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004683/0.3726, allocations: 0.5461 MB / 1.078 GB, free: 15.44 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006293/0.3732, allocations: 0.5529 MB / 1.079 GB, free: 14.85 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003505/0.3736, allocations: 0.7717 MB / 1.08 GB, free: 14.05 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 9.551e-05/0.3737, allocations: 54.25 kB / 1.08 GB, free: 14 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.734e-05/0.3737, allocations: 27.36 kB / 1.08 GB, free: 13.98 MB / 0.8419 GB Notification: Performance of SimCode: time 2.81e-07/0.3737, allocations: 0 / 1.08 GB, free: 13.98 MB / 0.8419 GB Notification: Performance of Templates: time 0.004545/0.3783, allocations: 1.623 MB / 1.081 GB, free: 12.36 MB / 0.8419 GB make -j1 -f Buildings_1.6_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex.makefile (rm -f Buildings_1.6_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex.pipe ; mkfifo Buildings_1.6_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex.pipe ; head -c 1048576 < Buildings_1.6_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex.pipe >> ../files/Buildings_1.6_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex.sim & ./Buildings_1.6_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_1.6_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex.pipe 2>&1)