Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_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.00129/0.00129, allocations: 101.3 kB / 19.73 MB, free: 2.133 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.002032/0.002032, allocations: 211 kB / 23.02 MB, free: 4.953 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.496/1.496, allocations: 230.6 MB / 256.8 MB, free: 7.789 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.242/3.242, allocations: 0.49 GB / 0.7959 GB, free: 35.48 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.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_12_Buildings_Templates_Plants_Controls_Utilities_Validation_LastTrueIndex",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex,fileNamePrefix="Buildings_12_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.002798/0.002798, allocations: 63.66 kB / 1.155 GB, free: 25.46 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3664/0.3692, allocations: 176.1 MB / 1.327 GB, free: 1.539 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex): time 0.002143/0.3713, allocations: 0.7016 MB / 1.327 GB, free: 0.8438 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.0002155/0.3716, allocations: 47.83 kB / 1.327 GB, free: 0.7969 MB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.682e-05/0.3716, allocations: 7.938 kB / 1.327 GB, free: 0.7891 MB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 0.0001166/0.3718, allocations: 19.86 kB / 1.327 GB, free: 0.7695 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 0.0001118/0.3719, allocations: 7.938 kB / 1.327 GB, free: 0.7617 MB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 6.306e-05/0.3719, allocations: 23.97 kB / 1.327 GB, free: 0.7383 MB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.0002341/0.3722, allocations: 183.5 kB / 1.328 GB, free: 0.5586 MB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002739/0.3724, allocations: 149.6 kB / 1.328 GB, free: 420 kB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001062/0.3725, allocations: 103.6 kB / 1.328 GB, free: 316 kB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001628/0.3727, allocations: 111.5 kB / 1.328 GB, free: 204 kB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 5.55e-05/0.3728, allocations: 24 kB / 1.328 GB, free: 180 kB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 4.813e-05/0.3728, allocations: 24 kB / 1.328 GB, free: 156 kB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 9.729e-05/0.3729, allocations: 71.78 kB / 1.328 GB, free: 84 kB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 0.0001424/0.3731, allocations: 103.5 kB / 1.328 GB, free: 15.98 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0004441/0.3735, allocations: 378.4 kB / 1.328 GB, free: 15.61 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 6.662e-06/0.3735, allocations: 0 / 1.328 GB, free: 15.61 MB / 1.029 GB Notification: Performance of FrontEnd: time 3.015e-06/0.3735, allocations: 0 / 1.328 GB, free: 15.61 MB / 1.029 GB Notification: Performance of Transformations before backend: time 1.094e-05/0.3735, allocations: 0 / 1.328 GB, free: 15.61 MB / 1.029 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.00082/0.3743, allocations: 493.5 kB / 1.329 GB, free: 15.09 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.692e-05/0.3744, allocations: 8.031 kB / 1.329 GB, free: 15.08 MB / 1.029 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.727e-05/0.3744, allocations: 8.844 kB / 1.329 GB, free: 15.07 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.808e-05/0.3745, allocations: 62.72 kB / 1.329 GB, free: 15 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.283e-05/0.3746, allocations: 36.75 kB / 1.329 GB, free: 14.97 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005097/0.3751, allocations: 263.6 kB / 1.329 GB, free: 14.68 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.071e-05/0.3751, allocations: 21.03 kB / 1.329 GB, free: 14.66 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.493e-05/0.3752, allocations: 24.38 kB / 1.329 GB, free: 14.64 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006386/0.3758, allocations: 348 kB / 1.33 GB, free: 14.29 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.17e-05/0.3758, allocations: 0 / 1.33 GB, free: 14.29 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.108e-05/0.3759, allocations: 15.94 kB / 1.33 GB, free: 14.27 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.328e-05/0.3759, allocations: 8 kB / 1.33 GB, free: 14.27 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004421/0.3763, allocations: 263.7 kB / 1.33 GB, free: 14.01 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001259/0.3776, allocations: 0.8361 MB / 1.331 GB, free: 13.12 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 9.743e-05/0.3777, allocations: 61.08 kB / 1.331 GB, free: 13.04 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 5e-05/0.3777, allocations: 37.75 kB / 1.331 GB, free: 13 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 2.359e-05/0.3777, allocations: 4 kB / 1.331 GB, free: 13 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.153e-05/0.3778, allocations: 34.56 kB / 1.331 GB, free: 12.95 MB / 1.029 GB Notification: Performance of pre-optimization done (n=2): time 1.172e-06/0.3778, allocations: 0 / 1.331 GB, free: 12.95 MB / 1.029 GB Notification: Performance of matching and sorting (n=2): time 0.0002855/0.3781, allocations: 125.4 kB / 1.331 GB, free: 12.82 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.858e-05/0.3781, allocations: 81.11 kB / 1.331 GB, free: 12.73 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005405/0.3787, allocations: 481.4 kB / 1.332 GB, free: 12.25 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 1.733e-05/0.3787, allocations: 25.7 kB / 1.332 GB, free: 12.22 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001468/0.3788, allocations: 191.8 kB / 1.332 GB, free: 12.03 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 1.231e-05/0.3788, allocations: 12.19 kB / 1.332 GB, free: 12.02 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.953e-05/0.3789, allocations: 49.66 kB / 1.332 GB, free: 11.96 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001618/0.3791, allocations: 342.8 kB / 1.332 GB, free: 11.62 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.51e-05/0.3792, allocations: 55.91 kB / 1.332 GB, free: 11.56 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001093/0.3793, allocations: 77.66 kB / 1.332 GB, free: 11.48 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001448/0.3794, allocations: 101.6 kB / 1.332 GB, free: 11.38 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.743e-06/0.3794, allocations: 0 / 1.332 GB, free: 11.38 MB / 1.029 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002796/0.3797, allocations: 189.3 kB / 1.333 GB, free: 11.18 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 2.023e-05/0.3797, allocations: 9.859 kB / 1.333 GB, free: 11.18 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.58e-06/0.3797, allocations: 0 / 1.333 GB, free: 11.18 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.935e-05/0.3798, allocations: 4 kB / 1.333 GB, free: 11.17 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001371/0.3799, allocations: 24 kB / 1.333 GB, free: 11.15 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.526e-06/0.3799, allocations: 0 / 1.333 GB, free: 11.15 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.398e-05/0.38, allocations: 27.78 kB / 1.333 GB, free: 11.12 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.132e-05/0.38, allocations: 7.984 kB / 1.333 GB, free: 11.11 MB / 1.029 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.0002231/0.3802, allocations: 202.1 kB / 1.333 GB, free: 10.91 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.523e-05/0.3803, allocations: 27.81 kB / 1.333 GB, free: 10.88 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002246/0.3805, allocations: 160.5 kB / 1.333 GB, free: 10.71 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.554e-05/0.3806, allocations: 184.2 kB / 1.333 GB, free: 10.52 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001002/0.3807, allocations: 184.3 kB / 1.333 GB, free: 10.33 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001077/0.3808, allocations: 180.2 kB / 1.334 GB, free: 10.15 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004566/0.3813, allocations: 484.1 kB / 1.334 GB, free: 9.625 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.2e-05/0.3814, allocations: 104.9 kB / 1.334 GB, free: 9.516 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.07e-05/0.3814, allocations: 109 kB / 1.334 GB, free: 9.402 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001175/0.3815, allocations: 184.2 kB / 1.334 GB, free: 9.215 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000106/0.3816, allocations: 180.2 kB / 1.335 GB, free: 9.031 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0001059/0.3818, allocations: 180.3 kB / 1.335 GB, free: 8.848 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0001036/0.3819, allocations: 180.2 kB / 1.335 GB, free: 8.664 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002799/0.3821, allocations: 343.7 kB / 1.335 GB, free: 8.305 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001418/0.3823, allocations: 152.7 kB / 1.335 GB, free: 8.148 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001448/0.3824, allocations: 184.3 kB / 1.336 GB, free: 7.961 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001537/0.3826, allocations: 104.9 kB / 1.336 GB, free: 7.852 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001264/0.3827, allocations: 180.3 kB / 1.336 GB, free: 7.668 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.785e-05/0.3828, allocations: 101 kB / 1.336 GB, free: 7.562 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.0006726/0.3834, allocations: 363.1 kB / 1.336 GB, free: 7.207 MB / 1.029 GB Notification: Performance of sort global known variables: time 9e-08/0.3834, allocations: 0 / 1.336 GB, free: 7.207 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0002931/0.3837, allocations: 35.88 kB / 1.336 GB, free: 7.172 MB / 1.029 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.0006565/0.3844, allocations: 0.8359 MB / 1.337 GB, free: 6.309 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0002033/0.3846, allocations: 71.89 kB / 1.337 GB, free: 6.238 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.725e-06/0.3846, allocations: 4 kB / 1.337 GB, free: 6.234 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 6.612e-06/0.3846, allocations: 4 kB / 1.337 GB, free: 6.23 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005607/0.3852, allocations: 481.1 kB / 1.338 GB, free: 5.758 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003344/0.3885, allocations: 2.821 MB / 1.34 GB, free: 2.844 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000195/0.3887, allocations: 165.7 kB / 1.341 GB, free: 2.668 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 0.0001215/0.3888, allocations: 54.25 kB / 1.341 GB, free: 2.609 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001327/0.389, allocations: 79.41 kB / 1.341 GB, free: 2.531 MB / 1.029 GB Notification: Performance of SimCode: time 7.71e-07/0.389, allocations: 0 / 1.341 GB, free: 2.531 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02878/0.4177, allocations: 5.222 MB / 1.346 GB, free: 13.5 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.45/11.86, allocations: 7.984 kB / 1.346 GB, free: 13.49 MB / 1.045 GB " [Timeout remaining time 288] (rm -f Buildings_12_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex.pipe ; mkfifo Buildings_12_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex.pipe ; head -c 1048576 < Buildings_12_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex.pipe >> ../files/Buildings_12_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_12_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex_res.mat --tempDir=temp_Buildings_12_Buildings_Templates_Plants_Controls_Utilities_Validation_LastTrueIndex_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=400 --tolerance=1e-06 Buildings_12_Buildings_Templates_Plants_Controls_Utilities_Validation_LastTrueIndex.fmu > Buildings_12_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_12_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Templates_Plants_Controls_Utilities_Validation_LastTrueIndex.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_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.730521803954616]