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.001657/0.001657, allocations: 101.3 kB / 19.73 MB, free: 2.133 MB / 14.72 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.002187/0.002187, allocations: 219.8 kB / 23.03 MB, free: 4.945 MB / 14.72 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 1.421/1.421, allocations: 230.6 MB / 256.8 MB, free: 7.812 MB / 206.1 MB " [Timeout remaining time 178] 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 3.064/3.064, allocations: 0.5003 GB / 0.8062 GB, free: 28.29 MB / 0.6231 GB " [Timeout remaining time 177] Using package Buildings with version 13.0.0 (/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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex,fileNamePrefix="Buildings_latest_Buildings_Templates_Plants_Controls_Utilities_Validation_LastTrueIndex",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001917/0.001917, allocations: 71.11 kB / 1.17 GB, free: 19.55 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.328/0.3299, allocations: 179 MB / 1.345 GB, free: 16 kB / 1.029 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex): time 0.002002/0.3319, allocations: 0.7233 MB / 1.346 GB, free: 15.29 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.0001928/0.3321, allocations: 47.84 kB / 1.346 GB, free: 15.24 MB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.181e-05/0.3321, allocations: 7.938 kB / 1.346 GB, free: 15.23 MB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 0.0001092/0.3322, allocations: 11.86 kB / 1.346 GB, free: 15.22 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 0.0001172/0.3324, allocations: 11.92 kB / 1.346 GB, free: 15.21 MB / 1.045 GB Notification: Performance of NFTyping.typeClassSections: time 5.413e-05/0.3324, allocations: 23.98 kB / 1.346 GB, free: 15.18 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 0.0002216/0.3326, allocations: 179.6 kB / 1.346 GB, free: 15.01 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002596/0.3329, allocations: 149.4 kB / 1.346 GB, free: 14.86 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 9.477e-05/0.333, allocations: 99.66 kB / 1.346 GB, free: 14.76 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001428/0.3331, allocations: 115.5 kB / 1.347 GB, free: 14.65 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 4.304e-05/0.3332, allocations: 28 kB / 1.347 GB, free: 14.62 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 4.136e-05/0.3332, allocations: 24 kB / 1.347 GB, free: 14.6 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 8.285e-05/0.3333, allocations: 75.77 kB / 1.347 GB, free: 14.52 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 0.0001006/0.3334, allocations: 91.42 kB / 1.347 GB, free: 14.43 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 0.0003625/0.3338, allocations: 386.4 kB / 1.347 GB, free: 14.05 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 4.488e-06/0.3338, allocations: 0 / 1.347 GB, free: 14.05 MB / 1.045 GB Notification: Performance of FrontEnd: time 1.332e-06/0.3338, allocations: 0 / 1.347 GB, free: 14.05 MB / 1.045 GB Notification: Performance of Transformations before backend: time 6.643e-06/0.3338, allocations: 0 / 1.347 GB, free: 14.05 MB / 1.045 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.0006219/0.3344, allocations: 493.5 kB / 1.348 GB, free: 13.54 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 3.686e-05/0.3344, allocations: 12.03 kB / 1.348 GB, free: 13.53 MB / 1.045 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.685e-05/0.3345, allocations: 8.844 kB / 1.348 GB, free: 13.52 MB / 1.045 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.036e-05/0.3345, allocations: 62.73 kB / 1.348 GB, free: 13.45 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.48e-05/0.3346, allocations: 36.7 kB / 1.348 GB, free: 13.41 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003794/0.335, allocations: 247.6 kB / 1.348 GB, free: 13.14 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.21e-05/0.335, allocations: 33.02 kB / 1.348 GB, free: 13.11 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.8e-05/0.335, allocations: 24.38 kB / 1.348 GB, free: 13.09 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005075/0.3355, allocations: 344 kB / 1.348 GB, free: 12.74 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.058e-05/0.3356, allocations: 0 / 1.348 GB, free: 12.74 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.426e-05/0.3356, allocations: 12 kB / 1.348 GB, free: 12.73 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.474e-06/0.3356, allocations: 4 kB / 1.348 GB, free: 12.72 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003862/0.336, allocations: 271.7 kB / 1.349 GB, free: 12.46 MB / 1.045 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001171/0.3371, allocations: 0.84 MB / 1.349 GB, free: 11.57 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 9.567e-05/0.3372, allocations: 61.08 kB / 1.35 GB, free: 11.49 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.679e-05/0.3373, allocations: 33.77 kB / 1.35 GB, free: 11.45 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 2.154e-05/0.3373, allocations: 0 / 1.35 GB, free: 11.45 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.716e-05/0.3373, allocations: 30.56 kB / 1.35 GB, free: 11.41 MB / 1.045 GB Notification: Performance of pre-optimization done (n=2): time 8.92e-07/0.3373, allocations: 4 kB / 1.35 GB, free: 11.41 MB / 1.045 GB Notification: Performance of matching and sorting (n=2): time 0.0002637/0.3376, allocations: 125.4 kB / 1.35 GB, free: 11.28 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.915e-05/0.3377, allocations: 81.36 kB / 1.35 GB, free: 11.18 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005113/0.3382, allocations: 485.4 kB / 1.35 GB, free: 10.7 MB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 1.498e-05/0.3382, allocations: 29.64 kB / 1.35 GB, free: 10.67 MB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001397/0.3383, allocations: 183.9 kB / 1.35 GB, free: 10.48 MB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 1.331e-05/0.3383, allocations: 11.88 kB / 1.35 GB, free: 10.47 MB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.854e-05/0.3384, allocations: 45.7 kB / 1.351 GB, free: 10.42 MB / 1.045 GB Notification: Performance of setup shared object (initialization): time 0.0001487/0.3385, allocations: 338.8 kB / 1.351 GB, free: 10.08 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.018e-05/0.3386, allocations: 59.89 kB / 1.351 GB, free: 10.02 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001001/0.3387, allocations: 73.67 kB / 1.351 GB, free: 9.945 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001333/0.3389, allocations: 93.67 kB / 1.351 GB, free: 9.848 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.754e-06/0.3389, allocations: 3.938 kB / 1.351 GB, free: 9.844 MB / 1.045 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002635/0.3391, allocations: 197.4 kB / 1.351 GB, free: 9.645 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 1.375e-05/0.3392, allocations: 8 kB / 1.351 GB, free: 9.637 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.108e-06/0.3392, allocations: 0 / 1.351 GB, free: 9.637 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.357e-05/0.3392, allocations: 0 / 1.351 GB, free: 9.637 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001252/0.3393, allocations: 23.98 kB / 1.351 GB, free: 9.613 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.719e-06/0.3393, allocations: 4 kB / 1.351 GB, free: 9.609 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.688e-05/0.3394, allocations: 31.73 kB / 1.351 GB, free: 9.578 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.48e-05/0.3394, allocations: 4 kB / 1.351 GB, free: 9.574 MB / 1.045 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.0001881/0.3396, allocations: 205.4 kB / 1.351 GB, free: 9.363 MB / 1.045 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.573e-05/0.3396, allocations: 27.81 kB / 1.352 GB, free: 9.336 MB / 1.045 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001799/0.3398, allocations: 164.6 kB / 1.352 GB, free: 9.156 MB / 1.045 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.404e-05/0.3399, allocations: 180.3 kB / 1.352 GB, free: 8.973 MB / 1.045 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.927e-05/0.34, allocations: 180.3 kB / 1.352 GB, free: 8.789 MB / 1.045 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.25e-05/0.34, allocations: 180.2 kB / 1.352 GB, free: 8.605 MB / 1.045 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003493/0.3404, allocations: 488.1 kB / 1.353 GB, free: 8.078 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.612e-05/0.3404, allocations: 108.9 kB / 1.353 GB, free: 7.965 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.074e-05/0.3405, allocations: 105 kB / 1.353 GB, free: 7.855 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.226e-05/0.3405, allocations: 180.3 kB / 1.353 GB, free: 7.672 MB / 1.045 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.824e-05/0.3406, allocations: 180.2 kB / 1.353 GB, free: 7.488 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.969e-05/0.3407, allocations: 184.4 kB / 1.353 GB, free: 7.301 MB / 1.045 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.093e-05/0.3408, allocations: 184.2 kB / 1.354 GB, free: 7.113 MB / 1.045 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001795/0.3409, allocations: 335.6 kB / 1.354 GB, free: 6.762 MB / 1.045 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001065/0.3411, allocations: 144.7 kB / 1.354 GB, free: 6.613 MB / 1.045 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.299e-05/0.3411, allocations: 180.2 kB / 1.354 GB, free: 6.43 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001155/0.3413, allocations: 108.9 kB / 1.354 GB, free: 6.316 MB / 1.045 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.199e-05/0.3413, allocations: 180.2 kB / 1.354 GB, free: 6.133 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.427e-05/0.3414, allocations: 109 kB / 1.355 GB, free: 6.02 MB / 1.045 GB Notification: Performance of sorting global known variables: time 0.0003899/0.3418, allocations: 359.1 kB / 1.355 GB, free: 5.672 MB / 1.045 GB Notification: Performance of sort global known variables: time 7.1e-08/0.3418, allocations: 0 / 1.355 GB, free: 5.672 MB / 1.045 GB Notification: Performance of remove unused functions: time 0.0002669/0.342, allocations: 39.83 kB / 1.355 GB, free: 5.633 MB / 1.045 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.0004785/0.3425, allocations: 0.8398 MB / 1.356 GB, free: 4.766 MB / 1.045 GB Notification: Performance of simCode: created initialization part: time 0.0001674/0.3427, allocations: 75.89 kB / 1.356 GB, free: 4.691 MB / 1.045 GB Notification: Performance of simCode: created event and clocks part: time 5.64e-06/0.3427, allocations: 0 / 1.356 GB, free: 4.691 MB / 1.045 GB Notification: Performance of simCode: created simulation system equations: time 2.044e-06/0.3427, allocations: 0 / 1.356 GB, free: 4.691 MB / 1.045 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004618/0.3432, allocations: 477.2 kB / 1.356 GB, free: 4.223 MB / 1.045 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002938/0.3461, allocations: 2.819 MB / 1.359 GB, free: 1.312 MB / 1.045 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001655/0.3463, allocations: 169.7 kB / 1.359 GB, free: 1.129 MB / 1.045 GB Notification: Performance of simCode: alias equations: time 0.000103/0.3464, allocations: 54.25 kB / 1.359 GB, free: 1.07 MB / 1.045 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001149/0.3465, allocations: 75.41 kB / 1.359 GB, free: 1 MB / 1.045 GB Notification: Performance of SimCode: time 3.9e-07/0.3465, allocations: 0 / 1.359 GB, free: 1 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02669/0.3732, allocations: 5.231 MB / 1.364 GB, free: 11.96 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.76/11.13, allocations: 13.89 kB / 1.364 GB, free: 11.95 MB / 1.061 GB " [Timeout remaining time 289] (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/jenkins1/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: 17.556653941050172]