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.001694/0.001694, allocations: 104.2 kB / 19.74 MB, free: 2.07 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.002095/0.002095, allocations: 215 kB / 23.04 MB, free: 4.863 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.445/1.445, allocations: 230.6 MB / 256.8 MB, free: 7.781 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.139/3.139, allocations: 0.49 GB / 0.7959 GB, free: 35.54 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.002033/0.002033, allocations: 67.14 kB / 1.155 GB, free: 25.18 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3377/0.3397, allocations: 176.1 MB / 1.327 GB, free: 0.9961 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex): time 0.002082/0.3418, allocations: 0.7208 MB / 1.328 GB, free: 288 kB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.0002241/0.342, allocations: 47.84 kB / 1.328 GB, free: 240 kB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.387e-05/0.3421, allocations: 7.938 kB / 1.328 GB, free: 232 kB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 0.0001107/0.3422, allocations: 15.8 kB / 1.328 GB, free: 216 kB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 0.0001273/0.3423, allocations: 11.92 kB / 1.328 GB, free: 204 kB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 5.729e-05/0.3424, allocations: 19.98 kB / 1.328 GB, free: 184 kB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.0002532/0.3426, allocations: 183.5 kB / 1.328 GB, free: 0 / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000306/0.343, allocations: 146 kB / 1.328 GB, free: 15.86 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001034/0.3431, allocations: 103.6 kB / 1.328 GB, free: 15.75 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001572/0.3432, allocations: 123.5 kB / 1.328 GB, free: 15.63 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 5.235e-05/0.3433, allocations: 31.94 kB / 1.329 GB, free: 15.6 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 4.218e-05/0.3433, allocations: 24 kB / 1.329 GB, free: 15.58 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 7.892e-05/0.3434, allocations: 67.78 kB / 1.329 GB, free: 15.51 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 0.0001041/0.3435, allocations: 99.42 kB / 1.329 GB, free: 15.41 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0003971/0.3439, allocations: 370.5 kB / 1.329 GB, free: 15.05 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 6.683e-06/0.3439, allocations: 4 kB / 1.329 GB, free: 15.05 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.413e-06/0.3439, allocations: 0 / 1.329 GB, free: 15.05 MB / 1.029 GB Notification: Performance of Transformations before backend: time 7.634e-06/0.3439, allocations: 0 / 1.329 GB, free: 15.05 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.0007292/0.3446, allocations: 493.5 kB / 1.33 GB, free: 14.53 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.038e-05/0.3447, allocations: 8.031 kB / 1.33 GB, free: 14.52 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.468e-05/0.3447, allocations: 36.75 kB / 1.33 GB, free: 14.48 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004007/0.3451, allocations: 251.6 kB / 1.33 GB, free: 14.21 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.895e-05/0.3452, allocations: 29.03 kB / 1.33 GB, free: 14.18 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.931e-05/0.3452, allocations: 24.38 kB / 1.33 GB, free: 14.16 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005119/0.3457, allocations: 340.3 kB / 1.33 GB, free: 13.82 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.095e-05/0.3458, allocations: 4.125 kB / 1.33 GB, free: 13.81 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.713e-05/0.3458, allocations: 19.88 kB / 1.33 GB, free: 13.79 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.366e-06/0.3458, allocations: 4 kB / 1.33 GB, free: 13.79 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004076/0.3462, allocations: 264.3 kB / 1.33 GB, free: 13.53 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001148/0.3474, allocations: 0.7275 MB / 1.331 GB, free: 12.77 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 9.786e-05/0.3475, allocations: 61.14 kB / 1.331 GB, free: 12.69 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.757e-05/0.3475, allocations: 29.77 kB / 1.331 GB, free: 12.66 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 2.518e-05/0.3475, allocations: 4 kB / 1.331 GB, free: 12.65 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.271e-05/0.3476, allocations: 42.48 kB / 1.331 GB, free: 12.6 MB / 1.029 GB Notification: Performance of pre-optimization done (n=2): time 1.563e-06/0.3476, allocations: 0 / 1.331 GB, free: 12.6 MB / 1.029 GB Notification: Performance of matching and sorting (n=2): time 0.0002724/0.3478, allocations: 121.5 kB / 1.331 GB, free: 12.48 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.665e-05/0.3479, allocations: 77.11 kB / 1.331 GB, free: 12.38 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003749/0.3483, allocations: 324.8 kB / 1.332 GB, free: 12.05 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 2.111e-05/0.3483, allocations: 25.95 kB / 1.332 GB, free: 12.02 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001587/0.3485, allocations: 200.1 kB / 1.332 GB, free: 11.82 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 8.927e-06/0.3485, allocations: 7.938 kB / 1.332 GB, free: 11.82 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.847e-05/0.3486, allocations: 61.64 kB / 1.332 GB, free: 11.75 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001821/0.3487, allocations: 334.8 kB / 1.332 GB, free: 11.41 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.634e-05/0.3488, allocations: 55.95 kB / 1.332 GB, free: 11.36 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001056/0.3489, allocations: 73.67 kB / 1.333 GB, free: 11.28 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001559/0.3491, allocations: 97.67 kB / 1.333 GB, free: 11.18 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.295e-06/0.3491, allocations: 0 / 1.333 GB, free: 11.18 MB / 1.029 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002698/0.3494, allocations: 173.4 kB / 1.333 GB, free: 11 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 2.381e-05/0.3494, allocations: 11.94 kB / 1.333 GB, free: 10.99 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.371e-06/0.3494, allocations: 4 kB / 1.333 GB, free: 10.99 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.603e-05/0.3494, allocations: 0 / 1.333 GB, free: 10.99 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001481/0.3496, allocations: 27.98 kB / 1.333 GB, free: 10.96 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.881e-06/0.3496, allocations: 0 / 1.333 GB, free: 10.96 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.127e-05/0.3496, allocations: 19.83 kB / 1.333 GB, free: 10.94 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.967e-05/0.3496, allocations: 4 kB / 1.333 GB, free: 10.94 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.0002043/0.3499, allocations: 193.5 kB / 1.333 GB, free: 10.74 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.179e-05/0.3499, allocations: 27.78 kB / 1.333 GB, free: 10.71 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001798/0.3501, allocations: 151.4 kB / 1.333 GB, free: 10.54 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.858e-05/0.3502, allocations: 180.3 kB / 1.333 GB, free: 10.36 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.925e-05/0.3503, allocations: 184.2 kB / 1.334 GB, free: 10.17 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.62e-05/0.3503, allocations: 180.2 kB / 1.334 GB, free: 9.988 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003466/0.3507, allocations: 448.8 kB / 1.334 GB, free: 9.512 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.711e-05/0.3507, allocations: 104.9 kB / 1.334 GB, free: 9.402 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.269e-05/0.3508, allocations: 105 kB / 1.334 GB, free: 9.293 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.729e-05/0.3509, allocations: 180.3 kB / 1.335 GB, free: 9.109 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.051e-05/0.351, allocations: 184.1 kB / 1.335 GB, free: 8.922 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.249e-05/0.351, allocations: 180.3 kB / 1.335 GB, free: 8.738 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.436e-05/0.3511, allocations: 192.1 kB / 1.335 GB, free: 8.543 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001792/0.3513, allocations: 319.9 kB / 1.335 GB, free: 8.207 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 8.947e-05/0.3514, allocations: 128.9 kB / 1.335 GB, free: 8.074 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001016/0.3515, allocations: 184.2 kB / 1.336 GB, free: 7.887 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001068/0.3516, allocations: 108.9 kB / 1.336 GB, free: 7.773 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.797e-05/0.3517, allocations: 176.3 kB / 1.336 GB, free: 7.594 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.587e-05/0.3517, allocations: 105 kB / 1.336 GB, free: 7.484 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.0002663/0.352, allocations: 232.3 kB / 1.336 GB, free: 7.258 MB / 1.029 GB Notification: Performance of sort global known variables: time 1e-07/0.352, allocations: 0 / 1.336 GB, free: 7.258 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0002783/0.3523, allocations: 47.78 kB / 1.336 GB, free: 7.211 MB / 1.029 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.0001525/0.3524, allocations: 174.5 kB / 1.336 GB, free: 7.027 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0001763/0.3526, allocations: 67.95 kB / 1.337 GB, free: 6.961 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 1.773e-06/0.3526, allocations: 0 / 1.337 GB, free: 6.961 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 5.26e-06/0.3526, allocations: 3.938 kB / 1.337 GB, free: 6.957 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005011/0.3531, allocations: 472.2 kB / 1.337 GB, free: 6.492 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006868/0.3538, allocations: 0.4902 MB / 1.337 GB, free: 5.973 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001724/0.354, allocations: 173.1 kB / 1.338 GB, free: 5.781 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.593e-05/0.354, allocations: 15.44 kB / 1.338 GB, free: 5.766 MB / 1.029 GB Notification: Performance of SimCode: time 6.31e-07/0.354, allocations: 0 / 1.338 GB, free: 5.766 MB / 1.029 GB Notification: Performance of Templates: time 0.004817/0.3589, allocations: 2.801 MB / 1.34 GB, free: 2.969 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: 11.089857254875824]