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.001478/0.001478, allocations: 99.64 kB / 18.95 MB, free: 2.668 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.001613/0.001613, allocations: 210.5 kB / 22.24 MB, free: 5.262 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.495/1.495, allocations: 230.6 MB / 256 MB, free: 7.797 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.206/3.206, allocations: 0.4892 GB / 0.7943 GB, free: 35.69 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.00205/0.00205, allocations: 75.03 kB / 1.153 GB, free: 25.79 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3172/0.3193, allocations: 176.1 MB / 1.325 GB, free: 2.375 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex): time 0.001957/0.3212, allocations: 0.7054 MB / 1.326 GB, free: 1.676 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.00023/0.3215, allocations: 55.77 kB / 1.326 GB, free: 1.621 MB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.957e-05/0.3215, allocations: 0 / 1.326 GB, free: 1.621 MB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 0.0001038/0.3216, allocations: 15.86 kB / 1.326 GB, free: 1.605 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 0.0001073/0.3217, allocations: 7.875 kB / 1.326 GB, free: 1.598 MB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 5.735e-05/0.3218, allocations: 19.98 kB / 1.326 GB, free: 1.578 MB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.0002358/0.322, allocations: 183.6 kB / 1.326 GB, free: 1.398 MB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002745/0.3223, allocations: 153.5 kB / 1.326 GB, free: 1.246 MB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000101/0.3224, allocations: 107.6 kB / 1.326 GB, free: 1.141 MB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001523/0.3226, allocations: 123.5 kB / 1.326 GB, free: 1.02 MB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 4.976e-05/0.3226, allocations: 24 kB / 1.326 GB, free: 0.9961 MB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 4.226e-05/0.3226, allocations: 24 kB / 1.326 GB, free: 0.9727 MB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 7.934e-05/0.3227, allocations: 67.78 kB / 1.326 GB, free: 0.9062 MB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 0.0001041/0.3228, allocations: 103.4 kB / 1.327 GB, free: 0.8047 MB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.0003702/0.3232, allocations: 374.5 kB / 1.327 GB, free: 448 kB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 3.817e-06/0.3232, allocations: 0 / 1.327 GB, free: 448 kB / 1.014 GB Notification: Performance of FrontEnd: time 1.383e-06/0.3232, allocations: 0 / 1.327 GB, free: 448 kB / 1.014 GB Notification: Performance of Transformations before backend: time 1.08e-05/0.3232, allocations: 0 / 1.327 GB, free: 448 kB / 1.014 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.0006533/0.3239, allocations: 497.6 kB / 1.327 GB, free: 15.91 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4e-05/0.3239, allocations: 12.03 kB / 1.327 GB, free: 15.9 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.193e-05/0.324, allocations: 62.72 kB / 1.328 GB, free: 15.83 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.711e-05/0.324, allocations: 32.75 kB / 1.328 GB, free: 15.8 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000433/0.3245, allocations: 251.6 kB / 1.328 GB, free: 15.53 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.377e-05/0.3245, allocations: 25.03 kB / 1.328 GB, free: 15.5 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.212e-05/0.3246, allocations: 28.38 kB / 1.328 GB, free: 15.48 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005173/0.3251, allocations: 344 kB / 1.328 GB, free: 15.13 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.144e-05/0.3251, allocations: 7.938 kB / 1.328 GB, free: 15.12 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.195e-05/0.3251, allocations: 8 kB / 1.328 GB, free: 15.11 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.227e-05/0.3251, allocations: 12 kB / 1.328 GB, free: 15.1 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003982/0.3255, allocations: 259.8 kB / 1.328 GB, free: 14.85 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00125/0.3268, allocations: 0.8399 MB / 1.329 GB, free: 13.96 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 9.428e-05/0.3269, allocations: 57.14 kB / 1.329 GB, free: 13.89 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.009e-05/0.3269, allocations: 37.75 kB / 1.329 GB, free: 13.84 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 1.584e-05/0.3269, allocations: 0 / 1.329 GB, free: 13.84 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.285e-05/0.327, allocations: 38.5 kB / 1.329 GB, free: 13.8 MB / 1.029 GB Notification: Performance of pre-optimization done (n=2): time 8.61e-07/0.327, allocations: 0 / 1.329 GB, free: 13.8 MB / 1.029 GB Notification: Performance of matching and sorting (n=2): time 0.0002619/0.3272, allocations: 129.6 kB / 1.329 GB, free: 13.66 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.354e-05/0.3273, allocations: 85.14 kB / 1.33 GB, free: 13.56 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005355/0.3278, allocations: 477.4 kB / 1.33 GB, free: 13.09 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 1.888e-05/0.3278, allocations: 25.7 kB / 1.33 GB, free: 13.05 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.000148/0.328, allocations: 195.7 kB / 1.33 GB, free: 12.86 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 8.947e-06/0.328, allocations: 3.953 kB / 1.33 GB, free: 12.86 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.009e-05/0.3281, allocations: 45.7 kB / 1.33 GB, free: 12.8 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001552/0.3282, allocations: 338.8 kB / 1.331 GB, free: 12.46 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.839e-05/0.3283, allocations: 55.95 kB / 1.331 GB, free: 12.41 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001186/0.3284, allocations: 81.64 kB / 1.331 GB, free: 12.32 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001458/0.3286, allocations: 101.6 kB / 1.331 GB, free: 12.22 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.586e-06/0.3286, allocations: 8 kB / 1.331 GB, free: 12.21 MB / 1.029 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002705/0.3288, allocations: 181.3 kB / 1.331 GB, free: 12.03 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.228e-05/0.3289, allocations: 4 kB / 1.331 GB, free: 12.02 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.897e-06/0.3289, allocations: 160 / 1.331 GB, free: 12.02 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.562e-05/0.3289, allocations: 7.984 kB / 1.331 GB, free: 12.02 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001249/0.329, allocations: 27.94 kB / 1.331 GB, free: 11.99 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.464e-06/0.329, allocations: 3.984 kB / 1.331 GB, free: 11.98 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.883e-05/0.3291, allocations: 27.73 kB / 1.331 GB, free: 11.96 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.927e-05/0.3291, allocations: 8 kB / 1.331 GB, free: 11.95 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.0001929/0.3293, allocations: 201.5 kB / 1.331 GB, free: 11.74 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.756e-05/0.3294, allocations: 31.8 kB / 1.331 GB, free: 11.71 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001779/0.3295, allocations: 160.6 kB / 1.331 GB, free: 11.54 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.208e-05/0.3296, allocations: 184.2 kB / 1.332 GB, free: 11.35 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.653e-05/0.3297, allocations: 180.2 kB / 1.332 GB, free: 11.17 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.615e-05/0.3298, allocations: 176.3 kB / 1.332 GB, free: 10.99 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003852/0.3302, allocations: 500 kB / 1.332 GB, free: 10.45 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.259e-05/0.3302, allocations: 101 kB / 1.333 GB, free: 10.34 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.016e-05/0.3303, allocations: 109 kB / 1.333 GB, free: 10.23 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.834e-05/0.3303, allocations: 184.2 kB / 1.333 GB, free: 10.04 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.744e-05/0.3304, allocations: 180.3 kB / 1.333 GB, free: 9.859 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.929e-05/0.3305, allocations: 184.2 kB / 1.333 GB, free: 9.672 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.429e-05/0.3306, allocations: 180.2 kB / 1.333 GB, free: 9.488 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001872/0.3307, allocations: 339.7 kB / 1.334 GB, free: 9.133 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001238/0.3309, allocations: 136.9 kB / 1.334 GB, free: 8.992 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001074/0.331, allocations: 192.1 kB / 1.334 GB, free: 8.797 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001129/0.3311, allocations: 101 kB / 1.334 GB, free: 8.691 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.385e-05/0.3312, allocations: 184.3 kB / 1.334 GB, free: 8.504 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.276e-05/0.3312, allocations: 104.9 kB / 1.334 GB, free: 8.395 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.0004165/0.3316, allocations: 359.1 kB / 1.335 GB, free: 8.047 MB / 1.029 GB Notification: Performance of sort global known variables: time 9e-08/0.3316, allocations: 4 kB / 1.335 GB, free: 8.043 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0002655/0.3319, allocations: 32 kB / 1.335 GB, free: 8.012 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.0005911/0.3325, allocations: 0.8376 MB / 1.336 GB, free: 7.148 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0001872/0.3327, allocations: 71.88 kB / 1.336 GB, free: 7.078 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 5.12e-06/0.3327, allocations: 4 kB / 1.336 GB, free: 7.074 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 2.585e-06/0.3327, allocations: 0 / 1.336 GB, free: 7.074 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005843/0.3333, allocations: 485 kB / 1.336 GB, free: 6.598 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003093/0.3364, allocations: 2.82 MB / 1.339 GB, free: 3.684 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001647/0.3365, allocations: 173.6 kB / 1.339 GB, free: 3.5 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 0.0001057/0.3366, allocations: 54.25 kB / 1.339 GB, free: 3.441 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001171/0.3368, allocations: 75.42 kB / 1.339 GB, free: 3.367 MB / 1.029 GB Notification: Performance of SimCode: time 5.41e-07/0.3368, allocations: 0 / 1.339 GB, free: 3.367 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03494/0.3717, allocations: 5.58 MB / 1.345 GB, free: 13.93 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.25/11.62, allocations: 14.03 kB / 1.345 GB, free: 13.93 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 & 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.382824177853763]