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.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.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/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_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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.009577/0.009578, allocations: 101.2 kB / 15.73 MB, free: 5.523 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.001844/0.001844, allocations: 193.2 kB / 16.67 MB, free: 5.461 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.39/1.39, allocations: 222.9 MB / 240.4 MB, free: 4.16 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.705/2.705, allocations: 461.9 MB / 0.7348 GB, free: 14.62 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.00242/0.00242, allocations: 59.89 kB / 1.054 GB, free: 7.652 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2867/0.2892, allocations: 157.4 MB / 1.207 GB, free: 10.14 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex): time 0.001887/0.2911, allocations: 0.7049 MB / 1.208 GB, free: 9.438 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.0002122/0.2913, allocations: 55.77 kB / 1.208 GB, free: 9.383 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.252e-05/0.2914, allocations: 4 kB / 1.208 GB, free: 9.379 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 9.686e-05/0.2915, allocations: 11.88 kB / 1.208 GB, free: 9.367 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.0001096/0.2916, allocations: 11.92 kB / 1.208 GB, free: 9.355 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 5.002e-05/0.2917, allocations: 15.98 kB / 1.208 GB, free: 9.34 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0002134/0.2919, allocations: 187.5 kB / 1.208 GB, free: 9.156 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003238/0.2923, allocations: 256.9 kB / 1.208 GB, free: 8.902 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001/0.2924, allocations: 103.6 kB / 1.209 GB, free: 8.801 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001265/0.2925, allocations: 111.4 kB / 1.209 GB, free: 8.691 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 4.226e-05/0.2925, allocations: 24 kB / 1.209 GB, free: 8.668 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 3.566e-05/0.2926, allocations: 24 kB / 1.209 GB, free: 8.645 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 7.681e-05/0.2927, allocations: 75.77 kB / 1.209 GB, free: 8.57 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 0.0001073/0.2928, allocations: 123.3 kB / 1.209 GB, free: 8.449 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0003379/0.2931, allocations: 378.6 kB / 1.209 GB, free: 8.078 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 6.382e-06/0.2931, allocations: 0 / 1.209 GB, free: 8.078 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.633e-06/0.2931, allocations: 0 / 1.209 GB, free: 8.078 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 1.849e-05/0.2932, allocations: 0 / 1.209 GB, free: 8.078 MB / 0.9669 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.0007131/0.2939, allocations: 0.5421 MB / 1.21 GB, free: 7.484 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 3.825e-05/0.2939, allocations: 8.625 kB / 1.21 GB, free: 7.477 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.689e-05/0.294, allocations: 62.73 kB / 1.21 GB, free: 7.406 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.664e-05/0.2941, allocations: 32.56 kB / 1.21 GB, free: 7.375 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004114/0.2945, allocations: 321 kB / 1.21 GB, free: 7.02 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.87e-05/0.2945, allocations: 32.92 kB / 1.21 GB, free: 6.988 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.254e-05/0.2946, allocations: 24.38 kB / 1.21 GB, free: 6.965 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004733/0.2951, allocations: 339 kB / 1.211 GB, free: 6.625 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.167e-05/0.2951, allocations: 3.938 kB / 1.211 GB, free: 6.621 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.351e-05/0.2951, allocations: 12 kB / 1.211 GB, free: 6.609 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.546e-06/0.2951, allocations: 7.984 kB / 1.211 GB, free: 6.602 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003583/0.2955, allocations: 263.8 kB / 1.211 GB, free: 6.344 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001175/0.2967, allocations: 0.9013 MB / 1.212 GB, free: 5.387 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 7.155e-05/0.2968, allocations: 61.12 kB / 1.212 GB, free: 5.309 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.289e-05/0.2968, allocations: 37.7 kB / 1.212 GB, free: 5.266 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 1.863e-05/0.2968, allocations: 4 kB / 1.212 GB, free: 5.262 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.172e-05/0.2969, allocations: 38.5 kB / 1.212 GB, free: 5.215 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=2): time 3.547e-06/0.2969, allocations: 0 / 1.212 GB, free: 5.215 MB / 0.9669 GB Notification: Performance of matching and sorting (n=2): time 0.0002559/0.2971, allocations: 133.1 kB / 1.212 GB, free: 5.078 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.495e-05/0.2972, allocations: 89.03 kB / 1.212 GB, free: 4.973 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004828/0.2977, allocations: 469.5 kB / 1.213 GB, free: 4.508 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 1.519e-05/0.2977, allocations: 29.95 kB / 1.213 GB, free: 4.473 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001176/0.2978, allocations: 183.6 kB / 1.213 GB, free: 4.289 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 6.943e-06/0.2978, allocations: 0 / 1.213 GB, free: 4.289 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.496e-05/0.2979, allocations: 57.59 kB / 1.213 GB, free: 4.227 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001026/0.298, allocations: 338.8 kB / 1.213 GB, free: 3.887 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.749e-05/0.2981, allocations: 63.89 kB / 1.213 GB, free: 3.824 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.174e-05/0.2982, allocations: 69.67 kB / 1.213 GB, free: 3.75 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001254/0.2983, allocations: 105.6 kB / 1.213 GB, free: 3.641 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.994e-06/0.2983, allocations: 4 kB / 1.213 GB, free: 3.637 MB / 0.9669 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.000242/0.2986, allocations: 177.2 kB / 1.214 GB, free: 3.457 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.652e-05/0.2986, allocations: 9.719 kB / 1.214 GB, free: 3.449 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.478e-06/0.2986, allocations: 0 / 1.214 GB, free: 3.449 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.296e-05/0.2986, allocations: 0 / 1.214 GB, free: 3.449 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001291/0.2988, allocations: 31.92 kB / 1.214 GB, free: 3.418 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.901e-06/0.2988, allocations: 0 / 1.214 GB, free: 3.418 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.862e-05/0.2989, allocations: 31.59 kB / 1.214 GB, free: 3.387 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.584e-05/0.2989, allocations: 8 kB / 1.214 GB, free: 3.379 MB / 0.9669 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.0001685/0.2991, allocations: 197.7 kB / 1.214 GB, free: 3.176 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.214e-05/0.2991, allocations: 27.66 kB / 1.214 GB, free: 3.148 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001736/0.2993, allocations: 168.5 kB / 1.214 GB, free: 2.965 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.337e-05/0.2994, allocations: 180.3 kB / 1.214 GB, free: 2.781 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.241e-05/0.2994, allocations: 180.2 kB / 1.214 GB, free: 2.598 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.675e-05/0.2995, allocations: 184.3 kB / 1.214 GB, free: 2.41 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003158/0.2998, allocations: 0.521 MB / 1.215 GB, free: 1.832 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.356e-05/0.2998, allocations: 108.9 kB / 1.215 GB, free: 1.719 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.394e-05/0.2999, allocations: 101 kB / 1.215 GB, free: 1.613 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.059e-05/0.2999, allocations: 180.2 kB / 1.215 GB, free: 1.43 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.716e-05/0.3, allocations: 184.4 kB / 1.216 GB, free: 1.242 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.211e-05/0.3001, allocations: 180.3 kB / 1.216 GB, free: 1.059 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.481e-05/0.3001, allocations: 192.2 kB / 1.216 GB, free: 0.8633 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001388/0.3003, allocations: 331.3 kB / 1.216 GB, free: 0.5156 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001317/0.3004, allocations: 209.8 kB / 1.216 GB, free: 292 kB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.583e-05/0.3005, allocations: 184.3 kB / 1.217 GB, free: 100 kB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001221/0.3006, allocations: 112.9 kB / 1.217 GB, free: 15.98 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.275e-05/0.3007, allocations: 180.2 kB / 1.217 GB, free: 15.8 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.004e-05/0.3007, allocations: 104.9 kB / 1.217 GB, free: 15.69 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.0003482/0.3011, allocations: 359.1 kB / 1.217 GB, free: 15.34 MB / 0.9825 GB Notification: Performance of sort global known variables: time 2.2e-07/0.3011, allocations: 3.938 kB / 1.217 GB, free: 15.34 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002657/0.3014, allocations: 39.91 kB / 1.217 GB, free: 15.3 MB / 0.9825 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.0003913/0.3018, allocations: 0.8319 MB / 1.218 GB, free: 14.44 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0001561/0.3019, allocations: 79.88 kB / 1.218 GB, free: 14.36 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 1.813e-06/0.3019, allocations: 3.938 kB / 1.218 GB, free: 14.36 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 1.793e-06/0.3019, allocations: 4 kB / 1.218 GB, free: 14.36 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004395/0.3024, allocations: 479.3 kB / 1.219 GB, free: 13.88 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002696/0.3051, allocations: 2.815 MB / 1.221 GB, free: 10.98 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002897/0.3054, allocations: 0.7714 MB / 1.222 GB, free: 10.18 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 0.0001112/0.3055, allocations: 54.25 kB / 1.222 GB, free: 10.13 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001031/0.3056, allocations: 75.41 kB / 1.222 GB, free: 10.05 MB / 0.9825 GB Notification: Performance of SimCode: time 2.8e-07/0.3056, allocations: 4 kB / 1.222 GB, free: 10.05 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01993/0.3256, allocations: 5.006 MB / 1.227 GB, free: 5.199 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.741/8.067, allocations: 9.672 kB / 1.227 GB, free: 5.191 MB / 0.9825 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex_res.mat --tempDir=temp_Buildings_latest_Buildings_Templates_Plants_Controls_Utilities_Validation_LastTrueIndex_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Templates_Plants_Controls_Utilities_Validation_LastTrueIndex.fmu > Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex_res.mat","/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) Reference file matches