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.002167/0.002167, allocations: 99.75 kB / 18.95 MB, free: 2.832 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.001792/0.001792, allocations: 217.9 kB / 22.25 MB, free: 5.105 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.603/1.603, allocations: 230.6 MB / 256 MB, free: 7.809 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.182/3.182, allocations: 0.49 GB / 0.7951 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="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.002036/0.002036, allocations: 67.89 kB / 1.154 GB, free: 25.48 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3259/0.3279, allocations: 176.1 MB / 1.326 GB, free: 1.523 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex): time 0.002028/0.3299, allocations: 0.7323 MB / 1.327 GB, free: 0.7969 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.0002156/0.3301, allocations: 47.84 kB / 1.327 GB, free: 0.75 MB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.202e-05/0.3302, allocations: 3.938 kB / 1.327 GB, free: 0.7461 MB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 0.0001095/0.3303, allocations: 15.86 kB / 1.327 GB, free: 0.7305 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 0.0001158/0.3304, allocations: 7.938 kB / 1.327 GB, free: 0.7227 MB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 5.545e-05/0.3305, allocations: 15.98 kB / 1.327 GB, free: 0.707 MB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.0002364/0.3307, allocations: 187.6 kB / 1.327 GB, free: 0.5234 MB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002521/0.331, allocations: 149.5 kB / 1.327 GB, free: 384 kB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 9.399e-05/0.3311, allocations: 99.72 kB / 1.327 GB, free: 284 kB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001253/0.3312, allocations: 111.5 kB / 1.327 GB, free: 172 kB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 4.884e-05/0.3313, allocations: 24 kB / 1.327 GB, free: 148 kB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 3.809e-05/0.3313, allocations: 24 kB / 1.327 GB, free: 124 kB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 8.582e-05/0.3314, allocations: 71.77 kB / 1.327 GB, free: 52 kB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 0.0001145/0.3315, allocations: 107.4 kB / 1.327 GB, free: 15.95 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0003586/0.3319, allocations: 370.4 kB / 1.328 GB, free: 15.58 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 3.727e-06/0.3319, allocations: 0 / 1.328 GB, free: 15.58 MB / 1.029 GB Notification: Performance of FrontEnd: time 9.91e-07/0.3319, allocations: 4 kB / 1.328 GB, free: 15.58 MB / 1.029 GB Notification: Performance of Transformations before backend: time 6.602e-06/0.3319, allocations: 0 / 1.328 GB, free: 15.58 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.0006315/0.3325, allocations: 499.2 kB / 1.328 GB, free: 15.05 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 3.844e-05/0.3325, allocations: 8.031 kB / 1.328 GB, free: 15.05 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.072e-05/0.3326, allocations: 66.72 kB / 1.328 GB, free: 14.97 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.921e-05/0.3327, allocations: 32.75 kB / 1.328 GB, free: 14.94 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004185/0.3331, allocations: 251.6 kB / 1.329 GB, free: 14.67 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.962e-05/0.3331, allocations: 33.03 kB / 1.329 GB, free: 14.64 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.08e-05/0.3332, allocations: 24.38 kB / 1.329 GB, free: 14.61 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005115/0.3337, allocations: 344.3 kB / 1.329 GB, free: 14.27 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.293e-05/0.3337, allocations: 3.938 kB / 1.329 GB, free: 14.26 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.634e-05/0.3337, allocations: 12 kB / 1.329 GB, free: 14.25 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.975e-06/0.3337, allocations: 4 kB / 1.329 GB, free: 14.25 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003885/0.3341, allocations: 271.7 kB / 1.329 GB, free: 13.98 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001221/0.3353, allocations: 0.8322 MB / 1.33 GB, free: 13.1 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 9.167e-05/0.3354, allocations: 57.14 kB / 1.33 GB, free: 13.03 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.907e-05/0.3355, allocations: 37.69 kB / 1.33 GB, free: 12.98 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 2.285e-05/0.3355, allocations: 4 kB / 1.33 GB, free: 12.98 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.559e-05/0.3355, allocations: 30.56 kB / 1.33 GB, free: 12.94 MB / 1.029 GB Notification: Performance of pre-optimization done (n=2): time 6.442e-06/0.3355, allocations: 7.984 kB / 1.33 GB, free: 12.93 MB / 1.029 GB Notification: Performance of matching and sorting (n=2): time 0.0002764/0.3358, allocations: 129.4 kB / 1.33 GB, free: 12.8 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.242e-05/0.3359, allocations: 81.11 kB / 1.33 GB, free: 12.7 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005405/0.3364, allocations: 485.3 kB / 1.331 GB, free: 12.22 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 2.246e-05/0.3364, allocations: 33.62 kB / 1.331 GB, free: 12.18 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001442/0.3366, allocations: 183.8 kB / 1.331 GB, free: 12 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 8.596e-06/0.3366, allocations: 7.953 kB / 1.331 GB, free: 11.99 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.132e-05/0.3367, allocations: 41.7 kB / 1.331 GB, free: 11.94 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001513/0.3368, allocations: 346.8 kB / 1.331 GB, free: 11.59 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.283e-05/0.3369, allocations: 60.14 kB / 1.331 GB, free: 11.54 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001059/0.337, allocations: 77.67 kB / 1.332 GB, free: 11.45 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001381/0.3371, allocations: 97.66 kB / 1.332 GB, free: 11.35 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.492e-06/0.3371, allocations: 3.938 kB / 1.332 GB, free: 11.35 MB / 1.029 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002676/0.3374, allocations: 181.3 kB / 1.332 GB, free: 11.16 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.733e-05/0.3374, allocations: 11.98 kB / 1.332 GB, free: 11.15 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.787e-06/0.3374, allocations: 0 / 1.332 GB, free: 11.15 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.228e-05/0.3374, allocations: 0 / 1.332 GB, free: 11.15 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001238/0.3376, allocations: 20 kB / 1.332 GB, free: 11.13 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.894e-06/0.3376, allocations: 4 kB / 1.332 GB, free: 11.13 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.738e-05/0.3377, allocations: 35.72 kB / 1.332 GB, free: 11.09 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.488e-05/0.3377, allocations: 4 kB / 1.332 GB, free: 11.09 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.0001874/0.3379, allocations: 197.5 kB / 1.332 GB, free: 10.89 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.798e-05/0.3379, allocations: 31.75 kB / 1.332 GB, free: 10.86 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001831/0.3381, allocations: 168.6 kB / 1.332 GB, free: 10.68 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.634e-05/0.3382, allocations: 176.3 kB / 1.332 GB, free: 10.5 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.405e-05/0.3383, allocations: 180.3 kB / 1.333 GB, free: 10.31 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.693e-05/0.3383, allocations: 180.2 kB / 1.333 GB, free: 10.13 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003721/0.3387, allocations: 488.1 kB / 1.333 GB, free: 9.602 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.453e-05/0.3388, allocations: 104.9 kB / 1.333 GB, free: 9.492 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.475e-05/0.3388, allocations: 113 kB / 1.333 GB, free: 9.375 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.75e-05/0.3389, allocations: 176.3 kB / 1.334 GB, free: 9.195 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.819e-05/0.339, allocations: 184.2 kB / 1.334 GB, free: 9.008 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.479e-05/0.3391, allocations: 176.3 kB / 1.334 GB, free: 8.828 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.402e-05/0.3391, allocations: 184.2 kB / 1.334 GB, free: 8.641 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001817/0.3393, allocations: 335.8 kB / 1.334 GB, free: 8.289 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001342/0.3395, allocations: 152.7 kB / 1.335 GB, free: 8.133 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.691e-05/0.3396, allocations: 180.3 kB / 1.335 GB, free: 7.949 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000118/0.3397, allocations: 108.9 kB / 1.335 GB, free: 7.836 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.005e-05/0.3398, allocations: 180.3 kB / 1.335 GB, free: 7.652 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.224e-05/0.3398, allocations: 109 kB / 1.335 GB, free: 7.539 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.0003957/0.3402, allocations: 359.1 kB / 1.335 GB, free: 7.191 MB / 1.029 GB Notification: Performance of sort global known variables: time 1e-07/0.3402, allocations: 0 / 1.335 GB, free: 7.191 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0002708/0.3405, allocations: 35.89 kB / 1.336 GB, free: 7.156 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.000483/0.3409, allocations: 0.8358 MB / 1.336 GB, free: 6.293 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0001654/0.3411, allocations: 76.2 kB / 1.336 GB, free: 6.219 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 6.061e-06/0.3411, allocations: 0 / 1.336 GB, free: 6.219 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 1.523e-06/0.3411, allocations: 0 / 1.336 GB, free: 6.219 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004699/0.3416, allocations: 482.1 kB / 1.337 GB, free: 5.746 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002995/0.3446, allocations: 2.828 MB / 1.34 GB, free: 2.824 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001664/0.3447, allocations: 169.6 kB / 1.34 GB, free: 2.641 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 0.0001025/0.3448, allocations: 54.25 kB / 1.34 GB, free: 2.582 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001151/0.345, allocations: 75.41 kB / 1.34 GB, free: 2.508 MB / 1.029 GB Notification: Performance of SimCode: time 4.91e-07/0.345, allocations: 4 kB / 1.34 GB, free: 2.504 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03373/0.3787, allocations: 5.609 MB / 1.345 GB, free: 13.04 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.16/11.54, allocations: 13.17 kB / 1.345 GB, free: 13.04 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.443988787999842]