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.001071/0.001071, allocations: 87.58 kB / 20.45 MB, free: 4.121 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.001085/0.001085, allocations: 161 kB / 23.82 MB, free: 0.7539 MB / 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 0.985/0.985, allocations: 177.1 MB / 204.2 MB, free: 5.391 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.854/1.854, allocations: 377.8 MB / 0.6236 GB, free: 8.59 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 3.116e-06/3.116e-06, allocations: 0 / 0.8115 GB, free: 1.789 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 3.173e-05/3.485e-05, allocations: 3.188 kB / 0.8115 GB, free: 1.785 MB / 0.7605 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex): time 0.002031/0.002065, allocations: 0.7362 MB / 0.8122 GB, free: 1.07 MB / 0.7605 GB Notification: Performance of NFInst.instExpressions: time 0.0002508/0.002316, allocations: 43.84 kB / 0.8123 GB, free: 1.027 MB / 0.7605 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.828e-05/0.002395, allocations: 4.656 kB / 0.8123 GB, free: 1.023 MB / 0.7605 GB Notification: Performance of NFTyping.typeComponents: time 0.0001319/0.002526, allocations: 15.86 kB / 0.8123 GB, free: 1.008 MB / 0.7605 GB Notification: Performance of NFTyping.typeBindings: time 0.0001356/0.002662, allocations: 17.11 kB / 0.8123 GB, free: 0.9922 MB / 0.7605 GB Notification: Performance of NFTyping.typeClassSections: time 6.299e-05/0.002725, allocations: 19.98 kB / 0.8123 GB, free: 0.9727 MB / 0.7605 GB Notification: Performance of NFFlatten.flatten: time 0.0002334/0.002958, allocations: 183.5 kB / 0.8125 GB, free: 0.793 MB / 0.7605 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000252/0.00321, allocations: 145.8 kB / 0.8127 GB, free: 0.6484 MB / 0.7605 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002312/0.003442, allocations: 167.7 kB / 0.8128 GB, free: 496 kB / 0.7605 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001189/0.00356, allocations: 90.19 kB / 0.8129 GB, free: 408 kB / 0.7605 GB Notification: Performance of NFPackage.collectConstants: time 4.964e-05/0.00361, allocations: 20 kB / 0.8129 GB, free: 388 kB / 0.7605 GB Notification: Performance of NFFlatten.collectFunctions: time 3.283e-05/0.003643, allocations: 20 kB / 0.8129 GB, free: 368 kB / 0.7605 GB Notification: Performance of NFScalarize.scalarize: time 6.937e-05/0.003712, allocations: 67.77 kB / 0.813 GB, free: 300 kB / 0.7605 GB Notification: Performance of NFVerifyModel.verify: time 8.092e-05/0.003793, allocations: 67.77 kB / 0.8131 GB, free: 232 kB / 0.7605 GB Notification: Performance of NFConvertDAE.convert: time 0.000254/0.004047, allocations: 211.1 kB / 0.8133 GB, free: 20 kB / 0.7605 GB Notification: Performance of FrontEnd - DAE generated: time 4.038e-06/0.004051, allocations: 5.156 kB / 0.8133 GB, free: 16 kB / 0.7605 GB Notification: Performance of FrontEnd: time 9.42e-07/0.004052, allocations: 0 / 0.8133 GB, free: 16 kB / 0.7605 GB Notification: Performance of Transformations before backend: time 6.262e-06/0.004058, allocations: 0 / 0.8133 GB, free: 16 kB / 0.7605 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.0005901/0.004649, allocations: 0.575 MB / 0.8138 GB, free: 15.4 MB / 0.7761 GB Notification: Performance of prepare preOptimizeDAE: time 3.493e-05/0.004684, allocations: 12.03 kB / 0.8138 GB, free: 15.39 MB / 0.7761 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.976e-05/0.004763, allocations: 60.7 kB / 0.8139 GB, free: 15.33 MB / 0.7761 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002619/0.005025, allocations: 253.8 kB / 0.8141 GB, free: 15.05 MB / 0.7761 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.187e-05/0.005067, allocations: 30.06 kB / 0.8142 GB, free: 15.03 MB / 0.7761 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.212e-05/0.005089, allocations: 24.38 kB / 0.8142 GB, free: 15 MB / 0.7761 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002929/0.005382, allocations: 238.7 kB / 0.8144 GB, free: 14.75 MB / 0.7761 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.034e-05/0.005392, allocations: 1.625 kB / 0.8144 GB, free: 14.75 MB / 0.7761 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.97e-05/0.005412, allocations: 12.38 kB / 0.8144 GB, free: 14.74 MB / 0.7761 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.032e-05/0.005422, allocations: 4.375 kB / 0.8144 GB, free: 14.73 MB / 0.7761 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001362/0.005559, allocations: 94.81 kB / 0.8145 GB, free: 14.64 MB / 0.7761 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008549/0.006413, allocations: 0.7839 MB / 0.8153 GB, free: 13.82 MB / 0.7761 GB Notification: Performance of preOpt comSubExp (simulation): time 6.829e-05/0.006482, allocations: 62.12 kB / 0.8154 GB, free: 13.73 MB / 0.7761 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.493e-05/0.006507, allocations: 19.31 kB / 0.8154 GB, free: 13.71 MB / 0.7761 GB Notification: Performance of preOpt evalFunc (simulation): time 1.987e-05/0.006527, allocations: 4.062 kB / 0.8154 GB, free: 13.7 MB / 0.7761 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.404e-05/0.006551, allocations: 34.98 kB / 0.8154 GB, free: 13.66 MB / 0.7761 GB Notification: Performance of pre-optimization done (n=2): time 1.633e-06/0.006552, allocations: 0 / 0.8154 GB, free: 13.66 MB / 0.7761 GB Notification: Performance of matching and sorting (n=2): time 0.0001916/0.006744, allocations: 69.47 kB / 0.8155 GB, free: 13.59 MB / 0.7761 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.477e-05/0.006779, allocations: 78.11 kB / 0.8156 GB, free: 13.49 MB / 0.7761 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002472/0.007026, allocations: 376 kB / 0.8159 GB, free: 13.11 MB / 0.7761 GB Notification: Performance of collectPreVariables (initialization): time 9.528e-06/0.007035, allocations: 26.23 kB / 0.8159 GB, free: 13.08 MB / 0.7761 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001077/0.007143, allocations: 250.9 kB / 0.8162 GB, free: 12.83 MB / 0.7761 GB Notification: Performance of collectInitialBindings (initialization): time 7.384e-06/0.00715, allocations: 4.531 kB / 0.8162 GB, free: 12.83 MB / 0.7761 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.777e-05/0.007228, allocations: 84.36 kB / 0.8163 GB, free: 12.74 MB / 0.7761 GB Notification: Performance of setup shared object (initialization): time 0.0001343/0.007362, allocations: 0.5079 MB / 0.8168 GB, free: 12.22 MB / 0.7761 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.51e-05/0.007397, allocations: 15.94 kB / 0.8168 GB, free: 12.2 MB / 0.7761 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.467e-05/0.007442, allocations: 47.97 kB / 0.8168 GB, free: 12.15 MB / 0.7761 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.674e-05/0.007509, allocations: 51.91 kB / 0.8169 GB, free: 12.09 MB / 0.7761 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.214e-06/0.007511, allocations: 0 / 0.8169 GB, free: 12.09 MB / 0.7761 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001238/0.007635, allocations: 118.9 kB / 0.817 GB, free: 11.97 MB / 0.7761 GB Notification: Performance of prepare postOptimizeDAE: time 1.304e-05/0.007648, allocations: 4 kB / 0.817 GB, free: 11.96 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.52e-06/0.007654, allocations: 4 kB / 0.817 GB, free: 11.96 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.724e-05/0.007671, allocations: 4.781 kB / 0.817 GB, free: 11.96 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.409e-05/0.007765, allocations: 20 kB / 0.817 GB, free: 11.94 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.041e-06/0.007771, allocations: 3.984 kB / 0.817 GB, free: 11.93 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.327e-05/0.007804, allocations: 16.73 kB / 0.817 GB, free: 11.92 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.345e-05/0.007818, allocations: 11.94 kB / 0.817 GB, free: 11.91 MB / 0.7761 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 9.694e-05/0.007915, allocations: 165.6 kB / 0.8172 GB, free: 11.73 MB / 0.7761 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.352e-05/0.007948, allocations: 20.75 kB / 0.8172 GB, free: 11.71 MB / 0.7761 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001411/0.008089, allocations: 193 kB / 0.8174 GB, free: 11.52 MB / 0.7761 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.349e-05/0.008153, allocations: 276.9 kB / 0.8177 GB, free: 11.24 MB / 0.7761 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.918e-05/0.008212, allocations: 268.1 kB / 0.8179 GB, free: 10.97 MB / 0.7761 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.14e-05/0.008273, allocations: 269.5 kB / 0.8182 GB, free: 10.7 MB / 0.7761 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002833/0.008557, allocations: 0.6092 MB / 0.8188 GB, free: 10.05 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.634e-05/0.008593, allocations: 144.9 kB / 0.8189 GB, free: 9.898 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.429e-05/0.008637, allocations: 152.8 kB / 0.8191 GB, free: 9.742 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.439e-05/0.008702, allocations: 273.3 kB / 0.8193 GB, free: 9.469 MB / 0.7761 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.573e-05/0.008767, allocations: 268 kB / 0.8196 GB, free: 9.199 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.339e-05/0.008821, allocations: 264.1 kB / 0.8198 GB, free: 8.934 MB / 0.7761 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.85e-05/0.008879, allocations: 280 kB / 0.8201 GB, free: 8.652 MB / 0.7761 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001475/0.009027, allocations: 463 kB / 0.8205 GB, free: 8.176 MB / 0.7761 GB Notification: Performance of postOpt removeConstants (simulation): time 4.996e-05/0.009077, allocations: 164.7 kB / 0.8207 GB, free: 8.008 MB / 0.7761 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.027e-05/0.009147, allocations: 268.1 kB / 0.821 GB, free: 7.738 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.73e-05/0.009214, allocations: 152.8 kB / 0.8211 GB, free: 7.582 MB / 0.7761 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.122e-05/0.009275, allocations: 272 kB / 0.8214 GB, free: 7.309 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.058e-05/0.009306, allocations: 148.9 kB / 0.8215 GB, free: 7.156 MB / 0.7761 GB Notification: Performance of sorting global known variables: time 0.0001294/0.009435, allocations: 213.1 kB / 0.8217 GB, free: 6.945 MB / 0.7761 GB Notification: Performance of sort global known variables: time 5e-08/0.009435, allocations: 3.938 kB / 0.8217 GB, free: 6.941 MB / 0.7761 GB Notification: Performance of remove unused functions: time 0.0001836/0.009619, allocations: 44.28 kB / 0.8217 GB, free: 6.898 MB / 0.7761 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.0001135/0.009733, allocations: 219.5 kB / 0.822 GB, free: 6.676 MB / 0.7761 GB Notification: Performance of simCode: created initialization part: time 0.0001167/0.009849, allocations: 48.69 kB / 0.822 GB, free: 6.625 MB / 0.7761 GB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/0.009851, allocations: 0 / 0.822 GB, free: 6.625 MB / 0.7761 GB Notification: Performance of simCode: created simulation system equations: time 1.914e-06/0.009853, allocations: 4.328 kB / 0.822 GB, free: 6.621 MB / 0.7761 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003524/0.01021, allocations: 0.7235 MB / 0.8227 GB, free: 5.895 MB / 0.7761 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004433/0.01065, allocations: 487.7 kB / 0.8232 GB, free: 5.383 MB / 0.7761 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.495e-05/0.01069, allocations: 79.81 kB / 0.8233 GB, free: 5.285 MB / 0.7761 GB Notification: Performance of simCode: alias equations: time 5.135e-05/0.01075, allocations: 34.53 kB / 0.8233 GB, free: 5.254 MB / 0.7761 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.099e-05/0.01078, allocations: 16.5 kB / 0.8233 GB, free: 5.238 MB / 0.7761 GB Notification: Performance of SimCode: time 7.81e-07/0.01078, allocations: 0 / 0.8233 GB, free: 5.238 MB / 0.7761 GB Notification: Performance of Templates: time 0.00328/0.01406, allocations: 1.106 MB / 0.8244 GB, free: 4.176 MB / 0.7761 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.035533143207431]