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.001734/0.001734, allocations: 109.2 kB / 18.94 MB, free: 2.949 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.002505/0.002505, allocations: 219.6 kB / 22.26 MB, free: 5.125 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.485/1.485, allocations: 230.6 MB / 256 MB, free: 7.965 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.784/2.784, allocations: 476.7 MB / 0.7707 GB, free: 4.277 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.002098/0.002098, allocations: 67.78 kB / 1.117 GB, free: 39.8 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2934/0.2955, allocations: 170 MB / 1.283 GB, free: 11.57 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex): time 0.002144/0.2977, allocations: 0.721 MB / 1.284 GB, free: 10.85 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.0002509/0.2979, allocations: 51.92 kB / 1.284 GB, free: 10.8 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.849e-05/0.298, allocations: 0 / 1.284 GB, free: 10.8 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.0001215/0.2981, allocations: 19.86 kB / 1.284 GB, free: 10.78 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 0.0001284/0.2983, allocations: 7.875 kB / 1.284 GB, free: 10.77 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 7.14e-05/0.2983, allocations: 23.98 kB / 1.284 GB, free: 10.75 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0002681/0.2986, allocations: 179.6 kB / 1.284 GB, free: 10.57 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003048/0.2989, allocations: 153.1 kB / 1.284 GB, free: 10.42 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001338/0.299, allocations: 99.66 kB / 1.285 GB, free: 10.32 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001719/0.2992, allocations: 115.5 kB / 1.285 GB, free: 10.21 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 6.555e-05/0.2993, allocations: 24 kB / 1.285 GB, free: 10.19 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 5.431e-05/0.2993, allocations: 24 kB / 1.285 GB, free: 10.16 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 9.313e-05/0.2994, allocations: 71.78 kB / 1.285 GB, free: 10.09 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.0001574/0.2996, allocations: 123.2 kB / 1.285 GB, free: 9.973 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0004764/0.3, allocations: 374.6 kB / 1.285 GB, free: 9.609 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 6.042e-06/0.3001, allocations: 4 kB / 1.285 GB, free: 9.605 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.674e-06/0.3001, allocations: 0 / 1.285 GB, free: 9.605 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 1.314e-05/0.3001, allocations: 0 / 1.285 GB, free: 9.605 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.000846/0.3009, allocations: 497.4 kB / 1.286 GB, free: 9.086 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.658e-05/0.301, allocations: 8.031 kB / 1.286 GB, free: 9.078 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.305e-05/0.301, allocations: 66.72 kB / 1.286 GB, free: 9.004 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.246e-05/0.3011, allocations: 32.75 kB / 1.286 GB, free: 8.973 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000443/0.3016, allocations: 255.6 kB / 1.286 GB, free: 8.695 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.261e-05/0.3016, allocations: 29.03 kB / 1.286 GB, free: 8.668 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.359e-05/0.3016, allocations: 24.38 kB / 1.286 GB, free: 8.645 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005729/0.3022, allocations: 348.2 kB / 1.286 GB, free: 8.289 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.422e-05/0.3022, allocations: 3.938 kB / 1.287 GB, free: 8.285 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.485e-05/0.3023, allocations: 8 kB / 1.287 GB, free: 8.277 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.365e-05/0.3023, allocations: 11.98 kB / 1.287 GB, free: 8.266 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000402/0.3027, allocations: 263.8 kB / 1.287 GB, free: 8.008 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001418/0.3041, allocations: 0.8712 MB / 1.288 GB, free: 7.09 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001018/0.3042, allocations: 57.14 kB / 1.288 GB, free: 7.016 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.351e-05/0.3042, allocations: 37.7 kB / 1.288 GB, free: 6.973 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 2.461e-05/0.3043, allocations: 3.984 kB / 1.288 GB, free: 6.969 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.193e-05/0.3043, allocations: 38.56 kB / 1.288 GB, free: 6.922 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=2): time 2.134e-06/0.3043, allocations: 0 / 1.288 GB, free: 6.922 MB / 0.9825 GB Notification: Performance of matching and sorting (n=2): time 0.0003006/0.3046, allocations: 125.4 kB / 1.288 GB, free: 6.793 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.723e-05/0.3047, allocations: 81.11 kB / 1.288 GB, free: 6.695 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005843/0.3053, allocations: 481.4 kB / 1.288 GB, free: 6.219 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 1.706e-05/0.3053, allocations: 25.7 kB / 1.288 GB, free: 6.188 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001575/0.3054, allocations: 187.8 kB / 1.289 GB, free: 6 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 1.084e-05/0.3055, allocations: 8.188 kB / 1.289 GB, free: 5.992 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.621e-05/0.3055, allocations: 53.66 kB / 1.289 GB, free: 5.934 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001676/0.3057, allocations: 338.8 kB / 1.289 GB, free: 5.594 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001051/0.3058, allocations: 55.95 kB / 1.289 GB, free: 5.539 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001181/0.3059, allocations: 81.66 kB / 1.289 GB, free: 5.453 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001446/0.3061, allocations: 97.61 kB / 1.289 GB, free: 5.352 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.086e-06/0.3061, allocations: 0 / 1.289 GB, free: 5.352 MB / 0.9825 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0003019/0.3064, allocations: 193.2 kB / 1.289 GB, free: 5.156 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.775e-05/0.3064, allocations: 8 kB / 1.289 GB, free: 5.148 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.941e-06/0.3064, allocations: 4 kB / 1.289 GB, free: 5.145 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.015e-05/0.3064, allocations: 0 / 1.289 GB, free: 5.145 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001519/0.3066, allocations: 23.98 kB / 1.289 GB, free: 5.121 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.424e-06/0.3066, allocations: 0 / 1.289 GB, free: 5.121 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.938e-05/0.3067, allocations: 31.78 kB / 1.289 GB, free: 5.09 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.636e-05/0.3067, allocations: 4 kB / 1.289 GB, free: 5.086 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.000228/0.3069, allocations: 202 kB / 1.29 GB, free: 4.879 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.495e-05/0.307, allocations: 31.75 kB / 1.29 GB, free: 4.848 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002047/0.3072, allocations: 156.6 kB / 1.29 GB, free: 4.684 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.883e-05/0.3073, allocations: 190 kB / 1.29 GB, free: 4.492 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001076/0.3074, allocations: 180.2 kB / 1.29 GB, free: 4.309 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.092e-05/0.3075, allocations: 184.1 kB / 1.29 GB, free: 4.121 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004402/0.3079, allocations: 0.4923 MB / 1.291 GB, free: 3.578 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.802e-05/0.308, allocations: 105 kB / 1.291 GB, free: 3.469 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.682e-05/0.308, allocations: 104.9 kB / 1.291 GB, free: 3.359 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.86e-05/0.3081, allocations: 180.2 kB / 1.291 GB, free: 3.176 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.745e-05/0.3082, allocations: 196.2 kB / 1.291 GB, free: 2.977 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.41e-05/0.3083, allocations: 180.3 kB / 1.292 GB, free: 2.793 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.056e-05/0.3084, allocations: 176.3 kB / 1.292 GB, free: 2.613 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002175/0.3086, allocations: 335.5 kB / 1.292 GB, free: 2.262 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001317/0.3087, allocations: 144.7 kB / 1.292 GB, free: 2.113 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001051/0.3088, allocations: 176.5 kB / 1.292 GB, free: 1.934 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001232/0.309, allocations: 113 kB / 1.292 GB, free: 1.816 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.865e-05/0.3091, allocations: 180.2 kB / 1.293 GB, free: 1.633 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.845e-05/0.3091, allocations: 113 kB / 1.293 GB, free: 1.516 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.0004287/0.3095, allocations: 359.1 kB / 1.293 GB, free: 1.164 MB / 0.9825 GB Notification: Performance of sort global known variables: time 9e-08/0.3095, allocations: 0 / 1.293 GB, free: 1.164 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002699/0.3098, allocations: 27.94 kB / 1.293 GB, free: 1.137 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.0005365/0.3103, allocations: 0.8475 MB / 1.294 GB, free: 268 kB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0001919/0.3105, allocations: 71.89 kB / 1.294 GB, free: 196 kB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/0.3105, allocations: 0 / 1.294 GB, free: 196 kB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 4.058e-06/0.3105, allocations: 4 kB / 1.294 GB, free: 192 kB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005396/0.3111, allocations: 483.2 kB / 1.294 GB, free: 15.71 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003307/0.3144, allocations: 2.819 MB / 1.297 GB, free: 12.81 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004308/0.3148, allocations: 0.7791 MB / 1.298 GB, free: 12 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.0001088/0.3149, allocations: 54.25 kB / 1.298 GB, free: 11.95 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001189/0.315, allocations: 75.41 kB / 1.298 GB, free: 11.88 MB / 0.9981 GB Notification: Performance of SimCode: time 6.11e-07/0.315, allocations: 0 / 1.298 GB, free: 11.88 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03243/0.3475, allocations: 5.122 MB / 1.303 GB, free: 6.906 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.11/11.46, allocations: 4.812 kB / 1.303 GB, free: 6.902 MB / 0.9981 GB " [Timeout remaining time 288] (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: 18.09034652000082]