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.001603/0.001603, allocations: 104.4 kB / 19.7 MB, free: 2.125 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.001768/0.001768, allocations: 216.9 kB / 22.99 MB, free: 4.945 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.427/1.427, allocations: 230.6 MB / 256.8 MB, free: 7.809 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.752/2.752, allocations: 476 MB / 0.7707 GB, free: 4.73 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: 67.98 kB / 1.118 GB, free: 8.945 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3141/0.3162, allocations: 169.9 MB / 1.284 GB, free: 3.742 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex): time 0.001918/0.3181, allocations: 0.7139 MB / 1.284 GB, free: 3.031 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.0002172/0.3183, allocations: 47.84 kB / 1.285 GB, free: 2.984 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.892e-05/0.3184, allocations: 7.938 kB / 1.285 GB, free: 2.977 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.0001055/0.3185, allocations: 11.86 kB / 1.285 GB, free: 2.965 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 0.0001022/0.3186, allocations: 15.92 kB / 1.285 GB, free: 2.949 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 5.084e-05/0.3187, allocations: 19.98 kB / 1.285 GB, free: 2.93 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0002253/0.3189, allocations: 183.6 kB / 1.285 GB, free: 2.75 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002607/0.3191, allocations: 145.3 kB / 1.285 GB, free: 2.605 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 9.936e-05/0.3192, allocations: 99.66 kB / 1.285 GB, free: 2.508 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001492/0.3194, allocations: 123.5 kB / 1.285 GB, free: 2.387 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 4.751e-05/0.3194, allocations: 24 kB / 1.285 GB, free: 2.363 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 4.116e-05/0.3195, allocations: 24 kB / 1.285 GB, free: 2.34 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 7.649e-05/0.3196, allocations: 67.78 kB / 1.285 GB, free: 2.273 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.0001016/0.3197, allocations: 99.41 kB / 1.285 GB, free: 2.176 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0003682/0.32, allocations: 382.4 kB / 1.286 GB, free: 1.801 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 5.44e-06/0.32, allocations: 4 kB / 1.286 GB, free: 1.797 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.262e-06/0.32, allocations: 0 / 1.286 GB, free: 1.797 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 5.471e-06/0.32, allocations: 0 / 1.286 GB, free: 1.797 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.000629/0.3207, allocations: 497.4 kB / 1.286 GB, free: 1.277 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.336e-05/0.3207, allocations: 8.031 kB / 1.286 GB, free: 1.27 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.219e-05/0.3208, allocations: 32.75 kB / 1.286 GB, free: 1.238 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004422/0.3212, allocations: 251.6 kB / 1.286 GB, free: 0.9648 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.023e-05/0.3213, allocations: 29.03 kB / 1.286 GB, free: 0.9375 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.594e-05/0.3213, allocations: 24.38 kB / 1.286 GB, free: 0.9141 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005243/0.3218, allocations: 348.2 kB / 1.287 GB, free: 0.5586 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.205e-05/0.3218, allocations: 192 / 1.287 GB, free: 0.5586 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.592e-05/0.3219, allocations: 15.94 kB / 1.287 GB, free: 0.543 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.905e-06/0.3219, allocations: 4 kB / 1.287 GB, free: 0.5391 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004001/0.3223, allocations: 259.8 kB / 1.287 GB, free: 292 kB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001115/0.3234, allocations: 0.7236 MB / 1.288 GB, free: 15.53 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 9.188e-05/0.3235, allocations: 61.12 kB / 1.288 GB, free: 15.45 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.955e-05/0.3235, allocations: 29.77 kB / 1.288 GB, free: 15.41 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.588e-05/0.3235, allocations: 4 kB / 1.288 GB, free: 15.41 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.726e-05/0.3236, allocations: 38.5 kB / 1.288 GB, free: 15.36 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=2): time 1.092e-06/0.3236, allocations: 4 kB / 1.288 GB, free: 15.36 MB / 0.9981 GB Notification: Performance of matching and sorting (n=2): time 0.0002607/0.3238, allocations: 117.5 kB / 1.288 GB, free: 15.24 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.487e-05/0.3239, allocations: 81.09 kB / 1.288 GB, free: 15.14 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003467/0.3242, allocations: 320.8 kB / 1.288 GB, free: 14.82 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 1.669e-05/0.3242, allocations: 25.7 kB / 1.288 GB, free: 14.79 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001509/0.3244, allocations: 200.1 kB / 1.289 GB, free: 14.59 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 9.478e-06/0.3244, allocations: 4 kB / 1.289 GB, free: 14.58 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.91e-05/0.3245, allocations: 61.64 kB / 1.289 GB, free: 14.52 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001511/0.3246, allocations: 334.8 kB / 1.289 GB, free: 14.18 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.466e-05/0.3247, allocations: 60.22 kB / 1.289 GB, free: 14.12 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001101/0.3249, allocations: 77.66 kB / 1.289 GB, free: 14.04 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001465/0.325, allocations: 101.6 kB / 1.289 GB, free: 13.93 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.348e-06/0.325, allocations: 4 kB / 1.289 GB, free: 13.93 MB / 0.9981 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002589/0.3253, allocations: 165.5 kB / 1.289 GB, free: 13.76 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.892e-05/0.3253, allocations: 19.86 kB / 1.289 GB, free: 13.74 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.348e-06/0.3253, allocations: 0 / 1.289 GB, free: 13.74 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.271e-05/0.3253, allocations: 0 / 1.289 GB, free: 13.74 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001231/0.3254, allocations: 24 kB / 1.289 GB, free: 13.72 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.903e-06/0.3254, allocations: 7.938 kB / 1.289 GB, free: 13.71 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.164e-05/0.3255, allocations: 15.88 kB / 1.289 GB, free: 13.7 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.343e-05/0.3255, allocations: 8 kB / 1.289 GB, free: 13.69 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.000188/0.3257, allocations: 197.5 kB / 1.29 GB, free: 13.48 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.754e-05/0.3257, allocations: 23.8 kB / 1.29 GB, free: 13.46 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000174/0.3259, allocations: 147.5 kB / 1.29 GB, free: 13.3 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.924e-05/0.326, allocations: 185.6 kB / 1.29 GB, free: 13.12 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.726e-05/0.3261, allocations: 180.3 kB / 1.29 GB, free: 12.93 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.403e-05/0.3261, allocations: 180.2 kB / 1.29 GB, free: 12.75 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003084/0.3265, allocations: 444.7 kB / 1.291 GB, free: 12.28 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.198e-05/0.3265, allocations: 105 kB / 1.291 GB, free: 12.17 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.205e-05/0.3265, allocations: 112.9 kB / 1.291 GB, free: 12.05 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.646e-05/0.3266, allocations: 180.3 kB / 1.291 GB, free: 11.87 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.687e-05/0.3267, allocations: 184.1 kB / 1.291 GB, free: 11.68 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.598e-05/0.3268, allocations: 180.3 kB / 1.291 GB, free: 11.5 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.516e-05/0.3269, allocations: 180.3 kB / 1.292 GB, free: 11.31 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001695/0.327, allocations: 319.9 kB / 1.292 GB, free: 10.98 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 9.097e-05/0.3271, allocations: 132.8 kB / 1.292 GB, free: 10.84 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.583e-05/0.3272, allocations: 184.2 kB / 1.292 GB, free: 10.65 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001051/0.3273, allocations: 105 kB / 1.292 GB, free: 10.54 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.471e-05/0.3274, allocations: 184.2 kB / 1.293 GB, free: 10.36 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.439e-05/0.3274, allocations: 105 kB / 1.293 GB, free: 10.25 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.0002425/0.3277, allocations: 228.4 kB / 1.293 GB, free: 10.03 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1e-07/0.3277, allocations: 4 kB / 1.293 GB, free: 10.02 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0002735/0.328, allocations: 43.78 kB / 1.293 GB, free: 9.98 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.0001343/0.3281, allocations: 180.7 kB / 1.293 GB, free: 9.793 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0001594/0.3283, allocations: 67.89 kB / 1.293 GB, free: 9.727 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 1.854e-06/0.3283, allocations: 0 / 1.293 GB, free: 9.727 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 1.453e-06/0.3283, allocations: 0 / 1.293 GB, free: 9.727 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004581/0.3287, allocations: 484.6 kB / 1.294 GB, free: 9.25 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006497/0.3294, allocations: 0.4901 MB / 1.294 GB, free: 8.73 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001681/0.3295, allocations: 165.3 kB / 1.294 GB, free: 8.547 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.667e-05/0.3296, allocations: 19.38 kB / 1.294 GB, free: 8.527 MB / 0.9981 GB Notification: Performance of SimCode: time 3.2e-07/0.3296, allocations: 4 kB / 1.294 GB, free: 8.523 MB / 0.9981 GB Notification: Performance of Templates: time 0.004701/0.3343, allocations: 2.79 MB / 1.297 GB, free: 5.738 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.847434162162244]