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.1.0-master/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-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.004389/0.004389, allocations: 99.45 kB / 15.73 MB, free: 6.059 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.001083/0.001083, allocations: 191.1 kB / 16.67 MB, free: 5.969 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.317/1.317, allocations: 222.9 MB / 240.4 MB, free: 15.1 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-master/package.mo): time 2.647/2.647, allocations: 469.4 MB / 0.7422 GB, free: 3.492 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001238/0.001238, allocations: 64.11 kB / 1.064 GB, free: 14.29 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6743/0.6756, allocations: 159.1 MB / 1.22 GB, free: 2.246 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex): time 0.001983/0.6776, allocations: 0.7054 MB / 1.22 GB, free: 1.539 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.0002632/0.6779, allocations: 47.84 kB / 1.22 GB, free: 1.492 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001105/0.678, allocations: 4 kB / 1.22 GB, free: 1.488 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 0.0001519/0.6782, allocations: 11.86 kB / 1.22 GB, free: 1.477 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 0.0001328/0.6784, allocations: 15.92 kB / 1.22 GB, free: 1.461 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 6.775e-05/0.6784, allocations: 15.98 kB / 1.221 GB, free: 1.445 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0002353/0.6787, allocations: 191.4 kB / 1.221 GB, free: 1.258 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003585/0.679, allocations: 252.9 kB / 1.221 GB, free: 1.008 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001143/0.6792, allocations: 95.66 kB / 1.221 GB, free: 0.9141 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001372/0.6793, allocations: 119.5 kB / 1.221 GB, free: 0.7969 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 4.757e-05/0.6794, allocations: 31.94 kB / 1.221 GB, free: 0.7656 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 3.744e-05/0.6794, allocations: 24 kB / 1.221 GB, free: 0.7422 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 8.713e-05/0.6795, allocations: 67.78 kB / 1.221 GB, free: 0.6758 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 0.0001303/0.6796, allocations: 123.3 kB / 1.221 GB, free: 0.5547 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0003673/0.68, allocations: 378 kB / 1.222 GB, free: 196 kB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 3.456e-06/0.68, allocations: 0 / 1.222 GB, free: 196 kB / 0.9356 GB Notification: Performance of FrontEnd: time 2.775e-06/0.68, allocations: 3.984 kB / 1.222 GB, free: 192 kB / 0.9356 GB Notification: Performance of Transformations before backend: time 1.135e-05/0.6801, allocations: 0 / 1.222 GB, free: 192 kB / 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.0006817/0.6807, allocations: 0.5534 MB / 1.222 GB, free: 15.58 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 3.892e-05/0.6808, allocations: 16.62 kB / 1.222 GB, free: 15.56 MB / 0.9512 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.758e-05/0.6809, allocations: 58.73 kB / 1.222 GB, free: 15.5 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.121e-05/0.6809, allocations: 40.7 kB / 1.222 GB, free: 15.46 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000395/0.6813, allocations: 317.2 kB / 1.223 GB, free: 15.11 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.043e-05/0.6814, allocations: 28.94 kB / 1.223 GB, free: 15.08 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.61e-05/0.6814, allocations: 28.31 kB / 1.223 GB, free: 15.05 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004973/0.6819, allocations: 335 kB / 1.223 GB, free: 14.71 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.245e-05/0.682, allocations: 11.94 kB / 1.223 GB, free: 14.7 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.26e-05/0.682, allocations: 8 kB / 1.223 GB, free: 14.7 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.001e-05/0.682, allocations: 8 kB / 1.223 GB, free: 14.69 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003701/0.6824, allocations: 259.8 kB / 1.223 GB, free: 14.43 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001204/0.6836, allocations: 0.9173 MB / 1.224 GB, free: 13.46 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 7.659e-05/0.6837, allocations: 61.17 kB / 1.224 GB, free: 13.38 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.904e-05/0.6837, allocations: 33.7 kB / 1.224 GB, free: 13.34 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 1.935e-05/0.6838, allocations: 7.938 kB / 1.224 GB, free: 13.34 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.035e-05/0.6838, allocations: 38.5 kB / 1.224 GB, free: 13.29 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=2): time 1.312e-06/0.6838, allocations: 0 / 1.224 GB, free: 13.29 MB / 0.9512 GB Notification: Performance of matching and sorting (n=2): time 0.000267/0.6841, allocations: 129.4 kB / 1.224 GB, free: 13.16 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.854e-05/0.6841, allocations: 81.36 kB / 1.225 GB, free: 13.06 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000487/0.6846, allocations: 481.4 kB / 1.225 GB, free: 12.58 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 1.368e-05/0.6846, allocations: 25.7 kB / 1.225 GB, free: 12.55 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 0.000124/0.6848, allocations: 179.8 kB / 1.225 GB, free: 12.37 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 1.096e-05/0.6848, allocations: 3.953 kB / 1.225 GB, free: 12.37 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.03e-05/0.6849, allocations: 49.64 kB / 1.225 GB, free: 12.31 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001216/0.685, allocations: 342.8 kB / 1.226 GB, free: 11.97 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.268e-05/0.6851, allocations: 59.95 kB / 1.226 GB, free: 11.91 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001002/0.6852, allocations: 77.67 kB / 1.226 GB, free: 11.83 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001377/0.6853, allocations: 105.6 kB / 1.226 GB, free: 11.72 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.984e-06/0.6853, allocations: 0 / 1.226 GB, free: 11.72 MB / 0.9512 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002659/0.6856, allocations: 185.4 kB / 1.226 GB, free: 11.53 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 1.585e-05/0.6856, allocations: 5.719 kB / 1.226 GB, free: 11.53 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.338e-06/0.6856, allocations: 0 / 1.226 GB, free: 11.53 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.572e-05/0.6857, allocations: 3.938 kB / 1.226 GB, free: 11.52 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001308/0.6858, allocations: 27.94 kB / 1.226 GB, free: 11.5 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.27e-06/0.6858, allocations: 0 / 1.226 GB, free: 11.5 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.605e-05/0.6859, allocations: 35.72 kB / 1.226 GB, free: 11.46 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.6e-05/0.6859, allocations: 8 kB / 1.226 GB, free: 11.45 MB / 0.9512 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.0001753/0.6861, allocations: 185.8 kB / 1.226 GB, free: 11.26 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.627e-05/0.6862, allocations: 31.75 kB / 1.226 GB, free: 11.23 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001734/0.6864, allocations: 164.6 kB / 1.226 GB, free: 11.06 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.801e-05/0.6864, allocations: 180.3 kB / 1.227 GB, free: 10.88 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.687e-05/0.6865, allocations: 180.2 kB / 1.227 GB, free: 10.69 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.073e-05/0.6866, allocations: 184.3 kB / 1.227 GB, free: 10.5 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003659/0.6869, allocations: 0.5166 MB / 1.227 GB, free: 9.93 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.414e-05/0.687, allocations: 101 kB / 1.228 GB, free: 9.824 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.334e-05/0.687, allocations: 109 kB / 1.228 GB, free: 9.711 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.402e-05/0.6871, allocations: 184.2 kB / 1.228 GB, free: 9.523 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.637e-05/0.6872, allocations: 181.2 kB / 1.228 GB, free: 9.34 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.503e-05/0.6872, allocations: 180.2 kB / 1.228 GB, free: 9.156 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.501e-05/0.6873, allocations: 180.3 kB / 1.228 GB, free: 8.973 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001683/0.6875, allocations: 347.5 kB / 1.229 GB, free: 8.609 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001554/0.6876, allocations: 217.9 kB / 1.229 GB, free: 8.371 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.676e-05/0.6878, allocations: 180.5 kB / 1.229 GB, free: 8.188 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001128/0.6879, allocations: 105 kB / 1.229 GB, free: 8.078 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.116e-05/0.688, allocations: 180.2 kB / 1.229 GB, free: 7.895 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.624e-05/0.688, allocations: 109 kB / 1.229 GB, free: 7.781 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 0.0004068/0.6884, allocations: 367.1 kB / 1.23 GB, free: 7.422 MB / 0.9512 GB Notification: Performance of sort global known variables: time 1.61e-07/0.6884, allocations: 0 / 1.23 GB, free: 7.422 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.0002792/0.6887, allocations: 31.89 kB / 1.23 GB, free: 7.391 MB / 0.9512 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.000435/0.6892, allocations: 0.8475 MB / 1.231 GB, free: 6.516 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.0001562/0.6893, allocations: 71.95 kB / 1.231 GB, free: 6.445 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.6893, allocations: 0 / 1.231 GB, free: 6.445 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 3.807e-06/0.6893, allocations: 3.938 kB / 1.231 GB, free: 6.441 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004471/0.6898, allocations: 483.6 kB / 1.231 GB, free: 5.969 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002944/0.6928, allocations: 2.846 MB / 1.234 GB, free: 3.031 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003566/0.6931, allocations: 0.7714 MB / 1.235 GB, free: 2.234 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 0.0001052/0.6932, allocations: 54.25 kB / 1.235 GB, free: 2.184 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001213/0.6934, allocations: 79.41 kB / 1.235 GB, free: 2.105 MB / 0.9512 GB Notification: Performance of SimCode: time 3.61e-07/0.6934, allocations: 0 / 1.235 GB, free: 2.105 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02179/0.7152, allocations: 4.943 MB / 1.24 GB, free: 13.31 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.494/8.21, allocations: 4.375 kB / 1.24 GB, free: 13.31 MB / 0.9669 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 & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 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.csv","/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