Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_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.001301/0.001301, allocations: 95.92 kB / 19.7 MB, free: 2.129 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.001465/0.001465, allocations: 211.7 kB / 23 MB, free: 4.934 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.461/1.461, allocations: 230.6 MB / 256.8 MB, free: 7.805 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.155/3.155, allocations: 0.49 GB / 0.7959 GB, free: 35.48 MB / 0.6231 GB " [Timeout remaining time 177] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-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.LastTrueIndex,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|idxLasTru.y|idxLasTruAllFal.y",fileNamePrefix="Buildings_12_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_12_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.003097/0.003097, allocations: 66.58 kB / 1.155 GB, free: 25.22 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3164/0.3195, allocations: 176.1 MB / 1.327 GB, free: 1.055 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex): time 0.001991/0.3215, allocations: 0.7109 MB / 1.328 GB, free: 356 kB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.0002266/0.3217, allocations: 47.84 kB / 1.328 GB, free: 308 kB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.174e-05/0.3218, allocations: 4 kB / 1.328 GB, free: 304 kB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 0.0001125/0.3219, allocations: 11.86 kB / 1.328 GB, free: 292 kB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 0.0001145/0.322, allocations: 19.92 kB / 1.328 GB, free: 272 kB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 5.886e-05/0.3221, allocations: 15.98 kB / 1.328 GB, free: 256 kB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.0002464/0.3223, allocations: 187.5 kB / 1.328 GB, free: 68 kB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002837/0.3226, allocations: 146 kB / 1.328 GB, free: 15.92 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001069/0.3227, allocations: 99.66 kB / 1.328 GB, free: 15.82 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001372/0.3229, allocations: 115.5 kB / 1.328 GB, free: 15.71 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 5.046e-05/0.3229, allocations: 24 kB / 1.328 GB, free: 15.69 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 4.335e-05/0.323, allocations: 24 kB / 1.328 GB, free: 15.66 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 8.123e-05/0.3231, allocations: 71.78 kB / 1.329 GB, free: 15.59 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 0.0001034/0.3232, allocations: 103.4 kB / 1.329 GB, free: 15.49 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0003873/0.3235, allocations: 374.4 kB / 1.329 GB, free: 15.12 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 3.988e-06/0.3235, allocations: 4 kB / 1.329 GB, free: 15.12 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.503e-06/0.3235, allocations: 3.938 kB / 1.329 GB, free: 15.12 MB / 1.029 GB Notification: Performance of Transformations before backend: time 6.522e-06/0.3236, allocations: 0 / 1.329 GB, free: 15.12 MB / 1.029 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.0006694/0.3242, allocations: 497.5 kB / 1.329 GB, free: 14.59 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 3.773e-05/0.3243, allocations: 8.031 kB / 1.329 GB, free: 14.59 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.515e-05/0.3243, allocations: 32.75 kB / 1.329 GB, free: 14.55 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004288/0.3248, allocations: 247.6 kB / 1.33 GB, free: 14.29 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.702e-05/0.3248, allocations: 41 kB / 1.33 GB, free: 14.25 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.749e-05/0.3248, allocations: 28.31 kB / 1.33 GB, free: 14.22 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005276/0.3254, allocations: 340.3 kB / 1.33 GB, free: 13.88 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.184e-05/0.3254, allocations: 4.125 kB / 1.33 GB, free: 13.87 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.989e-05/0.3254, allocations: 15.94 kB / 1.33 GB, free: 13.86 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.237e-06/0.3254, allocations: 7.984 kB / 1.33 GB, free: 13.85 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004072/0.3258, allocations: 260.3 kB / 1.33 GB, free: 13.59 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001139/0.327, allocations: 0.7236 MB / 1.331 GB, free: 12.84 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 8.087e-05/0.3271, allocations: 53.2 kB / 1.331 GB, free: 12.77 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.034e-05/0.3271, allocations: 37.75 kB / 1.331 GB, free: 12.72 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 1.658e-05/0.3271, allocations: 3.938 kB / 1.331 GB, free: 12.72 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.607e-05/0.3272, allocations: 38.5 kB / 1.331 GB, free: 12.67 MB / 1.029 GB Notification: Performance of pre-optimization done (n=2): time 1.303e-06/0.3272, allocations: 4 kB / 1.331 GB, free: 12.67 MB / 1.029 GB Notification: Performance of matching and sorting (n=2): time 0.0002629/0.3274, allocations: 121.5 kB / 1.331 GB, free: 12.54 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.94e-05/0.3275, allocations: 77.11 kB / 1.331 GB, free: 12.45 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003478/0.3278, allocations: 324.8 kB / 1.332 GB, free: 12.12 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 1.608e-05/0.3278, allocations: 25.7 kB / 1.332 GB, free: 12.09 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001409/0.328, allocations: 196.1 kB / 1.332 GB, free: 11.89 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 9.017e-06/0.328, allocations: 3.984 kB / 1.332 GB, free: 11.89 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.563e-05/0.3281, allocations: 65.64 kB / 1.332 GB, free: 11.82 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001443/0.3282, allocations: 326.8 kB / 1.332 GB, free: 11.49 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.669e-05/0.3283, allocations: 56.2 kB / 1.332 GB, free: 11.44 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001043/0.3284, allocations: 77.67 kB / 1.332 GB, free: 11.36 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001444/0.3286, allocations: 101.6 kB / 1.333 GB, free: 11.25 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.964e-06/0.3286, allocations: 0 / 1.333 GB, free: 11.25 MB / 1.029 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002562/0.3288, allocations: 169.5 kB / 1.333 GB, free: 11.08 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.623e-05/0.3288, allocations: 7.938 kB / 1.333 GB, free: 11.07 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.178e-06/0.3288, allocations: 0 / 1.333 GB, free: 11.07 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.55e-05/0.3289, allocations: 7.938 kB / 1.333 GB, free: 11.06 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000132/0.329, allocations: 27.92 kB / 1.333 GB, free: 11.04 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.758e-06/0.329, allocations: 160 / 1.333 GB, free: 11.04 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.371e-05/0.3291, allocations: 19.89 kB / 1.333 GB, free: 11.02 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.661e-05/0.3291, allocations: 11.98 kB / 1.333 GB, free: 11 MB / 1.029 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.0001883/0.3293, allocations: 197.5 kB / 1.333 GB, free: 10.8 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.078e-05/0.3293, allocations: 23.8 kB / 1.333 GB, free: 10.78 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00017/0.3295, allocations: 155.4 kB / 1.333 GB, free: 10.61 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.296e-05/0.3296, allocations: 176.3 kB / 1.333 GB, free: 10.43 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.905e-05/0.3296, allocations: 108.9 kB / 1.333 GB, free: 10.31 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 8.035e-05/0.3297, allocations: 116.9 kB / 1.334 GB, free: 10.19 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.533e-05/0.3298, allocations: 188.2 kB / 1.334 GB, free: 10 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001016/0.3299, allocations: 109 kB / 1.334 GB, free: 9.887 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.816e-05/0.33, allocations: 176.3 kB / 1.334 GB, free: 9.707 MB / 1.029 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0001066/0.3301, allocations: 259.5 kB / 1.334 GB, free: 9.445 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0002039/0.3303, allocations: 406.8 kB / 1.335 GB, free: 9.023 MB / 1.029 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 5.042e-05/0.3303, allocations: 105 kB / 1.335 GB, free: 8.914 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.0002493/0.3306, allocations: 232.4 kB / 1.335 GB, free: 8.688 MB / 1.029 GB Notification: Performance of Backend: time 2.61e-07/0.3306, allocations: 0 / 1.335 GB, free: 8.688 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0004491/0.331, allocations: 150.5 kB / 1.335 GB, free: 8.531 MB / 1.029 GB Notification: Performance of SimCode: time 0.001006/0.332, allocations: 1.16 MB / 1.336 GB, free: 7.324 MB / 1.029 GB Notification: Performance of Templates: time 0.004929/0.337, allocations: 1.67 MB / 1.338 GB, free: 5.672 MB / 1.029 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex.pipe ; mkfifo Buildings_12_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex.pipe ; head -c 1048576 < Buildings_12_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex.pipe >> ../files/Buildings_12_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex.sim & ./Buildings_12_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_12_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Templates_Plants_Controls_Utilities_Validation_LastTrueIndex.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_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.48341262699978]