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.001254/0.001254, allocations: 108 kB / 15.61 MB, free: 152 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.001258/0.001258, allocations: 195.5 kB / 16.53 MB, free: 6.664 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.234/1.234, allocations: 222.9 MB / 240.2 MB, free: 4.395 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.364/2.364, allocations: 461.9 MB / 0.7346 GB, free: 14.76 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001164/0.001164, allocations: 66.64 kB / 0.8992 GB, free: 36.96 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2419/0.2431, allocations: 157.4 MB / 1.053 GB, free: 8.293 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex): time 0.001868/0.245, allocations: 0.7221 MB / 1.054 GB, free: 7.57 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.0002067/0.2452, allocations: 47.84 kB / 1.054 GB, free: 7.523 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.818e-05/0.2453, allocations: 4 kB / 1.054 GB, free: 7.52 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 9.478e-05/0.2454, allocations: 15.86 kB / 1.054 GB, free: 7.504 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0001054/0.2455, allocations: 19.91 kB / 1.054 GB, free: 7.484 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 4.778e-05/0.2455, allocations: 11.98 kB / 1.054 GB, free: 7.473 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0002029/0.2458, allocations: 179.5 kB / 1.054 GB, free: 7.297 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003238/0.2461, allocations: 256.9 kB / 1.054 GB, free: 7.047 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 7.717e-05/0.2462, allocations: 99.64 kB / 1.054 GB, free: 6.949 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001091/0.2463, allocations: 115.5 kB / 1.054 GB, free: 6.836 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 4.106e-05/0.2463, allocations: 24 kB / 1.054 GB, free: 6.812 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 3.475e-05/0.2464, allocations: 24 kB / 1.054 GB, free: 6.789 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 6.922e-05/0.2464, allocations: 67.78 kB / 1.054 GB, free: 6.723 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0001076/0.2466, allocations: 131.2 kB / 1.055 GB, free: 6.594 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0002794/0.2468, allocations: 354.9 kB / 1.055 GB, free: 6.246 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.557e-06/0.2468, allocations: 0 / 1.055 GB, free: 6.246 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.333e-06/0.2469, allocations: 0 / 1.055 GB, free: 6.246 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 6.011e-06/0.2469, allocations: 4 kB / 1.055 GB, free: 6.242 MB / 0.8106 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.0005462/0.2474, allocations: 0.546 MB / 1.055 GB, free: 5.645 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.469e-05/0.2475, allocations: 8.625 kB / 1.055 GB, free: 5.637 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.824e-05/0.2475, allocations: 66.72 kB / 1.056 GB, free: 5.562 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.035e-05/0.2476, allocations: 32.56 kB / 1.056 GB, free: 5.531 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003233/0.2479, allocations: 313.2 kB / 1.056 GB, free: 5.184 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.301e-05/0.248, allocations: 32.92 kB / 1.056 GB, free: 5.152 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.978e-05/0.248, allocations: 24.38 kB / 1.056 GB, free: 5.129 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004285/0.2484, allocations: 335.1 kB / 1.056 GB, free: 4.793 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.503e-05/0.2484, allocations: 3.938 kB / 1.056 GB, free: 4.789 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.173e-05/0.2485, allocations: 11.98 kB / 1.056 GB, free: 4.777 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.266e-05/0.2485, allocations: 11.98 kB / 1.056 GB, free: 4.766 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003365/0.2488, allocations: 259.8 kB / 1.056 GB, free: 4.512 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001036/0.2499, allocations: 0.9168 MB / 1.057 GB, free: 3.539 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 6.737e-05/0.2499, allocations: 61.14 kB / 1.057 GB, free: 3.461 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.036e-05/0.25, allocations: 33.7 kB / 1.057 GB, free: 3.422 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.613e-05/0.25, allocations: 4 kB / 1.057 GB, free: 3.418 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.532e-05/0.25, allocations: 30.56 kB / 1.058 GB, free: 3.379 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=2): time 1.182e-06/0.2501, allocations: 0 / 1.058 GB, free: 3.379 MB / 0.8106 GB Notification: Performance of matching and sorting (n=2): time 0.0002371/0.2503, allocations: 137.2 kB / 1.058 GB, free: 3.238 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.067e-05/0.2504, allocations: 81.36 kB / 1.058 GB, free: 3.141 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004641/0.2508, allocations: 477.4 kB / 1.058 GB, free: 2.668 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.543e-05/0.2508, allocations: 25.7 kB / 1.058 GB, free: 2.637 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001181/0.251, allocations: 183.6 kB / 1.058 GB, free: 2.453 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 8.777e-06/0.251, allocations: 7.891 kB / 1.058 GB, free: 2.445 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.066e-05/0.251, allocations: 45.7 kB / 1.058 GB, free: 2.395 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001143/0.2512, allocations: 342.8 kB / 1.059 GB, free: 2.051 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.77e-05/0.2513, allocations: 59.95 kB / 1.059 GB, free: 1.992 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.831e-05/0.2514, allocations: 73.67 kB / 1.059 GB, free: 1.914 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001219/0.2515, allocations: 101.7 kB / 1.059 GB, free: 1.809 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.723e-06/0.2515, allocations: 0 / 1.059 GB, free: 1.809 MB / 0.8106 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002406/0.2517, allocations: 197.1 kB / 1.059 GB, free: 1.609 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.228e-05/0.2518, allocations: 4 kB / 1.059 GB, free: 1.605 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.967e-06/0.2518, allocations: 0 / 1.059 GB, free: 1.605 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.241e-05/0.2518, allocations: 0 / 1.059 GB, free: 1.605 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001127/0.2519, allocations: 23.98 kB / 1.059 GB, free: 1.582 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.278e-06/0.2519, allocations: 4 kB / 1.059 GB, free: 1.578 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.972e-05/0.252, allocations: 27.69 kB / 1.059 GB, free: 1.551 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.849e-05/0.252, allocations: 4 kB / 1.059 GB, free: 1.547 MB / 0.8106 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.0001451/0.2521, allocations: 199.2 kB / 1.059 GB, free: 1.344 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.395e-05/0.2522, allocations: 35.56 kB / 1.059 GB, free: 1.309 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001409/0.2524, allocations: 164.6 kB / 1.06 GB, free: 1.133 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.593e-05/0.2524, allocations: 180.3 kB / 1.06 GB, free: 0.9492 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.878e-05/0.2525, allocations: 176.3 kB / 1.06 GB, free: 0.7695 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.958e-05/0.2525, allocations: 184.2 kB / 1.06 GB, free: 0.582 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002795/0.2528, allocations: 0.5244 MB / 1.061 GB, free: 0 / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.991e-05/0.2529, allocations: 108.9 kB / 1.061 GB, free: 15.89 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.086e-05/0.2529, allocations: 105 kB / 1.061 GB, free: 15.78 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.556e-05/0.2529, allocations: 180.3 kB / 1.061 GB, free: 15.59 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.706e-05/0.253, allocations: 180.7 kB / 1.061 GB, free: 15.41 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.781e-05/0.253, allocations: 180.3 kB / 1.061 GB, free: 15.23 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.006e-05/0.2531, allocations: 188.2 kB / 1.062 GB, free: 15.04 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001293/0.2532, allocations: 327.6 kB / 1.062 GB, free: 14.69 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001027/0.2533, allocations: 225.7 kB / 1.062 GB, free: 14.45 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.986e-05/0.2534, allocations: 180.3 kB / 1.062 GB, free: 14.26 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.631e-05/0.2535, allocations: 108.9 kB / 1.062 GB, free: 14.15 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.04e-05/0.2536, allocations: 180.2 kB / 1.063 GB, free: 13.96 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.014e-05/0.2536, allocations: 105 kB / 1.063 GB, free: 13.86 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0003236/0.2539, allocations: 359.1 kB / 1.063 GB, free: 13.51 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.4e-07/0.2539, allocations: 7.938 kB / 1.063 GB, free: 13.5 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002459/0.2542, allocations: 28 kB / 1.063 GB, free: 13.47 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.0003556/0.2546, allocations: 0.8473 MB / 1.064 GB, free: 12.6 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0001399/0.2547, allocations: 75.89 kB / 1.064 GB, free: 12.52 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.215e-06/0.2547, allocations: 0 / 1.064 GB, free: 12.52 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 1.232e-06/0.2547, allocations: 0 / 1.064 GB, free: 12.52 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003841/0.2551, allocations: 477.2 kB / 1.064 GB, free: 12.05 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002481/0.2576, allocations: 2.826 MB / 1.067 GB, free: 9.133 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002758/0.2579, allocations: 0.7753 MB / 1.068 GB, free: 8.328 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 8.875e-05/0.258, allocations: 54.25 kB / 1.068 GB, free: 8.273 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.59e-05/0.2581, allocations: 75.41 kB / 1.068 GB, free: 8.199 MB / 0.8262 GB Notification: Performance of SimCode: time 3.51e-07/0.2581, allocations: 0 / 1.068 GB, free: 8.199 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1263/0.3844, allocations: 4.86 MB / 1.073 GB, free: 3.48 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.52/7.905, allocations: 7.797 kB / 1.073 GB, free: 3.473 MB / 0.8262 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