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.00781/0.00781, allocations: 106.5 kB / 15.74 MB, free: 5.578 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.001638/0.001638, allocations: 189.9 kB / 16.67 MB, free: 5.516 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.344/1.344, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.562/2.562, allocations: 461.9 MB / 0.7348 GB, free: 11.09 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001268/0.001268, allocations: 63.91 kB / 1.054 GB, free: 7.691 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8207/0.8219, allocations: 157.4 MB / 1.208 GB, free: 13.64 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex): time 0.001763/0.8238, allocations: 0.7145 MB / 1.208 GB, free: 12.93 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.0001986/0.824, allocations: 51.78 kB / 1.208 GB, free: 12.88 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.601e-05/0.824, allocations: 0 / 1.208 GB, free: 12.88 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 0.0001053/0.8242, allocations: 19.86 kB / 1.208 GB, free: 12.86 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 0.0001045/0.8243, allocations: 7.922 kB / 1.208 GB, free: 12.85 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 5.032e-05/0.8243, allocations: 23.98 kB / 1.208 GB, free: 12.83 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0002073/0.8245, allocations: 179.6 kB / 1.209 GB, free: 12.65 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003234/0.8249, allocations: 256.9 kB / 1.209 GB, free: 12.39 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 8.595e-05/0.825, allocations: 99.64 kB / 1.209 GB, free: 12.3 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001059/0.8251, allocations: 115.4 kB / 1.209 GB, free: 12.18 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 3.747e-05/0.8251, allocations: 24 kB / 1.209 GB, free: 12.16 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 3.551e-05/0.8252, allocations: 24 kB / 1.209 GB, free: 12.14 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 6.952e-05/0.8252, allocations: 71.78 kB / 1.209 GB, free: 12.07 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 0.0001014/0.8253, allocations: 123.3 kB / 1.209 GB, free: 11.95 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0002954/0.8256, allocations: 374.6 kB / 1.21 GB, free: 11.58 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 4.528e-06/0.8257, allocations: 4 kB / 1.21 GB, free: 11.57 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.503e-06/0.8257, allocations: 0 / 1.21 GB, free: 11.57 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 8.646e-06/0.8257, allocations: 0 / 1.21 GB, free: 11.57 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.0005645/0.8262, allocations: 0.5552 MB / 1.21 GB, free: 10.97 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 3.145e-05/0.8263, allocations: 8.031 kB / 1.21 GB, free: 10.96 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.58e-05/0.8263, allocations: 32.56 kB / 1.21 GB, free: 10.93 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003362/0.8267, allocations: 313.2 kB / 1.211 GB, free: 10.59 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.762e-05/0.8267, allocations: 24.92 kB / 1.211 GB, free: 10.56 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.485e-05/0.8268, allocations: 28.38 kB / 1.211 GB, free: 10.54 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004566/0.8272, allocations: 347 kB / 1.211 GB, free: 10.19 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.776e-06/0.8273, allocations: 192 / 1.211 GB, free: 10.19 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.406e-05/0.8273, allocations: 19.88 kB / 1.211 GB, free: 10.17 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.053e-06/0.8273, allocations: 4 kB / 1.211 GB, free: 10.16 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003456/0.8277, allocations: 255.8 kB / 1.211 GB, free: 9.914 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001053/0.8287, allocations: 0.9129 MB / 1.212 GB, free: 8.945 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 6.85e-05/0.8288, allocations: 57.14 kB / 1.212 GB, free: 8.871 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.942e-05/0.8288, allocations: 29.77 kB / 1.212 GB, free: 8.836 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 1.907e-05/0.8289, allocations: 3.938 kB / 1.212 GB, free: 8.832 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.953e-05/0.8289, allocations: 38.55 kB / 1.212 GB, free: 8.785 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=2): time 1.132e-06/0.8289, allocations: 7.938 kB / 1.212 GB, free: 8.777 MB / 0.9356 GB Notification: Performance of matching and sorting (n=2): time 0.0002477/0.8292, allocations: 121.4 kB / 1.212 GB, free: 8.652 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.828e-05/0.8292, allocations: 81.05 kB / 1.212 GB, free: 8.555 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004492/0.8297, allocations: 481.3 kB / 1.213 GB, free: 8.078 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 1.195e-05/0.8297, allocations: 25.7 kB / 1.213 GB, free: 8.047 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001111/0.8298, allocations: 187.5 kB / 1.213 GB, free: 7.859 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 1.091e-05/0.8298, allocations: 7.984 kB / 1.213 GB, free: 7.852 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.977e-05/0.8299, allocations: 49.95 kB / 1.213 GB, free: 7.797 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001096/0.83, allocations: 338.8 kB / 1.213 GB, free: 7.457 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.844e-05/0.8301, allocations: 59.95 kB / 1.214 GB, free: 7.398 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.631e-05/0.8302, allocations: 76.17 kB / 1.214 GB, free: 7.32 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001244/0.8303, allocations: 93.67 kB / 1.214 GB, free: 7.223 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.733e-06/0.8303, allocations: 0 / 1.214 GB, free: 7.223 MB / 0.9356 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002356/0.8306, allocations: 193.1 kB / 1.214 GB, free: 7.027 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.35e-05/0.8306, allocations: 8 kB / 1.214 GB, free: 7.02 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.639e-06/0.8306, allocations: 4 kB / 1.214 GB, free: 7.016 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.415e-05/0.8306, allocations: 0 / 1.214 GB, free: 7.016 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001275/0.8307, allocations: 27.92 kB / 1.214 GB, free: 6.988 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.782e-06/0.8308, allocations: 4 kB / 1.214 GB, free: 6.984 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.512e-05/0.8308, allocations: 31.59 kB / 1.214 GB, free: 6.953 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.355e-05/0.8309, allocations: 4 kB / 1.214 GB, free: 6.949 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.0001647/0.831, allocations: 197.8 kB / 1.214 GB, free: 6.746 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.857e-05/0.8311, allocations: 27.66 kB / 1.214 GB, free: 6.719 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001502/0.8312, allocations: 160.6 kB / 1.214 GB, free: 6.547 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.659e-05/0.8313, allocations: 180.3 kB / 1.215 GB, free: 6.363 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.178e-05/0.8314, allocations: 180.2 kB / 1.215 GB, free: 6.18 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.983e-05/0.8314, allocations: 180.2 kB / 1.215 GB, free: 5.996 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003054/0.8317, allocations: 0.5205 MB / 1.215 GB, free: 5.418 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.366e-05/0.8318, allocations: 112.9 kB / 1.215 GB, free: 5.301 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.621e-05/0.8318, allocations: 101 kB / 1.216 GB, free: 5.195 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.172e-05/0.8318, allocations: 184.2 kB / 1.216 GB, free: 5.008 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.12e-05/0.8319, allocations: 176.3 kB / 1.216 GB, free: 4.828 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.322e-05/0.832, allocations: 180.2 kB / 1.216 GB, free: 4.645 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.82e-05/0.832, allocations: 184.2 kB / 1.216 GB, free: 4.457 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001324/0.8322, allocations: 335.4 kB / 1.217 GB, free: 4.105 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000107/0.8323, allocations: 221.6 kB / 1.217 GB, free: 3.863 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.246e-05/0.8323, allocations: 176.5 kB / 1.217 GB, free: 3.684 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001019/0.8325, allocations: 116.9 kB / 1.217 GB, free: 3.562 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.522e-05/0.8325, allocations: 180.2 kB / 1.217 GB, free: 3.379 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.276e-05/0.8326, allocations: 108.9 kB / 1.217 GB, free: 3.266 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 0.0003434/0.8329, allocations: 363.1 kB / 1.218 GB, free: 2.914 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.5e-07/0.8329, allocations: 0 / 1.218 GB, free: 2.914 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.000257/0.8332, allocations: 31.94 kB / 1.218 GB, free: 2.883 MB / 0.9356 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.0001211/0.8333, allocations: 178.5 kB / 1.218 GB, free: 2.699 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.000154/0.8335, allocations: 83.89 kB / 1.218 GB, free: 2.617 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 2.334e-06/0.8335, allocations: 0 / 1.218 GB, free: 2.617 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 1.232e-06/0.8335, allocations: 0 / 1.218 GB, free: 2.617 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004425/0.8339, allocations: 485.2 kB / 1.218 GB, free: 2.137 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006048/0.8345, allocations: 0.4964 MB / 1.219 GB, free: 1.609 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002968/0.8348, allocations: 0.7675 MB / 1.22 GB, free: 0.8164 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 8.981e-05/0.8349, allocations: 50.25 kB / 1.22 GB, free: 0.7695 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.985e-05/0.835, allocations: 19.44 kB / 1.22 GB, free: 0.7539 MB / 0.9356 GB Notification: Performance of SimCode: time 2.6e-07/0.835, allocations: 4 kB / 1.22 GB, free: 0.75 MB / 0.9356 GB Notification: Performance of Templates: time 0.004177/0.8392, allocations: 1.711 MB / 1.221 GB, free: 15.05 MB / 0.9512 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/jenkins/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