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.001475/0.001475, allocations: 95.64 kB / 18.95 MB, free: 2.691 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.001541/0.001541, allocations: 212.8 kB / 22.24 MB, free: 5.242 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.51/1.51, allocations: 230.6 MB / 256 MB, free: 7.801 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.815/2.815, allocations: 476 MB / 0.7699 GB, free: 4.73 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.002193/0.002193, allocations: 67.11 kB / 1.117 GB, free: 41.14 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2948/0.297, allocations: 170 MB / 1.283 GB, free: 12.46 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex): time 0.002247/0.2992, allocations: 0.7132 MB / 1.283 GB, free: 11.75 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.0002482/0.2995, allocations: 51.88 kB / 1.283 GB, free: 11.7 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.544e-05/0.2996, allocations: 4 kB / 1.283 GB, free: 11.7 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.0001192/0.2997, allocations: 11.86 kB / 1.283 GB, free: 11.69 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 0.0001374/0.2998, allocations: 19.86 kB / 1.283 GB, free: 11.67 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 6.418e-05/0.2999, allocations: 15.98 kB / 1.283 GB, free: 11.65 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.000281/0.3002, allocations: 187.5 kB / 1.284 GB, free: 11.47 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003095/0.3005, allocations: 137.4 kB / 1.284 GB, free: 11.33 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001177/0.3006, allocations: 107.6 kB / 1.284 GB, free: 11.23 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001677/0.3008, allocations: 123.4 kB / 1.284 GB, free: 11.11 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 5.248e-05/0.3008, allocations: 24 kB / 1.284 GB, free: 11.08 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 4.61e-05/0.3009, allocations: 32 kB / 1.284 GB, free: 11.05 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 8.929e-05/0.301, allocations: 67.78 kB / 1.284 GB, free: 10.98 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.0001051/0.3011, allocations: 91.48 kB / 1.284 GB, free: 10.89 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0004258/0.3015, allocations: 375.8 kB / 1.284 GB, free: 10.53 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 5.009e-06/0.3015, allocations: 0 / 1.284 GB, free: 10.53 MB / 0.9825 GB Notification: Performance of FrontEnd: time 2.134e-06/0.3015, allocations: 0 / 1.284 GB, free: 10.53 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 9.067e-06/0.3015, allocations: 4 kB / 1.284 GB, free: 10.53 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.0006784/0.3022, allocations: 489.5 kB / 1.285 GB, free: 10.02 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.955e-05/0.3022, allocations: 8.031 kB / 1.285 GB, free: 10.01 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.988e-05/0.3023, allocations: 62.73 kB / 1.285 GB, free: 9.938 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.886e-05/0.3024, allocations: 36.73 kB / 1.285 GB, free: 9.902 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004378/0.3028, allocations: 251.6 kB / 1.285 GB, free: 9.629 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.877e-05/0.3028, allocations: 33.02 kB / 1.285 GB, free: 9.598 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.927e-05/0.3029, allocations: 24.38 kB / 1.285 GB, free: 9.574 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005315/0.3034, allocations: 348.2 kB / 1.286 GB, free: 9.219 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.8e-05/0.3034, allocations: 3.938 kB / 1.286 GB, free: 9.215 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.598e-05/0.3035, allocations: 12 kB / 1.286 GB, free: 9.203 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.678e-06/0.3035, allocations: 4 kB / 1.286 GB, free: 9.199 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004131/0.3039, allocations: 255.8 kB / 1.286 GB, free: 8.949 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001358/0.3052, allocations: 0.8399 MB / 1.287 GB, free: 8.062 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 9.745e-05/0.3053, allocations: 57.2 kB / 1.287 GB, free: 7.988 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.946e-05/0.3054, allocations: 33.7 kB / 1.287 GB, free: 7.949 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 2.057e-05/0.3054, allocations: 4 kB / 1.287 GB, free: 7.945 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.074e-05/0.3054, allocations: 38.48 kB / 1.287 GB, free: 7.898 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=2): time 1.443e-06/0.3054, allocations: 3.938 kB / 1.287 GB, free: 7.895 MB / 0.9825 GB Notification: Performance of matching and sorting (n=2): time 0.0002876/0.3057, allocations: 133.4 kB / 1.287 GB, free: 7.758 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.379e-05/0.3058, allocations: 77.11 kB / 1.287 GB, free: 7.664 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005379/0.3063, allocations: 485.4 kB / 1.288 GB, free: 7.18 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 1.708e-05/0.3063, allocations: 25.95 kB / 1.288 GB, free: 7.148 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 0.000138/0.3065, allocations: 183.8 kB / 1.288 GB, free: 6.965 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 1.148e-05/0.3065, allocations: 7.938 kB / 1.288 GB, free: 6.957 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.982e-05/0.3066, allocations: 45.7 kB / 1.288 GB, free: 6.906 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001594/0.3067, allocations: 342.8 kB / 1.288 GB, free: 6.562 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.955e-05/0.3068, allocations: 59.95 kB / 1.288 GB, free: 6.504 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001028/0.3069, allocations: 77.61 kB / 1.288 GB, free: 6.422 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001506/0.3071, allocations: 109.6 kB / 1.288 GB, free: 6.309 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.014e-06/0.3071, allocations: 0 / 1.288 GB, free: 6.309 MB / 0.9825 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002601/0.3073, allocations: 185.4 kB / 1.289 GB, free: 6.121 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.317e-05/0.3073, allocations: 4 kB / 1.289 GB, free: 6.117 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.898e-06/0.3074, allocations: 4 kB / 1.289 GB, free: 6.113 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.327e-05/0.3074, allocations: 0 / 1.289 GB, free: 6.113 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001241/0.3075, allocations: 27.92 kB / 1.289 GB, free: 6.086 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.925e-06/0.3075, allocations: 4 kB / 1.289 GB, free: 6.082 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.855e-05/0.3076, allocations: 27.73 kB / 1.289 GB, free: 6.055 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.484e-05/0.3076, allocations: 4 kB / 1.289 GB, free: 6.051 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.0001983/0.3078, allocations: 197.5 kB / 1.289 GB, free: 5.848 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.008e-05/0.3079, allocations: 35.75 kB / 1.289 GB, free: 5.812 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001801/0.308, allocations: 164.6 kB / 1.289 GB, free: 5.641 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.312e-05/0.3081, allocations: 178 kB / 1.289 GB, free: 5.461 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.433e-05/0.3082, allocations: 184.2 kB / 1.289 GB, free: 5.273 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.502e-05/0.3083, allocations: 180.2 kB / 1.289 GB, free: 5.09 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000387/0.3087, allocations: 492.1 kB / 1.29 GB, free: 4.559 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.887e-05/0.3087, allocations: 105 kB / 1.29 GB, free: 4.449 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.792e-05/0.3088, allocations: 101 kB / 1.29 GB, free: 4.344 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.898e-05/0.3088, allocations: 184.2 kB / 1.29 GB, free: 4.156 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.273e-05/0.3089, allocations: 180.3 kB / 1.29 GB, free: 3.973 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.161e-05/0.309, allocations: 184.2 kB / 1.291 GB, free: 3.785 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.386e-05/0.3091, allocations: 184.3 kB / 1.291 GB, free: 3.598 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000183/0.3093, allocations: 335.5 kB / 1.291 GB, free: 3.246 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001356/0.3094, allocations: 144.7 kB / 1.291 GB, free: 3.098 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001079/0.3095, allocations: 184.5 kB / 1.291 GB, free: 2.91 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001119/0.3096, allocations: 109 kB / 1.292 GB, free: 2.797 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.651e-05/0.3097, allocations: 180.3 kB / 1.292 GB, free: 2.613 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.306e-05/0.3098, allocations: 108.9 kB / 1.292 GB, free: 2.5 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.0003995/0.3102, allocations: 359.1 kB / 1.292 GB, free: 2.152 MB / 0.9825 GB Notification: Performance of sort global known variables: time 8e-08/0.3102, allocations: 0 / 1.292 GB, free: 2.152 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002583/0.3104, allocations: 35.95 kB / 1.292 GB, free: 2.117 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.0005253/0.3109, allocations: 0.8397 MB / 1.293 GB, free: 1.25 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0001644/0.3111, allocations: 75.83 kB / 1.293 GB, free: 1.176 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.304e-06/0.3111, allocations: 0 / 1.293 GB, free: 1.176 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 1.273e-06/0.3111, allocations: 0 / 1.293 GB, free: 1.176 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004941/0.3116, allocations: 493 kB / 1.294 GB, free: 0.6914 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003126/0.3147, allocations: 2.817 MB / 1.296 GB, free: 13.79 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001701/0.3149, allocations: 169.7 kB / 1.297 GB, free: 13.6 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.0001125/0.315, allocations: 54.25 kB / 1.297 GB, free: 13.55 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001298/0.3151, allocations: 79.41 kB / 1.297 GB, free: 13.47 MB / 0.9981 GB Notification: Performance of SimCode: time 5.41e-07/0.3151, allocations: 0 / 1.297 GB, free: 13.47 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03193/0.3471, allocations: 5.581 MB / 1.302 GB, free: 8.047 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.44/11.79, allocations: 10.61 kB / 1.302 GB, free: 8.047 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.47565617505461]