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.001181/0.001181, allocations: 97.64 kB / 15.36 MB, free: 0.7344 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.007982/0.007982, allocations: 170.1 kB / 16.27 MB, free: 6.652 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.484/1.484, allocations: 223.3 MB / 240.3 MB, free: 5.352 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.955/2.955, allocations: 473.4 MB / 0.7469 GB, free: 6.137 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003973/0.0003972, allocations: 12.81 kB / 0.9158 GB, free: 33.26 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3543/0.3547, allocations: 162.2 MB / 1.074 GB, free: 7.594 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex): time 0.0009063/0.3557, allocations: 443.7 kB / 1.075 GB, free: 7.164 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.0001993/0.3559, allocations: 55.78 kB / 1.075 GB, free: 7.109 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.055e-05/0.356, allocations: 4 kB / 1.075 GB, free: 7.105 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 8.73e-05/0.3561, allocations: 7.922 kB / 1.075 GB, free: 7.098 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0001002/0.3562, allocations: 11.94 kB / 1.075 GB, free: 7.086 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 5.11e-05/0.3563, allocations: 15.98 kB / 1.075 GB, free: 7.07 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0002115/0.3565, allocations: 167.6 kB / 1.075 GB, free: 6.906 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003423/0.3568, allocations: 248.9 kB / 1.075 GB, free: 6.66 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 6.432e-05/0.3569, allocations: 51.67 kB / 1.075 GB, free: 6.609 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 9.974e-05/0.357, allocations: 67.5 kB / 1.075 GB, free: 6.543 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 2.59e-05/0.357, allocations: 12 kB / 1.075 GB, free: 6.531 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 1.552e-05/0.3571, allocations: 4 kB / 1.075 GB, free: 6.527 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 4.684e-05/0.3571, allocations: 39.8 kB / 1.075 GB, free: 6.488 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0001017/0.3572, allocations: 116.9 kB / 1.075 GB, free: 6.367 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0002832/0.3575, allocations: 322.8 kB / 1.076 GB, free: 6.051 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 3.597e-06/0.3575, allocations: 0 / 1.076 GB, free: 6.051 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.693e-06/0.3575, allocations: 0 / 1.076 GB, free: 6.051 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 7.584e-06/0.3575, allocations: 0 / 1.076 GB, free: 6.051 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.0006579/0.3582, allocations: 0.489 MB / 1.076 GB, free: 5.512 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.915e-05/0.3583, allocations: 8.031 kB / 1.076 GB, free: 5.504 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.275e-05/0.3583, allocations: 40.5 kB / 1.076 GB, free: 5.465 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003668/0.3587, allocations: 317.1 kB / 1.076 GB, free: 5.113 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.664e-05/0.3588, allocations: 20.94 kB / 1.076 GB, free: 5.094 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.379e-05/0.3588, allocations: 28.38 kB / 1.077 GB, free: 5.066 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005282/0.3594, allocations: 346.9 kB / 1.077 GB, free: 4.719 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.002e-05/0.3594, allocations: 192 / 1.077 GB, free: 4.719 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.672e-05/0.3594, allocations: 15.94 kB / 1.077 GB, free: 4.703 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.026e-06/0.3594, allocations: 4 kB / 1.077 GB, free: 4.699 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000386/0.3598, allocations: 259.8 kB / 1.077 GB, free: 4.445 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00119/0.361, allocations: 0.9169 MB / 1.078 GB, free: 3.473 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 7.692e-05/0.3611, allocations: 61.14 kB / 1.078 GB, free: 3.395 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.182e-05/0.3612, allocations: 37.75 kB / 1.078 GB, free: 3.352 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 2.166e-05/0.3612, allocations: 3.938 kB / 1.078 GB, free: 3.348 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.252e-05/0.3612, allocations: 30.56 kB / 1.078 GB, free: 3.309 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=2): time 1.312e-06/0.3612, allocations: 0 / 1.078 GB, free: 3.309 MB / 0.8262 GB Notification: Performance of matching and sorting (n=2): time 0.0002767/0.3615, allocations: 133.4 kB / 1.078 GB, free: 3.172 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.793e-05/0.3616, allocations: 77.11 kB / 1.078 GB, free: 3.078 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005483/0.3621, allocations: 481.4 kB / 1.079 GB, free: 2.605 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.65e-05/0.3621, allocations: 25.7 kB / 1.079 GB, free: 2.574 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001464/0.3623, allocations: 183.5 kB / 1.079 GB, free: 2.391 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 1.025e-05/0.3623, allocations: 8 kB / 1.079 GB, free: 2.383 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.635e-05/0.3624, allocations: 25.7 kB / 1.079 GB, free: 2.352 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001397/0.3625, allocations: 342.8 kB / 1.079 GB, free: 2.008 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001027/0.3626, allocations: 59.98 kB / 1.079 GB, free: 1.949 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.708e-05/0.3627, allocations: 77.66 kB / 1.079 GB, free: 1.867 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001259/0.3629, allocations: 93.67 kB / 1.08 GB, free: 1.77 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.994e-06/0.3629, allocations: 4 kB / 1.08 GB, free: 1.766 MB / 0.8262 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002613/0.3631, allocations: 189.1 kB / 1.08 GB, free: 1.574 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.576e-05/0.3632, allocations: 5.406 kB / 1.08 GB, free: 1.57 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.769e-06/0.3632, allocations: 0 / 1.08 GB, free: 1.57 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.326e-05/0.3632, allocations: 4 kB / 1.08 GB, free: 1.566 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001236/0.3633, allocations: 27.92 kB / 1.08 GB, free: 1.539 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.94e-06/0.3633, allocations: 4 kB / 1.08 GB, free: 1.535 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.902e-05/0.3634, allocations: 23.69 kB / 1.08 GB, free: 1.512 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.715e-05/0.3634, allocations: 12 kB / 1.08 GB, free: 1.5 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.0001696/0.3636, allocations: 193.7 kB / 1.08 GB, free: 1.301 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.957e-05/0.3637, allocations: 31.56 kB / 1.08 GB, free: 1.27 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001616/0.3639, allocations: 160.6 kB / 1.08 GB, free: 1.098 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.833e-05/0.3639, allocations: 176.3 kB / 1.08 GB, free: 0.918 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.694e-05/0.364, allocations: 184.2 kB / 1.081 GB, free: 0.7305 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.926e-05/0.3641, allocations: 184.2 kB / 1.081 GB, free: 0.543 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003571/0.3644, allocations: 0.5166 MB / 1.081 GB, free: 15.97 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.2e-05/0.3645, allocations: 112.9 kB / 1.081 GB, free: 15.85 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.232e-05/0.3645, allocations: 105 kB / 1.081 GB, free: 15.74 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.369e-05/0.3646, allocations: 180.4 kB / 1.082 GB, free: 15.56 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.069e-05/0.3647, allocations: 188.3 kB / 1.082 GB, free: 15.37 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.468e-05/0.3647, allocations: 184.2 kB / 1.082 GB, free: 15.18 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.019e-05/0.3648, allocations: 184.2 kB / 1.082 GB, free: 14.99 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001672/0.365, allocations: 339.5 kB / 1.082 GB, free: 14.64 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000146/0.3651, allocations: 225.6 kB / 1.083 GB, free: 14.39 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.27e-05/0.3652, allocations: 176.3 kB / 1.083 GB, free: 14.21 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000116/0.3653, allocations: 112.9 kB / 1.083 GB, free: 14.09 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.153e-05/0.3654, allocations: 176.3 kB / 1.083 GB, free: 13.91 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.877e-05/0.3655, allocations: 108.9 kB / 1.083 GB, free: 13.8 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0004183/0.3659, allocations: 363.1 kB / 1.084 GB, free: 13.45 MB / 0.8419 GB Notification: Performance of sort global known variables: time 2.51e-07/0.3659, allocations: 0 / 1.084 GB, free: 13.45 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.00028/0.3662, allocations: 28 kB / 1.084 GB, free: 13.42 MB / 0.8419 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.0001239/0.3663, allocations: 174.5 kB / 1.084 GB, free: 13.24 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0001606/0.3665, allocations: 79.95 kB / 1.084 GB, free: 13.16 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 5.55e-06/0.3665, allocations: 4 kB / 1.084 GB, free: 13.16 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 1.783e-06/0.3665, allocations: 3.938 kB / 1.084 GB, free: 13.15 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004675/0.367, allocations: 0.5395 MB / 1.084 GB, free: 12.61 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006566/0.3676, allocations: 0.5568 MB / 1.085 GB, free: 12.02 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003655/0.368, allocations: 0.7677 MB / 1.086 GB, free: 11.23 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.0001039/0.3681, allocations: 54.25 kB / 1.086 GB, free: 11.18 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.525e-05/0.3682, allocations: 23.42 kB / 1.086 GB, free: 11.15 MB / 0.8419 GB Notification: Performance of SimCode: time 3.9e-07/0.3682, allocations: 0 / 1.086 GB, free: 11.15 MB / 0.8419 GB Notification: Performance of Templates: time 0.004541/0.3727, allocations: 1.595 MB / 1.087 GB, free: 9.57 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)