Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.001317/0.001317, allocations: 102.1 kB / 19.7 MB, free: 2.254 MB / 14.72 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.001528/0.001528, allocations: 217.7 kB / 23.01 MB, free: 4.609 MB / 14.72 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.436/1.436, allocations: 230.6 MB / 256.8 MB, free: 8.031 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo): time 2.698/2.698, allocations: 476.8 MB / 0.7714 GB, free: 4.449 MB / 0.6231 GB " [Timeout remaining time 177] Using package Buildings with version 11.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.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_11_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_11_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex") [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002059/0.002059, allocations: 68.17 kB / 1.119 GB, free: 8.762 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3325/0.3346, allocations: 169.9 MB / 1.285 GB, free: 3.344 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex): time 0.002201/0.3368, allocations: 0.8672 MB / 1.285 GB, free: 2.477 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.0002901/0.3371, allocations: 95.62 kB / 1.286 GB, free: 2.383 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.57e-05/0.3372, allocations: 4 kB / 1.286 GB, free: 2.379 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.0001548/0.3373, allocations: 23.78 kB / 1.286 GB, free: 2.355 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 0.0001361/0.3374, allocations: 15.86 kB / 1.286 GB, free: 2.34 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 8.432e-05/0.3375, allocations: 39.97 kB / 1.286 GB, free: 2.301 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0003137/0.3378, allocations: 255.4 kB / 1.286 GB, free: 2.051 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003292/0.3382, allocations: 178.8 kB / 1.286 GB, free: 1.871 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001388/0.3383, allocations: 135.5 kB / 1.286 GB, free: 1.738 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000173/0.3385, allocations: 143.3 kB / 1.286 GB, free: 1.598 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 5.31e-05/0.3385, allocations: 32 kB / 1.286 GB, free: 1.566 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 4.967e-05/0.3386, allocations: 32 kB / 1.286 GB, free: 1.535 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 9.963e-05/0.3387, allocations: 87.75 kB / 1.286 GB, free: 1.449 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.0001519/0.3388, allocations: 159 kB / 1.287 GB, free: 1.293 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0004524/0.3393, allocations: 458.1 kB / 1.287 GB, free: 0.8438 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 3.897e-06/0.3393, allocations: 0 / 1.287 GB, free: 0.8438 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.263e-06/0.3393, allocations: 0 / 1.287 GB, free: 0.8438 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 7.003e-06/0.3393, allocations: 4 kB / 1.287 GB, free: 0.8398 MB / 0.9825 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.0007027/0.34, allocations: 0.5324 MB / 1.288 GB, free: 280 kB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.506e-05/0.34, allocations: 12.03 kB / 1.288 GB, free: 268 kB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.401e-05/0.3401, allocations: 40.66 kB / 1.288 GB, free: 228 kB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004587/0.3406, allocations: 274.5 kB / 1.288 GB, free: 15.93 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.748e-05/0.3406, allocations: 33.02 kB / 1.288 GB, free: 15.9 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.692e-05/0.3407, allocations: 36.38 kB / 1.288 GB, free: 15.86 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006228/0.3413, allocations: 404.2 kB / 1.288 GB, free: 15.46 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.3e-05/0.3413, allocations: 192 / 1.288 GB, free: 15.46 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.042e-05/0.3413, allocations: 15.94 kB / 1.288 GB, free: 15.44 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.173e-05/0.3414, allocations: 8 kB / 1.288 GB, free: 15.43 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004746/0.3418, allocations: 299.6 kB / 1.289 GB, free: 15.14 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001491/0.3433, allocations: 1.014 MB / 1.29 GB, free: 14.08 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001538/0.3435, allocations: 101.1 kB / 1.29 GB, free: 13.96 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.734e-05/0.3435, allocations: 45.78 kB / 1.29 GB, free: 13.91 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.942e-05/0.3436, allocations: 0 / 1.29 GB, free: 13.91 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.583e-05/0.3436, allocations: 34.56 kB / 1.29 GB, free: 13.87 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=6): time 2.986e-06/0.3436, allocations: 4 kB / 1.29 GB, free: 13.86 MB / 0.9981 GB Notification: Performance of matching and sorting (n=6): time 0.0003484/0.344, allocations: 165.4 kB / 1.29 GB, free: 13.7 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.962e-05/0.344, allocations: 88.98 kB / 1.29 GB, free: 13.59 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005968/0.3446, allocations: 0.5014 MB / 1.291 GB, free: 13.08 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 1.675e-05/0.3446, allocations: 29.7 kB / 1.291 GB, free: 13.05 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001652/0.3448, allocations: 207.7 kB / 1.291 GB, free: 12.84 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 1.677e-05/0.3448, allocations: 15.84 kB / 1.291 GB, free: 12.82 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.95e-05/0.3449, allocations: 53.69 kB / 1.291 GB, free: 12.77 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001673/0.3451, allocations: 350.8 kB / 1.291 GB, free: 12.41 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001168/0.3452, allocations: 67.94 kB / 1.291 GB, free: 12.35 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001294/0.3453, allocations: 84.17 kB / 1.291 GB, free: 12.26 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001719/0.3455, allocations: 117.6 kB / 1.291 GB, free: 12.14 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.784e-06/0.3455, allocations: 0 / 1.291 GB, free: 12.14 MB / 0.9981 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0003209/0.3458, allocations: 213.3 kB / 1.292 GB, free: 11.93 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.874e-05/0.3458, allocations: 4 kB / 1.292 GB, free: 11.92 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.073e-06/0.3458, allocations: 0 / 1.292 GB, free: 11.92 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.837e-05/0.3458, allocations: 7.984 kB / 1.292 GB, free: 11.91 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001442/0.346, allocations: 35.81 kB / 1.292 GB, free: 11.88 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.016e-05/0.346, allocations: 8 kB / 1.292 GB, free: 11.87 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.895e-05/0.3461, allocations: 31.73 kB / 1.292 GB, free: 11.84 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.942e-05/0.3461, allocations: 7.984 kB / 1.292 GB, free: 11.83 MB / 0.9981 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.0002144/0.3463, allocations: 195.8 kB / 1.292 GB, free: 11.63 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.476e-05/0.3464, allocations: 35.77 kB / 1.292 GB, free: 11.6 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002164/0.3466, allocations: 118.1 kB / 1.292 GB, free: 11.47 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.029e-06/0.3466, allocations: 3.938 kB / 1.292 GB, free: 11.47 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.05e-06/0.3466, allocations: 0 / 1.292 GB, free: 11.47 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.693e-06/0.3466, allocations: 7.984 kB / 1.292 GB, free: 11.46 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000619/0.3472, allocations: 0.636 MB / 1.293 GB, free: 10.76 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.764e-06/0.3472, allocations: 0 / 1.293 GB, free: 10.76 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.27e-05/0.3473, allocations: 4 kB / 1.293 GB, free: 10.76 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.254e-06/0.3473, allocations: 0 / 1.293 GB, free: 10.76 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.04e-05/0.3473, allocations: 4 kB / 1.293 GB, free: 10.75 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.58e-06/0.3473, allocations: 7.922 kB / 1.293 GB, free: 10.75 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.373e-06/0.3473, allocations: 0 / 1.293 GB, free: 10.75 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001645/0.3475, allocations: 135.9 kB / 1.293 GB, free: 10.59 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 8.262e-05/0.3475, allocations: 43.77 kB / 1.293 GB, free: 10.54 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.484e-05/0.3476, allocations: 7.984 kB / 1.293 GB, free: 10.54 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.025e-05/0.3476, allocations: 0 / 1.293 GB, free: 10.54 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.259e-05/0.3476, allocations: 11.97 kB / 1.293 GB, free: 10.52 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.659e-06/0.3476, allocations: 4 kB / 1.293 GB, free: 10.52 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.0004507/0.3481, allocations: 387 kB / 1.293 GB, free: 10.14 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3481, allocations: 4 kB / 1.293 GB, free: 10.14 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0002429/0.3483, allocations: 43.94 kB / 1.293 GB, free: 10.09 MB / 0.9981 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.000116/0.3485, allocations: 99.23 kB / 1.293 GB, free: 9.984 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0002296/0.3487, allocations: 104 kB / 1.293 GB, free: 9.883 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 2.494e-06/0.3487, allocations: 0 / 1.293 GB, free: 9.883 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 3.228e-05/0.3487, allocations: 19.92 kB / 1.294 GB, free: 9.863 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002643/0.349, allocations: 41.83 kB / 1.294 GB, free: 9.824 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007827/0.3498, allocations: 0.5191 MB / 1.294 GB, free: 9.262 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004133/0.3502, allocations: 0.7909 MB / 1.295 GB, free: 8.445 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.873e-05/0.3502, allocations: 27.42 kB / 1.295 GB, free: 8.418 MB / 0.9981 GB Notification: Performance of SimCode: time 2.9e-07/0.3502, allocations: 0 / 1.295 GB, free: 8.418 MB / 0.9981 GB Notification: Performance of Templates: time 0.006172/0.3564, allocations: 3.819 MB / 1.299 GB, free: 4.605 MB / 0.9981 GB " [Timeout remaining time 300] make -j1 -f Buildings_11_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex.makefile [Timeout 300] (rm -f Buildings_11_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex.pipe ; mkfifo Buildings_11_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex.pipe ; head -c 1048576 < Buildings_11_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex.pipe >> ../files/Buildings_11_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex.sim & ./Buildings_11_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_11_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Templates_Plants_Controls_Utilities_Validation_FirstTrueIndex.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_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: 11.01638823398389]