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.001512/0.001512, 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.00187/0.00187, allocations: 215.8 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.437/1.437, allocations: 230.6 MB / 256.8 MB, free: 8.055 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.734/2.734, allocations: 476.7 MB / 0.7714 GB, free: 4.305 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.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: 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.002096/0.002096, allocations: 64.64 kB / 1.119 GB, free: 8.77 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3159/0.318, allocations: 169.9 MB / 1.285 GB, free: 3.352 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex): time 0.002345/0.3203, allocations: 0.7293 MB / 1.285 GB, free: 2.625 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.0002877/0.3206, allocations: 51.78 kB / 1.285 GB, free: 2.574 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.527e-05/0.3207, allocations: 0 / 1.285 GB, free: 2.574 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.0001457/0.3209, allocations: 15.86 kB / 1.285 GB, free: 2.559 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 0.0001484/0.321, allocations: 11.92 kB / 1.285 GB, free: 2.547 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 5.785e-05/0.3211, allocations: 15.98 kB / 1.285 GB, free: 2.531 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.000254/0.3213, allocations: 183.5 kB / 1.286 GB, free: 2.352 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002941/0.3216, allocations: 145.3 kB / 1.286 GB, free: 2.207 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001175/0.3217, allocations: 111.6 kB / 1.286 GB, free: 2.098 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001453/0.3219, allocations: 111.5 kB / 1.286 GB, free: 1.988 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 4.416e-05/0.3219, allocations: 28 kB / 1.286 GB, free: 1.961 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 4.083e-05/0.322, allocations: 28 kB / 1.286 GB, free: 1.934 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 8.689e-05/0.3221, allocations: 63.78 kB / 1.286 GB, free: 1.871 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.0001261/0.3222, allocations: 131.3 kB / 1.286 GB, free: 1.742 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0003921/0.3226, allocations: 366.5 kB / 1.287 GB, free: 1.383 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 7.204e-06/0.3226, allocations: 4 kB / 1.287 GB, free: 1.379 MB / 0.9825 GB Notification: Performance of FrontEnd: time 2.224e-06/0.3226, allocations: 0 / 1.287 GB, free: 1.379 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 7.785e-06/0.3226, allocations: 0 / 1.287 GB, free: 1.379 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: 64 * Number of variables: 64 Notification: Performance of Generate backend data structure: time 0.0006596/0.3233, allocations: 489.5 kB / 1.287 GB, free: 0.8672 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.669e-05/0.3233, allocations: 12.03 kB / 1.287 GB, free: 0.8555 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.017e-05/0.3234, allocations: 36.69 kB / 1.287 GB, free: 0.8203 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004169/0.3238, allocations: 251.6 kB / 1.287 GB, free: 0.5469 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.395e-05/0.3238, allocations: 33.02 kB / 1.287 GB, free: 0.5156 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.129e-05/0.3239, allocations: 24.38 kB / 1.287 GB, free: 0.4922 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005265/0.3244, allocations: 340.2 kB / 1.288 GB, free: 148 kB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.544e-05/0.3244, allocations: 4.172 kB / 1.288 GB, free: 144 kB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.627e-05/0.3244, allocations: 19.94 kB / 1.288 GB, free: 124 kB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.042e-05/0.3244, allocations: 8 kB / 1.288 GB, free: 116 kB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004027/0.3248, allocations: 255.8 kB / 1.288 GB, free: 15.86 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001257/0.3261, allocations: 0.8751 MB / 1.289 GB, free: 14.94 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 9.18e-05/0.3262, allocations: 61.08 kB / 1.289 GB, free: 14.86 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.033e-05/0.3262, allocations: 41.75 kB / 1.289 GB, free: 14.82 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.078e-05/0.3263, allocations: 3.938 kB / 1.289 GB, free: 14.81 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.481e-05/0.3263, allocations: 38.5 kB / 1.289 GB, free: 14.77 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=2): time 1.193e-06/0.3263, allocations: 0 / 1.289 GB, free: 14.77 MB / 0.9981 GB Notification: Performance of matching and sorting (n=2): time 0.0002784/0.3266, allocations: 125.5 kB / 1.289 GB, free: 14.64 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.865e-05/0.3266, allocations: 81.05 kB / 1.289 GB, free: 14.54 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005338/0.3272, allocations: 485.7 kB / 1.29 GB, free: 14.06 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 1.552e-05/0.3272, allocations: 25.7 kB / 1.29 GB, free: 14.03 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.000146/0.3273, allocations: 183.8 kB / 1.29 GB, free: 13.84 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 1.079e-05/0.3273, allocations: 11.88 kB / 1.29 GB, free: 13.83 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.932e-05/0.3274, allocations: 45.66 kB / 1.29 GB, free: 13.78 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001644/0.3276, allocations: 338.8 kB / 1.29 GB, free: 13.44 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.341e-05/0.3277, allocations: 59.95 kB / 1.29 GB, free: 13.38 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001071/0.3278, allocations: 86.16 kB / 1.29 GB, free: 13.29 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001542/0.3279, allocations: 93.67 kB / 1.29 GB, free: 13.2 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.857e-06/0.3279, allocations: 3.984 kB / 1.29 GB, free: 13.19 MB / 0.9981 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002719/0.3282, allocations: 189.3 kB / 1.291 GB, free: 13 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.602e-05/0.3282, allocations: 4 kB / 1.291 GB, free: 13 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.945e-06/0.3282, allocations: 3.984 kB / 1.291 GB, free: 12.99 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.674e-05/0.3282, allocations: 4 kB / 1.291 GB, free: 12.99 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001286/0.3284, allocations: 23.94 kB / 1.291 GB, free: 12.96 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.931e-06/0.3284, allocations: 0 / 1.291 GB, free: 12.96 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.695e-05/0.3285, allocations: 23.78 kB / 1.291 GB, free: 12.94 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.844e-05/0.3285, allocations: 15.98 kB / 1.291 GB, free: 12.93 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: 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.0001951/0.3287, allocations: 189.5 kB / 1.291 GB, free: 12.73 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.532e-05/0.3287, allocations: 31.75 kB / 1.291 GB, free: 12.7 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001892/0.3289, allocations: 164.5 kB / 1.291 GB, free: 12.53 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.896e-05/0.329, allocations: 181.7 kB / 1.291 GB, free: 12.34 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.746e-05/0.3291, allocations: 184.2 kB / 1.291 GB, free: 12.16 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.387e-05/0.3291, allocations: 180.3 kB / 1.292 GB, free: 11.97 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003842/0.3295, allocations: 0.4884 MB / 1.292 GB, free: 11.43 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.517e-05/0.3296, allocations: 116.9 kB / 1.292 GB, free: 11.31 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.64e-05/0.3296, allocations: 105 kB / 1.292 GB, free: 11.2 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.245e-05/0.3297, allocations: 188.2 kB / 1.292 GB, free: 11.01 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.25e-05/0.3298, allocations: 180.3 kB / 1.293 GB, free: 10.83 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.071e-05/0.3299, allocations: 180.3 kB / 1.293 GB, free: 10.64 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.156e-05/0.33, allocations: 180.2 kB / 1.293 GB, free: 10.46 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000204/0.3302, allocations: 335.8 kB / 1.293 GB, free: 10.11 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001296/0.3303, allocations: 148.8 kB / 1.293 GB, free: 9.957 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001042/0.3304, allocations: 180.2 kB / 1.294 GB, free: 9.773 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001178/0.3305, allocations: 108.9 kB / 1.294 GB, free: 9.66 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.535e-05/0.3306, allocations: 176.3 kB / 1.294 GB, free: 9.48 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.101e-05/0.3306, allocations: 104.9 kB / 1.294 GB, free: 9.371 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.0004021/0.331, allocations: 371 kB / 1.294 GB, free: 9.008 MB / 0.9981 GB Notification: Performance of sort global known variables: time 8e-08/0.331, allocations: 0 / 1.294 GB, free: 9.008 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0002719/0.3313, allocations: 31.94 kB / 1.294 GB, free: 8.977 MB / 0.9981 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.0001408/0.3315, allocations: 179 kB / 1.294 GB, free: 8.793 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0001923/0.3317, allocations: 75.89 kB / 1.295 GB, free: 8.719 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 2.625e-06/0.3317, allocations: 0 / 1.295 GB, free: 8.719 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 1.653e-06/0.3317, allocations: 0 / 1.295 GB, free: 8.719 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004924/0.3321, allocations: 485.1 kB / 1.295 GB, free: 8.242 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006872/0.3328, allocations: 0.5097 MB / 1.296 GB, free: 7.695 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003988/0.3332, allocations: 0.7753 MB / 1.296 GB, free: 6.895 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.589e-05/0.3333, allocations: 19.44 kB / 1.296 GB, free: 6.875 MB / 0.9981 GB Notification: Performance of SimCode: time 2.8e-07/0.3333, allocations: 0 / 1.296 GB, free: 6.875 MB / 0.9981 GB Notification: Performance of Templates: time 0.00551/0.3388, allocations: 3.287 MB / 1.299 GB, free: 3.586 MB / 0.9981 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/jenkins1/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: 10.974168749991804]