Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.00144/0.00144, allocations: 71.75 kB / 20.97 MB, free: 3.582 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001531/0.001531, allocations: 169.3 kB / 24.28 MB, free: 284 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.002/1.002, allocations: 177.1 MB / 204.6 MB, free: 5.645 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo): time 1.877/1.877, allocations: 377.8 MB / 0.6239 GB, free: 8.574 MB / 0.5886 GB " [Timeout remaining time 178] Using package Buildings with version 12.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|idxLasTru.y|idxLasTruAllFal.y",fileNamePrefix="Buildings_12_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex") translateModel(Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|idxLasTru.y|idxLasTruAllFal.y",fileNamePrefix="Buildings_12_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 2.715e-06/2.715e-06, allocations: 0.9844 kB / 0.8115 GB, free: 0.9688 MB / 0.7136 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.927e-05/3.198e-05, allocations: 2.312 kB / 0.8115 GB, free: 0.9648 MB / 0.7136 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex): time 0.002096/0.002128, allocations: 0.7326 MB / 0.8122 GB, free: 260 kB / 0.7136 GB Notification: Performance of NFInst.instExpressions: time 0.0002484/0.002376, allocations: 49.16 kB / 0.8123 GB, free: 212 kB / 0.7136 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.791e-05/0.002464, allocations: 4 kB / 0.8123 GB, free: 208 kB / 0.7136 GB Notification: Performance of NFTyping.typeComponents: time 0.0001317/0.002596, allocations: 13.7 kB / 0.8123 GB, free: 196 kB / 0.7136 GB Notification: Performance of NFTyping.typeBindings: time 0.0001415/0.002737, allocations: 16.52 kB / 0.8123 GB, free: 180 kB / 0.7136 GB Notification: Performance of NFTyping.typeClassSections: time 6.235e-05/0.002799, allocations: 19.98 kB / 0.8123 GB, free: 160 kB / 0.7136 GB Notification: Performance of NFFlatten.flatten: time 0.0002447/0.003044, allocations: 183.5 kB / 0.8125 GB, free: 15.98 MB / 0.7292 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002857/0.00333, allocations: 143 kB / 0.8126 GB, free: 15.84 MB / 0.7292 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001411/0.003471, allocations: 145.3 kB / 0.8128 GB, free: 15.7 MB / 0.7292 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001356/0.003607, allocations: 103.7 kB / 0.8129 GB, free: 15.59 MB / 0.7292 GB Notification: Performance of NFPackage.collectConstants: time 0.0001857/0.003792, allocations: 24 kB / 0.8129 GB, free: 15.57 MB / 0.7292 GB Notification: Performance of NFFlatten.collectFunctions: time 3.585e-05/0.003828, allocations: 24 kB / 0.8129 GB, free: 15.55 MB / 0.7292 GB Notification: Performance of NFScalarize.scalarize: time 7.833e-05/0.003906, allocations: 76.47 kB / 0.813 GB, free: 15.47 MB / 0.7292 GB Notification: Performance of NFVerifyModel.verify: time 8.756e-05/0.003994, allocations: 71.77 kB / 0.8131 GB, free: 15.4 MB / 0.7292 GB Notification: Performance of NFConvertDAE.convert: time 0.0002811/0.004275, allocations: 236.1 kB / 0.8133 GB, free: 15.17 MB / 0.7292 GB Notification: Performance of FrontEnd - DAE generated: time 2.796e-06/0.004278, allocations: 3.938 kB / 0.8133 GB, free: 15.17 MB / 0.7292 GB Notification: Performance of FrontEnd: time 7.61e-07/0.004279, allocations: 0 / 0.8133 GB, free: 15.17 MB / 0.7292 GB Notification: Performance of Transformations before backend: time 5.18e-06/0.004284, allocations: 0.5625 kB / 0.8133 GB, free: 15.17 MB / 0.7292 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.0006049/0.004889, allocations: 0.5855 MB / 0.8139 GB, free: 14.54 MB / 0.7292 GB Notification: Performance of prepare preOptimizeDAE: time 4.136e-05/0.00493, allocations: 9.344 kB / 0.8139 GB, free: 14.54 MB / 0.7292 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.987e-05/0.00503, allocations: 56.7 kB / 0.8139 GB, free: 14.48 MB / 0.7292 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003692/0.005399, allocations: 262.7 kB / 0.8142 GB, free: 14.2 MB / 0.7292 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.914e-05/0.005448, allocations: 29.03 kB / 0.8142 GB, free: 14.16 MB / 0.7292 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.631e-05/0.005485, allocations: 24.38 kB / 0.8142 GB, free: 14.14 MB / 0.7292 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003906/0.005875, allocations: 240 kB / 0.8144 GB, free: 13.89 MB / 0.7292 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.208e-05/0.005887, allocations: 192 / 0.8144 GB, free: 13.89 MB / 0.7292 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.616e-05/0.005914, allocations: 12.38 kB / 0.8145 GB, free: 13.88 MB / 0.7292 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.285e-05/0.005926, allocations: 4.375 kB / 0.8145 GB, free: 13.88 MB / 0.7292 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002185/0.006145, allocations: 94.47 kB / 0.8146 GB, free: 13.79 MB / 0.7292 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001001/0.007146, allocations: 0.7839 MB / 0.8153 GB, free: 12.96 MB / 0.7292 GB Notification: Performance of preOpt comSubExp (simulation): time 6.924e-05/0.007215, allocations: 62.06 kB / 0.8154 GB, free: 12.88 MB / 0.7292 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.932e-05/0.007244, allocations: 20.84 kB / 0.8154 GB, free: 12.85 MB / 0.7292 GB Notification: Performance of preOpt evalFunc (simulation): time 2.285e-05/0.007267, allocations: 3.984 kB / 0.8154 GB, free: 12.84 MB / 0.7292 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.714e-05/0.007294, allocations: 37.38 kB / 0.8154 GB, free: 12.8 MB / 0.7292 GB Notification: Performance of pre-optimization done (n=2): time 1.462e-06/0.007296, allocations: 0 / 0.8154 GB, free: 12.8 MB / 0.7292 GB Notification: Performance of matching and sorting (n=2): time 0.0002119/0.007508, allocations: 67.95 kB / 0.8155 GB, free: 12.73 MB / 0.7292 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.192e-05/0.00755, allocations: 77.11 kB / 0.8156 GB, free: 12.63 MB / 0.7292 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003492/0.007899, allocations: 372.1 kB / 0.8159 GB, free: 12.25 MB / 0.7292 GB Notification: Performance of collectPreVariables (initialization): time 1.644e-05/0.007915, allocations: 25.7 kB / 0.816 GB, free: 12.22 MB / 0.7292 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001466/0.008062, allocations: 246.9 kB / 0.8162 GB, free: 11.98 MB / 0.7292 GB Notification: Performance of collectInitialBindings (initialization): time 9.517e-06/0.008071, allocations: 6.172 kB / 0.8162 GB, free: 11.97 MB / 0.7292 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001037/0.008175, allocations: 87.33 kB / 0.8163 GB, free: 11.88 MB / 0.7292 GB Notification: Performance of setup shared object (initialization): time 0.0004086/0.008584, allocations: 0.504 MB / 0.8168 GB, free: 11.36 MB / 0.7292 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.829e-05/0.008632, allocations: 15.98 kB / 0.8168 GB, free: 11.35 MB / 0.7292 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.802e-05/0.0087, allocations: 51.3 kB / 0.8168 GB, free: 11.29 MB / 0.7292 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.956e-05/0.008789, allocations: 51.36 kB / 0.8169 GB, free: 11.23 MB / 0.7292 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.258e-06/0.008794, allocations: 4.5 kB / 0.8169 GB, free: 11.23 MB / 0.7292 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001775/0.008971, allocations: 118.2 kB / 0.817 GB, free: 11.11 MB / 0.7292 GB Notification: Performance of prepare postOptimizeDAE: time 1.557e-05/0.008987, allocations: 6.031 kB / 0.817 GB, free: 11.1 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.29e-06/0.008992, allocations: 8.469 kB / 0.817 GB, free: 11.09 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.72e-05/0.009009, allocations: 5.594 kB / 0.817 GB, free: 11.09 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001194/0.009129, allocations: 23.98 kB / 0.817 GB, free: 11.07 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.041e-06/0.009135, allocations: 0 / 0.817 GB, free: 11.07 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.8e-05/0.009183, allocations: 19.89 kB / 0.8171 GB, free: 11.05 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.438e-05/0.009197, allocations: 4 kB / 0.8171 GB, free: 11.04 MB / 0.7292 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.0001188/0.009316, allocations: 174 kB / 0.8172 GB, free: 10.86 MB / 0.7292 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.294e-05/0.009369, allocations: 20.88 kB / 0.8173 GB, free: 10.84 MB / 0.7292 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001629/0.009532, allocations: 196.9 kB / 0.8174 GB, free: 10.64 MB / 0.7292 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.446e-05/0.009606, allocations: 276 kB / 0.8177 GB, free: 10.36 MB / 0.7292 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.949e-05/0.009686, allocations: 268.9 kB / 0.818 GB, free: 10.09 MB / 0.7292 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.281e-05/0.009758, allocations: 268.1 kB / 0.8182 GB, free: 9.82 MB / 0.7292 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003542/0.01011, allocations: 0.6068 MB / 0.8188 GB, free: 9.172 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.293e-05/0.01016, allocations: 144.9 kB / 0.8189 GB, free: 9.023 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.625e-05/0.0102, allocations: 156.8 kB / 0.8191 GB, free: 8.863 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.634e-05/0.01028, allocations: 268.1 kB / 0.8194 GB, free: 8.594 MB / 0.7292 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.092e-05/0.01036, allocations: 273 kB / 0.8196 GB, free: 8.32 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.137e-05/0.01043, allocations: 264.1 kB / 0.8199 GB, free: 8.055 MB / 0.7292 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.993e-05/0.0105, allocations: 272 kB / 0.8201 GB, free: 7.781 MB / 0.7292 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001596/0.01066, allocations: 462 kB / 0.8206 GB, free: 7.305 MB / 0.7292 GB Notification: Performance of postOpt removeConstants (simulation): time 6.626e-05/0.01073, allocations: 164.7 kB / 0.8207 GB, free: 7.137 MB / 0.7292 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.458e-05/0.01082, allocations: 272.1 kB / 0.821 GB, free: 6.863 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.685e-05/0.01092, allocations: 144.9 kB / 0.8211 GB, free: 6.715 MB / 0.7292 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.623e-05/0.011, allocations: 276 kB / 0.8214 GB, free: 6.438 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.044e-05/0.01104, allocations: 147.1 kB / 0.8215 GB, free: 6.289 MB / 0.7292 GB Notification: Performance of sorting global known variables: time 0.0001881/0.01123, allocations: 217.1 kB / 0.8217 GB, free: 6.078 MB / 0.7292 GB Notification: Performance of sort global known variables: time 8.1e-08/0.01123, allocations: 0 / 0.8217 GB, free: 6.078 MB / 0.7292 GB Notification: Performance of remove unused functions: time 0.000302/0.01153, allocations: 43.8 kB / 0.8218 GB, free: 6.035 MB / 0.7292 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.0001259/0.01166, allocations: 222.4 kB / 0.822 GB, free: 5.805 MB / 0.7292 GB Notification: Performance of simCode: created initialization part: time 0.0001412/0.0118, allocations: 48.11 kB / 0.822 GB, free: 5.754 MB / 0.7292 GB Notification: Performance of simCode: created event and clocks part: time 3.196e-06/0.0118, allocations: 5.062 kB / 0.822 GB, free: 5.75 MB / 0.7292 GB Notification: Performance of simCode: created simulation system equations: time 1.873e-06/0.01181, allocations: 336 / 0.822 GB, free: 5.75 MB / 0.7292 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005206/0.01233, allocations: 0.7255 MB / 0.8227 GB, free: 5.023 MB / 0.7292 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005695/0.0129, allocations: 498.3 kB / 0.8232 GB, free: 4.512 MB / 0.7292 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.39e-05/0.01296, allocations: 79.81 kB / 0.8233 GB, free: 4.414 MB / 0.7292 GB Notification: Performance of simCode: alias equations: time 7.046e-05/0.01303, allocations: 31.14 kB / 0.8233 GB, free: 4.383 MB / 0.7292 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.658e-05/0.01307, allocations: 20.44 kB / 0.8233 GB, free: 4.363 MB / 0.7292 GB Notification: Performance of SimCode: time 5.21e-07/0.01307, allocations: 0 / 0.8233 GB, free: 4.363 MB / 0.7292 GB Notification: Performance of Templates: time 0.003241/0.01631, allocations: 1.079 MB / 0.8244 GB, free: 3.328 MB / 0.7292 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex.pipe ; mkfifo Buildings_12_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex.pipe ; head -c 1048576 < Buildings_12_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex.pipe >> ../files/Buildings_12_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex.sim & ./Buildings_12_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_12_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Templates_Plants_Controls_Utilities_Validation_LastTrueIndex.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 5.052792846923694]