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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,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=5000,variableFilter="time|idxLasTru.y|idxLasTruAllFal.y",fileNamePrefix="Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001189/0.001189, allocations: 115.2 kB / 16.42 MB, free: 6.449 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001056/0.001056, allocations: 183.9 kB / 17.35 MB, free: 5.738 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.323/1.323, allocations: 222.9 MB / 241.1 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.524/2.524, allocations: 461.9 MB / 0.7355 GB, free: 11.11 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001286/0.001286, allocations: 63.91 kB / 1.055 GB, free: 7.723 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.705/0.7063, allocations: 157.4 MB / 1.208 GB, free: 13.65 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex): time 0.001782/0.7082, allocations: 0.6973 MB / 1.209 GB, free: 12.96 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.00021/0.7084, allocations: 55.78 kB / 1.209 GB, free: 12.9 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.695e-05/0.7085, allocations: 4 kB / 1.209 GB, free: 12.9 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 0.0001187/0.7086, allocations: 7.875 kB / 1.209 GB, free: 12.89 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 0.000119/0.7087, allocations: 19.92 kB / 1.209 GB, free: 12.87 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 5.647e-05/0.7088, allocations: 15.98 kB / 1.209 GB, free: 12.86 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0002246/0.709, allocations: 183.5 kB / 1.209 GB, free: 12.68 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003571/0.7094, allocations: 260.9 kB / 1.21 GB, free: 12.41 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001096/0.7095, allocations: 103.6 kB / 1.21 GB, free: 12.31 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001342/0.7097, allocations: 115.4 kB / 1.21 GB, free: 12.2 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 4.896e-05/0.7097, allocations: 24 kB / 1.21 GB, free: 12.18 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 4.008e-05/0.7098, allocations: 28 kB / 1.21 GB, free: 12.15 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 7.456e-05/0.7098, allocations: 67.77 kB / 1.21 GB, free: 12.08 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 0.0001179/0.71, allocations: 127.3 kB / 1.21 GB, free: 11.96 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0003386/0.7103, allocations: 366.7 kB / 1.21 GB, free: 11.6 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 4.909e-06/0.7103, allocations: 7.938 kB / 1.21 GB, free: 11.59 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.433e-06/0.7103, allocations: 0 / 1.21 GB, free: 11.59 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 1.013e-05/0.7103, allocations: 0 / 1.21 GB, free: 11.59 MB / 0.9356 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.0006813/0.711, allocations: 0.5474 MB / 1.211 GB, free: 11 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 4.128e-05/0.7111, allocations: 8.031 kB / 1.211 GB, free: 10.99 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.014e-05/0.7112, allocations: 32.56 kB / 1.211 GB, free: 10.96 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003751/0.7115, allocations: 317.2 kB / 1.211 GB, free: 10.61 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.009e-05/0.7116, allocations: 32.92 kB / 1.211 GB, free: 10.57 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.624e-05/0.7116, allocations: 24.38 kB / 1.211 GB, free: 10.55 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004956/0.7121, allocations: 343 kB / 1.212 GB, free: 10.21 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.009e-05/0.7122, allocations: 192 / 1.212 GB, free: 10.21 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.607e-05/0.7122, allocations: 11.94 kB / 1.212 GB, free: 10.2 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.435e-06/0.7122, allocations: 8 kB / 1.212 GB, free: 10.19 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000362/0.7126, allocations: 255.8 kB / 1.212 GB, free: 9.938 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001101/0.7137, allocations: 0.9091 MB / 1.213 GB, free: 8.973 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 7.171e-05/0.7138, allocations: 57.14 kB / 1.213 GB, free: 8.898 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.223e-05/0.7138, allocations: 37.75 kB / 1.213 GB, free: 8.855 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 2.153e-05/0.7138, allocations: 3.938 kB / 1.213 GB, free: 8.852 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.861e-05/0.7139, allocations: 34.56 kB / 1.213 GB, free: 8.809 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=2): time 2.665e-06/0.7139, allocations: 0 / 1.213 GB, free: 8.809 MB / 0.9356 GB Notification: Performance of matching and sorting (n=2): time 0.0002651/0.7141, allocations: 133.2 kB / 1.213 GB, free: 8.672 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.541e-05/0.7142, allocations: 77.11 kB / 1.213 GB, free: 8.578 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004856/0.7147, allocations: 485.2 kB / 1.214 GB, free: 8.098 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 1.542e-05/0.7147, allocations: 25.7 kB / 1.214 GB, free: 8.066 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 0.000126/0.7148, allocations: 187.8 kB / 1.214 GB, free: 7.879 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 1.016e-05/0.7149, allocations: 8 kB / 1.214 GB, free: 7.871 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.811e-05/0.7149, allocations: 41.7 kB / 1.214 GB, free: 7.824 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.000118/0.715, allocations: 338.8 kB / 1.214 GB, free: 7.484 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.048e-05/0.7151, allocations: 59.95 kB / 1.214 GB, free: 7.426 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001022/0.7153, allocations: 76.91 kB / 1.214 GB, free: 7.348 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001297/0.7154, allocations: 93.69 kB / 1.214 GB, free: 7.25 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.974e-06/0.7154, allocations: 0 / 1.214 GB, free: 7.25 MB / 0.9356 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002491/0.7157, allocations: 201.1 kB / 1.215 GB, free: 7.047 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.391e-05/0.7157, allocations: 4 kB / 1.215 GB, free: 7.043 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.468e-06/0.7157, allocations: 3.938 kB / 1.215 GB, free: 7.039 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.169e-05/0.7157, allocations: 0 / 1.215 GB, free: 7.039 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001262/0.7158, allocations: 31.92 kB / 1.215 GB, free: 7.008 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.22e-06/0.7158, allocations: 0 / 1.215 GB, free: 7.008 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.796e-05/0.7159, allocations: 27.59 kB / 1.215 GB, free: 6.98 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.396e-05/0.7159, allocations: 4 kB / 1.215 GB, free: 6.977 MB / 0.9356 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.0001638/0.7161, allocations: 197.8 kB / 1.215 GB, free: 6.773 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.065e-05/0.7162, allocations: 27.66 kB / 1.215 GB, free: 6.746 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001575/0.7163, allocations: 164.6 kB / 1.215 GB, free: 6.57 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.554e-05/0.7164, allocations: 176.3 kB / 1.215 GB, free: 6.391 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.134e-05/0.7164, allocations: 105 kB / 1.215 GB, free: 6.281 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001026/0.7165, allocations: 221.7 kB / 1.216 GB, free: 6.039 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.583e-05/0.7166, allocations: 184.2 kB / 1.216 GB, free: 5.852 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001003/0.7167, allocations: 108.9 kB / 1.216 GB, free: 5.738 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.906e-05/0.7168, allocations: 180.3 kB / 1.216 GB, free: 5.555 MB / 0.9356 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 7.198e-05/0.7169, allocations: 263.4 kB / 1.216 GB, free: 5.289 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.000152/0.717, allocations: 406.7 kB / 1.217 GB, free: 4.867 MB / 0.9356 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 3.379e-05/0.7171, allocations: 104.9 kB / 1.217 GB, free: 4.758 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 0.0003434/0.7174, allocations: 359.1 kB / 1.217 GB, free: 4.41 MB / 0.9356 GB Notification: Performance of Backend: time 4.01e-07/0.7174, allocations: 0 / 1.217 GB, free: 4.41 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0004225/0.7178, allocations: 154.3 kB / 1.217 GB, free: 4.254 MB / 0.9356 GB Notification: Performance of SimCode: time 0.0008937/0.7187, allocations: 1.2 MB / 1.218 GB, free: 3 MB / 0.9356 GB Notification: Performance of Templates: time 0.004824/0.7236, allocations: 2.109 MB / 1.22 GB, free: 0.9062 MB / 0.9356 GB make -j1 -f Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex.makefile (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=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex.pipe 2>&1) 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) Reference file matches