Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex.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.0009576/0.0009576, 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.0009825/0.0009825, 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.9287/0.9287, allocations: 177.1 MB / 204.2 MB, free: 5.617 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.839/1.839, allocations: 377.8 MB / 0.6236 GB, free: 8.539 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.FirstTrueIndex,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|idxFirTru.y|idxFirTruAllFal.y",fileNamePrefix="Buildings_12_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex") translateModel(Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|idxFirTru.y|idxFirTruAllFal.y",fileNamePrefix="Buildings_12_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.724e-06/1.724e-06, allocations: 0 / 0.8115 GB, free: 1.746 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.954e-05/2.126e-05, allocations: 6.25 kB / 0.8115 GB, free: 1.738 MB / 0.7605 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex): time 0.001955/0.001977, allocations: 0.8816 MB / 0.8124 GB, free: 0.875 MB / 0.7605 GB Notification: Performance of NFInst.instExpressions: time 0.0003023/0.002279, allocations: 91.62 kB / 0.8125 GB, free: 0.7852 MB / 0.7605 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.612e-05/0.002365, allocations: 4.844 kB / 0.8125 GB, free: 0.7812 MB / 0.7605 GB Notification: Performance of NFTyping.typeComponents: time 0.0001393/0.002504, allocations: 23.73 kB / 0.8125 GB, free: 0.7578 MB / 0.7605 GB Notification: Performance of NFTyping.typeBindings: time 0.0001524/0.002657, allocations: 15.86 kB / 0.8125 GB, free: 0.7422 MB / 0.7605 GB Notification: Performance of NFTyping.typeClassSections: time 8.955e-05/0.002746, allocations: 44.52 kB / 0.8126 GB, free: 0.6992 MB / 0.7605 GB Notification: Performance of NFFlatten.flatten: time 0.0002936/0.00304, allocations: 260.1 kB / 0.8128 GB, free: 456 kB / 0.7605 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002885/0.003328, allocations: 166.8 kB / 0.813 GB, free: 284 kB / 0.7605 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002925/0.003621, allocations: 228.4 kB / 0.8132 GB, free: 56 kB / 0.7605 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001446/0.003765, allocations: 103.7 kB / 0.8133 GB, free: 15.95 MB / 0.7761 GB Notification: Performance of NFPackage.collectConstants: time 5.842e-05/0.003824, allocations: 28.66 kB / 0.8133 GB, free: 15.93 MB / 0.7761 GB Notification: Performance of NFFlatten.collectFunctions: time 4.074e-05/0.003865, allocations: 28 kB / 0.8133 GB, free: 15.9 MB / 0.7761 GB Notification: Performance of NFScalarize.scalarize: time 8.164e-05/0.003946, allocations: 81.27 kB / 0.8134 GB, free: 15.82 MB / 0.7761 GB Notification: Performance of NFVerifyModel.verify: time 9.629e-05/0.004042, allocations: 83.75 kB / 0.8135 GB, free: 15.74 MB / 0.7761 GB Notification: Performance of NFConvertDAE.convert: time 0.0002981/0.004341, allocations: 255 kB / 0.8137 GB, free: 15.49 MB / 0.7761 GB Notification: Performance of FrontEnd - DAE generated: time 2.264e-06/0.004343, allocations: 0 / 0.8137 GB, free: 15.49 MB / 0.7761 GB Notification: Performance of FrontEnd: time 5.61e-07/0.004343, allocations: 1.531 kB / 0.8137 GB, free: 15.49 MB / 0.7761 GB Notification: Performance of Transformations before backend: time 5.079e-06/0.004349, allocations: 0 / 0.8137 GB, free: 15.49 MB / 0.7761 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 82 * Number of variables: 82 Notification: Performance of Generate backend data structure: time 0.0006246/0.004973, allocations: 0.6284 MB / 0.8144 GB, free: 14.82 MB / 0.7761 GB Notification: Performance of prepare preOptimizeDAE: time 3.673e-05/0.00501, allocations: 8.031 kB / 0.8144 GB, free: 14.81 MB / 0.7761 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001052/0.005115, allocations: 69.95 kB / 0.8144 GB, free: 14.75 MB / 0.7761 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003384/0.005453, allocations: 260.7 kB / 0.8147 GB, free: 14.46 MB / 0.7761 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.285e-05/0.005506, allocations: 37.89 kB / 0.8147 GB, free: 14.43 MB / 0.7761 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.948e-05/0.005546, allocations: 32.38 kB / 0.8147 GB, free: 14.4 MB / 0.7761 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004657/0.006011, allocations: 278.7 kB / 0.815 GB, free: 14.11 MB / 0.7761 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.435e-05/0.006026, allocations: 5.219 kB / 0.815 GB, free: 14.11 MB / 0.7761 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.569e-05/0.006052, allocations: 8.375 kB / 0.815 GB, free: 14.1 MB / 0.7761 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.324e-05/0.006065, allocations: 8.375 kB / 0.815 GB, free: 14.09 MB / 0.7761 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002623/0.006327, allocations: 120 kB / 0.8152 GB, free: 13.97 MB / 0.7761 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001134/0.007461, allocations: 0.8956 MB / 0.816 GB, free: 13.04 MB / 0.7761 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001088/0.00757, allocations: 74.8 kB / 0.8161 GB, free: 12.94 MB / 0.7761 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.166e-05/0.007601, allocations: 31.55 kB / 0.8161 GB, free: 12.9 MB / 0.7761 GB Notification: Performance of preOpt evalFunc (simulation): time 1.767e-05/0.007619, allocations: 4.609 kB / 0.8161 GB, free: 12.89 MB / 0.7761 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.081e-05/0.00764, allocations: 37.39 kB / 0.8162 GB, free: 12.85 MB / 0.7761 GB Notification: Performance of pre-optimization done (n=6): time 1.122e-06/0.007641, allocations: 1.312 kB / 0.8162 GB, free: 12.85 MB / 0.7761 GB Notification: Performance of matching and sorting (n=6): time 0.0001774/0.007818, allocations: 85.52 kB / 0.8162 GB, free: 12.76 MB / 0.7761 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.967e-05/0.007848, allocations: 77.11 kB / 0.8163 GB, free: 12.66 MB / 0.7761 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002288/0.008077, allocations: 389.8 kB / 0.8167 GB, free: 12.27 MB / 0.7761 GB Notification: Performance of collectPreVariables (initialization): time 1.075e-05/0.008088, allocations: 25.7 kB / 0.8167 GB, free: 12.24 MB / 0.7761 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001072/0.008195, allocations: 271.1 kB / 0.817 GB, free: 11.97 MB / 0.7761 GB Notification: Performance of collectInitialBindings (initialization): time 1.165e-05/0.008206, allocations: 15.89 kB / 0.817 GB, free: 11.96 MB / 0.7761 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.447e-05/0.008281, allocations: 95.27 kB / 0.8171 GB, free: 11.86 MB / 0.7761 GB Notification: Performance of setup shared object (initialization): time 0.0001197/0.008401, allocations: 0.5208 MB / 0.8176 GB, free: 11.32 MB / 0.7761 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.847e-05/0.008439, allocations: 19.91 kB / 0.8176 GB, free: 11.3 MB / 0.7761 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.008e-05/0.008489, allocations: 47.34 kB / 0.8177 GB, free: 11.25 MB / 0.7761 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.082e-05/0.00856, allocations: 75.8 kB / 0.8177 GB, free: 11.17 MB / 0.7761 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.914e-06/0.008562, allocations: 0.5625 kB / 0.8177 GB, free: 11.17 MB / 0.7761 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0001278/0.00869, allocations: 125.5 kB / 0.8178 GB, free: 11.04 MB / 0.7761 GB Notification: Performance of prepare postOptimizeDAE: time 1.173e-05/0.008701, allocations: 7.875 kB / 0.8179 GB, free: 11.04 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.318e-06/0.008706, allocations: 0 / 0.8179 GB, free: 11.04 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.156e-05/0.008717, allocations: 0 / 0.8179 GB, free: 11.04 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.726e-05/0.008804, allocations: 32.64 kB / 0.8179 GB, free: 11 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.259e-06/0.00881, allocations: 4 kB / 0.8179 GB, free: 11 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.05e-05/0.00884, allocations: 20.36 kB / 0.8179 GB, free: 10.98 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.122e-05/0.008851, allocations: 10.05 kB / 0.8179 GB, free: 10.97 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: 18 (idxFirTru.booToInt[1].y,idxFirTru.booToInt[2].y,idxFirTru.booToInt[3].y,idxFirTru.booToInt[4].y,idxFirTru.booToInt[5].y,idxFirTru.booToInt[6].y,idxFirTru.intEqu.y,idxFirTru.mulMin.y,idxFirTru.y,idxFirTruAllFal.booToInt[1].y,idxFirTruAllFal.booToInt[2].y,idxFirTruAllFal.booToInt[3].y,idxFirTruAllFal.booToInt[4].y,idxFirTruAllFal.booToInt[5].y,idxFirTruAllFal.booToInt[6].y,idxFirTruAllFal.intEqu.y,idxFirTruAllFal.mulMin.y,idxFirTruAllFal.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (18): * Single equations (assignments): 18 * 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 8.474e-05/0.008936, allocations: 174.5 kB / 0.8181 GB, free: 10.79 MB / 0.7761 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.162e-05/0.008968, allocations: 19.86 kB / 0.8181 GB, free: 10.77 MB / 0.7761 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001171/0.009085, allocations: 103.6 kB / 0.8182 GB, free: 10.66 MB / 0.7761 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.283e-06/0.009086, allocations: 0 / 0.8182 GB, free: 10.66 MB / 0.7761 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.925e-06/0.009089, allocations: 1.5 kB / 0.8182 GB, free: 10.66 MB / 0.7761 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.234e-06/0.009091, allocations: 0 / 0.8182 GB, free: 10.66 MB / 0.7761 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003321/0.009423, allocations: 0.7218 MB / 0.8189 GB, free: 9.883 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.312e-06/0.009425, allocations: 0 / 0.8189 GB, free: 9.883 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.168e-05/0.009436, allocations: 4 kB / 0.8189 GB, free: 9.879 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.245e-06/0.009439, allocations: 0.9375 kB / 0.8189 GB, free: 9.879 MB / 0.7761 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.683e-06/0.009445, allocations: 8 kB / 0.8189 GB, free: 9.871 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.737e-06/0.009449, allocations: 9.203 kB / 0.8189 GB, free: 9.863 MB / 0.7761 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.31e-07/0.00945, allocations: 0 / 0.8189 GB, free: 9.863 MB / 0.7761 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.804e-05/0.009528, allocations: 131.3 kB / 0.8191 GB, free: 9.699 MB / 0.7761 GB Notification: Performance of postOpt removeConstants (simulation): time 1.77e-05/0.009546, allocations: 24.83 kB / 0.8191 GB, free: 9.676 MB / 0.7761 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.309e-05/0.009559, allocations: 0 / 0.8191 GB, free: 9.676 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.951e-05/0.009578, allocations: 10.25 kB / 0.8191 GB, free: 9.668 MB / 0.7761 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.842e-05/0.009597, allocations: 12.34 kB / 0.8191 GB, free: 9.656 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.894e-06/0.009598, allocations: 0 / 0.8191 GB, free: 9.656 MB / 0.7761 GB Notification: Performance of sorting global known variables: time 0.0001127/0.009711, allocations: 221.1 kB / 0.8193 GB, free: 9.438 MB / 0.7761 GB Notification: Performance of sort global known variables: time 5e-08/0.009711, allocations: 0 / 0.8193 GB, free: 9.438 MB / 0.7761 GB Notification: Performance of remove unused functions: time 0.0001529/0.009864, allocations: 47.78 kB / 0.8194 GB, free: 9.391 MB / 0.7761 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 4 (idxFirTru.y,idxFirTru.intEqu.y,idxFirTruAllFal.y,idxFirTruAllFal.intEqu.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 4 * 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 6.512e-05/0.009929, allocations: 114.6 kB / 0.8195 GB, free: 9.27 MB / 0.7761 GB Notification: Performance of simCode: created initialization part: time 0.0001111/0.01004, allocations: 67.58 kB / 0.8195 GB, free: 9.199 MB / 0.7761 GB Notification: Performance of simCode: created event and clocks part: time 1.573e-06/0.01004, allocations: 0 / 0.8195 GB, free: 9.199 MB / 0.7761 GB Notification: Performance of simCode: created simulation system equations: time 1.751e-05/0.01006, allocations: 23.61 kB / 0.8196 GB, free: 9.172 MB / 0.7761 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001492/0.01021, allocations: 25.02 kB / 0.8196 GB, free: 9.148 MB / 0.7761 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004156/0.01062, allocations: 454.7 kB / 0.82 GB, free: 8.66 MB / 0.7761 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.393e-05/0.01067, allocations: 87.95 kB / 0.8201 GB, free: 8.555 MB / 0.7761 GB Notification: Performance of simCode: alias equations: time 4.879e-05/0.01072, allocations: 33.61 kB / 0.8201 GB, free: 8.52 MB / 0.7761 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.003e-05/0.01075, allocations: 17 kB / 0.8201 GB, free: 8.504 MB / 0.7761 GB Notification: Performance of SimCode: time 3.91e-07/0.01075, allocations: 1.125 kB / 0.8201 GB, free: 8.504 MB / 0.7761 GB Notification: Performance of Templates: time 0.003247/0.01399, allocations: 1.249 MB / 0.8214 GB, free: 7.301 MB / 0.7761 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex.pipe ; mkfifo Buildings_12_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex.pipe ; head -c 1048576 < Buildings_12_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex.pipe >> ../files/Buildings_12_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex.sim & ./Buildings_12_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_12_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Templates_Plants_Controls_Utilities_Validation_FirstTrueIndex.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: 4.97759196581319]