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.001409/0.001409, allocations: 108 kB / 15.61 MB, free: 148 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.001353/0.001353, allocations: 195.4 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.252/1.252, allocations: 222.9 MB / 240.2 MB, free: 4.367 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.466/2.466, allocations: 469.8 MB / 0.7424 GB, free: 7.391 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.002104/0.002104, allocations: 65.62 kB / 0.9087 GB, free: 34.3 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2356/0.2377, allocations: 159.1 MB / 1.064 GB, free: 14.2 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex): time 0.001798/0.2395, allocations: 0.7336 MB / 1.065 GB, free: 13.46 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.0001888/0.2397, allocations: 43.84 kB / 1.065 GB, free: 13.42 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.622e-05/0.2398, allocations: 3.938 kB / 1.065 GB, free: 13.41 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 8.478e-05/0.2399, allocations: 15.86 kB / 1.065 GB, free: 13.4 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 9.583e-05/0.24, allocations: 7.938 kB / 1.065 GB, free: 13.39 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 4.844e-05/0.2401, allocations: 19.98 kB / 1.065 GB, free: 13.37 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0001997/0.2403, allocations: 179.6 kB / 1.065 GB, free: 13.2 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003177/0.2406, allocations: 252.9 kB / 1.065 GB, free: 12.95 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 9.598e-05/0.2407, allocations: 99.66 kB / 1.065 GB, free: 12.85 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001194/0.2408, allocations: 115.5 kB / 1.066 GB, free: 12.73 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 4.323e-05/0.2409, allocations: 28 kB / 1.066 GB, free: 12.71 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 3.49e-05/0.2409, allocations: 24 kB / 1.066 GB, free: 12.68 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 7.224e-05/0.241, allocations: 71.78 kB / 1.066 GB, free: 12.61 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0001162/0.2411, allocations: 123.2 kB / 1.066 GB, free: 12.49 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0003151/0.2414, allocations: 350.9 kB / 1.066 GB, free: 12.15 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 3.536e-06/0.2415, allocations: 0 / 1.066 GB, free: 12.15 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.032e-06/0.2415, allocations: 0 / 1.066 GB, free: 12.15 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 5.641e-06/0.2415, allocations: 0 / 1.066 GB, free: 12.15 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.0005936/0.2421, allocations: 0.5537 MB / 1.067 GB, free: 11.54 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.604e-05/0.2421, allocations: 16.02 kB / 1.067 GB, free: 11.53 MB / 0.8262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.402e-05/0.2422, allocations: 58.73 kB / 1.067 GB, free: 11.46 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.43e-05/0.2422, allocations: 36.56 kB / 1.067 GB, free: 11.43 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003353/0.2426, allocations: 309.2 kB / 1.067 GB, free: 11.09 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.169e-05/0.2426, allocations: 24.92 kB / 1.067 GB, free: 11.06 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.232e-05/0.2427, allocations: 28.38 kB / 1.067 GB, free: 11.04 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004585/0.2431, allocations: 344.8 kB / 1.067 GB, free: 10.69 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.251e-05/0.2432, allocations: 11.94 kB / 1.067 GB, free: 10.68 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.293e-05/0.2432, allocations: 12 kB / 1.067 GB, free: 10.67 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.478e-06/0.2432, allocations: 8 kB / 1.067 GB, free: 10.66 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003414/0.2435, allocations: 252.4 kB / 1.068 GB, free: 10.41 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001079/0.2446, allocations: 0.9246 MB / 1.069 GB, free: 9.434 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 6.922e-05/0.2447, allocations: 53.2 kB / 1.069 GB, free: 9.363 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.243e-05/0.2448, allocations: 37.7 kB / 1.069 GB, free: 9.32 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.702e-05/0.2448, allocations: 3.984 kB / 1.069 GB, free: 9.316 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.947e-05/0.2448, allocations: 38.5 kB / 1.069 GB, free: 9.27 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=2): time 1.072e-06/0.2448, allocations: 4 kB / 1.069 GB, free: 9.266 MB / 0.8262 GB Notification: Performance of matching and sorting (n=2): time 0.0002326/0.2451, allocations: 121.3 kB / 1.069 GB, free: 9.141 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.622e-05/0.2451, allocations: 77.11 kB / 1.069 GB, free: 9.047 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004733/0.2456, allocations: 485.3 kB / 1.069 GB, free: 8.57 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.356e-05/0.2456, allocations: 25.7 kB / 1.069 GB, free: 8.539 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001255/0.2457, allocations: 179.6 kB / 1.07 GB, free: 8.359 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 9.327e-06/0.2458, allocations: 12.16 kB / 1.07 GB, free: 8.348 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.175e-05/0.2458, allocations: 45.7 kB / 1.07 GB, free: 8.297 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001328/0.246, allocations: 342.8 kB / 1.07 GB, free: 7.953 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.518e-05/0.2461, allocations: 55.95 kB / 1.07 GB, free: 7.898 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.979e-05/0.2461, allocations: 74.92 kB / 1.07 GB, free: 7.82 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001224/0.2463, allocations: 101.6 kB / 1.07 GB, free: 7.715 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.423e-06/0.2463, allocations: 0 / 1.07 GB, free: 7.715 MB / 0.8262 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002338/0.2465, allocations: 185.2 kB / 1.07 GB, free: 7.527 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.08e-05/0.2465, allocations: 8 kB / 1.07 GB, free: 7.52 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.401e-06/0.2466, allocations: 4 kB / 1.07 GB, free: 7.516 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.067e-05/0.2466, allocations: 0 / 1.07 GB, free: 7.516 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00011/0.2467, allocations: 27.92 kB / 1.07 GB, free: 7.488 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.077e-06/0.2467, allocations: 0 / 1.07 GB, free: 7.488 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.984e-05/0.2468, allocations: 27.69 kB / 1.07 GB, free: 7.461 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.732e-05/0.2468, allocations: 8 kB / 1.07 GB, free: 7.453 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.000161/0.2469, allocations: 197.7 kB / 1.071 GB, free: 7.25 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.171e-05/0.247, allocations: 31.56 kB / 1.071 GB, free: 7.219 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001558/0.2472, allocations: 160.6 kB / 1.071 GB, free: 7.047 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.393e-05/0.2472, allocations: 180.3 kB / 1.071 GB, free: 6.863 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.064e-05/0.2473, allocations: 188.2 kB / 1.071 GB, free: 6.672 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.16e-05/0.2474, allocations: 176.3 kB / 1.071 GB, free: 6.492 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003462/0.2477, allocations: 0.5282 MB / 1.072 GB, free: 5.906 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.07e-05/0.2478, allocations: 108.9 kB / 1.072 GB, free: 5.793 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.865e-05/0.2478, allocations: 101 kB / 1.072 GB, free: 5.688 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.449e-05/0.2479, allocations: 184.2 kB / 1.072 GB, free: 5.5 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.378e-05/0.248, allocations: 180.2 kB / 1.072 GB, free: 5.316 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.62e-05/0.248, allocations: 188.2 kB / 1.073 GB, free: 5.125 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.124e-05/0.2481, allocations: 176.3 kB / 1.073 GB, free: 4.945 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001568/0.2483, allocations: 331.6 kB / 1.073 GB, free: 4.598 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001217/0.2484, allocations: 217.7 kB / 1.073 GB, free: 4.359 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.802e-05/0.2485, allocations: 188.2 kB / 1.073 GB, free: 4.168 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001015/0.2486, allocations: 113 kB / 1.074 GB, free: 4.051 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.734e-05/0.2487, allocations: 180.3 kB / 1.074 GB, free: 3.867 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.742e-05/0.2487, allocations: 104.9 kB / 1.074 GB, free: 3.758 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0003579/0.2491, allocations: 363.1 kB / 1.074 GB, free: 3.402 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.5e-07/0.2491, allocations: 0 / 1.074 GB, free: 3.402 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002318/0.2493, allocations: 28 kB / 1.074 GB, free: 3.375 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.0004167/0.2497, allocations: 0.8434 MB / 1.075 GB, free: 2.504 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0001463/0.2499, allocations: 79.89 kB / 1.075 GB, free: 2.426 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.753e-06/0.2499, allocations: 0 / 1.075 GB, free: 2.426 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 3.507e-06/0.2499, allocations: 4 kB / 1.075 GB, free: 2.422 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004007/0.2503, allocations: 481.2 kB / 1.076 GB, free: 1.949 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002602/0.2529, allocations: 2.824 MB / 1.078 GB, free: 15.03 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003331/0.2533, allocations: 0.7752 MB / 1.079 GB, free: 14.23 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 8.898e-05/0.2534, allocations: 54.25 kB / 1.079 GB, free: 14.18 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001014/0.2535, allocations: 81.16 kB / 1.079 GB, free: 14.1 MB / 0.8419 GB Notification: Performance of SimCode: time 2.11e-07/0.2535, allocations: 0 / 1.079 GB, free: 14.1 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3778/0.6313, allocations: 4.844 MB / 1.084 GB, free: 9.387 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.133/8.764, allocations: 6.531 kB / 1.084 GB, free: 9.383 MB / 0.8419 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