Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex,fileNamePrefix="Buildings_11_Buildings_Templates_Plants_Controls_Utilities_Validation_LastTrueIndex",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex,fileNamePrefix="Buildings_11_Buildings_Templates_Plants_Controls_Utilities_Validation_LastTrueIndex",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.005508/0.005508, allocations: 99.59 kB / 15.73 MB, free: 6.008 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001635/0.001635, allocations: 198.3 kB / 16.68 MB, free: 5.934 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.221/1.221, allocations: 222.9 MB / 240.4 MB, free: 15.13 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.335/2.335, allocations: 469.8 MB / 0.7425 GB, free: 3.293 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001659/0.00166, allocations: 75.81 kB / 1.065 GB, free: 14.04 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5799/0.5816, allocations: 159.1 MB / 1.22 GB, free: 2.023 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex): time 0.00159/0.5832, allocations: 0.7196 MB / 1.221 GB, free: 1.309 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.0001806/0.5834, allocations: 43.84 kB / 1.221 GB, free: 1.266 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.847e-05/0.5835, allocations: 0 / 1.221 GB, free: 1.266 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 9.239e-05/0.5836, allocations: 15.86 kB / 1.221 GB, free: 1.25 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 8.479e-05/0.5837, allocations: 11.88 kB / 1.221 GB, free: 1.238 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 4.595e-05/0.5837, allocations: 23.98 kB / 1.221 GB, free: 1.215 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0002063/0.584, allocations: 183.5 kB / 1.221 GB, free: 1.035 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003077/0.5843, allocations: 260.9 kB / 1.221 GB, free: 0.7773 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 8.396e-05/0.5844, allocations: 95.59 kB / 1.221 GB, free: 0.6836 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001167/0.5845, allocations: 115.5 kB / 1.222 GB, free: 0.5703 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 4.211e-05/0.5845, allocations: 28 kB / 1.222 GB, free: 0.543 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 3.53e-05/0.5846, allocations: 24 kB / 1.222 GB, free: 0.5195 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 6.733e-05/0.5846, allocations: 71.78 kB / 1.222 GB, free: 460 kB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 0.0001062/0.5847, allocations: 119.3 kB / 1.222 GB, free: 340 kB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0003251/0.5851, allocations: 374.1 kB / 1.222 GB, free: 15.97 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 2.795e-06/0.5851, allocations: 4 kB / 1.222 GB, free: 15.97 MB / 0.9512 GB Notification: Performance of FrontEnd: time 1.062e-06/0.5851, allocations: 0 / 1.222 GB, free: 15.97 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 6.432e-06/0.5851, allocations: 0 / 1.222 GB, free: 15.97 MB / 0.9512 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.0006037/0.5857, allocations: 0.5571 MB / 1.223 GB, free: 15.36 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 3.368e-05/0.5858, allocations: 12.03 kB / 1.223 GB, free: 15.35 MB / 0.9512 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.549e-05/0.5858, allocations: 66.72 kB / 1.223 GB, free: 15.27 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.756e-05/0.5859, allocations: 40.7 kB / 1.223 GB, free: 15.23 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000339/0.5862, allocations: 313.3 kB / 1.223 GB, free: 14.88 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.389e-05/0.5863, allocations: 36.91 kB / 1.223 GB, free: 14.85 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.963e-05/0.5863, allocations: 24.38 kB / 1.223 GB, free: 14.82 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004519/0.5868, allocations: 347 kB / 1.224 GB, free: 14.48 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.202e-05/0.5868, allocations: 3.938 kB / 1.224 GB, free: 14.47 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.067e-05/0.5868, allocations: 8 kB / 1.224 GB, free: 14.46 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.667e-06/0.5868, allocations: 8 kB / 1.224 GB, free: 14.46 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003451/0.5872, allocations: 256.4 kB / 1.224 GB, free: 14.21 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001053/0.5882, allocations: 0.9173 MB / 1.225 GB, free: 13.23 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 7.053e-05/0.5883, allocations: 53.2 kB / 1.225 GB, free: 13.16 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.299e-05/0.5884, allocations: 37.7 kB / 1.225 GB, free: 13.12 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 1.45e-05/0.5884, allocations: 0 / 1.225 GB, free: 13.12 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.838e-05/0.5884, allocations: 42.48 kB / 1.225 GB, free: 13.07 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=2): time 9.52e-07/0.5884, allocations: 0 / 1.225 GB, free: 13.07 MB / 0.9512 GB Notification: Performance of matching and sorting (n=2): time 0.000236/0.5887, allocations: 129.4 kB / 1.225 GB, free: 12.94 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.553e-05/0.5887, allocations: 77.11 kB / 1.225 GB, free: 12.84 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004644/0.5892, allocations: 477.5 kB / 1.225 GB, free: 12.37 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 1.284e-05/0.5892, allocations: 29.64 kB / 1.225 GB, free: 12.34 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001224/0.5893, allocations: 179.8 kB / 1.226 GB, free: 12.16 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 1.196e-05/0.5894, allocations: 16.19 kB / 1.226 GB, free: 12.14 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.05e-05/0.5894, allocations: 45.7 kB / 1.226 GB, free: 12.09 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001389/0.5896, allocations: 338.8 kB / 1.226 GB, free: 11.75 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.466e-05/0.5897, allocations: 55.95 kB / 1.226 GB, free: 11.7 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.103e-05/0.5898, allocations: 79.73 kB / 1.226 GB, free: 11.61 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000126/0.5899, allocations: 97.61 kB / 1.226 GB, free: 11.51 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.823e-06/0.5899, allocations: 3.938 kB / 1.226 GB, free: 11.51 MB / 0.9512 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002403/0.5901, allocations: 189.4 kB / 1.226 GB, free: 11.32 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 1.212e-05/0.5902, allocations: 8 kB / 1.226 GB, free: 11.31 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.687e-06/0.5902, allocations: 0 / 1.226 GB, free: 11.31 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.216e-05/0.5902, allocations: 4 kB / 1.226 GB, free: 11.3 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001089/0.5903, allocations: 27.92 kB / 1.226 GB, free: 11.28 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.529e-06/0.5903, allocations: 0 / 1.226 GB, free: 11.28 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.534e-05/0.5904, allocations: 31.73 kB / 1.226 GB, free: 11.25 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.31e-05/0.5904, allocations: 4 kB / 1.227 GB, free: 11.24 MB / 0.9512 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.0001616/0.5906, allocations: 197.8 kB / 1.227 GB, free: 11.04 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.663e-05/0.5906, allocations: 31.75 kB / 1.227 GB, free: 11.01 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001513/0.5908, allocations: 164.6 kB / 1.227 GB, free: 10.84 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.021e-05/0.5908, allocations: 176.3 kB / 1.227 GB, free: 10.66 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.855e-05/0.5909, allocations: 188.2 kB / 1.227 GB, free: 10.46 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.164e-05/0.591, allocations: 180.2 kB / 1.227 GB, free: 10.28 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000326/0.5913, allocations: 0.5205 MB / 1.228 GB, free: 9.703 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.86e-05/0.5914, allocations: 105 kB / 1.228 GB, free: 9.594 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.595e-05/0.5914, allocations: 101 kB / 1.228 GB, free: 9.488 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.319e-05/0.5915, allocations: 184.2 kB / 1.228 GB, free: 9.301 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.36e-05/0.5915, allocations: 177.2 kB / 1.228 GB, free: 9.121 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.924e-05/0.5916, allocations: 196.2 kB / 1.229 GB, free: 8.922 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.825e-05/0.5917, allocations: 176.3 kB / 1.229 GB, free: 8.742 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001539/0.5918, allocations: 335.5 kB / 1.229 GB, free: 8.391 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001148/0.592, allocations: 217.9 kB / 1.229 GB, free: 8.152 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.784e-05/0.592, allocations: 180.5 kB / 1.23 GB, free: 7.969 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.755e-05/0.5922, allocations: 113 kB / 1.23 GB, free: 7.852 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.616e-05/0.5922, allocations: 176.3 kB / 1.23 GB, free: 7.672 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.961e-05/0.5923, allocations: 112.9 kB / 1.23 GB, free: 7.555 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 0.0003557/0.5926, allocations: 363.1 kB / 1.23 GB, free: 7.199 MB / 0.9512 GB Notification: Performance of sort global known variables: time 1.8e-07/0.5926, allocations: 0 / 1.23 GB, free: 7.199 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.0002286/0.5929, allocations: 31.89 kB / 1.23 GB, free: 7.168 MB / 0.9512 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.0004006/0.5933, allocations: 0.8398 MB / 1.231 GB, free: 6.301 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.0001448/0.5934, allocations: 79.89 kB / 1.231 GB, free: 6.223 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 3.336e-06/0.5934, allocations: 4 kB / 1.231 GB, free: 6.219 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 1.233e-06/0.5934, allocations: 0 / 1.231 GB, free: 6.219 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004053/0.5938, allocations: 490.2 kB / 1.232 GB, free: 5.742 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002581/0.5964, allocations: 2.827 MB / 1.234 GB, free: 2.82 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003365/0.5968, allocations: 0.7752 MB / 1.235 GB, free: 2.02 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 8.546e-05/0.5969, allocations: 54.25 kB / 1.235 GB, free: 1.969 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.856e-05/0.597, allocations: 79.41 kB / 1.235 GB, free: 1.891 MB / 0.9512 GB Notification: Performance of SimCode: time 2.01e-07/0.597, allocations: 0 / 1.235 GB, free: 1.891 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 5.156/5.753, allocations: 4.947 MB / 1.24 GB, free: 13.1 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.386/14.14, allocations: 10.16 kB / 1.24 GB, free: 13.09 MB / 0.9669 GB (rm -f Buildings_11_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex.pipe ; mkfifo Buildings_11_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex.pipe ; head -c 1048576 < Buildings_11_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex.pipe >> ../files/Buildings_11_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_11_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex_res.mat --tempDir=temp_Buildings_11_Buildings_Templates_Plants_Controls_Utilities_Validation_LastTrueIndex_fmu --startTime=0 --stopTime=1 --timeout=400 --tolerance=1e-06 Buildings_11_Buildings_Templates_Plants_Controls_Utilities_Validation_LastTrueIndex.fmu > Buildings_11_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Templates_Plants_Controls_Utilities_Validation_LastTrueIndex.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches