Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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.001604/0.001604, allocations: 100.3 kB / 19.7 MB, free: 2.012 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.001799/0.001799, allocations: 220.7 kB / 23 MB, free: 4.914 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.46/1.46, allocations: 230.6 MB / 256.8 MB, free: 7.824 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 3.321/3.321, allocations: 0.5107 GB / 0.8166 GB, free: 17.82 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 13.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/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_latest_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_latest_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.002081/0.002081, allocations: 66.92 kB / 1.187 GB, free: 13.46 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3291/0.3311, allocations: 181.9 MB / 1.365 GB, free: 13.58 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex): time 0.00196/0.3331, allocations: 0.7155 MB / 1.365 GB, free: 12.86 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.0002141/0.3333, allocations: 51.78 kB / 1.365 GB, free: 12.81 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.369e-05/0.3334, allocations: 0 / 1.365 GB, free: 12.81 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 0.0001106/0.3335, allocations: 23.8 kB / 1.365 GB, free: 12.79 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 0.0001052/0.3336, allocations: 7.922 kB / 1.365 GB, free: 12.78 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 5.733e-05/0.3336, allocations: 19.98 kB / 1.365 GB, free: 12.76 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 0.000235/0.3339, allocations: 187.5 kB / 1.366 GB, free: 12.58 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002762/0.3342, allocations: 145.2 kB / 1.366 GB, free: 12.43 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001099/0.3343, allocations: 99.66 kB / 1.366 GB, free: 12.34 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001608/0.3344, allocations: 127.4 kB / 1.366 GB, free: 12.21 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 4.949e-05/0.3345, allocations: 24 kB / 1.366 GB, free: 12.19 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 4.222e-05/0.3345, allocations: 24 kB / 1.366 GB, free: 12.16 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 8.353e-05/0.3346, allocations: 75.77 kB / 1.366 GB, free: 12.09 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 0.0001101/0.3347, allocations: 91.42 kB / 1.366 GB, free: 12 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.0003874/0.3351, allocations: 382.4 kB / 1.366 GB, free: 11.62 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 4.648e-06/0.3351, allocations: 0 / 1.366 GB, free: 11.62 MB / 1.061 GB Notification: Performance of FrontEnd: time 1.573e-06/0.3351, allocations: 0 / 1.366 GB, free: 11.62 MB / 1.061 GB Notification: Performance of Transformations before backend: time 7.614e-06/0.3351, allocations: 4 kB / 1.367 GB, free: 11.62 MB / 1.061 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.0006641/0.3358, allocations: 483 kB / 1.367 GB, free: 11.11 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 4.329e-05/0.3358, allocations: 12.03 kB / 1.367 GB, free: 11.1 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.573e-05/0.3359, allocations: 36.7 kB / 1.367 GB, free: 11.07 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004456/0.3363, allocations: 251.6 kB / 1.367 GB, free: 10.79 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.795e-05/0.3364, allocations: 25.03 kB / 1.367 GB, free: 10.77 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.612e-05/0.3364, allocations: 24.38 kB / 1.367 GB, free: 10.75 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005583/0.337, allocations: 348.2 kB / 1.368 GB, free: 10.39 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.256e-05/0.337, allocations: 4.125 kB / 1.368 GB, free: 10.39 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.739e-05/0.337, allocations: 19.94 kB / 1.368 GB, free: 10.37 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.915e-06/0.337, allocations: 4 kB / 1.368 GB, free: 10.37 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004114/0.3374, allocations: 259.8 kB / 1.368 GB, free: 10.11 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001151/0.3386, allocations: 0.7314 MB / 1.369 GB, free: 9.348 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 9.125e-05/0.3387, allocations: 61.14 kB / 1.369 GB, free: 9.27 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.595e-05/0.3387, allocations: 33.75 kB / 1.369 GB, free: 9.23 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 1.569e-05/0.3387, allocations: 0 / 1.369 GB, free: 9.23 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.209e-05/0.3388, allocations: 38.5 kB / 1.369 GB, free: 9.184 MB / 1.061 GB Notification: Performance of pre-optimization done (n=2): time 8.41e-07/0.3388, allocations: 0 / 1.369 GB, free: 9.184 MB / 1.061 GB Notification: Performance of matching and sorting (n=2): time 0.0002646/0.339, allocations: 125.5 kB / 1.369 GB, free: 9.055 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.14e-05/0.3391, allocations: 81.05 kB / 1.369 GB, free: 8.957 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003638/0.3395, allocations: 324.8 kB / 1.369 GB, free: 8.625 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 1.778e-05/0.3395, allocations: 29.7 kB / 1.369 GB, free: 8.59 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001443/0.3396, allocations: 184.2 kB / 1.369 GB, free: 8.406 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 1.514e-05/0.3397, allocations: 15.89 kB / 1.369 GB, free: 8.391 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.83e-05/0.3397, allocations: 57.69 kB / 1.37 GB, free: 8.328 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 0.0001621/0.3399, allocations: 334.8 kB / 1.37 GB, free: 7.992 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.289e-05/0.34, allocations: 51.95 kB / 1.37 GB, free: 7.941 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001103/0.3401, allocations: 76.55 kB / 1.37 GB, free: 7.863 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000141/0.3403, allocations: 101.9 kB / 1.37 GB, free: 7.758 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.683e-06/0.3403, allocations: 4 kB / 1.37 GB, free: 7.754 MB / 1.061 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002812/0.3405, allocations: 185.3 kB / 1.37 GB, free: 7.566 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 1.593e-05/0.3406, allocations: 7.938 kB / 1.37 GB, free: 7.559 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.122e-06/0.3406, allocations: 4 kB / 1.37 GB, free: 7.555 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.327e-05/0.3406, allocations: 0 / 1.37 GB, free: 7.555 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001223/0.3407, allocations: 23.94 kB / 1.37 GB, free: 7.531 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.494e-06/0.3407, allocations: 3.984 kB / 1.37 GB, free: 7.527 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.313e-05/0.3408, allocations: 15.95 kB / 1.37 GB, free: 7.512 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.436e-05/0.3408, allocations: 4 kB / 1.37 GB, free: 7.508 MB / 1.061 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.0002015/0.341, allocations: 194.8 kB / 1.37 GB, free: 7.309 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.399e-05/0.341, allocations: 19.84 kB / 1.371 GB, free: 7.289 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001804/0.3412, allocations: 155.4 kB / 1.371 GB, free: 7.121 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.508e-05/0.3413, allocations: 176.3 kB / 1.371 GB, free: 6.941 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.56e-05/0.3414, allocations: 188.2 kB / 1.371 GB, free: 6.75 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.303e-05/0.3414, allocations: 176.3 kB / 1.371 GB, free: 6.57 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003265/0.3418, allocations: 441.9 kB / 1.372 GB, free: 6.102 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.958e-05/0.3418, allocations: 108.9 kB / 1.372 GB, free: 5.988 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.407e-05/0.3419, allocations: 109 kB / 1.372 GB, free: 5.875 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.899e-05/0.342, allocations: 188.2 kB / 1.372 GB, free: 5.684 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.946e-05/0.342, allocations: 180.2 kB / 1.372 GB, free: 5.5 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.395e-05/0.3421, allocations: 176.3 kB / 1.372 GB, free: 5.32 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.488e-05/0.3422, allocations: 188.1 kB / 1.372 GB, free: 5.129 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001793/0.3424, allocations: 323.9 kB / 1.373 GB, free: 4.789 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 9.063e-05/0.3425, allocations: 116.9 kB / 1.373 GB, free: 4.668 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001054/0.3426, allocations: 188.2 kB / 1.373 GB, free: 4.477 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000109/0.3427, allocations: 112.9 kB / 1.373 GB, free: 4.359 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.586e-05/0.3428, allocations: 176.3 kB / 1.373 GB, free: 4.18 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.842e-05/0.3428, allocations: 104.9 kB / 1.373 GB, free: 4.07 MB / 1.061 GB Notification: Performance of sorting global known variables: time 0.000249/0.3431, allocations: 232.4 kB / 1.374 GB, free: 3.848 MB / 1.061 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3431, allocations: 4 kB / 1.374 GB, free: 3.844 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0002777/0.3434, allocations: 47.73 kB / 1.374 GB, free: 3.797 MB / 1.061 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.0001329/0.3435, allocations: 170.5 kB / 1.374 GB, free: 3.617 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0001716/0.3437, allocations: 75.89 kB / 1.374 GB, free: 3.543 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 1.884e-06/0.3437, allocations: 0 / 1.374 GB, free: 3.543 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 1.482e-06/0.3437, allocations: 0 / 1.374 GB, free: 3.543 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004743/0.3441, allocations: 472.2 kB / 1.374 GB, free: 3.078 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006749/0.3448, allocations: 0.4902 MB / 1.375 GB, free: 2.559 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001756/0.345, allocations: 173.1 kB / 1.375 GB, free: 2.367 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.559e-05/0.345, allocations: 15.44 kB / 1.375 GB, free: 2.352 MB / 1.061 GB Notification: Performance of SimCode: time 3.2e-07/0.345, allocations: 0 / 1.375 GB, free: 2.352 MB / 1.061 GB Notification: Performance of Templates: time 0.004812/0.3499, allocations: 2.787 MB / 1.378 GB, free: 15.57 MB / 1.076 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex.makefile [Timeout 300] (rm -f Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex.pipe ; mkfifo Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex.pipe ; head -c 1048576 < Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex.pipe >> ../files/Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex.sim & ./Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex -abortSlowSimulation -alarm=800 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex.pipe 2>&1) [Timeout 800] diffSimulationResults("Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Templates_Plants_Controls_Utilities_Validation_LastTrueIndex.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_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: 11.311657940968871]