Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_3.0.0_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_3.0.0_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_3.0.0_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.001268/0.001268, allocations: 108 kB / 15.6 MB, free: 132 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.001416/0.001416, allocations: 194 kB / 16.53 MB, free: 6.391 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.41/1.41, allocations: 222.9 MB / 240.2 MB, free: 4.402 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.839/2.839, allocations: 472.6 MB / 0.7451 GB, free: 4.672 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001263/0.001263, allocations: 60.14 kB / 0.912 GB, free: 33.42 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3472/0.3485, allocations: 159.9 MB / 1.068 GB, free: 10.46 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex): time 0.001965/0.3505, allocations: 0.7177 MB / 1.069 GB, free: 9.746 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.0001926/0.3507, allocations: 47.84 kB / 1.069 GB, free: 9.699 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.336e-05/0.3508, allocations: 7.938 kB / 1.069 GB, free: 9.691 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0001155/0.3509, allocations: 15.86 kB / 1.069 GB, free: 9.676 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0001008/0.351, allocations: 15.92 kB / 1.069 GB, free: 9.66 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 5.077e-05/0.3511, allocations: 19.97 kB / 1.069 GB, free: 9.641 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0001998/0.3513, allocations: 171.6 kB / 1.069 GB, free: 9.473 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003392/0.3517, allocations: 264.9 kB / 1.069 GB, free: 9.211 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 8.305e-05/0.3517, allocations: 95.66 kB / 1.069 GB, free: 9.117 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001238/0.3519, allocations: 115.5 kB / 1.07 GB, free: 9.004 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 4.207e-05/0.3519, allocations: 27.94 kB / 1.07 GB, free: 8.977 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 3.8e-05/0.352, allocations: 28 kB / 1.07 GB, free: 8.949 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 6.85e-05/0.352, allocations: 67.78 kB / 1.07 GB, free: 8.883 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0001244/0.3522, allocations: 131.2 kB / 1.07 GB, free: 8.754 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0002962/0.3525, allocations: 354.9 kB / 1.07 GB, free: 8.406 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.368e-06/0.3525, allocations: 0 / 1.07 GB, free: 8.406 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.512e-06/0.3525, allocations: 0 / 1.07 GB, free: 8.406 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 1.175e-05/0.3525, allocations: 0 / 1.07 GB, free: 8.406 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.0005967/0.3531, allocations: 0.5498 MB / 1.071 GB, free: 7.805 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.32e-05/0.3531, allocations: 8.031 kB / 1.071 GB, free: 7.797 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.016e-05/0.3532, allocations: 32.56 kB / 1.071 GB, free: 7.766 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003462/0.3536, allocations: 309.2 kB / 1.071 GB, free: 7.426 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.347e-05/0.3536, allocations: 28.94 kB / 1.071 GB, free: 7.398 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.509e-05/0.3537, allocations: 32.36 kB / 1.071 GB, free: 7.367 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004558/0.3541, allocations: 343 kB / 1.071 GB, free: 7.023 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.127e-06/0.3541, allocations: 192 / 1.071 GB, free: 7.023 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.241e-05/0.3542, allocations: 15.94 kB / 1.071 GB, free: 7.008 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.626e-06/0.3542, allocations: 8 kB / 1.071 GB, free: 7 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003563/0.3545, allocations: 248.4 kB / 1.072 GB, free: 6.758 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001098/0.3556, allocations: 0.9246 MB / 1.073 GB, free: 5.777 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 8.109e-05/0.3557, allocations: 53.2 kB / 1.073 GB, free: 5.707 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.199e-05/0.3558, allocations: 37.75 kB / 1.073 GB, free: 5.664 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 2.053e-05/0.3558, allocations: 3.938 kB / 1.073 GB, free: 5.66 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.962e-05/0.3559, allocations: 42.5 kB / 1.073 GB, free: 5.609 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=2): time 1.192e-06/0.3559, allocations: 0 / 1.073 GB, free: 5.609 MB / 0.8262 GB Notification: Performance of matching and sorting (n=2): time 0.0002335/0.3561, allocations: 121.3 kB / 1.073 GB, free: 5.484 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.833e-05/0.3561, allocations: 81.11 kB / 1.073 GB, free: 5.387 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004797/0.3566, allocations: 481.6 kB / 1.073 GB, free: 4.91 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.396e-05/0.3567, allocations: 25.7 kB / 1.073 GB, free: 4.879 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001198/0.3568, allocations: 187.5 kB / 1.074 GB, free: 4.691 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 6.712e-06/0.3568, allocations: 0 / 1.074 GB, free: 4.691 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.891e-05/0.3569, allocations: 49.7 kB / 1.074 GB, free: 4.637 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.000117/0.357, allocations: 338.8 kB / 1.074 GB, free: 4.297 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.484e-05/0.3571, allocations: 55.95 kB / 1.074 GB, free: 4.242 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.957e-05/0.3572, allocations: 80.66 kB / 1.074 GB, free: 4.16 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001216/0.3573, allocations: 101.6 kB / 1.074 GB, free: 4.055 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.763e-06/0.3573, allocations: 0 / 1.074 GB, free: 4.055 MB / 0.8262 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002424/0.3576, allocations: 189.2 kB / 1.074 GB, free: 3.863 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.48e-05/0.3576, allocations: 8 kB / 1.074 GB, free: 3.855 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.509e-06/0.3576, allocations: 0 / 1.074 GB, free: 3.855 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.245e-05/0.3576, allocations: 3.984 kB / 1.074 GB, free: 3.852 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001149/0.3577, allocations: 23.94 kB / 1.074 GB, free: 3.828 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.46e-06/0.3577, allocations: 3.938 kB / 1.074 GB, free: 3.824 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.606e-05/0.3578, allocations: 35.59 kB / 1.074 GB, free: 3.789 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.412e-05/0.3578, allocations: 8 kB / 1.074 GB, free: 3.781 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.0001705/0.358, allocations: 197.7 kB / 1.075 GB, free: 3.578 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.874e-05/0.3581, allocations: 27.66 kB / 1.075 GB, free: 3.551 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001593/0.3582, allocations: 156.6 kB / 1.075 GB, free: 3.383 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.837e-05/0.3583, allocations: 184.2 kB / 1.075 GB, free: 3.195 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.195e-05/0.3584, allocations: 192.2 kB / 1.075 GB, free: 3 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.15e-05/0.3584, allocations: 176.3 kB / 1.075 GB, free: 2.82 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00034/0.3588, allocations: 0.5204 MB / 1.076 GB, free: 2.242 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.128e-05/0.3588, allocations: 104.9 kB / 1.076 GB, free: 2.133 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.162e-05/0.3589, allocations: 108.9 kB / 1.076 GB, free: 2.02 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.892e-05/0.3589, allocations: 192.2 kB / 1.076 GB, free: 1.824 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.221e-05/0.359, allocations: 180.3 kB / 1.076 GB, free: 1.641 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.858e-05/0.3591, allocations: 180.2 kB / 1.077 GB, free: 1.457 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.627e-05/0.3591, allocations: 176.3 kB / 1.077 GB, free: 1.277 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001446/0.3593, allocations: 335.7 kB / 1.077 GB, free: 0.9258 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000119/0.3594, allocations: 221.6 kB / 1.077 GB, free: 0.6836 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.533e-05/0.3595, allocations: 188.2 kB / 1.077 GB, free: 0.4922 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001057/0.3596, allocations: 105 kB / 1.078 GB, free: 392 kB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.641e-05/0.3597, allocations: 176.3 kB / 1.078 GB, free: 208 kB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.682e-05/0.3597, allocations: 104.9 kB / 1.078 GB, free: 96 kB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0003679/0.3601, allocations: 367.1 kB / 1.078 GB, free: 15.73 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.51e-07/0.3601, allocations: 0 / 1.078 GB, free: 15.73 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0002512/0.3604, allocations: 28 kB / 1.078 GB, free: 15.71 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.0001199/0.3605, allocations: 174.5 kB / 1.078 GB, free: 15.53 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0001523/0.3606, allocations: 83.8 kB / 1.078 GB, free: 15.45 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.3607, allocations: 4 kB / 1.078 GB, free: 15.45 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 1.402e-06/0.3607, allocations: 0 / 1.078 GB, free: 15.45 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004276/0.3611, allocations: 483.7 kB / 1.079 GB, free: 14.97 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006059/0.3617, allocations: 0.4925 MB / 1.079 GB, free: 14.45 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003851/0.3621, allocations: 0.7714 MB / 1.08 GB, free: 13.65 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 8.705e-05/0.3622, allocations: 54.25 kB / 1.08 GB, free: 13.6 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.234e-05/0.3623, allocations: 23.44 kB / 1.08 GB, free: 13.58 MB / 0.8419 GB Notification: Performance of SimCode: time 4.11e-07/0.3623, allocations: 0 / 1.08 GB, free: 13.58 MB / 0.8419 GB Notification: Performance of Templates: time 0.004443/0.3667, allocations: 1.695 MB / 1.082 GB, free: 11.89 MB / 0.8419 GB make -j1 -f Buildings_3.0.0_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex.makefile (rm -f Buildings_3.0.0_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex.pipe ; mkfifo Buildings_3.0.0_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex.pipe ; head -c 1048576 < Buildings_3.0.0_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex.pipe >> ../files/Buildings_3.0.0_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex.sim & ./Buildings_3.0.0_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_3.0.0_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex.pipe 2>&1)