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: "" <> buildModelFMU(Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex,fileNamePrefix="Buildings_latest_Buildings_Templates_Plants_Controls_Utilities_Validation_LastTrueIndex",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex,fileNamePrefix="Buildings_latest_Buildings_Templates_Plants_Controls_Utilities_Validation_LastTrueIndex",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.005838/0.005838, allocations: 101.4 kB / 15.73 MB, free: 6.035 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.001208/0.001208, allocations: 192.1 kB / 16.67 MB, free: 5.973 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.415/1.415, allocations: 222.9 MB / 240.4 MB, free: 4.312 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.739/2.739, allocations: 461.9 MB / 0.7348 GB, free: 14.66 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.002064/0.002064, allocations: 63.91 kB / 1.054 GB, free: 7.719 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3302/0.3323, allocations: 157.4 MB / 1.207 GB, free: 10.22 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex): time 0.001951/0.3343, allocations: 0.7092 MB / 1.208 GB, free: 9.508 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.0002294/0.3345, allocations: 47.78 kB / 1.208 GB, free: 9.461 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.35e-05/0.3346, allocations: 4 kB / 1.208 GB, free: 9.457 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.0001107/0.3347, allocations: 15.86 kB / 1.208 GB, free: 9.441 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.0001065/0.3349, allocations: 7.938 kB / 1.208 GB, free: 9.434 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 5.615e-05/0.3349, allocations: 23.98 kB / 1.208 GB, free: 9.41 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0002163/0.3352, allocations: 183.5 kB / 1.208 GB, free: 9.23 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003455/0.3355, allocations: 264.9 kB / 1.208 GB, free: 8.969 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001151/0.3356, allocations: 99.66 kB / 1.209 GB, free: 8.871 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001277/0.3358, allocations: 115.4 kB / 1.209 GB, free: 8.758 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 4.129e-05/0.3358, allocations: 28 kB / 1.209 GB, free: 8.73 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 3.597e-05/0.3359, allocations: 24 kB / 1.209 GB, free: 8.707 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 7.373e-05/0.3359, allocations: 71.78 kB / 1.209 GB, free: 8.637 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 0.0001178/0.3361, allocations: 119.3 kB / 1.209 GB, free: 8.52 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0003195/0.3364, allocations: 378.6 kB / 1.209 GB, free: 8.148 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 4.799e-06/0.3364, allocations: 0 / 1.209 GB, free: 8.148 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.423e-06/0.3364, allocations: 0 / 1.209 GB, free: 8.148 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 1.053e-05/0.3364, allocations: 0 / 1.209 GB, free: 8.148 MB / 0.9669 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.0006566/0.3371, allocations: 0.5421 MB / 1.21 GB, free: 7.555 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 4.241e-05/0.3371, allocations: 16.56 kB / 1.21 GB, free: 7.539 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.475e-05/0.3372, allocations: 62.72 kB / 1.21 GB, free: 7.469 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.07e-05/0.3373, allocations: 32.56 kB / 1.21 GB, free: 7.438 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003483/0.3376, allocations: 321.1 kB / 1.21 GB, free: 7.082 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.872e-05/0.3377, allocations: 28.92 kB / 1.21 GB, free: 7.055 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.728e-05/0.3377, allocations: 24.38 kB / 1.21 GB, free: 7.031 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004718/0.3382, allocations: 343 kB / 1.211 GB, free: 6.688 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.396e-05/0.3382, allocations: 7.938 kB / 1.211 GB, free: 6.68 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.103e-05/0.3383, allocations: 8 kB / 1.211 GB, free: 6.672 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.325e-06/0.3383, allocations: 8 kB / 1.211 GB, free: 6.664 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003632/0.3386, allocations: 251.8 kB / 1.211 GB, free: 6.418 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001188/0.3398, allocations: 0.913 MB / 1.212 GB, free: 5.449 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 7.892e-05/0.3399, allocations: 57.14 kB / 1.212 GB, free: 5.375 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.433e-05/0.34, allocations: 37.7 kB / 1.212 GB, free: 5.332 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 2.414e-05/0.34, allocations: 0 / 1.212 GB, free: 5.332 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.755e-05/0.3401, allocations: 42.48 kB / 1.212 GB, free: 5.281 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=2): time 2.274e-06/0.3401, allocations: 7.922 kB / 1.212 GB, free: 5.273 MB / 0.9669 GB Notification: Performance of matching and sorting (n=2): time 0.0002632/0.3403, allocations: 125.3 kB / 1.212 GB, free: 5.145 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.186e-05/0.3404, allocations: 81.05 kB / 1.212 GB, free: 5.047 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004707/0.3409, allocations: 473.5 kB / 1.213 GB, free: 4.578 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 1.314e-05/0.3409, allocations: 25.7 kB / 1.213 GB, free: 4.547 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001148/0.341, allocations: 183.8 kB / 1.213 GB, free: 4.363 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 1.031e-05/0.341, allocations: 8 kB / 1.213 GB, free: 4.355 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.642e-05/0.3411, allocations: 57.55 kB / 1.213 GB, free: 4.293 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001104/0.3412, allocations: 338.8 kB / 1.213 GB, free: 3.953 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.997e-05/0.3413, allocations: 55.95 kB / 1.213 GB, free: 3.898 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.26e-05/0.3414, allocations: 73.67 kB / 1.213 GB, free: 3.82 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001323/0.3415, allocations: 101.6 kB / 1.213 GB, free: 3.715 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.054e-06/0.3415, allocations: 0 / 1.213 GB, free: 3.715 MB / 0.9669 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002577/0.3418, allocations: 189.2 kB / 1.214 GB, free: 3.523 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.569e-05/0.3418, allocations: 4 kB / 1.214 GB, free: 3.52 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.572e-06/0.3418, allocations: 0 / 1.214 GB, free: 3.52 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.497e-05/0.3419, allocations: 0 / 1.214 GB, free: 3.52 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001359/0.342, allocations: 31.92 kB / 1.214 GB, free: 3.488 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.5e-06/0.342, allocations: 0 / 1.214 GB, free: 3.488 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.205e-05/0.3421, allocations: 35.59 kB / 1.214 GB, free: 3.453 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.527e-05/0.3421, allocations: 4 kB / 1.214 GB, free: 3.449 MB / 0.9669 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.0001702/0.3423, allocations: 197.7 kB / 1.214 GB, free: 3.246 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.325e-05/0.3424, allocations: 27.66 kB / 1.214 GB, free: 3.219 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001636/0.3425, allocations: 168.5 kB / 1.214 GB, free: 3.035 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.985e-05/0.3426, allocations: 180.3 kB / 1.214 GB, free: 2.852 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.418e-05/0.3426, allocations: 180.2 kB / 1.214 GB, free: 2.668 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.606e-05/0.3427, allocations: 196.2 kB / 1.214 GB, free: 2.469 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003149/0.343, allocations: 0.5132 MB / 1.215 GB, free: 1.898 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.389e-05/0.3431, allocations: 108.9 kB / 1.215 GB, free: 1.785 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.08e-05/0.3431, allocations: 105 kB / 1.215 GB, free: 1.676 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.052e-05/0.3432, allocations: 180.2 kB / 1.215 GB, free: 1.492 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.362e-05/0.3432, allocations: 176.4 kB / 1.216 GB, free: 1.312 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.218e-05/0.3433, allocations: 188.3 kB / 1.216 GB, free: 1.121 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.184e-05/0.3433, allocations: 184.2 kB / 1.216 GB, free: 0.9336 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001383/0.3435, allocations: 331.3 kB / 1.216 GB, free: 0.5859 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001248/0.3436, allocations: 213.8 kB / 1.216 GB, free: 360 kB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.546e-05/0.3437, allocations: 180.3 kB / 1.217 GB, free: 172 kB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001075/0.3438, allocations: 112.9 kB / 1.217 GB, free: 52 kB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.861e-05/0.3439, allocations: 176.3 kB / 1.217 GB, free: 15.87 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.003e-05/0.3439, allocations: 104.9 kB / 1.217 GB, free: 15.76 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.0003692/0.3443, allocations: 367.1 kB / 1.217 GB, free: 15.41 MB / 0.9825 GB Notification: Performance of sort global known variables: time 2.1e-07/0.3443, allocations: 0 / 1.217 GB, free: 15.41 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.000275/0.3446, allocations: 27.91 kB / 1.217 GB, free: 15.38 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.0004473/0.345, allocations: 0.8435 MB / 1.218 GB, free: 14.51 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0001671/0.3452, allocations: 79.89 kB / 1.218 GB, free: 14.43 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 5.36e-06/0.3452, allocations: 0 / 1.218 GB, free: 14.43 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 1.713e-06/0.3452, allocations: 0 / 1.218 GB, free: 14.43 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004282/0.3457, allocations: 483 kB / 1.219 GB, free: 13.95 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002816/0.3485, allocations: 2.812 MB / 1.221 GB, free: 11.06 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003139/0.3488, allocations: 0.7714 MB / 1.222 GB, free: 10.26 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 0.0001038/0.3489, allocations: 54.25 kB / 1.222 GB, free: 10.21 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000112/0.349, allocations: 79.41 kB / 1.222 GB, free: 10.13 MB / 0.9825 GB Notification: Performance of SimCode: time 3.11e-07/0.3491, allocations: 0 / 1.222 GB, free: 10.13 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02349/0.3725, allocations: 4.971 MB / 1.227 GB, free: 5.312 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.692/8.065, allocations: 8.797 kB / 1.227 GB, free: 5.305 MB / 0.9825 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex_res.mat --tempDir=temp_Buildings_latest_Buildings_Templates_Plants_Controls_Utilities_Validation_LastTrueIndex_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Templates_Plants_Controls_Utilities_Validation_LastTrueIndex.fmu > 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