Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/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_11_Buildings_Templates_Plants_Controls_Utilities_Validation_LastTrueIndex",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex,fileNamePrefix="Buildings_11_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.007128/0.007128, allocations: 102.9 kB / 15.74 MB, free: 6.066 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.002125/0.002125, allocations: 197.1 kB / 16.68 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.461/1.461, allocations: 222.9 MB / 240.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.715/2.715, allocations: 469.8 MB / 0.7425 GB, free: 3.363 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001915/0.001915, allocations: 67.89 kB / 1.065 GB, free: 14.11 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6559/0.6578, allocations: 159.1 MB / 1.22 GB, free: 2.043 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex): time 0.002027/0.6599, allocations: 0.721 MB / 1.221 GB, free: 1.324 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.0001913/0.6601, allocations: 43.84 kB / 1.221 GB, free: 1.281 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.296e-05/0.6601, allocations: 0 / 1.221 GB, free: 1.281 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 0.0001068/0.6603, allocations: 19.86 kB / 1.221 GB, free: 1.262 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 9.266e-05/0.6604, allocations: 3.938 kB / 1.221 GB, free: 1.258 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 5.511e-05/0.6604, allocations: 19.98 kB / 1.221 GB, free: 1.238 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0002409/0.6607, allocations: 183.5 kB / 1.221 GB, free: 1.059 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003617/0.661, allocations: 256.9 kB / 1.221 GB, free: 0.8047 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 9.835e-05/0.6612, allocations: 103.6 kB / 1.221 GB, free: 0.7031 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001357/0.6613, allocations: 115.5 kB / 1.222 GB, free: 0.5898 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 4.396e-05/0.6613, allocations: 24 kB / 1.222 GB, free: 0.5664 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 4.313e-05/0.6614, allocations: 24 kB / 1.222 GB, free: 0.543 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 8.297e-05/0.6615, allocations: 75.77 kB / 1.222 GB, free: 480 kB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 0.0001237/0.6616, allocations: 119.3 kB / 1.222 GB, free: 360 kB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0003893/0.662, allocations: 374.1 kB / 1.222 GB, free: 15.99 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 3.527e-06/0.662, allocations: 0 / 1.222 GB, free: 15.99 MB / 0.9512 GB Notification: Performance of FrontEnd: time 1.293e-06/0.662, allocations: 0 / 1.222 GB, free: 15.99 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 7.043e-06/0.662, allocations: 0 / 1.222 GB, free: 15.99 MB / 0.9512 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.0007426/0.6628, allocations: 0.5611 MB / 1.223 GB, free: 15.38 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 3.877e-05/0.6628, allocations: 12.03 kB / 1.223 GB, free: 15.37 MB / 0.9512 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.872e-05/0.6629, allocations: 66.66 kB / 1.223 GB, free: 15.29 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001277/0.663, allocations: 36.7 kB / 1.223 GB, free: 15.26 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004125/0.6635, allocations: 313.3 kB / 1.223 GB, free: 14.91 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.678e-05/0.6635, allocations: 32.86 kB / 1.223 GB, free: 14.88 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.921e-05/0.6636, allocations: 24.38 kB / 1.223 GB, free: 14.85 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006418/0.6642, allocations: 351 kB / 1.223 GB, free: 14.5 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.359e-05/0.6642, allocations: 3.938 kB / 1.224 GB, free: 14.5 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.31e-05/0.6643, allocations: 8 kB / 1.224 GB, free: 14.49 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.268e-05/0.6643, allocations: 8 kB / 1.224 GB, free: 14.48 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004142/0.6647, allocations: 256.4 kB / 1.224 GB, free: 14.23 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00125/0.666, allocations: 0.9173 MB / 1.225 GB, free: 13.26 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 8.833e-05/0.6661, allocations: 57.2 kB / 1.225 GB, free: 13.18 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.187e-05/0.6661, allocations: 37.7 kB / 1.225 GB, free: 13.14 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 1.729e-05/0.6661, allocations: 0 / 1.225 GB, free: 13.14 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.131e-05/0.6662, allocations: 42.42 kB / 1.225 GB, free: 13.09 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=2): time 1.002e-06/0.6662, allocations: 0 / 1.225 GB, free: 13.09 MB / 0.9512 GB Notification: Performance of matching and sorting (n=2): time 0.0002686/0.6665, allocations: 129.4 kB / 1.225 GB, free: 12.96 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.253e-05/0.6665, allocations: 81.36 kB / 1.225 GB, free: 12.86 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005771/0.6671, allocations: 477.5 kB / 1.225 GB, free: 12.39 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 1.552e-05/0.6671, allocations: 25.7 kB / 1.225 GB, free: 12.36 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002264/0.6674, allocations: 187.8 kB / 1.226 GB, free: 12.17 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 1.407e-05/0.6674, allocations: 11.95 kB / 1.226 GB, free: 12.16 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.083e-05/0.6675, allocations: 45.64 kB / 1.226 GB, free: 12.11 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0002213/0.6677, allocations: 338.8 kB / 1.226 GB, free: 11.77 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.894e-05/0.6678, allocations: 55.95 kB / 1.226 GB, free: 11.71 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000113/0.6679, allocations: 77.67 kB / 1.226 GB, free: 11.63 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001612/0.6681, allocations: 101.6 kB / 1.226 GB, free: 11.52 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.603e-06/0.6681, allocations: 0 / 1.226 GB, free: 11.52 MB / 0.9512 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002818/0.6684, allocations: 189.4 kB / 1.226 GB, free: 11.33 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 1.133e-05/0.6684, allocations: 4 kB / 1.226 GB, free: 11.33 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.236e-06/0.6684, allocations: 0 / 1.226 GB, free: 11.33 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.193e-05/0.6684, allocations: 4 kB / 1.226 GB, free: 11.32 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001226/0.6685, allocations: 27.92 kB / 1.226 GB, free: 11.3 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.729e-06/0.6686, allocations: 4 kB / 1.226 GB, free: 11.29 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.244e-05/0.6686, allocations: 31.73 kB / 1.226 GB, free: 11.26 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.432e-05/0.6687, allocations: 4 kB / 1.227 GB, free: 11.26 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.0001981/0.6689, allocations: 193.8 kB / 1.227 GB, free: 11.06 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.424e-05/0.6689, allocations: 31.75 kB / 1.227 GB, free: 11.03 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001849/0.6691, allocations: 160.6 kB / 1.227 GB, free: 10.86 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.436e-05/0.6692, allocations: 184.3 kB / 1.227 GB, free: 10.67 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001062/0.6693, allocations: 184.2 kB / 1.227 GB, free: 10.48 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.366e-05/0.6694, allocations: 180.2 kB / 1.227 GB, free: 10.3 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004719/0.6699, allocations: 0.5166 MB / 1.228 GB, free: 9.727 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.276e-05/0.6699, allocations: 105 kB / 1.228 GB, free: 9.617 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.935e-05/0.67, allocations: 109 kB / 1.228 GB, free: 9.504 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.273e-05/0.6701, allocations: 184.1 kB / 1.228 GB, free: 9.316 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.13e-05/0.6702, allocations: 177.2 kB / 1.228 GB, free: 9.137 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.944e-05/0.6703, allocations: 188.2 kB / 1.229 GB, free: 8.945 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.772e-05/0.6703, allocations: 176.3 kB / 1.229 GB, free: 8.766 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001991/0.6705, allocations: 339.5 kB / 1.229 GB, free: 8.41 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001427/0.6707, allocations: 217.9 kB / 1.229 GB, free: 8.172 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.69e-05/0.6708, allocations: 180.5 kB / 1.229 GB, free: 7.988 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001248/0.6709, allocations: 109 kB / 1.23 GB, free: 7.875 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.2e-05/0.671, allocations: 176.3 kB / 1.23 GB, free: 7.695 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.745e-05/0.6711, allocations: 116.9 kB / 1.23 GB, free: 7.574 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 0.0004323/0.6715, allocations: 363.1 kB / 1.23 GB, free: 7.219 MB / 0.9512 GB Notification: Performance of sort global known variables: time 1.3e-07/0.6715, allocations: 0 / 1.23 GB, free: 7.219 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.0002662/0.6718, allocations: 31.89 kB / 1.23 GB, free: 7.188 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.0005959/0.6724, allocations: 0.8436 MB / 1.231 GB, free: 6.316 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.0001739/0.6726, allocations: 83.89 kB / 1.231 GB, free: 6.234 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.6726, allocations: 0 / 1.231 GB, free: 6.234 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 1.382e-06/0.6726, allocations: 0 / 1.231 GB, free: 6.234 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005073/0.6731, allocations: 481.2 kB / 1.232 GB, free: 5.762 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003105/0.6762, allocations: 2.826 MB / 1.234 GB, free: 2.844 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004182/0.6766, allocations: 0.7714 MB / 1.235 GB, free: 2.047 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 0.0001021/0.6767, allocations: 54.25 kB / 1.235 GB, free: 1.996 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001187/0.6769, allocations: 83.34 kB / 1.235 GB, free: 1.914 MB / 0.9512 GB Notification: Performance of SimCode: time 2.71e-07/0.6769, allocations: 0 / 1.235 GB, free: 1.914 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02637/0.7033, allocations: 4.948 MB / 1.24 GB, free: 13.12 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.011/8.714, allocations: 10.19 kB / 1.24 GB, free: 13.11 MB / 0.9669 GB (rm -f Buildings_11_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex.pipe ; mkfifo Buildings_11_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex.pipe ; head -c 1048576 < Buildings_11_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex.pipe >> ../files/Buildings_11_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex.sim & python3 -m fmpy simulate --output-file Buildings_11_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_11_Buildings_Templates_Plants_Controls_Utilities_Validation_LastTrueIndex.fmu > Buildings_11_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Templates_Plants_Controls_Utilities_Validation_LastTrueIndex.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches