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.001494/0.001494, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001724/0.001724, allocations: 190.9 kB / 16.25 MB, free: 6.633 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.395/1.395, allocations: 222.9 MB / 239.9 MB, free: 4.512 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.786/2.786, allocations: 461.9 MB / 0.7343 GB, free: 14.98 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001312/0.001312, allocations: 66.31 kB / 0.8987 GB, free: 37.1 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2493/0.2506, allocations: 157.4 MB / 1.052 GB, free: 8.684 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex): time 0.001723/0.2524, allocations: 0.7778 MB / 1.053 GB, free: 7.902 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.0001472/0.2525, allocations: 55.72 kB / 1.053 GB, free: 7.848 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.745e-05/0.2526, allocations: 8 kB / 1.053 GB, free: 7.84 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 6.922e-05/0.2527, allocations: 11.92 kB / 1.053 GB, free: 7.828 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 7.218e-05/0.2527, allocations: 3.938 kB / 1.053 GB, free: 7.824 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 3.717e-05/0.2528, allocations: 15.98 kB / 1.053 GB, free: 7.809 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0001633/0.253, allocations: 179.6 kB / 1.053 GB, free: 7.633 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002718/0.2532, allocations: 264.9 kB / 1.054 GB, free: 7.375 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 7.03e-05/0.2533, allocations: 91.66 kB / 1.054 GB, free: 7.285 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 9.896e-05/0.2534, allocations: 119.5 kB / 1.054 GB, free: 7.168 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 3.285e-05/0.2534, allocations: 24 kB / 1.054 GB, free: 7.145 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 3.001e-05/0.2535, allocations: 24 kB / 1.054 GB, free: 7.121 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 5.625e-05/0.2535, allocations: 75.78 kB / 1.054 GB, free: 7.047 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 8.352e-05/0.2536, allocations: 119.3 kB / 1.054 GB, free: 6.93 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0002439/0.2539, allocations: 354.8 kB / 1.054 GB, free: 6.582 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 1.944e-06/0.2539, allocations: 0 / 1.054 GB, free: 6.582 MB / 0.8106 GB Notification: Performance of FrontEnd: time 8.62e-07/0.2539, allocations: 0 / 1.054 GB, free: 6.582 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 1.103e-05/0.2539, allocations: 0 / 1.054 GB, free: 6.582 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.0004547/0.2544, allocations: 0.5499 MB / 1.055 GB, free: 5.98 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 2.804e-05/0.2544, allocations: 12.56 kB / 1.055 GB, free: 5.969 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.36e-05/0.2545, allocations: 66.72 kB / 1.055 GB, free: 5.895 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.338e-05/0.2545, allocations: 28.56 kB / 1.055 GB, free: 5.867 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002872/0.2548, allocations: 309.3 kB / 1.055 GB, free: 5.523 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.615e-05/0.2549, allocations: 36.86 kB / 1.055 GB, free: 5.488 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.694e-05/0.2549, allocations: 24.38 kB / 1.055 GB, free: 5.465 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004144/0.2553, allocations: 347 kB / 1.056 GB, free: 5.117 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.009e-05/0.2553, allocations: 7.922 kB / 1.056 GB, free: 5.109 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.841e-05/0.2553, allocations: 8 kB / 1.056 GB, free: 5.102 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.733e-06/0.2554, allocations: 8 kB / 1.056 GB, free: 5.094 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003129/0.2557, allocations: 251.8 kB / 1.056 GB, free: 4.848 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009479/0.2566, allocations: 0.9323 MB / 1.057 GB, free: 3.859 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 5.936e-05/0.2567, allocations: 57.2 kB / 1.057 GB, free: 3.785 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.489e-05/0.2567, allocations: 29.7 kB / 1.057 GB, free: 3.75 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.252e-05/0.2568, allocations: 0 / 1.057 GB, free: 3.75 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.765e-05/0.2568, allocations: 46.48 kB / 1.057 GB, free: 3.695 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=2): time 7.61e-07/0.2568, allocations: 0 / 1.057 GB, free: 3.695 MB / 0.8106 GB Notification: Performance of matching and sorting (n=2): time 0.0002035/0.257, allocations: 125.5 kB / 1.057 GB, free: 3.566 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.755e-05/0.257, allocations: 81.11 kB / 1.057 GB, free: 3.469 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004021/0.2574, allocations: 477.4 kB / 1.058 GB, free: 3 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.116e-05/0.2575, allocations: 25.7 kB / 1.058 GB, free: 2.969 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 9.986e-05/0.2576, allocations: 179.6 kB / 1.058 GB, free: 2.789 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 7.765e-06/0.2576, allocations: 7.891 kB / 1.058 GB, free: 2.781 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.813e-05/0.2576, allocations: 49.7 kB / 1.058 GB, free: 2.727 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 8.971e-05/0.2577, allocations: 338.8 kB / 1.058 GB, free: 2.387 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.885e-05/0.2578, allocations: 55.95 kB / 1.058 GB, free: 2.332 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.417e-05/0.2579, allocations: 81.3 kB / 1.058 GB, free: 2.25 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001116/0.258, allocations: 101.6 kB / 1.059 GB, free: 2.145 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.463e-06/0.258, allocations: 0 / 1.059 GB, free: 2.145 MB / 0.8106 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002166/0.2582, allocations: 185.2 kB / 1.059 GB, free: 1.957 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.126e-05/0.2583, allocations: 9.719 kB / 1.059 GB, free: 1.949 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.996e-06/0.2583, allocations: 0 / 1.059 GB, free: 1.949 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.624e-06/0.2583, allocations: 0 / 1.059 GB, free: 1.949 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001058/0.2584, allocations: 31.91 kB / 1.059 GB, free: 1.918 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.378e-06/0.2584, allocations: 8 kB / 1.059 GB, free: 1.91 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.625e-05/0.2585, allocations: 23.69 kB / 1.059 GB, free: 1.887 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.337e-05/0.2585, allocations: 8 kB / 1.059 GB, free: 1.879 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.0001371/0.2586, allocations: 191.3 kB / 1.059 GB, free: 1.684 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.374e-05/0.2587, allocations: 31.56 kB / 1.059 GB, free: 1.652 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001337/0.2588, allocations: 168.6 kB / 1.059 GB, free: 1.473 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.353e-05/0.2589, allocations: 176.3 kB / 1.059 GB, free: 1.293 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.717e-05/0.2589, allocations: 188.2 kB / 1.06 GB, free: 1.102 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.173e-05/0.259, allocations: 184.2 kB / 1.06 GB, free: 0.9141 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002691/0.2592, allocations: 0.5205 MB / 1.06 GB, free: 344 kB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.433e-05/0.2593, allocations: 101 kB / 1.06 GB, free: 236 kB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.829e-05/0.2593, allocations: 105 kB / 1.06 GB, free: 124 kB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.174e-05/0.2594, allocations: 188.1 kB / 1.061 GB, free: 15.93 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.473e-05/0.2594, allocations: 180.3 kB / 1.061 GB, free: 15.75 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.32e-05/0.2595, allocations: 184.2 kB / 1.061 GB, free: 15.56 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.63e-05/0.2595, allocations: 180.3 kB / 1.061 GB, free: 15.38 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00011/0.2596, allocations: 339.3 kB / 1.061 GB, free: 15.02 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 9.515e-05/0.2597, allocations: 217.7 kB / 1.062 GB, free: 14.78 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.399e-05/0.2598, allocations: 180.2 kB / 1.062 GB, free: 14.6 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.09e-05/0.2599, allocations: 112.9 kB / 1.062 GB, free: 14.48 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.575e-05/0.26, allocations: 176.3 kB / 1.062 GB, free: 14.3 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.546e-05/0.26, allocations: 108.9 kB / 1.062 GB, free: 14.19 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.000312/0.2603, allocations: 363.1 kB / 1.063 GB, free: 13.83 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.3e-07/0.2603, allocations: 0 / 1.063 GB, free: 13.83 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002316/0.2605, allocations: 28 kB / 1.063 GB, free: 13.8 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.000302/0.2609, allocations: 0.8434 MB / 1.063 GB, free: 12.93 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0001246/0.261, allocations: 75.89 kB / 1.063 GB, free: 12.86 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.503e-06/0.261, allocations: 0 / 1.063 GB, free: 12.86 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 1.242e-06/0.261, allocations: 0 / 1.063 GB, free: 12.86 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003449/0.2614, allocations: 481.2 kB / 1.064 GB, free: 12.39 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002364/0.2637, allocations: 2.869 MB / 1.067 GB, free: 9.426 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002483/0.264, allocations: 0.7714 MB / 1.067 GB, free: 8.629 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 8.081e-05/0.2641, allocations: 54.25 kB / 1.068 GB, free: 8.574 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.556e-05/0.2642, allocations: 75.41 kB / 1.068 GB, free: 8.5 MB / 0.8262 GB Notification: Performance of SimCode: time 2.81e-07/0.2642, allocations: 4 kB / 1.068 GB, free: 8.496 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2431/0.5073, allocations: 4.776 MB / 1.072 GB, free: 3.902 MB / 0.8262 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001793/0.5075, allocations: 232.2 kB / 1.072 GB, free: 3.645 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.628/2.135, allocations: 0 / 1.072 GB, free: 3.645 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