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.001691/0.001691, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001924/0.001924, allocations: 198.4 kB / 16.54 MB, free: 6.672 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.332/1.332, allocations: 222.9 MB / 240.2 MB, free: 4.391 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.682/2.682, allocations: 469.4 MB / 0.742 GB, free: 7.695 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001287/0.001287, allocations: 68.83 kB / 0.9083 GB, free: 34.39 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2439/0.2452, allocations: 159.1 MB / 1.064 GB, free: 14.49 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex): time 0.001895/0.2471, allocations: 0.7054 MB / 1.064 GB, free: 13.78 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.0002076/0.2473, allocations: 47.84 kB / 1.064 GB, free: 13.73 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.206e-05/0.2474, allocations: 4 kB / 1.064 GB, free: 13.73 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 9.204e-05/0.2475, allocations: 15.8 kB / 1.064 GB, free: 13.71 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 9.66e-05/0.2476, allocations: 15.92 kB / 1.064 GB, free: 13.7 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 4.97e-05/0.2477, allocations: 15.98 kB / 1.064 GB, free: 13.68 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0002016/0.2479, allocations: 179.6 kB / 1.065 GB, free: 13.51 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003269/0.2482, allocations: 260.9 kB / 1.065 GB, free: 13.25 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 9.271e-05/0.2483, allocations: 99.59 kB / 1.065 GB, free: 13.15 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001255/0.2485, allocations: 119.5 kB / 1.065 GB, free: 13.04 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 4.789e-05/0.2485, allocations: 24 kB / 1.065 GB, free: 13.01 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 3.946e-05/0.2486, allocations: 27.94 kB / 1.065 GB, free: 12.98 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 7.085e-05/0.2486, allocations: 67.78 kB / 1.065 GB, free: 12.92 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0001125/0.2488, allocations: 123.3 kB / 1.065 GB, free: 12.8 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0002945/0.2491, allocations: 358.8 kB / 1.066 GB, free: 12.45 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 3.486e-06/0.2491, allocations: 0 / 1.066 GB, free: 12.45 MB / 0.8262 GB Notification: Performance of FrontEnd: time 9.62e-07/0.2491, allocations: 0 / 1.066 GB, free: 12.45 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 8.526e-06/0.2491, allocations: 0 / 1.066 GB, free: 12.45 MB / 0.8262 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.0006052/0.2497, allocations: 0.5461 MB / 1.066 GB, free: 11.85 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.689e-05/0.2497, allocations: 8.031 kB / 1.066 GB, free: 11.84 MB / 0.8262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.76e-05/0.2498, allocations: 66.72 kB / 1.066 GB, free: 11.77 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.697e-05/0.2499, allocations: 36.5 kB / 1.066 GB, free: 11.73 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003423/0.2502, allocations: 305.2 kB / 1.067 GB, free: 11.39 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.571e-05/0.2503, allocations: 36.92 kB / 1.067 GB, free: 11.36 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.855e-05/0.2503, allocations: 24.38 kB / 1.067 GB, free: 11.34 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004769/0.2508, allocations: 339 kB / 1.067 GB, free: 11 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.063e-05/0.2508, allocations: 3.938 kB / 1.067 GB, free: 10.99 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.27e-05/0.2509, allocations: 8 kB / 1.067 GB, free: 10.98 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.927e-06/0.2509, allocations: 8 kB / 1.067 GB, free: 10.98 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003646/0.2512, allocations: 264.3 kB / 1.067 GB, free: 10.72 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00111/0.2524, allocations: 0.9168 MB / 1.068 GB, free: 9.746 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 7.238e-05/0.2524, allocations: 61.12 kB / 1.068 GB, free: 9.668 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.205e-05/0.2525, allocations: 39.38 kB / 1.068 GB, free: 9.625 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 2.051e-05/0.2525, allocations: 4 kB / 1.068 GB, free: 9.621 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.778e-05/0.2525, allocations: 30.56 kB / 1.068 GB, free: 9.582 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=2): time 1.162e-06/0.2526, allocations: 0 / 1.068 GB, free: 9.582 MB / 0.8262 GB Notification: Performance of matching and sorting (n=2): time 0.0002465/0.2528, allocations: 129.3 kB / 1.068 GB, free: 9.449 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.087e-05/0.2529, allocations: 77.11 kB / 1.068 GB, free: 9.355 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004776/0.2533, allocations: 485.6 kB / 1.069 GB, free: 8.879 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.376e-05/0.2534, allocations: 25.7 kB / 1.069 GB, free: 8.848 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001183/0.2535, allocations: 179.6 kB / 1.069 GB, free: 8.668 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 8.105e-06/0.2535, allocations: 3.906 kB / 1.069 GB, free: 8.664 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.635e-05/0.2536, allocations: 49.69 kB / 1.069 GB, free: 8.609 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001137/0.2537, allocations: 338.8 kB / 1.07 GB, free: 8.27 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.14e-05/0.2538, allocations: 63.89 kB / 1.07 GB, free: 8.207 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.306e-05/0.2539, allocations: 73.67 kB / 1.07 GB, free: 8.129 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001248/0.254, allocations: 97.67 kB / 1.07 GB, free: 8.027 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.673e-06/0.254, allocations: 0 / 1.07 GB, free: 8.027 MB / 0.8262 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002491/0.2543, allocations: 193.2 kB / 1.07 GB, free: 7.832 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.278e-05/0.2543, allocations: 4 kB / 1.07 GB, free: 7.828 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.789e-06/0.2543, allocations: 80 / 1.07 GB, free: 7.828 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.049e-05/0.2543, allocations: 0 / 1.07 GB, free: 7.828 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000122/0.2544, allocations: 23.98 kB / 1.07 GB, free: 7.805 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.745e-06/0.2545, allocations: 11.92 kB / 1.07 GB, free: 7.793 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.779e-05/0.2545, allocations: 23.69 kB / 1.07 GB, free: 7.77 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.38e-05/0.2546, allocations: 8 kB / 1.07 GB, free: 7.762 MB / 0.8262 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.0001604/0.2547, allocations: 201.6 kB / 1.07 GB, free: 7.555 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.115e-05/0.2548, allocations: 35.56 kB / 1.07 GB, free: 7.52 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001544/0.255, allocations: 160.6 kB / 1.07 GB, free: 7.348 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.558e-05/0.255, allocations: 184.2 kB / 1.071 GB, free: 7.16 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.15e-05/0.2551, allocations: 176.3 kB / 1.071 GB, free: 6.98 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.534e-05/0.2551, allocations: 180.2 kB / 1.071 GB, free: 6.797 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000316/0.2555, allocations: 0.5243 MB / 1.071 GB, free: 6.215 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.852e-05/0.2555, allocations: 113 kB / 1.072 GB, free: 6.098 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.807e-05/0.2555, allocations: 104.9 kB / 1.072 GB, free: 5.988 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.474e-05/0.2556, allocations: 184.3 kB / 1.072 GB, free: 5.801 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.157e-05/0.2557, allocations: 180.2 kB / 1.072 GB, free: 5.617 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.125e-05/0.2557, allocations: 184.2 kB / 1.072 GB, free: 5.43 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.141e-05/0.2558, allocations: 180.2 kB / 1.072 GB, free: 5.246 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001365/0.2559, allocations: 331.7 kB / 1.073 GB, free: 4.898 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001132/0.256, allocations: 229.7 kB / 1.073 GB, free: 4.648 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.843e-05/0.2561, allocations: 180.3 kB / 1.073 GB, free: 4.465 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001063/0.2562, allocations: 108.9 kB / 1.073 GB, free: 4.352 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.787e-05/0.2563, allocations: 180.2 kB / 1.073 GB, free: 4.168 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.603e-05/0.2563, allocations: 101 kB / 1.073 GB, free: 4.062 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0003611/0.2567, allocations: 363.1 kB / 1.074 GB, free: 3.707 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.3e-07/0.2567, allocations: 0 / 1.074 GB, free: 3.707 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002661/0.257, allocations: 32 kB / 1.074 GB, free: 3.676 MB / 0.8262 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.0003713/0.2574, allocations: 0.8356 MB / 1.075 GB, free: 2.812 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0001572/0.2575, allocations: 83.88 kB / 1.075 GB, free: 2.73 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.304e-06/0.2575, allocations: 0 / 1.075 GB, free: 2.73 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 1.322e-06/0.2575, allocations: 0 / 1.075 GB, free: 2.73 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004039/0.258, allocations: 482.1 kB / 1.075 GB, free: 2.258 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002653/0.2606, allocations: 2.824 MB / 1.078 GB, free: 15.34 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002921/0.2609, allocations: 0.7714 MB / 1.079 GB, free: 14.54 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.0001079/0.261, allocations: 62.17 kB / 1.079 GB, free: 14.48 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001036/0.2611, allocations: 71.42 kB / 1.079 GB, free: 14.41 MB / 0.8419 GB Notification: Performance of SimCode: time 2.31e-07/0.2612, allocations: 0 / 1.079 GB, free: 14.41 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02002/0.2812, allocations: 4.86 MB / 1.083 GB, free: 9.684 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.229/7.51, allocations: 5.688 kB / 1.084 GB, free: 9.684 MB / 0.8419 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 & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex_res.csv --start-time 0 --stop-time 1 --timeout 50 --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) 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) Reference file matches