Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_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.002002/0.002002, allocations: 114.3 kB / 18.94 MB, free: 2.934 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.002926/0.002926, allocations: 215.2 kB / 22.25 MB, free: 5.082 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.496/1.496, allocations: 230.6 MB / 256 MB, free: 8.004 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.366/3.366, allocations: 0.49 GB / 0.7951 GB, free: 33.34 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/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_12_Buildings_Templates_Plants_Controls_Utilities_Validation_LastTrueIndex",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex,fileNamePrefix="Buildings_12_Buildings_Templates_Plants_Controls_Utilities_Validation_LastTrueIndex",fmuType="me",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.002016/0.002016, allocations: 64.81 kB / 1.154 GB, free: 25.68 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3277/0.3297, allocations: 176.1 MB / 1.326 GB, free: 1.906 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex): time 0.002389/0.3321, allocations: 0.7391 MB / 1.327 GB, free: 1.172 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.0002896/0.3324, allocations: 43.84 kB / 1.327 GB, free: 1.129 MB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.911e-05/0.3325, allocations: 0 / 1.327 GB, free: 1.129 MB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 0.0001401/0.3326, allocations: 19.86 kB / 1.327 GB, free: 1.109 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 0.0001456/0.3328, allocations: 7.938 kB / 1.327 GB, free: 1.102 MB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 7.721e-05/0.3328, allocations: 19.98 kB / 1.327 GB, free: 1.082 MB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.0003058/0.3332, allocations: 187.5 kB / 1.327 GB, free: 0.8984 MB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003412/0.3335, allocations: 145.6 kB / 1.327 GB, free: 0.7539 MB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000138/0.3336, allocations: 103.7 kB / 1.327 GB, free: 0.6523 MB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001948/0.3338, allocations: 111.5 kB / 1.327 GB, free: 0.543 MB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 6.188e-05/0.3339, allocations: 24 kB / 1.327 GB, free: 0.5195 MB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 4.602e-05/0.3339, allocations: 24 kB / 1.327 GB, free: 0.4961 MB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 9.309e-05/0.334, allocations: 71.78 kB / 1.327 GB, free: 436 kB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 0.0001755/0.3342, allocations: 135.2 kB / 1.327 GB, free: 300 kB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.0004716/0.3347, allocations: 362.5 kB / 1.328 GB, free: 15.94 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 5.55e-06/0.3347, allocations: 4 kB / 1.328 GB, free: 15.93 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.893e-06/0.3347, allocations: 4 kB / 1.328 GB, free: 15.93 MB / 1.029 GB Notification: Performance of Transformations before backend: time 2.258e-05/0.3347, allocations: 0 / 1.328 GB, free: 15.93 MB / 1.029 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.0009455/0.3356, allocations: 497.4 kB / 1.328 GB, free: 15.41 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 5.879e-05/0.3357, allocations: 8.031 kB / 1.328 GB, free: 15.4 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001016/0.3358, allocations: 66.72 kB / 1.328 GB, free: 15.32 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.643e-05/0.3359, allocations: 32.75 kB / 1.328 GB, free: 15.29 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004683/0.3364, allocations: 251.6 kB / 1.329 GB, free: 15.02 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.545e-05/0.3364, allocations: 33.03 kB / 1.329 GB, free: 14.99 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.416e-05/0.3365, allocations: 24.38 kB / 1.329 GB, free: 14.96 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005839/0.337, allocations: 340.3 kB / 1.329 GB, free: 14.62 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.528e-05/0.3371, allocations: 3.938 kB / 1.329 GB, free: 14.62 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.847e-05/0.3371, allocations: 12 kB / 1.329 GB, free: 14.61 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.255e-05/0.3371, allocations: 7.984 kB / 1.329 GB, free: 14.6 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004413/0.3375, allocations: 271.7 kB / 1.329 GB, free: 14.33 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001512/0.339, allocations: 0.879 MB / 1.33 GB, free: 13.41 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001071/0.3392, allocations: 53.27 kB / 1.33 GB, free: 13.34 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.61e-05/0.3392, allocations: 45.5 kB / 1.33 GB, free: 13.29 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 2.897e-05/0.3392, allocations: 0 / 1.33 GB, free: 13.29 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.925e-05/0.3393, allocations: 38.56 kB / 1.33 GB, free: 13.24 MB / 1.029 GB Notification: Performance of pre-optimization done (n=2): time 1.753e-06/0.3393, allocations: 0 / 1.33 GB, free: 13.24 MB / 1.029 GB Notification: Performance of matching and sorting (n=2): time 0.0003669/0.3396, allocations: 125.4 kB / 1.33 GB, free: 13.11 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.069e-05/0.3397, allocations: 81.11 kB / 1.33 GB, free: 13.01 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006408/0.3403, allocations: 481.4 kB / 1.331 GB, free: 12.54 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 2.155e-05/0.3404, allocations: 25.7 kB / 1.331 GB, free: 12.5 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001719/0.3405, allocations: 191.8 kB / 1.331 GB, free: 12.31 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 1.056e-05/0.3406, allocations: 4.188 kB / 1.331 GB, free: 12.31 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.618e-05/0.3406, allocations: 53.66 kB / 1.331 GB, free: 12.25 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001934/0.3408, allocations: 338.8 kB / 1.332 GB, free: 11.91 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001017/0.3409, allocations: 55.95 kB / 1.332 GB, free: 11.86 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001193/0.3411, allocations: 85.64 kB / 1.332 GB, free: 11.77 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001534/0.3412, allocations: 93.62 kB / 1.332 GB, free: 11.67 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.553e-06/0.3412, allocations: 0 / 1.332 GB, free: 11.67 MB / 1.029 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002933/0.3415, allocations: 185.3 kB / 1.332 GB, free: 11.48 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 2.579e-05/0.3415, allocations: 12 kB / 1.332 GB, free: 11.47 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.849e-06/0.3415, allocations: 0 / 1.332 GB, free: 11.47 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.514e-05/0.3415, allocations: 0 / 1.332 GB, free: 11.47 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001426/0.3417, allocations: 23.98 kB / 1.332 GB, free: 11.45 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.382e-06/0.3417, allocations: 0 / 1.332 GB, free: 11.45 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.875e-05/0.3418, allocations: 31.78 kB / 1.332 GB, free: 11.41 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.677e-05/0.3418, allocations: 4 kB / 1.332 GB, free: 11.41 MB / 1.029 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.0002257/0.342, allocations: 201.5 kB / 1.332 GB, free: 11.2 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.215e-05/0.3421, allocations: 31.75 kB / 1.332 GB, free: 11.17 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002144/0.3423, allocations: 164.6 kB / 1.332 GB, free: 11 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.433e-05/0.3424, allocations: 180.2 kB / 1.333 GB, free: 10.81 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.801e-05/0.3425, allocations: 180.2 kB / 1.333 GB, free: 10.63 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.542e-05/0.3426, allocations: 176.3 kB / 1.333 GB, free: 10.45 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004684/0.3431, allocations: 0.5 MB / 1.333 GB, free: 9.898 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.685e-05/0.3431, allocations: 101 kB / 1.333 GB, free: 9.793 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.155e-05/0.3432, allocations: 112.9 kB / 1.334 GB, free: 9.676 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.164e-05/0.3433, allocations: 180.3 kB / 1.334 GB, free: 9.492 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.862e-05/0.3433, allocations: 184.2 kB / 1.334 GB, free: 9.305 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.123e-05/0.3434, allocations: 184.2 kB / 1.334 GB, free: 9.117 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.841e-05/0.3435, allocations: 176.3 kB / 1.334 GB, free: 8.938 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002445/0.3438, allocations: 339.7 kB / 1.335 GB, free: 8.582 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001309/0.3439, allocations: 136.8 kB / 1.335 GB, free: 8.441 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001353/0.3441, allocations: 188.2 kB / 1.335 GB, free: 8.25 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001377/0.3442, allocations: 109 kB / 1.335 GB, free: 8.137 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001167/0.3443, allocations: 184.2 kB / 1.335 GB, free: 7.949 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.693e-05/0.3444, allocations: 108.9 kB / 1.335 GB, free: 7.836 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.0004633/0.3448, allocations: 359.1 kB / 1.336 GB, free: 7.484 MB / 1.029 GB Notification: Performance of sort global known variables: time 6e-08/0.3448, allocations: 0 / 1.336 GB, free: 7.484 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0003001/0.3451, allocations: 35.94 kB / 1.336 GB, free: 7.449 MB / 1.029 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.0005999/0.3457, allocations: 0.8358 MB / 1.336 GB, free: 6.586 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0002079/0.3459, allocations: 71.94 kB / 1.337 GB, free: 6.516 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 6.642e-06/0.3459, allocations: 4 kB / 1.337 GB, free: 6.512 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 3.787e-06/0.346, allocations: 3.938 kB / 1.337 GB, free: 6.508 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000565/0.3465, allocations: 481.2 kB / 1.337 GB, free: 6.035 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003573/0.3501, allocations: 2.823 MB / 1.34 GB, free: 3.121 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004985/0.3506, allocations: 0.779 MB / 1.341 GB, free: 2.316 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 0.0001154/0.3507, allocations: 58.23 kB / 1.341 GB, free: 2.262 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001399/0.3508, allocations: 75.42 kB / 1.341 GB, free: 2.188 MB / 1.029 GB Notification: Performance of SimCode: time 6.52e-07/0.3508, allocations: 0 / 1.341 GB, free: 2.188 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03416/0.385, allocations: 5.126 MB / 1.346 GB, free: 13.22 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.31/11.69, allocations: 5 kB / 1.346 GB, free: 13.21 MB / 1.045 GB " [Timeout remaining time 288] (rm -f Buildings_12_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex.pipe ; mkfifo Buildings_12_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex.pipe ; head -c 1048576 < Buildings_12_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex.pipe >> ../files/Buildings_12_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_12_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex_res.mat --tempDir=temp_Buildings_12_Buildings_Templates_Plants_Controls_Utilities_Validation_LastTrueIndex_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=400 --tolerance=1e-06 Buildings_12_Buildings_Templates_Plants_Controls_Utilities_Validation_LastTrueIndex.fmu > Buildings_12_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_12_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Templates_Plants_Controls_Utilities_Validation_LastTrueIndex.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_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: 18.643868344137445]