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.001676/0.001676, 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.001511/0.001511, allocations: 217.5 kB / 22.25 MB, free: 5.121 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.499/1.499, allocations: 230.6 MB / 256 MB, free: 7.973 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.338/3.338, allocations: 0.49 GB / 0.7951 GB, free: 33.41 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex,fileNamePrefix="Buildings_12_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.002054/0.002054, allocations: 63.09 kB / 1.154 GB, free: 25.73 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.343/0.345, allocations: 176.1 MB / 1.326 GB, free: 1.957 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex): time 0.001952/0.347, allocations: 0.7325 MB / 1.327 GB, free: 1.23 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.0002112/0.3472, allocations: 47.78 kB / 1.327 GB, free: 1.184 MB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.36e-05/0.3472, allocations: 0 / 1.327 GB, free: 1.184 MB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 0.0001165/0.3474, allocations: 19.86 kB / 1.327 GB, free: 1.164 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 0.0001188/0.3475, allocations: 7.922 kB / 1.327 GB, free: 1.156 MB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 5.557e-05/0.3475, allocations: 23.98 kB / 1.327 GB, free: 1.133 MB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.0002516/0.3478, allocations: 179.6 kB / 1.327 GB, free: 0.957 MB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002653/0.3481, allocations: 141.6 kB / 1.327 GB, free: 0.8164 MB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001042/0.3482, allocations: 111.6 kB / 1.327 GB, free: 0.707 MB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001461/0.3483, allocations: 111.5 kB / 1.327 GB, free: 0.5977 MB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 4.464e-05/0.3484, allocations: 24 kB / 1.327 GB, free: 0.5742 MB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 3.554e-05/0.3484, allocations: 24 kB / 1.327 GB, free: 0.5508 MB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 7.924e-05/0.3485, allocations: 71.78 kB / 1.327 GB, free: 492 kB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 0.0001324/0.3486, allocations: 135.2 kB / 1.327 GB, free: 356 kB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.0003762/0.349, allocations: 362.5 kB / 1.328 GB, free: 15.99 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 3.556e-06/0.349, allocations: 0 / 1.328 GB, free: 15.99 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.162e-06/0.349, allocations: 4 kB / 1.328 GB, free: 15.99 MB / 1.029 GB Notification: Performance of Transformations before backend: time 1.129e-05/0.349, allocations: 0 / 1.328 GB, free: 15.99 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.0006818/0.3497, allocations: 0.4897 MB / 1.328 GB, free: 15.46 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.067e-05/0.3497, allocations: 11.97 kB / 1.328 GB, free: 15.45 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.394e-05/0.3498, allocations: 66.72 kB / 1.328 GB, free: 15.38 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.648e-05/0.3498, allocations: 32.75 kB / 1.328 GB, free: 15.34 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004479/0.3503, allocations: 247.6 kB / 1.329 GB, free: 15.07 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.255e-05/0.3503, allocations: 29.03 kB / 1.329 GB, free: 15.05 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.603e-05/0.3504, allocations: 28.38 kB / 1.329 GB, free: 15.02 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005329/0.3509, allocations: 344.2 kB / 1.329 GB, free: 14.67 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.315e-05/0.3509, allocations: 3.938 kB / 1.329 GB, free: 14.67 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.254e-05/0.351, allocations: 8 kB / 1.329 GB, free: 14.66 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.217e-05/0.351, allocations: 8 kB / 1.329 GB, free: 14.65 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003993/0.3514, allocations: 263.8 kB / 1.329 GB, free: 14.39 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001288/0.3527, allocations: 0.8867 MB / 1.33 GB, free: 13.46 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 9.303e-05/0.3528, allocations: 53.2 kB / 1.33 GB, free: 13.39 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.129e-05/0.3528, allocations: 37.7 kB / 1.33 GB, free: 13.35 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 2.109e-05/0.3528, allocations: 0 / 1.33 GB, free: 13.35 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.076e-05/0.3529, allocations: 38.5 kB / 1.33 GB, free: 13.3 MB / 1.029 GB Notification: Performance of pre-optimization done (n=2): time 1.002e-06/0.3529, allocations: 4 kB / 1.33 GB, free: 13.3 MB / 1.029 GB Notification: Performance of matching and sorting (n=2): time 0.0002804/0.3531, allocations: 129.4 kB / 1.33 GB, free: 13.16 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.531e-05/0.3532, allocations: 81.11 kB / 1.33 GB, free: 13.07 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005632/0.3538, allocations: 481.4 kB / 1.331 GB, free: 12.59 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 1.619e-05/0.3538, allocations: 25.7 kB / 1.331 GB, free: 12.55 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001493/0.3539, allocations: 187.8 kB / 1.331 GB, free: 12.37 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 1.083e-05/0.3539, allocations: 11.86 kB / 1.331 GB, free: 12.36 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.488e-05/0.354, allocations: 53.91 kB / 1.331 GB, free: 12.3 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001687/0.3542, allocations: 338.8 kB / 1.332 GB, free: 11.96 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.536e-05/0.3543, allocations: 55.95 kB / 1.332 GB, free: 11.9 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001028/0.3544, allocations: 73.67 kB / 1.332 GB, free: 11.82 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001492/0.3545, allocations: 101.6 kB / 1.332 GB, free: 11.72 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.864e-06/0.3545, allocations: 0 / 1.332 GB, free: 11.72 MB / 1.029 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002692/0.3548, allocations: 185.4 kB / 1.332 GB, free: 11.53 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.534e-05/0.3548, allocations: 4 kB / 1.332 GB, free: 11.53 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.579e-06/0.3548, allocations: 8 kB / 1.332 GB, free: 11.52 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.357e-05/0.3548, allocations: 0 / 1.332 GB, free: 11.52 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001268/0.355, allocations: 27.92 kB / 1.332 GB, free: 11.49 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.681e-06/0.355, allocations: 0 / 1.332 GB, free: 11.49 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.832e-05/0.355, allocations: 31.78 kB / 1.332 GB, free: 11.46 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.511e-05/0.355, allocations: 4 kB / 1.332 GB, free: 11.46 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.0002028/0.3552, allocations: 193.5 kB / 1.332 GB, free: 11.26 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.557e-05/0.3553, allocations: 35.75 kB / 1.332 GB, free: 11.22 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001854/0.3555, allocations: 164.5 kB / 1.332 GB, free: 11.05 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.661e-05/0.3556, allocations: 180.3 kB / 1.333 GB, free: 10.86 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.591e-05/0.3557, allocations: 184.1 kB / 1.333 GB, free: 10.68 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.127e-05/0.3557, allocations: 180.3 kB / 1.333 GB, free: 10.49 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004293/0.3562, allocations: 0.5039 MB / 1.333 GB, free: 9.938 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.354e-05/0.3562, allocations: 101 kB / 1.333 GB, free: 9.832 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.645e-05/0.3563, allocations: 105 kB / 1.334 GB, free: 9.723 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.675e-05/0.3564, allocations: 180.2 kB / 1.334 GB, free: 9.539 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.54e-05/0.3564, allocations: 180.3 kB / 1.334 GB, free: 9.355 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.834e-05/0.3565, allocations: 180.2 kB / 1.334 GB, free: 9.172 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.027e-05/0.3566, allocations: 184.2 kB / 1.334 GB, free: 8.984 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001982/0.3568, allocations: 335.8 kB / 1.335 GB, free: 8.633 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001227/0.3569, allocations: 140.8 kB / 1.335 GB, free: 8.488 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001647/0.3571, allocations: 184.2 kB / 1.335 GB, free: 8.301 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001368/0.3572, allocations: 109 kB / 1.335 GB, free: 8.188 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.822e-05/0.3573, allocations: 184.2 kB / 1.335 GB, free: 8 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.994e-05/0.3574, allocations: 108.9 kB / 1.335 GB, free: 7.887 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.0003991/0.3578, allocations: 359.1 kB / 1.336 GB, free: 7.539 MB / 1.029 GB Notification: Performance of sort global known variables: time 9e-08/0.3578, allocations: 0 / 1.336 GB, free: 7.539 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0002876/0.3581, allocations: 31.94 kB / 1.336 GB, free: 7.508 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.0005724/0.3586, allocations: 0.8416 MB / 1.336 GB, free: 6.641 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0001713/0.3588, allocations: 67.89 kB / 1.337 GB, free: 6.574 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.454e-06/0.3588, allocations: 0 / 1.337 GB, free: 6.574 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 3.457e-06/0.3588, allocations: 7.938 kB / 1.337 GB, free: 6.566 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004919/0.3593, allocations: 485.1 kB / 1.337 GB, free: 6.09 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003142/0.3625, allocations: 2.809 MB / 1.34 GB, free: 3.188 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000424/0.3629, allocations: 0.7829 MB / 1.341 GB, free: 2.375 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 0.0001006/0.363, allocations: 58.19 kB / 1.341 GB, free: 2.32 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000128/0.3631, allocations: 79.41 kB / 1.341 GB, free: 2.242 MB / 1.029 GB Notification: Performance of SimCode: time 4.01e-07/0.3631, allocations: 0 / 1.341 GB, free: 2.242 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03267/0.3958, allocations: 5.133 MB / 1.346 GB, free: 13.26 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.93/11.32, allocations: 12.03 kB / 1.346 GB, free: 13.25 MB / 1.045 GB " [Timeout remaining time 289] (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 & python3 -m fmpy simulate --output-file Buildings_12_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_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.csv","/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] "Error: Could not read variable idxLasTru.y in file Buildings_12_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex_res.csv. Warning: Get data of variable idxLasTru.y from file Buildings_12_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex_res.csv failed! Error: Could not read variable idxLasTruAllFal.y in file Buildings_12_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex_res.csv. Warning: Get data of variable idxLasTruAllFal.y from file Buildings_12_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex_res.csv failed! " [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 18.24283764699976]