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.00168/0.00168, allocations: 98.33 kB / 19.73 MB, free: 2.23 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.002042/0.002042, allocations: 212.6 kB / 23.04 MB, free: 5.074 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.481/1.481, allocations: 230.6 MB / 256.8 MB, free: 8.055 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.729/2.729, allocations: 476.7 MB / 0.7715 GB, free: 4.293 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex,fileNamePrefix="Buildings_11_Buildings_Templates_Plants_Controls_Utilities_Validation_LastTrueIndex",fmuType="cs",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.002063/0.002063, allocations: 61.84 kB / 1.118 GB, free: 39.92 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3042/0.3063, allocations: 170 MB / 1.284 GB, free: 11.66 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex): time 0.002101/0.3084, allocations: 0.7171 MB / 1.285 GB, free: 10.95 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.0002042/0.3086, allocations: 47.94 kB / 1.285 GB, free: 10.9 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.846e-05/0.3086, allocations: 11.94 kB / 1.285 GB, free: 10.89 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.0001075/0.3087, allocations: 15.86 kB / 1.285 GB, free: 10.87 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 0.0001126/0.3089, allocations: 11.92 kB / 1.285 GB, free: 10.86 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 5.509e-05/0.3089, allocations: 23.97 kB / 1.285 GB, free: 10.84 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0002298/0.3091, allocations: 175.5 kB / 1.285 GB, free: 10.66 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002653/0.3094, allocations: 149.2 kB / 1.285 GB, free: 10.52 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001037/0.3095, allocations: 103.6 kB / 1.285 GB, free: 10.42 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001318/0.3096, allocations: 107.5 kB / 1.285 GB, free: 10.31 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 4.971e-05/0.3097, allocations: 28 kB / 1.285 GB, free: 10.29 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 3.602e-05/0.3097, allocations: 24 kB / 1.285 GB, free: 10.26 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 8.841e-05/0.3098, allocations: 79.72 kB / 1.286 GB, free: 10.18 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.0001213/0.3099, allocations: 123.3 kB / 1.286 GB, free: 10.06 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0003844/0.3103, allocations: 374.6 kB / 1.286 GB, free: 9.699 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 4.208e-06/0.3103, allocations: 0 / 1.286 GB, free: 9.699 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.392e-06/0.3103, allocations: 3.938 kB / 1.286 GB, free: 9.695 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 6.712e-06/0.3103, allocations: 0 / 1.286 GB, free: 9.695 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.0006936/0.311, allocations: 497.5 kB / 1.287 GB, free: 9.176 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.876e-05/0.3111, allocations: 8.031 kB / 1.287 GB, free: 9.168 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.867e-05/0.3111, allocations: 8.844 kB / 1.287 GB, free: 9.16 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.754e-05/0.3112, allocations: 66.73 kB / 1.287 GB, free: 9.086 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.623e-05/0.3112, allocations: 32.75 kB / 1.287 GB, free: 9.055 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004123/0.3116, allocations: 251.6 kB / 1.287 GB, free: 8.781 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.308e-05/0.3117, allocations: 33.02 kB / 1.287 GB, free: 8.746 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.454e-05/0.3117, allocations: 24.38 kB / 1.287 GB, free: 8.723 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005403/0.3123, allocations: 344 kB / 1.287 GB, free: 8.375 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.162e-05/0.3123, allocations: 0 / 1.287 GB, free: 8.375 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.8e-05/0.3123, allocations: 19.98 kB / 1.287 GB, free: 8.355 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.655e-06/0.3123, allocations: 7.938 kB / 1.287 GB, free: 8.348 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003919/0.3127, allocations: 255.8 kB / 1.288 GB, free: 8.098 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001259/0.314, allocations: 0.8712 MB / 1.288 GB, free: 7.18 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 9.233e-05/0.314, allocations: 65.06 kB / 1.288 GB, free: 7.098 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.618e-05/0.3141, allocations: 33.77 kB / 1.288 GB, free: 7.059 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 2.272e-05/0.3141, allocations: 7.969 kB / 1.288 GB, free: 7.051 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.061e-05/0.3141, allocations: 34.56 kB / 1.289 GB, free: 7.008 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=2): time 1.002e-06/0.3141, allocations: 0 / 1.289 GB, free: 7.008 MB / 0.9825 GB Notification: Performance of matching and sorting (n=2): time 0.0002812/0.3144, allocations: 133.4 kB / 1.289 GB, free: 6.871 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.76e-05/0.3145, allocations: 77.11 kB / 1.289 GB, free: 6.777 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005557/0.315, allocations: 485.6 kB / 1.289 GB, free: 6.293 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 2.548e-05/0.3151, allocations: 29.7 kB / 1.289 GB, free: 6.258 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001402/0.3152, allocations: 179.8 kB / 1.289 GB, free: 6.078 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 8.426e-06/0.3152, allocations: 3.938 kB / 1.289 GB, free: 6.074 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.069e-05/0.3153, allocations: 53.59 kB / 1.289 GB, free: 6.016 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001678/0.3155, allocations: 342.8 kB / 1.29 GB, free: 5.672 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.222e-05/0.3156, allocations: 55.95 kB / 1.29 GB, free: 5.617 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001136/0.3157, allocations: 81.67 kB / 1.29 GB, free: 5.531 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001396/0.3158, allocations: 101.7 kB / 1.29 GB, free: 5.426 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.914e-06/0.3158, allocations: 0 / 1.29 GB, free: 5.426 MB / 0.9825 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002678/0.3161, allocations: 189.2 kB / 1.29 GB, free: 5.234 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.493e-05/0.3161, allocations: 11.94 kB / 1.29 GB, free: 5.223 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.168e-06/0.3161, allocations: 0 / 1.29 GB, free: 5.223 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.118e-05/0.3161, allocations: 0 / 1.29 GB, free: 5.223 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001216/0.3162, allocations: 24 kB / 1.29 GB, free: 5.199 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.124e-06/0.3162, allocations: 4 kB / 1.29 GB, free: 5.195 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.864e-05/0.3163, allocations: 27.77 kB / 1.29 GB, free: 5.168 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.458e-05/0.3163, allocations: 11.94 kB / 1.29 GB, free: 5.156 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.0001901/0.3165, allocations: 194 kB / 1.29 GB, free: 4.957 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.248e-05/0.3166, allocations: 27.81 kB / 1.29 GB, free: 4.93 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001859/0.3168, allocations: 172.5 kB / 1.291 GB, free: 4.75 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.984e-05/0.3168, allocations: 178 kB / 1.291 GB, free: 4.57 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.324e-05/0.3169, allocations: 180.3 kB / 1.291 GB, free: 4.387 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.463e-05/0.317, allocations: 180.2 kB / 1.291 GB, free: 4.203 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004149/0.3174, allocations: 0.4923 MB / 1.292 GB, free: 3.66 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.572e-05/0.3175, allocations: 104.9 kB / 1.292 GB, free: 3.551 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.299e-05/0.3175, allocations: 105 kB / 1.292 GB, free: 3.441 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.715e-05/0.3176, allocations: 184.3 kB / 1.292 GB, free: 3.254 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.789e-05/0.3177, allocations: 184.2 kB / 1.292 GB, free: 3.066 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.33e-05/0.3178, allocations: 180.3 kB / 1.292 GB, free: 2.883 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.661e-05/0.3178, allocations: 184.2 kB / 1.293 GB, free: 2.695 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001919/0.318, allocations: 335.6 kB / 1.293 GB, free: 2.344 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001264/0.3182, allocations: 144.7 kB / 1.293 GB, free: 2.195 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001042/0.3183, allocations: 184.5 kB / 1.293 GB, free: 2.008 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001497/0.3184, allocations: 104.9 kB / 1.293 GB, free: 1.898 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.875e-05/0.3185, allocations: 180.3 kB / 1.293 GB, free: 1.715 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.52e-05/0.3186, allocations: 105 kB / 1.294 GB, free: 1.605 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.0004114/0.319, allocations: 367 kB / 1.294 GB, free: 1.25 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.01e-07/0.319, allocations: 0 / 1.294 GB, free: 1.25 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002676/0.3192, allocations: 35.94 kB / 1.294 GB, free: 1.215 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.0005115/0.3197, allocations: 0.832 MB / 1.295 GB, free: 364 kB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0001744/0.3199, allocations: 75.89 kB / 1.295 GB, free: 288 kB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.344e-06/0.3199, allocations: 0 / 1.295 GB, free: 288 kB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 1.402e-06/0.3199, allocations: 0 / 1.295 GB, free: 288 kB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005086/0.3204, allocations: 485.1 kB / 1.295 GB, free: 15.8 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003155/0.3236, allocations: 2.833 MB / 1.298 GB, free: 12.88 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004184/0.324, allocations: 0.7675 MB / 1.299 GB, free: 12.09 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 9.703e-05/0.3241, allocations: 58.25 kB / 1.299 GB, free: 12.03 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001174/0.3242, allocations: 75.41 kB / 1.299 GB, free: 11.96 MB / 0.9981 GB Notification: Performance of SimCode: time 5.21e-07/0.3242, allocations: 4 kB / 1.299 GB, free: 11.95 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02627/0.3505, allocations: 5.155 MB / 1.304 GB, free: 6.965 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.61/11.97, allocations: 15.73 kB / 1.304 GB, free: 6.953 MB / 0.9981 GB " [Timeout remaining time 287] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_11_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex_res.mat --tempDir=temp_Buildings_11_Buildings_Templates_Plants_Controls_Utilities_Validation_LastTrueIndex_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=400 --tolerance=1e-06 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.mat","/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] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 18.58198502799496]