Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 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.Utilities.Validation.LastTrueIndex,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_latest_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_latest_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.0009124/0.0009125, allocations: 91.77 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.001029/0.001029, 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.474/1.474, allocations: 223.3 MB / 240 MB, free: 5.426 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.957/2.957, allocations: 462.6 MB / 0.736 GB, free: 15.74 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0004196/0.0004198, allocations: 8.594 kB / 0.9021 GB, free: 36.71 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3507/0.3511, allocations: 159.6 MB / 1.058 GB, free: 5.309 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex): time 0.001/0.3522, allocations: 429.7 kB / 1.058 GB, free: 4.891 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.000219/0.3524, allocations: 43.84 kB / 1.058 GB, free: 4.848 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.389e-05/0.3525, allocations: 7.938 kB / 1.058 GB, free: 4.84 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.000104/0.3526, allocations: 11.92 kB / 1.058 GB, free: 4.828 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0001222/0.3528, allocations: 7.938 kB / 1.059 GB, free: 4.82 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 6.074e-05/0.3528, allocations: 15.98 kB / 1.059 GB, free: 4.805 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0002343/0.3531, allocations: 167.6 kB / 1.059 GB, free: 4.641 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003633/0.3535, allocations: 212.8 kB / 1.059 GB, free: 4.426 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 6.197e-05/0.3535, allocations: 43.73 kB / 1.059 GB, free: 4.383 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 7.56e-05/0.3536, allocations: 55.59 kB / 1.059 GB, free: 4.328 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 2.164e-05/0.3536, allocations: 4 kB / 1.059 GB, free: 4.324 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 1.828e-05/0.3537, allocations: 8 kB / 1.059 GB, free: 4.316 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 4.621e-05/0.3537, allocations: 39.84 kB / 1.059 GB, free: 4.277 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 5.545e-05/0.3538, allocations: 65.52 kB / 1.059 GB, free: 4.207 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0003191/0.3541, allocations: 279.3 kB / 1.059 GB, free: 3.934 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 6.011e-06/0.3541, allocations: 3.938 kB / 1.059 GB, free: 3.93 MB / 0.8106 GB Notification: Performance of FrontEnd: time 2.304e-06/0.3541, allocations: 0 / 1.059 GB, free: 3.93 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 2.44e-05/0.3542, allocations: 4 kB / 1.059 GB, free: 3.926 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: 64 * Number of variables: 64 Notification: Performance of Generate backend data structure: time 0.0006089/0.3548, allocations: 499.1 kB / 1.06 GB, free: 3.391 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.755e-05/0.3548, allocations: 8.031 kB / 1.06 GB, free: 3.383 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.472e-05/0.3549, allocations: 35.61 kB / 1.06 GB, free: 3.348 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004282/0.3553, allocations: 307.9 kB / 1.06 GB, free: 3.004 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.783e-05/0.3554, allocations: 28.56 kB / 1.06 GB, free: 2.977 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.62e-05/0.3554, allocations: 27.95 kB / 1.06 GB, free: 2.949 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005113/0.3559, allocations: 338.5 kB / 1.061 GB, free: 2.609 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.289e-05/0.356, allocations: 4 kB / 1.061 GB, free: 2.605 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.621e-05/0.356, allocations: 8 kB / 1.061 GB, free: 2.598 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.488e-06/0.356, allocations: 8 kB / 1.061 GB, free: 2.59 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000377/0.3564, allocations: 259.8 kB / 1.061 GB, free: 2.336 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001238/0.3576, allocations: 0.9172 MB / 1.062 GB, free: 1.363 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 8.018e-05/0.3577, allocations: 65.12 kB / 1.062 GB, free: 1.281 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.388e-05/0.3578, allocations: 33.77 kB / 1.062 GB, free: 1.242 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 2.238e-05/0.3578, allocations: 0 / 1.062 GB, free: 1.242 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.584e-05/0.3578, allocations: 34.52 kB / 1.062 GB, free: 1.199 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=2): time 1.072e-06/0.3579, allocations: 0 / 1.062 GB, free: 1.199 MB / 0.8106 GB Notification: Performance of matching and sorting (n=2): time 0.0002774/0.3581, allocations: 133.2 kB / 1.062 GB, free: 1.062 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.019e-05/0.3582, allocations: 81.36 kB / 1.062 GB, free: 0.9648 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005343/0.3587, allocations: 473.5 kB / 1.062 GB, free: 0.4922 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.702e-05/0.3588, allocations: 29.7 kB / 1.063 GB, free: 468 kB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001491/0.3589, allocations: 179.5 kB / 1.063 GB, free: 284 kB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 1.486e-05/0.3589, allocations: 7.984 kB / 1.063 GB, free: 276 kB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.658e-06/0.359, allocations: 4 kB / 1.063 GB, free: 272 kB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001586/0.3591, allocations: 338.8 kB / 1.063 GB, free: 15.93 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.158e-05/0.3592, allocations: 55.95 kB / 1.063 GB, free: 15.87 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001071/0.3593, allocations: 85.66 kB / 1.063 GB, free: 15.78 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.224e-05/0.3594, allocations: 55.91 kB / 1.063 GB, free: 15.73 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.973e-06/0.3594, allocations: 0 / 1.063 GB, free: 15.73 MB / 0.8262 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002788/0.3597, allocations: 173.3 kB / 1.063 GB, free: 15.55 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 2.201e-05/0.3598, allocations: 8 kB / 1.063 GB, free: 15.54 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.706e-06/0.3598, allocations: 7.938 kB / 1.063 GB, free: 15.54 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.572e-05/0.3598, allocations: 0 / 1.063 GB, free: 15.54 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001489/0.3599, allocations: 23.94 kB / 1.063 GB, free: 15.51 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.018e-05/0.36, allocations: 4 kB / 1.063 GB, free: 15.51 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.506e-05/0.36, allocations: 27.59 kB / 1.063 GB, free: 15.48 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.317e-05/0.3601, allocations: 15.98 kB / 1.063 GB, free: 15.46 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.y,idxLasTru.booToInt[6].y,idxLasTru.booToInt[5].y,idxLasTru.booToInt[4].y,idxLasTru.booToInt[3].y,idxLasTru.booToInt[2].y,idxLasTru.booToInt[1].y,idxLasTruAllFal.y,idxLasTruAllFal.booToInt[6].y,idxLasTruAllFal.booToInt[5].y,idxLasTruAllFal.booToInt[4].y,idxLasTruAllFal.booToInt[3].y,idxLasTruAllFal.booToInt[2].y,idxLasTruAllFal.booToInt[1].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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002216/0.3603, allocations: 187.8 kB / 1.064 GB, free: 15.27 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.846e-05/0.3604, allocations: 23.72 kB / 1.064 GB, free: 15.25 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001992/0.3606, allocations: 164.6 kB / 1.064 GB, free: 15.07 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.658e-05/0.3607, allocations: 188.2 kB / 1.064 GB, free: 14.88 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.105e-05/0.3608, allocations: 180.2 kB / 1.064 GB, free: 14.7 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.975e-05/0.3608, allocations: 184.2 kB / 1.064 GB, free: 14.51 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004254/0.3613, allocations: 0.5204 MB / 1.065 GB, free: 13.93 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.376e-05/0.3613, allocations: 101 kB / 1.065 GB, free: 13.82 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.109e-05/0.3614, allocations: 105 kB / 1.065 GB, free: 13.71 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.324e-05/0.3615, allocations: 192.3 kB / 1.065 GB, free: 13.52 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.179e-05/0.3615, allocations: 176.3 kB / 1.065 GB, free: 13.34 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.244e-05/0.3616, allocations: 188.2 kB / 1.066 GB, free: 13.15 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.02e-05/0.3617, allocations: 180.2 kB / 1.066 GB, free: 12.96 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001919/0.3619, allocations: 339.5 kB / 1.066 GB, free: 12.61 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001539/0.3621, allocations: 221.6 kB / 1.066 GB, free: 12.37 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001044/0.3622, allocations: 180.2 kB / 1.066 GB, free: 12.18 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001057/0.3623, allocations: 105 kB / 1.067 GB, free: 12.07 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.494e-05/0.3624, allocations: 180.2 kB / 1.067 GB, free: 11.89 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.917e-05/0.3624, allocations: 112.9 kB / 1.067 GB, free: 11.77 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0004109/0.3629, allocations: 359.1 kB / 1.067 GB, free: 11.43 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.4e-07/0.3629, allocations: 0 / 1.067 GB, free: 11.43 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002797/0.3632, allocations: 28 kB / 1.067 GB, free: 11.4 MB / 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 (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.0001612/0.3633, allocations: 178.5 kB / 1.067 GB, free: 11.21 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0001631/0.3635, allocations: 79.88 kB / 1.067 GB, free: 11.14 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.3635, allocations: 0 / 1.067 GB, free: 11.14 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 1.653e-06/0.3635, allocations: 0 / 1.067 GB, free: 11.14 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004989/0.364, allocations: 0.5435 MB / 1.068 GB, free: 10.59 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006596/0.3647, allocations: 0.5177 MB / 1.069 GB, free: 10.05 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003551/0.365, allocations: 0.7677 MB / 1.069 GB, free: 9.254 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.0001032/0.3652, allocations: 54.25 kB / 1.069 GB, free: 9.199 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.364e-05/0.3652, allocations: 23.42 kB / 1.069 GB, free: 9.176 MB / 0.8262 GB Notification: Performance of SimCode: time 2.2e-07/0.3652, allocations: 0 / 1.069 GB, free: 9.176 MB / 0.8262 GB Notification: Performance of Templates: time 0.004699/0.3699, allocations: 1.549 MB / 1.071 GB, free: 7.641 MB / 0.8262 GB make -j1 -f Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex.makefile (rm -f Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex.pipe ; mkfifo Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex.pipe ; head -c 1048576 < Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex.pipe >> ../files/Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex.sim & ./Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex.pipe 2>&1)