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.001475/0.001475, allocations: 99.64 kB / 18.95 MB, free: 2.668 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.001795/0.001795, allocations: 210.2 kB / 22.24 MB, free: 5.262 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.523/1.523, allocations: 230.6 MB / 256 MB, free: 7.801 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.969/2.969, allocations: 476 MB / 0.7699 GB, free: 4.805 MB / 0.6231 GB " [Timeout remaining time 176] 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.002169/0.002169, allocations: 66.12 kB / 1.117 GB, free: 41.04 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3535/0.3556, allocations: 170 MB / 1.283 GB, free: 12.01 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex): time 0.002202/0.3578, allocations: 0.7093 MB / 1.284 GB, free: 11.3 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.0002624/0.3581, allocations: 47.94 kB / 1.284 GB, free: 11.26 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.893e-05/0.3582, allocations: 3.938 kB / 1.284 GB, free: 11.25 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.0001378/0.3583, allocations: 19.86 kB / 1.284 GB, free: 11.23 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 0.0001383/0.3585, allocations: 11.91 kB / 1.284 GB, free: 11.22 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 6.138e-05/0.3585, allocations: 19.98 kB / 1.284 GB, free: 11.2 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.00026/0.3588, allocations: 183.5 kB / 1.284 GB, free: 11.02 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000305/0.3591, allocations: 149.3 kB / 1.284 GB, free: 10.88 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001141/0.3592, allocations: 95.7 kB / 1.284 GB, free: 10.78 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001615/0.3594, allocations: 123.5 kB / 1.284 GB, free: 10.66 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 4.853e-05/0.3594, allocations: 24 kB / 1.284 GB, free: 10.64 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 4.46e-05/0.3595, allocations: 27.94 kB / 1.284 GB, free: 10.61 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 9.254e-05/0.3596, allocations: 67.78 kB / 1.284 GB, free: 10.54 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.0001149/0.3597, allocations: 95.47 kB / 1.285 GB, free: 10.45 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0004463/0.3601, allocations: 386.3 kB / 1.285 GB, free: 10.07 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 6.222e-06/0.3601, allocations: 0 / 1.285 GB, free: 10.07 MB / 0.9825 GB Notification: Performance of FrontEnd: time 2.084e-06/0.3601, allocations: 0 / 1.285 GB, free: 10.07 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 9.117e-06/0.3601, allocations: 4 kB / 1.285 GB, free: 10.07 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.000827/0.361, allocations: 493.5 kB / 1.285 GB, free: 9.551 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.431e-05/0.361, allocations: 12.03 kB / 1.285 GB, free: 9.539 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.379e-05/0.3611, allocations: 36.73 kB / 1.285 GB, free: 9.504 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000598/0.3617, allocations: 251.6 kB / 1.286 GB, free: 9.23 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.979e-05/0.3617, allocations: 29.03 kB / 1.286 GB, free: 9.203 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.012e-05/0.3618, allocations: 24.38 kB / 1.286 GB, free: 9.18 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005649/0.3623, allocations: 344.2 kB / 1.286 GB, free: 8.828 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.348e-05/0.3623, allocations: 192 / 1.286 GB, free: 8.828 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.052e-05/0.3624, allocations: 15.94 kB / 1.286 GB, free: 8.812 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.967e-06/0.3624, allocations: 8 kB / 1.286 GB, free: 8.805 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004247/0.3628, allocations: 259.8 kB / 1.286 GB, free: 8.551 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00128/0.3641, allocations: 0.7275 MB / 1.287 GB, free: 7.789 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001118/0.3642, allocations: 61.12 kB / 1.287 GB, free: 7.711 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.064e-05/0.3643, allocations: 29.77 kB / 1.287 GB, free: 7.676 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 2.369e-05/0.3643, allocations: 0 / 1.287 GB, free: 7.676 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.392e-05/0.3643, allocations: 38.5 kB / 1.287 GB, free: 7.629 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=2): time 9.42e-07/0.3643, allocations: 0 / 1.287 GB, free: 7.629 MB / 0.9825 GB Notification: Performance of matching and sorting (n=2): time 0.0003083/0.3646, allocations: 121.7 kB / 1.287 GB, free: 7.504 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.948e-05/0.3647, allocations: 85.12 kB / 1.287 GB, free: 7.402 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003951/0.3651, allocations: 324.7 kB / 1.288 GB, free: 7.078 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 2.175e-05/0.3651, allocations: 25.7 kB / 1.288 GB, free: 7.047 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001646/0.3653, allocations: 192.2 kB / 1.288 GB, free: 6.855 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 9.728e-06/0.3653, allocations: 4 kB / 1.288 GB, free: 6.852 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.495e-05/0.3654, allocations: 61.64 kB / 1.288 GB, free: 6.785 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001746/0.3655, allocations: 334.8 kB / 1.288 GB, free: 6.449 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002145/0.3658, allocations: 51.97 kB / 1.288 GB, free: 6.398 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000125/0.3659, allocations: 86.22 kB / 1.288 GB, free: 6.309 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001581/0.366, allocations: 105.6 kB / 1.288 GB, free: 6.199 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.923e-06/0.366, allocations: 4 kB / 1.288 GB, free: 6.195 MB / 0.9825 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002643/0.3663, allocations: 165.5 kB / 1.289 GB, free: 6.027 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 2.068e-05/0.3663, allocations: 11.92 kB / 1.289 GB, free: 6.016 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.285e-06/0.3663, allocations: 4 kB / 1.289 GB, free: 6.012 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.468e-05/0.3664, allocations: 0 / 1.289 GB, free: 6.012 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001421/0.3665, allocations: 20 kB / 1.289 GB, free: 5.992 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.404e-06/0.3665, allocations: 0 / 1.289 GB, free: 5.992 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.913e-05/0.3666, allocations: 23.88 kB / 1.289 GB, free: 5.969 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.732e-05/0.3666, allocations: 4 kB / 1.289 GB, free: 5.965 MB / 0.9825 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.0002278/0.3668, allocations: 205.4 kB / 1.289 GB, free: 5.754 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.743e-05/0.3669, allocations: 23.8 kB / 1.289 GB, free: 5.73 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001853/0.3671, allocations: 147.5 kB / 1.289 GB, free: 5.574 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001017/0.3672, allocations: 186 kB / 1.289 GB, free: 5.387 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0002069/0.3674, allocations: 176.3 kB / 1.289 GB, free: 5.207 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001159/0.3675, allocations: 188.2 kB / 1.29 GB, free: 5.016 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004334/0.3679, allocations: 444.8 kB / 1.29 GB, free: 4.543 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.421e-05/0.368, allocations: 101 kB / 1.29 GB, free: 4.438 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.129e-05/0.3681, allocations: 108.9 kB / 1.29 GB, free: 4.324 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002004/0.3683, allocations: 180.3 kB / 1.29 GB, free: 4.141 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001099/0.3684, allocations: 188.1 kB / 1.291 GB, free: 3.949 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002202/0.3686, allocations: 180.3 kB / 1.291 GB, free: 3.766 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0001083/0.3687, allocations: 184.2 kB / 1.291 GB, free: 3.578 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002712/0.369, allocations: 319.7 kB / 1.291 GB, free: 3.242 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001044/0.3691, allocations: 124.8 kB / 1.291 GB, free: 3.113 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001428/0.3692, allocations: 188.5 kB / 1.292 GB, free: 2.922 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001417/0.3694, allocations: 105 kB / 1.292 GB, free: 2.812 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001175/0.3695, allocations: 184.2 kB / 1.292 GB, free: 2.625 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.182e-05/0.3695, allocations: 101 kB / 1.292 GB, free: 2.52 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.0003025/0.3698, allocations: 232.4 kB / 1.292 GB, free: 2.293 MB / 0.9825 GB Notification: Performance of sort global known variables: time 8e-08/0.3698, allocations: 4 kB / 1.292 GB, free: 2.289 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0003531/0.3702, allocations: 43.78 kB / 1.292 GB, free: 2.246 MB / 0.9825 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.000184/0.3704, allocations: 178.5 kB / 1.292 GB, free: 2.059 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0001909/0.3706, allocations: 71.89 kB / 1.292 GB, free: 1.988 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.505e-06/0.3706, allocations: 0 / 1.292 GB, free: 1.988 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 1.553e-06/0.3706, allocations: 0 / 1.292 GB, free: 1.988 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005117/0.3711, allocations: 480 kB / 1.293 GB, free: 1.516 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006707/0.3718, allocations: 472.2 kB / 1.293 GB, free: 1.031 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000187/0.3719, allocations: 169.3 kB / 1.293 GB, free: 0.8438 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 7.895e-05/0.372, allocations: 37.45 kB / 1.293 GB, free: 0.8086 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.918e-05/0.3721, allocations: 11.44 kB / 1.294 GB, free: 0.7969 MB / 0.9825 GB Notification: Performance of SimCode: time 2.81e-07/0.3721, allocations: 0 / 1.294 GB, free: 0.7969 MB / 0.9825 GB Notification: Performance of Templates: time 0.00489/0.377, allocations: 1.2 MB / 1.295 GB, free: 15.62 MB / 0.9981 GB " [Timeout remaining time 299] 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/jenkins/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: 9.25380376726389]