Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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.001397/0.001397, allocations: 99.64 kB / 18.94 MB, free: 2.551 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.001378/0.001378, allocations: 211.3 kB / 22.24 MB, free: 4.855 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.352/1.352, allocations: 230.6 MB / 256 MB, free: 7.805 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 3.001/3.001, allocations: 0.5107 GB / 0.8158 GB, free: 17.86 MB / 0.6231 GB " [Timeout remaining time 177] Using package Buildings with version 13.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/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_latest_Buildings_Templates_Plants_Controls_Utilities_Validation_LastTrueIndex",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex,fileNamePrefix="Buildings_latest_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.001949/0.001949, allocations: 67.83 kB / 1.186 GB, free: 13.74 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2835/0.2854, allocations: 181.9 MB / 1.363 GB, free: 14.13 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex): time 0.001874/0.2873, allocations: 0.7233 MB / 1.364 GB, free: 13.41 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.0002012/0.2875, allocations: 51.78 kB / 1.364 GB, free: 13.36 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.55e-05/0.2876, allocations: 0 / 1.364 GB, free: 13.36 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 9.836e-05/0.2877, allocations: 15.86 kB / 1.364 GB, free: 13.34 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 0.0001007/0.2878, allocations: 15.91 kB / 1.364 GB, free: 13.32 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 5.104e-05/0.2878, allocations: 15.98 kB / 1.364 GB, free: 13.31 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 0.0002078/0.288, allocations: 179.6 kB / 1.364 GB, free: 13.13 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002409/0.2883, allocations: 137.4 kB / 1.364 GB, free: 13 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 9.832e-05/0.2884, allocations: 107.6 kB / 1.365 GB, free: 12.89 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001339/0.2885, allocations: 123.4 kB / 1.365 GB, free: 12.77 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 4.426e-05/0.2885, allocations: 28 kB / 1.365 GB, free: 12.74 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 3.928e-05/0.2886, allocations: 24 kB / 1.365 GB, free: 12.72 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 7.7e-05/0.2887, allocations: 71.78 kB / 1.365 GB, free: 12.65 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 9.345e-05/0.2887, allocations: 95.41 kB / 1.365 GB, free: 12.55 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.0003456/0.2891, allocations: 378.7 kB / 1.365 GB, free: 12.18 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 5.921e-06/0.2891, allocations: 4 kB / 1.365 GB, free: 12.18 MB / 1.061 GB Notification: Performance of FrontEnd: time 1.092e-06/0.2891, allocations: 0 / 1.365 GB, free: 12.18 MB / 1.061 GB Notification: Performance of Transformations before backend: time 5.65e-06/0.2891, allocations: 0 / 1.365 GB, free: 12.18 MB / 1.061 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.0005829/0.2897, allocations: 485.5 kB / 1.366 GB, free: 11.67 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 3.601e-05/0.2897, allocations: 12.03 kB / 1.366 GB, free: 11.66 MB / 1.061 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.889e-05/0.2898, allocations: 66.67 kB / 1.366 GB, free: 11.58 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.275e-05/0.2898, allocations: 36.7 kB / 1.366 GB, free: 11.55 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000404/0.2903, allocations: 247.6 kB / 1.366 GB, free: 11.28 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.757e-05/0.2903, allocations: 33.02 kB / 1.366 GB, free: 11.25 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.215e-05/0.2903, allocations: 24.38 kB / 1.366 GB, free: 11.22 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004772/0.2908, allocations: 348.2 kB / 1.366 GB, free: 10.87 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.164e-05/0.2908, allocations: 3.938 kB / 1.366 GB, free: 10.87 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.329e-05/0.2908, allocations: 12 kB / 1.366 GB, free: 10.86 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.857e-06/0.2909, allocations: 8 kB / 1.366 GB, free: 10.85 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003713/0.2912, allocations: 259.8 kB / 1.367 GB, free: 10.59 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001152/0.2924, allocations: 0.8477 MB / 1.368 GB, free: 9.699 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 8.152e-05/0.2925, allocations: 57.19 kB / 1.368 GB, free: 9.625 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.527e-05/0.2925, allocations: 33.7 kB / 1.368 GB, free: 9.586 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 1.471e-05/0.2925, allocations: 0 / 1.368 GB, free: 9.586 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.951e-05/0.2925, allocations: 38.5 kB / 1.368 GB, free: 9.539 MB / 1.061 GB Notification: Performance of pre-optimization done (n=2): time 8.41e-07/0.2925, allocations: 0 / 1.368 GB, free: 9.539 MB / 1.061 GB Notification: Performance of matching and sorting (n=2): time 0.0002395/0.2928, allocations: 125.5 kB / 1.368 GB, free: 9.41 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.02e-05/0.2928, allocations: 85.28 kB / 1.368 GB, free: 9.309 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004999/0.2933, allocations: 489.4 kB / 1.368 GB, free: 8.824 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 1.492e-05/0.2934, allocations: 25.7 kB / 1.368 GB, free: 8.793 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001331/0.2935, allocations: 183.8 kB / 1.369 GB, free: 8.609 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 6.331e-06/0.2935, allocations: 0 / 1.369 GB, free: 8.609 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.921e-05/0.2936, allocations: 57.64 kB / 1.369 GB, free: 8.547 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 0.0001434/0.2937, allocations: 338.8 kB / 1.369 GB, free: 8.207 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.713e-05/0.2938, allocations: 55.95 kB / 1.369 GB, free: 8.152 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.534e-05/0.2939, allocations: 73.67 kB / 1.369 GB, free: 8.074 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001379/0.294, allocations: 93.67 kB / 1.369 GB, free: 7.977 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.403e-06/0.294, allocations: 3.938 kB / 1.369 GB, free: 7.973 MB / 1.061 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002521/0.2943, allocations: 189.4 kB / 1.369 GB, free: 7.781 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 1.167e-05/0.2943, allocations: 8 kB / 1.369 GB, free: 7.773 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.717e-06/0.2943, allocations: 0 / 1.369 GB, free: 7.773 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.141e-05/0.2943, allocations: 0 / 1.369 GB, free: 7.773 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001174/0.2944, allocations: 31.92 kB / 1.369 GB, free: 7.742 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.04e-06/0.2944, allocations: 160 / 1.369 GB, free: 7.742 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.897e-05/0.2945, allocations: 27.73 kB / 1.369 GB, free: 7.715 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.498e-05/0.2945, allocations: 8 kB / 1.369 GB, free: 7.707 MB / 1.061 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.0001718/0.2947, allocations: 189.8 kB / 1.37 GB, free: 7.512 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.75e-05/0.2947, allocations: 31.8 kB / 1.37 GB, free: 7.48 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001712/0.2949, allocations: 164.5 kB / 1.37 GB, free: 7.309 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.954e-05/0.295, allocations: 176.3 kB / 1.37 GB, free: 7.129 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.877e-05/0.2951, allocations: 184.2 kB / 1.37 GB, free: 6.941 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.91e-05/0.2951, allocations: 180.3 kB / 1.37 GB, free: 6.758 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003337/0.2955, allocations: 493.1 kB / 1.371 GB, free: 6.227 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.609e-05/0.2955, allocations: 108.9 kB / 1.371 GB, free: 6.113 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.063e-05/0.2955, allocations: 105 kB / 1.371 GB, free: 6.004 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.063e-05/0.2956, allocations: 184.2 kB / 1.371 GB, free: 5.816 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.996e-05/0.2957, allocations: 180.3 kB / 1.371 GB, free: 5.633 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.272e-05/0.2958, allocations: 192.2 kB / 1.371 GB, free: 5.438 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.846e-05/0.2958, allocations: 180.2 kB / 1.372 GB, free: 5.254 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001721/0.296, allocations: 335.7 kB / 1.372 GB, free: 4.902 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001219/0.2961, allocations: 144.8 kB / 1.372 GB, free: 4.754 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.51e-05/0.2962, allocations: 188.1 kB / 1.372 GB, free: 4.562 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001088/0.2963, allocations: 109 kB / 1.372 GB, free: 4.449 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.375e-05/0.2964, allocations: 184.2 kB / 1.373 GB, free: 4.262 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.243e-05/0.2964, allocations: 104.9 kB / 1.373 GB, free: 4.152 MB / 1.061 GB Notification: Performance of sorting global known variables: time 0.0003831/0.2968, allocations: 363.1 kB / 1.373 GB, free: 3.797 MB / 1.061 GB Notification: Performance of sort global known variables: time 9e-08/0.2968, allocations: 0 / 1.373 GB, free: 3.797 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0002606/0.2971, allocations: 31.95 kB / 1.373 GB, free: 3.766 MB / 1.061 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.000451/0.2975, allocations: 0.832 MB / 1.374 GB, free: 2.906 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0001542/0.2977, allocations: 79.88 kB / 1.374 GB, free: 2.828 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 1.683e-06/0.2977, allocations: 0 / 1.374 GB, free: 2.828 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 1.183e-06/0.2977, allocations: 0 / 1.374 GB, free: 2.828 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004385/0.2981, allocations: 478.7 kB / 1.374 GB, free: 2.359 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002821/0.3009, allocations: 2.808 MB / 1.377 GB, free: 15.45 MB / 1.076 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001483/0.3011, allocations: 169.6 kB / 1.377 GB, free: 15.27 MB / 1.076 GB Notification: Performance of simCode: alias equations: time 0.0001001/0.3012, allocations: 54.25 kB / 1.377 GB, free: 15.21 MB / 1.076 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001062/0.3013, allocations: 79.41 kB / 1.377 GB, free: 15.14 MB / 1.076 GB Notification: Performance of SimCode: time 3.91e-07/0.3013, allocations: 0 / 1.377 GB, free: 15.14 MB / 1.076 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03188/0.3332, allocations: 5.58 MB / 1.383 GB, free: 9.715 MB / 1.076 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.64/10.98, allocations: 8 kB / 1.383 GB, free: 9.707 MB / 1.076 GB " [Timeout remaining time 289] (rm -f Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex.pipe ; mkfifo Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex.pipe ; head -c 1048576 < Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex.pipe >> ../files/Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex.sim & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex_res.csv --start-time 0 --stop-time 1 --timeout 800 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Buildings_latest_Buildings_Templates_Plants_Controls_Utilities_Validation_LastTrueIndex.fmu > Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex.pipe 2>&1) [Timeout 840.0] diffSimulationResults("Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Templates_Plants_Controls_Utilities_Validation_LastTrueIndex.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_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_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex_res.csv. Warning: Get data of variable idxLasTru.y from file Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex_res.csv failed! Error: Could not read variable idxLasTruAllFal.y in file Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex_res.csv. Warning: Get data of variable idxLasTruAllFal.y from file Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex_res.csv failed! " [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 17.091454677283764]