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.001955/0.001955, allocations: 110.4 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.002265/0.002265, allocations: 215.9 kB / 22.25 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.478/1.478, allocations: 230.6 MB / 256 MB, free: 8 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.867/2.867, allocations: 476.7 MB / 0.7707 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="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.00208/0.00208, allocations: 65.06 kB / 1.117 GB, free: 40.35 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3144/0.3164, allocations: 169.9 MB / 1.283 GB, free: 11.73 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex): time 0.00211/0.3185, allocations: 0.723 MB / 1.284 GB, free: 11 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.0002381/0.3188, allocations: 55.88 kB / 1.284 GB, free: 10.95 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.562e-05/0.3189, allocations: 4 kB / 1.284 GB, free: 10.95 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.0001054/0.319, allocations: 15.86 kB / 1.284 GB, free: 10.93 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 0.0001116/0.3191, allocations: 11.92 kB / 1.284 GB, free: 10.92 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 5.987e-05/0.3191, allocations: 19.98 kB / 1.284 GB, free: 10.9 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0002547/0.3194, allocations: 183.6 kB / 1.284 GB, free: 10.72 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002702/0.3197, allocations: 141.2 kB / 1.284 GB, free: 10.58 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001339/0.3198, allocations: 107.6 kB / 1.285 GB, free: 10.48 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001494/0.3199, allocations: 115.5 kB / 1.285 GB, free: 10.36 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 4.758e-05/0.32, allocations: 24 kB / 1.285 GB, free: 10.34 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 3.707e-05/0.32, allocations: 24 kB / 1.285 GB, free: 10.32 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 8.985e-05/0.3201, allocations: 75.78 kB / 1.285 GB, free: 10.24 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.000136/0.3203, allocations: 127.2 kB / 1.285 GB, free: 10.12 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0004031/0.3207, allocations: 366.6 kB / 1.285 GB, free: 9.762 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 4.098e-06/0.3207, allocations: 0 / 1.285 GB, free: 9.762 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.332e-06/0.3207, allocations: 0 / 1.285 GB, free: 9.762 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 1.487e-05/0.3207, allocations: 0 / 1.285 GB, free: 9.762 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.0007312/0.3214, allocations: 0.4954 MB / 1.286 GB, free: 9.234 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.655e-05/0.3214, allocations: 8.031 kB / 1.286 GB, free: 9.227 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.799e-05/0.3215, allocations: 66.72 kB / 1.286 GB, free: 9.152 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.845e-05/0.3216, allocations: 36.75 kB / 1.286 GB, free: 9.117 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004367/0.322, allocations: 243.7 kB / 1.286 GB, free: 8.852 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.246e-05/0.3221, allocations: 33.02 kB / 1.286 GB, free: 8.82 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.895e-05/0.3221, allocations: 24.38 kB / 1.286 GB, free: 8.797 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005595/0.3227, allocations: 348.2 kB / 1.286 GB, free: 8.445 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.215e-05/0.3227, allocations: 3.938 kB / 1.286 GB, free: 8.441 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.308e-05/0.3227, allocations: 8 kB / 1.286 GB, free: 8.434 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.031e-05/0.3227, allocations: 8 kB / 1.287 GB, free: 8.426 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000422/0.3231, allocations: 259.8 kB / 1.287 GB, free: 8.172 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001344/0.3245, allocations: 0.8828 MB / 1.288 GB, free: 7.242 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 8.609e-05/0.3246, allocations: 53.2 kB / 1.288 GB, free: 7.172 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.149e-05/0.3246, allocations: 37.7 kB / 1.288 GB, free: 7.129 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 1.786e-05/0.3246, allocations: 7.938 kB / 1.288 GB, free: 7.121 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.856e-05/0.3247, allocations: 34.5 kB / 1.288 GB, free: 7.078 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=2): time 1.212e-06/0.3247, allocations: 0 / 1.288 GB, free: 7.078 MB / 0.9825 GB Notification: Performance of matching and sorting (n=2): time 0.0002873/0.325, allocations: 133.4 kB / 1.288 GB, free: 6.941 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.651e-05/0.325, allocations: 77.11 kB / 1.288 GB, free: 6.848 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005939/0.3256, allocations: 485.7 kB / 1.288 GB, free: 6.363 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 1.763e-05/0.3256, allocations: 29.7 kB / 1.288 GB, free: 6.328 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001582/0.3258, allocations: 183.8 kB / 1.289 GB, free: 6.145 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 1.36e-05/0.3258, allocations: 11.92 kB / 1.289 GB, free: 6.133 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.287e-05/0.3259, allocations: 45.66 kB / 1.289 GB, free: 6.082 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001656/0.326, allocations: 342.8 kB / 1.289 GB, free: 5.738 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.455e-05/0.3261, allocations: 51.95 kB / 1.289 GB, free: 5.688 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001122/0.3263, allocations: 78.42 kB / 1.289 GB, free: 5.605 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001497/0.3264, allocations: 105.6 kB / 1.289 GB, free: 5.496 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.024e-06/0.3264, allocations: 0 / 1.289 GB, free: 5.496 MB / 0.9825 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002921/0.3267, allocations: 185.4 kB / 1.289 GB, free: 5.309 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.546e-05/0.3267, allocations: 4 kB / 1.289 GB, free: 5.305 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.388e-06/0.3267, allocations: 0 / 1.289 GB, free: 5.305 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.298e-05/0.3267, allocations: 4 kB / 1.289 GB, free: 5.301 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001296/0.3269, allocations: 27.92 kB / 1.289 GB, free: 5.273 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.945e-06/0.3269, allocations: 4.141 kB / 1.289 GB, free: 5.27 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.737e-05/0.3269, allocations: 27.78 kB / 1.289 GB, free: 5.242 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.736e-05/0.327, allocations: 8 kB / 1.289 GB, free: 5.234 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.0002096/0.3272, allocations: 198 kB / 1.29 GB, free: 5.031 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.005e-05/0.3272, allocations: 31.75 kB / 1.29 GB, free: 5 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001964/0.3274, allocations: 164.5 kB / 1.29 GB, free: 4.828 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.503e-05/0.3275, allocations: 178 kB / 1.29 GB, free: 4.648 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.229e-05/0.3276, allocations: 188.2 kB / 1.29 GB, free: 4.457 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.868e-05/0.3277, allocations: 176.3 kB / 1.29 GB, free: 4.277 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004425/0.3281, allocations: 0.5 MB / 1.291 GB, free: 3.727 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.484e-05/0.3282, allocations: 101 kB / 1.291 GB, free: 3.621 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.526e-05/0.3282, allocations: 104.9 kB / 1.291 GB, free: 3.512 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.234e-05/0.3283, allocations: 180.2 kB / 1.291 GB, free: 3.328 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.597e-05/0.3284, allocations: 188.3 kB / 1.291 GB, free: 3.137 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.185e-05/0.3285, allocations: 180.2 kB / 1.292 GB, free: 2.953 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.729e-05/0.3286, allocations: 184.2 kB / 1.292 GB, free: 2.766 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002037/0.3288, allocations: 335.5 kB / 1.292 GB, free: 2.414 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001534/0.329, allocations: 144.8 kB / 1.292 GB, free: 2.266 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001153/0.3291, allocations: 180.5 kB / 1.292 GB, free: 2.082 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001219/0.3292, allocations: 105 kB / 1.292 GB, free: 1.973 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.522e-05/0.3293, allocations: 184.3 kB / 1.293 GB, free: 1.785 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.451e-05/0.3293, allocations: 108.9 kB / 1.293 GB, free: 1.672 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.0004488/0.3298, allocations: 367 kB / 1.293 GB, free: 1.316 MB / 0.9825 GB Notification: Performance of sort global known variables: time 9e-08/0.3298, allocations: 4 kB / 1.293 GB, free: 1.312 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002703/0.3301, allocations: 31.94 kB / 1.293 GB, free: 1.281 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.0005468/0.3306, allocations: 0.8341 MB / 1.294 GB, free: 432 kB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0001745/0.3308, allocations: 71.89 kB / 1.294 GB, free: 360 kB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.895e-06/0.3308, allocations: 4 kB / 1.294 GB, free: 356 kB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 2.654e-06/0.3308, allocations: 0 / 1.294 GB, free: 356 kB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005254/0.3313, allocations: 481.1 kB / 1.294 GB, free: 15.88 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003384/0.3347, allocations: 2.823 MB / 1.297 GB, free: 12.96 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005042/0.3352, allocations: 0.7791 MB / 1.298 GB, free: 12.16 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.0001158/0.3353, allocations: 54.25 kB / 1.298 GB, free: 12.11 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000135/0.3355, allocations: 83.41 kB / 1.298 GB, free: 12.03 MB / 0.9981 GB Notification: Performance of SimCode: time 4.21e-07/0.3355, allocations: 0 / 1.298 GB, free: 12.03 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03439/0.3698, allocations: 5.122 MB / 1.303 GB, free: 7.051 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.5/11.87, allocations: 6.031 kB / 1.303 GB, free: 7.051 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 & /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.68060808489099]