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.00165/0.00165, allocations: 96.42 kB / 19.7 MB, free: 2.133 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.002058/0.002058, allocations: 214 kB / 22.99 MB, free: 4.957 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.545/1.545, 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.288/3.288, allocations: 0.49 GB / 0.7959 GB, free: 35.54 MB / 0.6231 GB " [Timeout remaining time 176] 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.002063/0.002063, allocations: 61.19 kB / 1.155 GB, free: 25.15 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4271/0.4292, allocations: 176.1 MB / 1.327 GB, free: 1.027 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex): time 0.002076/0.4312, allocations: 0.7303 MB / 1.328 GB, free: 308 kB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.0002278/0.4315, allocations: 39.84 kB / 1.328 GB, free: 268 kB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.481e-05/0.4316, allocations: 4 kB / 1.328 GB, free: 264 kB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 0.0001525/0.4317, allocations: 15.86 kB / 1.328 GB, free: 248 kB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 0.000135/0.4318, allocations: 11.92 kB / 1.328 GB, free: 236 kB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 6.366e-05/0.4319, allocations: 19.98 kB / 1.328 GB, free: 216 kB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.0002557/0.4322, allocations: 187.5 kB / 1.328 GB, free: 28 kB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003303/0.4325, allocations: 146 kB / 1.328 GB, free: 15.88 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001074/0.4326, allocations: 99.72 kB / 1.328 GB, free: 15.79 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001462/0.4327, allocations: 115.5 kB / 1.328 GB, free: 15.67 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 5.113e-05/0.4328, allocations: 24 kB / 1.328 GB, free: 15.65 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 4.499e-05/0.4328, allocations: 27.94 kB / 1.328 GB, free: 15.62 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 9.75e-05/0.4329, allocations: 71.78 kB / 1.328 GB, free: 15.55 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 0.0001127/0.433, allocations: 95.47 kB / 1.329 GB, free: 15.46 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0004248/0.4335, allocations: 382.4 kB / 1.329 GB, free: 15.08 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 5.009e-06/0.4335, allocations: 0 / 1.329 GB, free: 15.08 MB / 1.029 GB Notification: Performance of FrontEnd: time 2.625e-06/0.4335, allocations: 0 / 1.329 GB, free: 15.08 MB / 1.029 GB Notification: Performance of Transformations before backend: time 8.666e-06/0.4335, allocations: 0 / 1.329 GB, free: 15.08 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.0007246/0.4342, allocations: 499.2 kB / 1.329 GB, free: 14.56 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.084e-05/0.4343, allocations: 8.031 kB / 1.329 GB, free: 14.55 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.909e-05/0.4343, allocations: 32.75 kB / 1.329 GB, free: 14.52 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004717/0.4348, allocations: 251.6 kB / 1.33 GB, free: 14.25 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.09e-05/0.4348, allocations: 28.97 kB / 1.33 GB, free: 14.22 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.648e-05/0.4349, allocations: 24.38 kB / 1.33 GB, free: 14.2 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005723/0.4355, allocations: 344.3 kB / 1.33 GB, free: 13.85 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.257e-05/0.4355, allocations: 192 / 1.33 GB, free: 13.85 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.392e-05/0.4355, allocations: 15.94 kB / 1.33 GB, free: 13.83 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.345e-06/0.4355, allocations: 4 kB / 1.33 GB, free: 13.83 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004233/0.4359, allocations: 264.3 kB / 1.33 GB, free: 13.57 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001211/0.4372, allocations: 0.7353 MB / 1.331 GB, free: 12.8 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 9.149e-05/0.4372, allocations: 61.12 kB / 1.331 GB, free: 12.72 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.867e-05/0.4373, allocations: 33.7 kB / 1.331 GB, free: 12.68 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 1.951e-05/0.4373, allocations: 4 kB / 1.331 GB, free: 12.68 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.98e-05/0.4373, allocations: 34.5 kB / 1.331 GB, free: 12.64 MB / 1.029 GB Notification: Performance of pre-optimization done (n=2): time 1.052e-06/0.4373, allocations: 0 / 1.331 GB, free: 12.64 MB / 1.029 GB Notification: Performance of matching and sorting (n=2): time 0.0002812/0.4376, allocations: 117.5 kB / 1.331 GB, free: 12.52 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.085e-05/0.4377, allocations: 81.34 kB / 1.331 GB, free: 12.42 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003748/0.4381, allocations: 328.7 kB / 1.332 GB, free: 12.09 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 2.145e-05/0.4381, allocations: 25.7 kB / 1.332 GB, free: 12.05 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001554/0.4382, allocations: 196.2 kB / 1.332 GB, free: 11.86 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 1.01e-05/0.4382, allocations: 8 kB / 1.332 GB, free: 11.85 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.431e-05/0.4383, allocations: 61.64 kB / 1.332 GB, free: 11.79 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001551/0.4385, allocations: 334.8 kB / 1.332 GB, free: 11.45 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.994e-05/0.4386, allocations: 51.97 kB / 1.332 GB, free: 11.4 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001108/0.4387, allocations: 79.91 kB / 1.332 GB, free: 11.32 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001431/0.4389, allocations: 101.5 kB / 1.333 GB, free: 11.21 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.703e-06/0.4389, allocations: 0 / 1.333 GB, free: 11.21 MB / 1.029 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002622/0.4391, allocations: 169.5 kB / 1.333 GB, free: 11.04 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 2.247e-05/0.4391, allocations: 15.92 kB / 1.333 GB, free: 11.02 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.099e-06/0.4391, allocations: 3.938 kB / 1.333 GB, free: 11.02 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.935e-05/0.4392, allocations: 0 / 1.333 GB, free: 11.02 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001441/0.4393, allocations: 20 kB / 1.333 GB, free: 11 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.175e-06/0.4393, allocations: 4 kB / 1.333 GB, free: 11 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.317e-05/0.4394, allocations: 15.89 kB / 1.333 GB, free: 10.98 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.011e-05/0.4394, allocations: 11.98 kB / 1.333 GB, free: 10.97 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.0002147/0.4396, allocations: 197.5 kB / 1.333 GB, free: 10.77 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.966e-05/0.4397, allocations: 23.8 kB / 1.333 GB, free: 10.74 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000268/0.4399, allocations: 151.4 kB / 1.333 GB, free: 10.57 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.428e-05/0.44, allocations: 184.2 kB / 1.333 GB, free: 10.39 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.245e-05/0.4401, allocations: 176.3 kB / 1.333 GB, free: 10.21 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.638e-05/0.4402, allocations: 180.2 kB / 1.334 GB, free: 10.02 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003299/0.4405, allocations: 444.7 kB / 1.334 GB, free: 9.551 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.324e-05/0.4406, allocations: 101 kB / 1.334 GB, free: 9.445 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.743e-05/0.4406, allocations: 116.9 kB / 1.334 GB, free: 9.324 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.857e-05/0.4407, allocations: 180.3 kB / 1.334 GB, free: 9.141 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.106e-05/0.4408, allocations: 180.2 kB / 1.335 GB, free: 8.957 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.209e-05/0.4409, allocations: 188.2 kB / 1.335 GB, free: 8.766 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.816e-05/0.441, allocations: 176.3 kB / 1.335 GB, free: 8.586 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001921/0.4412, allocations: 323.9 kB / 1.335 GB, free: 8.246 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 9.425e-05/0.4413, allocations: 124.9 kB / 1.335 GB, free: 8.117 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001091/0.4414, allocations: 184.1 kB / 1.336 GB, free: 7.93 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000116/0.4415, allocations: 113 kB / 1.336 GB, free: 7.812 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.864e-05/0.4416, allocations: 184.1 kB / 1.336 GB, free: 7.625 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.245e-05/0.4416, allocations: 105 kB / 1.336 GB, free: 7.516 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.0002723/0.4419, allocations: 228.4 kB / 1.336 GB, free: 7.293 MB / 1.029 GB Notification: Performance of sort global known variables: time 9e-08/0.4419, allocations: 4 kB / 1.336 GB, free: 7.289 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0002792/0.4422, allocations: 43.78 kB / 1.336 GB, free: 7.246 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.0001536/0.4423, allocations: 170.5 kB / 1.336 GB, free: 7.066 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0001823/0.4425, allocations: 75.89 kB / 1.336 GB, free: 6.992 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 3.186e-06/0.4425, allocations: 0 / 1.336 GB, free: 6.992 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 1.513e-06/0.4425, allocations: 0 / 1.336 GB, free: 6.992 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005029/0.443, allocations: 476.6 kB / 1.337 GB, free: 6.523 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006958/0.4437, allocations: 472.2 kB / 1.337 GB, free: 6.039 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001952/0.4439, allocations: 173.2 kB / 1.338 GB, free: 5.848 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 8.924e-05/0.444, allocations: 45.38 kB / 1.338 GB, free: 5.805 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.319e-05/0.444, allocations: 15.44 kB / 1.338 GB, free: 5.789 MB / 1.029 GB Notification: Performance of SimCode: time 3e-07/0.444, allocations: 0 / 1.338 GB, free: 5.789 MB / 1.029 GB Notification: Performance of Templates: time 0.00477/0.4488, allocations: 1.197 MB / 1.339 GB, free: 4.605 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 -s cvode -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: 9.279823565011611]