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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0007865/0.0007865, allocations: 80.44 kB / 19.17 MB, free: 0.7422 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0007496/0.0007496, allocations: 169.9 kB / 22.46 MB, free: 2.105 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.8507/0.8507, allocations: 177.1 MB / 202.8 MB, free: 5.734 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 1.753/1.753, allocations: 389 MB / 0.633 GB, free: 12.71 MB / 0.6042 GB " [Timeout remaining time 178] Using package Buildings with version 13.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 2.796e-06/2.796e-06, allocations: 0 / 0.9996 GB, free: 13.56 MB / 0.9636 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.272e-05/2.552e-05, allocations: 2.281 kB / 0.9996 GB, free: 13.56 MB / 0.9636 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex): time 0.001375/0.001401, allocations: 0.7114 MB / 1 GB, free: 12.85 MB / 0.9636 GB Notification: Performance of NFInst.instExpressions: time 0.0001833/0.001584, allocations: 43.84 kB / 1 GB, free: 12.8 MB / 0.9636 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.359e-05/0.001648, allocations: 3.938 kB / 1 GB, free: 12.8 MB / 0.9636 GB Notification: Performance of NFTyping.typeComponents: time 0.0001018/0.00175, allocations: 19.86 kB / 1 GB, free: 12.78 MB / 0.9636 GB Notification: Performance of NFTyping.typeBindings: time 0.0001086/0.001858, allocations: 7.922 kB / 1 GB, free: 12.77 MB / 0.9636 GB Notification: Performance of NFTyping.typeClassSections: time 4.727e-05/0.001905, allocations: 19.98 kB / 1 GB, free: 12.75 MB / 0.9636 GB Notification: Performance of NFFlatten.flatten: time 0.000169/0.002074, allocations: 183.5 kB / 1.001 GB, free: 12.57 MB / 0.9636 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001986/0.002273, allocations: 153.3 kB / 1.001 GB, free: 12.43 MB / 0.9636 GB Notification: Performance of NFEvalConstants.evaluate: time 9.741e-05/0.00237, allocations: 139.8 kB / 1.001 GB, free: 12.29 MB / 0.9636 GB Notification: Performance of NFSimplifyModel.simplify: time 9.497e-05/0.002465, allocations: 103.7 kB / 1.001 GB, free: 12.19 MB / 0.9636 GB Notification: Performance of NFPackage.collectConstants: time 3.832e-05/0.002504, allocations: 24 kB / 1.001 GB, free: 12.16 MB / 0.9636 GB Notification: Performance of NFFlatten.collectFunctions: time 2.208e-05/0.002526, allocations: 24 kB / 1.001 GB, free: 12.14 MB / 0.9636 GB Notification: Performance of NFScalarize.scalarize: time 5.201e-05/0.002578, allocations: 75.75 kB / 1.001 GB, free: 12.07 MB / 0.9636 GB Notification: Performance of NFVerifyModel.verify: time 5.813e-05/0.002636, allocations: 75.77 kB / 1.001 GB, free: 11.99 MB / 0.9636 GB Notification: Performance of NFConvertDAE.convert: time 0.0002639/0.0029, allocations: 374.8 kB / 1.002 GB, free: 11.62 MB / 0.9636 GB Notification: Performance of FrontEnd - DAE generated: time 2.775e-06/0.002903, allocations: 0 / 1.002 GB, free: 11.62 MB / 0.9636 GB Notification: Performance of FrontEnd: time 1.162e-06/0.002904, allocations: 0 / 1.002 GB, free: 11.62 MB / 0.9636 GB Notification: Performance of Transformations before backend: time 4.799e-06/0.002909, allocations: 0 / 1.002 GB, free: 11.62 MB / 0.9636 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.0004649/0.003374, allocations: 493.5 kB / 1.002 GB, free: 11.11 MB / 0.9636 GB Notification: Performance of prepare preOptimizeDAE: time 4.233e-05/0.003416, allocations: 8.75 kB / 1.002 GB, free: 11.1 MB / 0.9636 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.933e-05/0.003465, allocations: 66.72 kB / 1.002 GB, free: 11.02 MB / 0.9636 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.125e-05/0.003507, allocations: 36.69 kB / 1.002 GB, free: 10.99 MB / 0.9636 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002827/0.003789, allocations: 258.8 kB / 1.002 GB, free: 10.71 MB / 0.9636 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.768e-05/0.003827, allocations: 25.03 kB / 1.002 GB, free: 10.68 MB / 0.9636 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.256e-05/0.00385, allocations: 24.38 kB / 1.002 GB, free: 10.66 MB / 0.9636 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003425/0.004192, allocations: 348.2 kB / 1.003 GB, free: 10.31 MB / 0.9636 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.797e-06/0.004201, allocations: 192 / 1.003 GB, free: 10.31 MB / 0.9636 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.85e-05/0.004219, allocations: 16.38 kB / 1.003 GB, free: 10.29 MB / 0.9636 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.504e-06/0.004227, allocations: 8.125 kB / 1.003 GB, free: 10.29 MB / 0.9636 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002472/0.004474, allocations: 259.8 kB / 1.003 GB, free: 10.03 MB / 0.9636 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008235/0.005298, allocations: 0.8358 MB / 1.004 GB, free: 9.148 MB / 0.9636 GB Notification: Performance of preOpt comSubExp (simulation): time 6.56e-05/0.005363, allocations: 57.92 kB / 1.004 GB, free: 9.074 MB / 0.9636 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.17e-05/0.005395, allocations: 29.75 kB / 1.004 GB, free: 9.039 MB / 0.9636 GB Notification: Performance of preOpt evalFunc (simulation): time 2.049e-05/0.005415, allocations: 4 kB / 1.004 GB, free: 9.035 MB / 0.9636 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.165e-05/0.005437, allocations: 38.5 kB / 1.004 GB, free: 8.988 MB / 0.9636 GB Notification: Performance of pre-optimization done (n=2): time 1.021e-06/0.005438, allocations: 0 / 1.004 GB, free: 8.988 MB / 0.9636 GB Notification: Performance of matching and sorting (n=2): time 0.0002045/0.005643, allocations: 133.6 kB / 1.004 GB, free: 8.852 MB / 0.9636 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.492e-05/0.005677, allocations: 81.05 kB / 1.004 GB, free: 8.754 MB / 0.9636 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003464/0.006024, allocations: 481.4 kB / 1.005 GB, free: 8.273 MB / 0.9636 GB Notification: Performance of collectPreVariables (initialization): time 1.237e-05/0.006036, allocations: 33.69 kB / 1.005 GB, free: 8.234 MB / 0.9636 GB Notification: Performance of collectInitialEqns (initialization): time 9.987e-05/0.006136, allocations: 183.7 kB / 1.005 GB, free: 8.051 MB / 0.9636 GB Notification: Performance of collectInitialBindings (initialization): time 7.264e-06/0.006143, allocations: 7.953 kB / 1.005 GB, free: 8.043 MB / 0.9636 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.199e-05/0.006195, allocations: 45.7 kB / 1.005 GB, free: 7.992 MB / 0.9636 GB Notification: Performance of setup shared object (initialization): time 9.001e-05/0.006285, allocations: 346.8 kB / 1.005 GB, free: 7.645 MB / 0.9636 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.268e-05/0.006348, allocations: 51.95 kB / 1.005 GB, free: 7.594 MB / 0.9636 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.44e-05/0.006412, allocations: 73.67 kB / 1.005 GB, free: 7.516 MB / 0.9636 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.165e-05/0.006504, allocations: 101.7 kB / 1.005 GB, free: 7.41 MB / 0.9636 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.254e-06/0.006506, allocations: 7.969 kB / 1.005 GB, free: 7.402 MB / 0.9636 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001702/0.006677, allocations: 185.4 kB / 1.006 GB, free: 7.215 MB / 0.9636 GB Notification: Performance of prepare postOptimizeDAE: time 1.74e-05/0.006694, allocations: 15.92 kB / 1.006 GB, free: 7.199 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.079e-06/0.006699, allocations: 0 / 1.006 GB, free: 7.199 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.359e-05/0.006713, allocations: 0 / 1.006 GB, free: 7.199 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.517e-05/0.006808, allocations: 23.94 kB / 1.006 GB, free: 7.176 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.661e-06/0.006813, allocations: 0 / 1.006 GB, free: 7.176 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.127e-05/0.006865, allocations: 35.72 kB / 1.006 GB, free: 7.141 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.44e-05/0.006879, allocations: 11.94 kB / 1.006 GB, free: 7.129 MB / 0.9636 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.0001335/0.007013, allocations: 193.7 kB / 1.006 GB, free: 6.93 MB / 0.9636 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.454e-05/0.007047, allocations: 27.81 kB / 1.006 GB, free: 6.902 MB / 0.9636 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002841/0.007331, allocations: 168.5 kB / 1.006 GB, free: 6.727 MB / 0.9636 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.323e-05/0.007374, allocations: 180.3 kB / 1.006 GB, free: 6.543 MB / 0.9636 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.916e-05/0.007414, allocations: 176.3 kB / 1.006 GB, free: 6.363 MB / 0.9636 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.297e-05/0.007457, allocations: 188.2 kB / 1.007 GB, free: 6.172 MB / 0.9636 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000237/0.007693, allocations: 476.3 kB / 1.007 GB, free: 5.656 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.646e-05/0.00772, allocations: 112.9 kB / 1.007 GB, free: 5.539 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.307e-05/0.007743, allocations: 105 kB / 1.007 GB, free: 5.43 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.209e-05/0.007785, allocations: 180.3 kB / 1.007 GB, free: 5.246 MB / 0.9636 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.089e-05/0.007836, allocations: 192.1 kB / 1.008 GB, free: 5.051 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.673e-05/0.007873, allocations: 176.3 kB / 1.008 GB, free: 4.871 MB / 0.9636 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.795e-05/0.007911, allocations: 180.2 kB / 1.008 GB, free: 4.688 MB / 0.9636 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001094/0.00802, allocations: 331.6 kB / 1.008 GB, free: 4.34 MB / 0.9636 GB Notification: Performance of postOpt removeConstants (simulation): time 6.924e-05/0.008089, allocations: 148.7 kB / 1.008 GB, free: 4.188 MB / 0.9636 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.884e-05/0.008148, allocations: 184.2 kB / 1.009 GB, free: 4 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.443e-05/0.008223, allocations: 112.9 kB / 1.009 GB, free: 3.883 MB / 0.9636 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.662e-05/0.008269, allocations: 180.3 kB / 1.009 GB, free: 3.699 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.338e-05/0.008293, allocations: 104.9 kB / 1.009 GB, free: 3.59 MB / 0.9636 GB Notification: Performance of sorting global known variables: time 0.0002699/0.008562, allocations: 363.1 kB / 1.009 GB, free: 3.238 MB / 0.9636 GB Notification: Performance of sort global known variables: time 6e-08/0.008563, allocations: 4 kB / 1.009 GB, free: 3.234 MB / 0.9636 GB Notification: Performance of remove unused functions: time 0.000183/0.008746, allocations: 31.95 kB / 1.009 GB, free: 3.203 MB / 0.9636 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.0003002/0.009046, allocations: 0.832 MB / 1.01 GB, free: 2.34 MB / 0.9636 GB Notification: Performance of simCode: created initialization part: time 0.0001327/0.009178, allocations: 71.89 kB / 1.01 GB, free: 2.27 MB / 0.9636 GB Notification: Performance of simCode: created event and clocks part: time 1.753e-06/0.00918, allocations: 4 kB / 1.01 GB, free: 2.266 MB / 0.9636 GB Notification: Performance of simCode: created simulation system equations: time 1.102e-06/0.009181, allocations: 0 / 1.01 GB, free: 2.266 MB / 0.9636 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000326/0.009507, allocations: 477.2 kB / 1.011 GB, free: 1.797 MB / 0.9636 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002076/0.01158, allocations: 2.828 MB / 1.013 GB, free: 14.88 MB / 0.9792 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001038/0.01169, allocations: 165.8 kB / 1.014 GB, free: 14.69 MB / 0.9792 GB Notification: Performance of simCode: alias equations: time 7.26e-05/0.01176, allocations: 54.25 kB / 1.014 GB, free: 14.64 MB / 0.9792 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.319e-05/0.01184, allocations: 80.47 kB / 1.014 GB, free: 14.56 MB / 0.9792 GB Notification: Performance of SimCode: time 7.12e-07/0.01184, allocations: 0 / 1.014 GB, free: 14.56 MB / 0.9792 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01669/0.02853, allocations: 5.722 MB / 1.019 GB, free: 9 MB / 0.9792 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.557/6.586, allocations: 12 kB / 1.019 GB, free: 8.988 MB / 0.9792 GB " [Timeout remaining time 293] (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 --stepSize=0.0004 --timeout=800 --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) [Timeout 840.0] 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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 10.511455498635769]