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.002025/0.002025, allocations: 83.69 kB / 20.23 MB, free: 4.191 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.002037/0.002037, allocations: 157.3 kB / 23.55 MB, free: 0.8789 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 1.603/1.603, allocations: 177.1 MB / 203.9 MB, free: 5.609 MB / 186.7 MB " [Timeout remaining time 178] 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 3.122/3.122, allocations: 377.8 MB / 0.6232 GB, free: 8.52 MB / 0.5886 GB " [Timeout remaining time 176] 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 2.605e-06/2.605e-06, allocations: 0 / 0.8108 GB, free: 2.102 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 3.356e-05/3.617e-05, allocations: 2.875 kB / 0.8108 GB, free: 2.098 MB / 0.7605 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex): time 0.002419/0.002455, allocations: 0.8708 MB / 0.8116 GB, free: 1.246 MB / 0.7605 GB Notification: Performance of NFInst.instExpressions: time 0.0003244/0.002779, allocations: 96.66 kB / 0.8117 GB, free: 1.152 MB / 0.7605 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001111/0.00289, allocations: 4 kB / 0.8117 GB, free: 1.148 MB / 0.7605 GB Notification: Performance of NFTyping.typeComponents: time 0.0001517/0.003042, allocations: 20.58 kB / 0.8118 GB, free: 1.129 MB / 0.7605 GB Notification: Performance of NFTyping.typeBindings: time 0.0001564/0.003198, allocations: 15.86 kB / 0.8118 GB, free: 1.113 MB / 0.7605 GB Notification: Performance of NFTyping.typeClassSections: time 9.867e-05/0.003297, allocations: 39.97 kB / 0.8118 GB, free: 1.074 MB / 0.7605 GB Notification: Performance of NFFlatten.flatten: time 0.0003545/0.003652, allocations: 261.1 kB / 0.8121 GB, free: 0.8203 MB / 0.7605 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003569/0.004009, allocations: 166.9 kB / 0.8122 GB, free: 0.6523 MB / 0.7605 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000242/0.004251, allocations: 195.5 kB / 0.8124 GB, free: 472 kB / 0.7605 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001971/0.004448, allocations: 123.7 kB / 0.8125 GB, free: 348 kB / 0.7605 GB Notification: Performance of NFPackage.collectConstants: time 6.604e-05/0.004514, allocations: 33.53 kB / 0.8126 GB, free: 316 kB / 0.7605 GB Notification: Performance of NFFlatten.collectFunctions: time 5.579e-05/0.00457, allocations: 32 kB / 0.8126 GB, free: 284 kB / 0.7605 GB Notification: Performance of NFScalarize.scalarize: time 0.0001093/0.004679, allocations: 87.7 kB / 0.8127 GB, free: 196 kB / 0.7605 GB Notification: Performance of NFVerifyModel.verify: time 0.0001599/0.004839, allocations: 91.73 kB / 0.8128 GB, free: 104 kB / 0.7605 GB Notification: Performance of NFConvertDAE.convert: time 0.0005714/0.00541, allocations: 472.1 kB / 0.8132 GB, free: 15.64 MB / 0.7761 GB Notification: Performance of FrontEnd - DAE generated: time 3.948e-06/0.005414, allocations: 0 / 0.8132 GB, free: 15.64 MB / 0.7761 GB Notification: Performance of FrontEnd: time 4.168e-06/0.005418, allocations: 3.984 kB / 0.8132 GB, free: 15.64 MB / 0.7761 GB Notification: Performance of Transformations before backend: time 6.602e-06/0.005425, allocations: 0 / 0.8132 GB, free: 15.64 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.0009227/0.006348, allocations: 0.6477 MB / 0.8138 GB, free: 14.95 MB / 0.7761 GB Notification: Performance of prepare preOptimizeDAE: time 4.614e-05/0.006394, allocations: 16.47 kB / 0.8139 GB, free: 14.93 MB / 0.7761 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001284/0.006522, allocations: 65.73 kB / 0.8139 GB, free: 14.87 MB / 0.7761 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005455/0.007068, allocations: 274.9 kB / 0.8142 GB, free: 14.58 MB / 0.7761 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.211e-05/0.00713, allocations: 29.03 kB / 0.8142 GB, free: 14.55 MB / 0.7761 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9e-05/0.00722, allocations: 36.31 kB / 0.8143 GB, free: 14.52 MB / 0.7761 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006628/0.007882, allocations: 361.9 kB / 0.8146 GB, free: 14.14 MB / 0.7761 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.51e-05/0.007898, allocations: 192 / 0.8146 GB, free: 14.14 MB / 0.7761 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.367e-05/0.007931, allocations: 18.97 kB / 0.8146 GB, free: 14.13 MB / 0.7761 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.238e-05/0.007944, allocations: 8.375 kB / 0.8146 GB, free: 14.12 MB / 0.7761 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004364/0.00838, allocations: 219.5 kB / 0.8148 GB, free: 13.91 MB / 0.7761 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001774/0.01015, allocations: 1.042 MB / 0.8159 GB, free: 12.82 MB / 0.7761 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001871/0.01034, allocations: 98.19 kB / 0.8159 GB, free: 12.7 MB / 0.7761 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001438/0.01048, allocations: 47.98 kB / 0.816 GB, free: 12.65 MB / 0.7761 GB Notification: Performance of preOpt evalFunc (simulation): time 2.85e-05/0.01051, allocations: 0 / 0.816 GB, free: 12.65 MB / 0.7761 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.757e-05/0.01056, allocations: 54.02 kB / 0.816 GB, free: 12.59 MB / 0.7761 GB Notification: Performance of pre-optimization done (n=6): time 2.004e-06/0.01056, allocations: 0.5312 kB / 0.816 GB, free: 12.59 MB / 0.7761 GB Notification: Performance of matching and sorting (n=6): time 0.0003966/0.01096, allocations: 145.5 kB / 0.8162 GB, free: 12.44 MB / 0.7761 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.626e-05/0.01103, allocations: 82.77 kB / 0.8163 GB, free: 12.34 MB / 0.7761 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005923/0.01162, allocations: 480 kB / 0.8167 GB, free: 11.86 MB / 0.7761 GB Notification: Performance of collectPreVariables (initialization): time 2.572e-05/0.01164, allocations: 25.7 kB / 0.8167 GB, free: 11.83 MB / 0.7761 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002309/0.01187, allocations: 279.1 kB / 0.817 GB, free: 11.55 MB / 0.7761 GB Notification: Performance of collectInitialBindings (initialization): time 2.5e-05/0.0119, allocations: 16.5 kB / 0.817 GB, free: 11.54 MB / 0.7761 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001783/0.01208, allocations: 115.3 kB / 0.8171 GB, free: 11.41 MB / 0.7761 GB Notification: Performance of setup shared object (initialization): time 0.0003226/0.0124, allocations: 0.5281 MB / 0.8176 GB, free: 10.88 MB / 0.7761 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001198/0.01252, allocations: 63.86 kB / 0.8177 GB, free: 10.81 MB / 0.7761 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001623/0.01268, allocations: 99.12 kB / 0.8178 GB, free: 10.71 MB / 0.7761 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001926/0.01288, allocations: 119.2 kB / 0.8179 GB, free: 10.59 MB / 0.7761 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.953e-06/0.01288, allocations: 0 / 0.8179 GB, free: 10.59 MB / 0.7761 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0003251/0.0132, allocations: 190.8 kB / 0.8181 GB, free: 10.39 MB / 0.7761 GB Notification: Performance of prepare postOptimizeDAE: time 1.574e-05/0.01322, allocations: 4 kB / 0.8181 GB, free: 10.39 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.322e-06/0.01322, allocations: 0 / 0.8181 GB, free: 10.39 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.97e-05/0.01324, allocations: 4 kB / 0.8181 GB, free: 10.39 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001645/0.01341, allocations: 32.48 kB / 0.8181 GB, free: 10.36 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.933e-06/0.01342, allocations: 1.094 kB / 0.8181 GB, free: 10.36 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.405e-05/0.01348, allocations: 15.84 kB / 0.8182 GB, free: 10.34 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.798e-05/0.01352, allocations: 12 kB / 0.8182 GB, free: 10.33 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 0.0002544/0.01377, allocations: 232.1 kB / 0.8184 GB, free: 10.09 MB / 0.7761 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.285e-05/0.01383, allocations: 22.12 kB / 0.8184 GB, free: 10.07 MB / 0.7761 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002426/0.01408, allocations: 114.2 kB / 0.8185 GB, free: 9.953 MB / 0.7761 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.395e-06/0.01408, allocations: 0 / 0.8185 GB, free: 9.953 MB / 0.7761 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.248e-06/0.01408, allocations: 0 / 0.8185 GB, free: 9.953 MB / 0.7761 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.808e-06/0.01409, allocations: 0 / 0.8185 GB, free: 9.953 MB / 0.7761 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008555/0.01494, allocations: 0.7706 MB / 0.8193 GB, free: 9.125 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.693e-06/0.01495, allocations: 0 / 0.8193 GB, free: 9.125 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.599e-05/0.01497, allocations: 7.938 kB / 0.8193 GB, free: 9.117 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.515e-06/0.01497, allocations: 0 / 0.8193 GB, free: 9.117 MB / 0.7761 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.047e-05/0.01498, allocations: 4 kB / 0.8193 GB, free: 9.113 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.639e-06/0.01499, allocations: 3.938 kB / 0.8193 GB, free: 9.109 MB / 0.7761 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.613e-06/0.01499, allocations: 1.5 kB / 0.8193 GB, free: 9.109 MB / 0.7761 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000189/0.01518, allocations: 135.4 kB / 0.8194 GB, free: 8.941 MB / 0.7761 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001983/0.01538, allocations: 23.8 kB / 0.8194 GB, free: 8.918 MB / 0.7761 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.599e-05/0.01541, allocations: 8.484 kB / 0.8194 GB, free: 8.91 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.489e-05/0.01546, allocations: 7.938 kB / 0.8195 GB, free: 8.902 MB / 0.7761 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.395e-05/0.01549, allocations: 8.438 kB / 0.8195 GB, free: 8.895 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.136e-06/0.0155, allocations: 1.859 kB / 0.8195 GB, free: 8.895 MB / 0.7761 GB Notification: Performance of sorting global known variables: time 0.0003272/0.01582, allocations: 293.1 kB / 0.8197 GB, free: 8.605 MB / 0.7761 GB Notification: Performance of sort global known variables: time 6e-08/0.01582, allocations: 0 / 0.8197 GB, free: 8.605 MB / 0.7761 GB Notification: Performance of remove unused functions: time 0.000264/0.01609, allocations: 55.73 kB / 0.8198 GB, free: 8.551 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 0.0001457/0.01623, allocations: 100.2 kB / 0.8199 GB, free: 8.441 MB / 0.7761 GB Notification: Performance of simCode: created initialization part: time 0.0002674/0.0165, allocations: 112.2 kB / 0.82 GB, free: 8.328 MB / 0.7761 GB Notification: Performance of simCode: created event and clocks part: time 4.318e-06/0.0165, allocations: 3.688 kB / 0.82 GB, free: 8.328 MB / 0.7761 GB Notification: Performance of simCode: created simulation system equations: time 4.488e-05/0.01655, allocations: 31.59 kB / 0.82 GB, free: 8.293 MB / 0.7761 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002615/0.01681, allocations: 29.06 kB / 0.8201 GB, free: 8.266 MB / 0.7761 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008659/0.01768, allocations: 0.4898 MB / 0.8205 GB, free: 7.73 MB / 0.7761 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002086/0.01788, allocations: 177.8 kB / 0.8207 GB, free: 7.539 MB / 0.7761 GB Notification: Performance of simCode: alias equations: time 8.301e-05/0.01797, allocations: 29.61 kB / 0.8207 GB, free: 7.508 MB / 0.7761 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.061e-05/0.01802, allocations: 17.56 kB / 0.8208 GB, free: 7.488 MB / 0.7761 GB Notification: Performance of SimCode: time 5.61e-07/0.01802, allocations: 4 kB / 0.8208 GB, free: 7.484 MB / 0.7761 GB Notification: Performance of Templates: time 0.005137/0.02316, allocations: 1.197 MB / 0.8219 GB, free: 6.332 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 8.22783339000307]