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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001789/0.001789, allocations: 106.7 kB / 16.45 MB, free: 6.508 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002195/0.002195, allocations: 213.7 kB / 19.43 MB, free: 3.648 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.526/1.526, allocations: 230.6 MB / 252.8 MB, free: 9.109 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo): time 2.797/2.797, allocations: 476.7 MB / 0.7672 GB, free: 5.211 MB / 0.6231 GB " [Timeout remaining time 177] Using package Buildings with version 11.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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"}) [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002239/0.002239, allocations: 67.89 kB / 1.112 GB, free: 1.504 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7668/0.769, allocations: 169.9 MB / 1.278 GB, free: 13.39 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex): time 0.002163/0.7712, allocations: 0.7209 MB / 1.279 GB, free: 12.67 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.0002379/0.7714, allocations: 47.83 kB / 1.279 GB, free: 12.62 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.771e-05/0.7715, allocations: 4 kB / 1.279 GB, free: 12.62 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.0001142/0.7716, allocations: 15.86 kB / 1.279 GB, free: 12.6 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 0.0001086/0.7717, allocations: 7.938 kB / 1.279 GB, free: 12.59 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 5.912e-05/0.7718, allocations: 19.98 kB / 1.279 GB, free: 12.57 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0002457/0.772, allocations: 191.5 kB / 1.279 GB, free: 12.39 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003301/0.7723, allocations: 206 kB / 1.279 GB, free: 12.18 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001121/0.7724, allocations: 99.66 kB / 1.28 GB, free: 12.09 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001323/0.7726, allocations: 111.5 kB / 1.28 GB, free: 11.98 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 4.428e-05/0.7726, allocations: 28 kB / 1.28 GB, free: 11.95 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 3.861e-05/0.7727, allocations: 28 kB / 1.28 GB, free: 11.92 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 8.059e-05/0.7727, allocations: 75.72 kB / 1.28 GB, free: 11.85 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.0001251/0.7729, allocations: 123.2 kB / 1.28 GB, free: 11.73 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0003931/0.7733, allocations: 376.4 kB / 1.28 GB, free: 11.36 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 3.907e-06/0.7733, allocations: 0 / 1.28 GB, free: 11.36 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.352e-06/0.7733, allocations: 0 / 1.28 GB, free: 11.36 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 7.334e-06/0.7733, allocations: 0 / 1.28 GB, free: 11.36 MB / 0.9825 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.0007317/0.774, allocations: 0.5533 MB / 1.281 GB, free: 10.75 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.597e-05/0.774, allocations: 12.03 kB / 1.281 GB, free: 10.74 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.886e-05/0.7741, allocations: 62.72 kB / 1.281 GB, free: 10.67 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.582e-05/0.7742, allocations: 44.69 kB / 1.281 GB, free: 10.63 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004337/0.7746, allocations: 317.2 kB / 1.281 GB, free: 10.28 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.789e-05/0.7747, allocations: 28.92 kB / 1.281 GB, free: 10.25 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.773e-05/0.7747, allocations: 24.38 kB / 1.281 GB, free: 10.23 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005238/0.7752, allocations: 343 kB / 1.282 GB, free: 9.883 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.249e-05/0.7752, allocations: 7.938 kB / 1.282 GB, free: 9.875 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.331e-05/0.7753, allocations: 8 kB / 1.282 GB, free: 9.867 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.598e-06/0.7753, allocations: 12 kB / 1.282 GB, free: 9.855 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004067/0.7757, allocations: 260.3 kB / 1.282 GB, free: 9.602 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001249/0.7769, allocations: 0.9057 MB / 1.283 GB, free: 8.641 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 8.471e-05/0.777, allocations: 53.2 kB / 1.283 GB, free: 8.57 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.344e-05/0.7771, allocations: 41.64 kB / 1.283 GB, free: 8.523 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 2.112e-05/0.7771, allocations: 7.984 kB / 1.283 GB, free: 8.516 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.948e-05/0.7771, allocations: 30.56 kB / 1.283 GB, free: 8.477 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=2): time 1.303e-06/0.7771, allocations: 0 / 1.283 GB, free: 8.477 MB / 0.9825 GB Notification: Performance of matching and sorting (n=2): time 0.0002791/0.7774, allocations: 129.4 kB / 1.283 GB, free: 8.344 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.542e-05/0.7775, allocations: 77.11 kB / 1.283 GB, free: 8.25 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005666/0.778, allocations: 485.7 kB / 1.284 GB, free: 7.766 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 1.891e-05/0.778, allocations: 25.7 kB / 1.284 GB, free: 7.734 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001612/0.7782, allocations: 191.7 kB / 1.284 GB, free: 7.543 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 1.077e-05/0.7782, allocations: 4 kB / 1.284 GB, free: 7.539 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.758e-05/0.7783, allocations: 49.66 kB / 1.284 GB, free: 7.484 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001635/0.7785, allocations: 338.8 kB / 1.284 GB, free: 7.145 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001001/0.7786, allocations: 55.95 kB / 1.284 GB, free: 7.09 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001129/0.7787, allocations: 73.67 kB / 1.284 GB, free: 7.012 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000149/0.7788, allocations: 105.6 kB / 1.284 GB, free: 6.902 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.735e-06/0.7788, allocations: 0 / 1.284 GB, free: 6.902 MB / 0.9825 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002893/0.7791, allocations: 189.4 kB / 1.285 GB, free: 6.711 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.672e-05/0.7791, allocations: 7.938 kB / 1.285 GB, free: 6.703 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.761e-06/0.7791, allocations: 0 / 1.285 GB, free: 6.703 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.293e-05/0.7792, allocations: 0 / 1.285 GB, free: 6.703 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001329/0.7793, allocations: 23.98 kB / 1.285 GB, free: 6.68 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.482e-06/0.7793, allocations: 7.938 kB / 1.285 GB, free: 6.672 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.607e-05/0.7794, allocations: 27.78 kB / 1.285 GB, free: 6.645 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.649e-05/0.7794, allocations: 8 kB / 1.285 GB, free: 6.637 MB / 0.9825 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.0002154/0.7796, allocations: 193.8 kB / 1.285 GB, free: 6.438 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.208e-05/0.7797, allocations: 35.69 kB / 1.285 GB, free: 6.402 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002019/0.7799, allocations: 160.7 kB / 1.285 GB, free: 6.23 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.106e-05/0.78, allocations: 184.2 kB / 1.285 GB, free: 6.043 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.589e-05/0.78, allocations: 189.9 kB / 1.285 GB, free: 5.852 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.784e-05/0.7801, allocations: 180.3 kB / 1.285 GB, free: 5.668 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004474/0.7806, allocations: 0.5166 MB / 1.286 GB, free: 5.094 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.552e-05/0.7806, allocations: 101 kB / 1.286 GB, free: 4.988 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.979e-05/0.7807, allocations: 104.9 kB / 1.286 GB, free: 4.879 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.327e-05/0.7808, allocations: 188.3 kB / 1.286 GB, free: 4.688 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.992e-05/0.7808, allocations: 180.2 kB / 1.287 GB, free: 4.504 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.313e-05/0.7809, allocations: 184.1 kB / 1.287 GB, free: 4.316 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.925e-05/0.781, allocations: 176.3 kB / 1.287 GB, free: 4.137 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002091/0.7812, allocations: 339.5 kB / 1.287 GB, free: 3.781 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001501/0.7814, allocations: 221.9 kB / 1.287 GB, free: 3.539 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001088/0.7815, allocations: 184.2 kB / 1.288 GB, free: 3.352 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001277/0.7816, allocations: 105.3 kB / 1.288 GB, free: 3.242 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.304e-05/0.7817, allocations: 180.2 kB / 1.288 GB, free: 3.059 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.436e-05/0.7817, allocations: 105 kB / 1.288 GB, free: 2.949 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.0004869/0.7822, allocations: 363.1 kB / 1.288 GB, free: 2.598 MB / 0.9825 GB Notification: Performance of sort global known variables: time 9.1e-08/0.7822, allocations: 4 kB / 1.288 GB, free: 2.594 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002862/0.7825, allocations: 31.94 kB / 1.288 GB, free: 2.562 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.0005506/0.7831, allocations: 0.8397 MB / 1.289 GB, free: 1.695 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0001843/0.7832, allocations: 71.95 kB / 1.289 GB, free: 1.625 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.294e-06/0.7832, allocations: 4 kB / 1.289 GB, free: 1.621 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 3.888e-06/0.7832, allocations: 3.938 kB / 1.289 GB, free: 1.617 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005046/0.7837, allocations: 473.2 kB / 1.29 GB, free: 1.152 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003416/0.7872, allocations: 2.834 MB / 1.292 GB, free: 14.23 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004525/0.7876, allocations: 0.7675 MB / 1.293 GB, free: 13.43 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.0001095/0.7877, allocations: 62.19 kB / 1.293 GB, free: 13.38 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001276/0.7879, allocations: 75.41 kB / 1.293 GB, free: 13.3 MB / 0.9981 GB Notification: Performance of SimCode: time 7.92e-07/0.7879, allocations: 0 / 1.293 GB, free: 13.3 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03007/0.8179, allocations: 4.966 MB / 1.298 GB, free: 8.492 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.529/9.347, allocations: 12.06 kB / 1.298 GB, free: 8.484 MB / 0.9981 GB " [Timeout remaining time 291] (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 400 --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) [Timeout 420.0] 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) [Timeout 300] "Error: Could not read variable idxLasTru.y in file Buildings_11_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex_res.csv. Warning: Get data of variable idxLasTru.y from file Buildings_11_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex_res.csv failed! Error: Could not read variable idxLasTruAllFal.y in file Buildings_11_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex_res.csv. Warning: Get data of variable idxLasTruAllFal.y from file Buildings_11_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex_res.csv failed! " [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 15.52335745585151]