Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.001842/0.001842, allocations: 80.3 kB / 19.18 MB, free: 2.516 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.002165/0.002165, allocations: 159.1 kB / 22.45 MB, free: 5.375 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.47/1.47, allocations: 177.2 MB / 202.8 MB, free: 9.156 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/package.mo): time 2.831/2.831, allocations: 359 MB / 0.6037 GB, free: 14.98 MB / 0.5762 GB " [Timeout remaining time 176] Using package Buildings with version 11.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-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.LastTrueIndex,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|idxLasTru.y|idxLasTruAllFal.y",fileNamePrefix="Buildings_11_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_11_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 2.885e-06/2.885e-06, allocations: 0 / 0.951 GB, free: 11.58 MB / 0.8575 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.85e-05/3.139e-05, allocations: 2.281 kB / 0.951 GB, free: 11.57 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex): time 0.001967/0.001998, allocations: 0.6998 MB / 0.9516 GB, free: 10.87 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.0002308/0.002229, allocations: 51.78 kB / 0.9517 GB, free: 10.82 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.62e-05/0.002305, allocations: 7.938 kB / 0.9517 GB, free: 10.81 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.000123/0.002429, allocations: 11.86 kB / 0.9517 GB, free: 10.8 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0001116/0.00254, allocations: 11.94 kB / 0.9517 GB, free: 10.79 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 5.825e-05/0.002598, allocations: 19.97 kB / 0.9517 GB, free: 10.77 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0002396/0.002838, allocations: 179.5 kB / 0.9519 GB, free: 10.59 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002708/0.003109, allocations: 146.9 kB / 0.9521 GB, free: 10.45 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001636/0.003272, allocations: 143.7 kB / 0.9522 GB, free: 10.31 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001448/0.003417, allocations: 103.7 kB / 0.9523 GB, free: 10.21 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 5.053e-05/0.003468, allocations: 28 kB / 0.9523 GB, free: 10.18 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 4.32e-05/0.003511, allocations: 28 kB / 0.9523 GB, free: 10.16 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 8.991e-05/0.003601, allocations: 71.77 kB / 0.9524 GB, free: 10.09 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0001005/0.003701, allocations: 75.75 kB / 0.9525 GB, free: 10.01 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0004239/0.004125, allocations: 374.7 kB / 0.9528 GB, free: 9.645 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 2.755e-06/0.004128, allocations: 0 / 0.9528 GB, free: 9.645 MB / 0.8575 GB Notification: Performance of FrontEnd: time 8.41e-07/0.004129, allocations: 0 / 0.9528 GB, free: 9.645 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 5e-06/0.004134, allocations: 0 / 0.9528 GB, free: 9.645 MB / 0.8575 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.0006596/0.004793, allocations: 489.5 kB / 0.9533 GB, free: 9.129 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.316e-05/0.004837, allocations: 12.03 kB / 0.9533 GB, free: 9.117 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.497e-05/0.004912, allocations: 40.67 kB / 0.9534 GB, free: 9.078 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004727/0.005384, allocations: 266.8 kB / 0.9536 GB, free: 8.789 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.046e-05/0.005445, allocations: 33.02 kB / 0.9536 GB, free: 8.758 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001333/0.005578, allocations: 24.38 kB / 0.9537 GB, free: 8.734 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005766/0.006155, allocations: 344.2 kB / 0.954 GB, free: 8.387 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.453e-05/0.006169, allocations: 192 / 0.954 GB, free: 8.387 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.714e-05/0.006196, allocations: 8.375 kB / 0.954 GB, free: 8.379 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.1e-05/0.006207, allocations: 8.375 kB / 0.954 GB, free: 8.371 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004403/0.006648, allocations: 255.8 kB / 0.9543 GB, free: 8.121 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001192/0.007839, allocations: 0.7234 MB / 0.955 GB, free: 7.363 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001275/0.007967, allocations: 61.14 kB / 0.955 GB, free: 7.285 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.726e-05/0.008024, allocations: 37.75 kB / 0.9551 GB, free: 7.242 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.969e-05/0.008044, allocations: 0 / 0.9551 GB, free: 7.242 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.192e-05/0.008085, allocations: 42.5 kB / 0.9551 GB, free: 7.191 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=2): time 7.61e-07/0.008086, allocations: 0 / 0.9551 GB, free: 7.191 MB / 0.8575 GB Notification: Performance of matching and sorting (n=2): time 0.0002954/0.008382, allocations: 117.4 kB / 0.9552 GB, free: 7.07 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.108e-05/0.008463, allocations: 85.05 kB / 0.9553 GB, free: 6.969 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000399/0.008862, allocations: 321.6 kB / 0.9556 GB, free: 6.637 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.801e-05/0.00888, allocations: 25.7 kB / 0.9556 GB, free: 6.605 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001602/0.00904, allocations: 200.4 kB / 0.9558 GB, free: 6.406 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 9.077e-06/0.009049, allocations: 7.953 kB / 0.9558 GB, free: 6.398 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.95e-05/0.009138, allocations: 65.69 kB / 0.9559 GB, free: 6.328 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001725/0.009311, allocations: 326.8 kB / 0.9562 GB, free: 6 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001338/0.009445, allocations: 55.95 kB / 0.9563 GB, free: 5.945 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001076/0.009552, allocations: 73.67 kB / 0.9563 GB, free: 5.867 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001461/0.009698, allocations: 97.67 kB / 0.9564 GB, free: 5.766 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.683e-06/0.0097, allocations: 0 / 0.9564 GB, free: 5.766 MB / 0.8575 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002766/0.009977, allocations: 173.5 kB / 0.9566 GB, free: 5.59 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.414e-05/0.009991, allocations: 4 kB / 0.9566 GB, free: 5.586 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.899e-06/0.009996, allocations: 160 / 0.9566 GB, free: 5.586 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.578e-05/0.01001, allocations: 7.938 kB / 0.9566 GB, free: 5.578 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001379/0.01015, allocations: 35.92 kB / 0.9566 GB, free: 5.543 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.394e-06/0.01016, allocations: 3.984 kB / 0.9566 GB, free: 5.539 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.994e-05/0.01021, allocations: 15.84 kB / 0.9566 GB, free: 5.523 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.659e-05/0.01022, allocations: 4 kB / 0.9566 GB, free: 5.52 MB / 0.8575 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.0002292/0.01045, allocations: 205.4 kB / 0.9568 GB, free: 5.309 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.09e-05/0.0105, allocations: 11.91 kB / 0.9569 GB, free: 5.297 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001834/0.01069, allocations: 159.4 kB / 0.957 GB, free: 5.129 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.506e-05/0.01077, allocations: 188.8 kB / 0.9572 GB, free: 4.938 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.952e-05/0.01086, allocations: 180.3 kB / 0.9574 GB, free: 4.754 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.026e-05/0.01094, allocations: 184.2 kB / 0.9575 GB, free: 4.566 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003491/0.01129, allocations: 440.8 kB / 0.958 GB, free: 4.098 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.799e-05/0.01135, allocations: 108.9 kB / 0.9581 GB, free: 3.984 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.424e-05/0.01139, allocations: 101.1 kB / 0.9582 GB, free: 3.879 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.84e-05/0.01148, allocations: 180.3 kB / 0.9583 GB, free: 3.695 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.379e-05/0.01158, allocations: 188.2 kB / 0.9585 GB, free: 3.504 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.178e-05/0.01167, allocations: 176.3 kB / 0.9587 GB, free: 3.324 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.806e-05/0.01177, allocations: 192.1 kB / 0.9589 GB, free: 3.129 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000194/0.01196, allocations: 319.6 kB / 0.9592 GB, free: 2.793 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 7.728e-05/0.01204, allocations: 124.9 kB / 0.9593 GB, free: 2.664 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001103/0.01215, allocations: 180.3 kB / 0.9595 GB, free: 2.48 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001197/0.01227, allocations: 108.9 kB / 0.9596 GB, free: 2.367 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.357e-05/0.01236, allocations: 192.2 kB / 0.9597 GB, free: 2.172 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.508e-05/0.01242, allocations: 104.9 kB / 0.9598 GB, free: 2.062 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 0.0002523/0.01267, allocations: 229.2 kB / 0.9601 GB, free: 1.84 MB / 0.8575 GB Notification: Performance of sort global known variables: time 7e-08/0.01267, allocations: 0 / 0.9601 GB, free: 1.84 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002889/0.01296, allocations: 43.78 kB / 0.9601 GB, free: 1.797 MB / 0.8575 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.0001702/0.01313, allocations: 174.5 kB / 0.9603 GB, free: 1.617 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0001688/0.0133, allocations: 75.95 kB / 0.9603 GB, free: 1.543 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 1.613e-06/0.0133, allocations: 0 / 0.9603 GB, free: 1.543 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 3.347e-06/0.0133, allocations: 3.938 kB / 0.9603 GB, free: 1.539 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004825/0.01378, allocations: 468.2 kB / 0.9608 GB, free: 1.078 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007778/0.01456, allocations: 480.4 kB / 0.9613 GB, free: 0.582 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001784/0.01474, allocations: 169.3 kB / 0.9614 GB, free: 404 kB / 0.8575 GB Notification: Performance of simCode: alias equations: time 7.394e-05/0.01481, allocations: 37.45 kB / 0.9614 GB, free: 368 kB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.006e-05/0.01485, allocations: 16.5 kB / 0.9615 GB, free: 352 kB / 0.8575 GB Notification: Performance of SimCode: time 2.81e-07/0.01485, allocations: 0 / 0.9615 GB, free: 352 kB / 0.8575 GB Notification: Performance of Templates: time 0.004405/0.01926, allocations: 1.065 MB / 0.9625 GB, free: 15.3 MB / 0.8731 GB " [Timeout remaining time 300] make -j1 -f Buildings_11_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex.makefile [Timeout 300] (rm -f Buildings_11_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex.pipe ; mkfifo Buildings_11_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex.pipe ; head -c 1048576 < Buildings_11_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex.pipe >> ../files/Buildings_11_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex.sim & ./Buildings_11_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_11_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Templates_Plants_Controls_Utilities_Validation_LastTrueIndex.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex.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.011167362332344]