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.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.001713/0.001713, allocations: 116.8 kB / 17.17 MB, free: 6 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.00207/0.00207, allocations: 214.3 kB / 20.13 MB, free: 3.055 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.601/1.601, allocations: 230.6 MB / 253.5 MB, free: 15.11 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo): time 2.856/2.856, allocations: 476.7 MB / 0.7678 GB, free: 9.348 MB / 0.6075 GB " [Timeout remaining time 176] Using package Buildings with version 11.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.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_11_Buildings_Templates_Plants_Controls_Utilities_Validation_LastTrueIndex",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex,fileNamePrefix="Buildings_11_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.00221/0.00221, allocations: 71.91 kB / 1.113 GB, free: 15.87 MB / 0.8575 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.93/0.9323, allocations: 169.9 MB / 1.279 GB, free: 11.74 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex): time 0.002132/0.9344, allocations: 0.7253 MB / 1.28 GB, free: 11.29 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.0002097/0.9346, allocations: 51.52 kB / 1.28 GB, free: 11.25 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.587e-05/0.9347, allocations: 6.188 kB / 1.28 GB, free: 11.25 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.0001105/0.9348, allocations: 13.34 kB / 1.28 GB, free: 11.24 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 0.000108/0.9349, allocations: 12.45 kB / 1.28 GB, free: 11.23 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 5.2e-05/0.9349, allocations: 15.45 kB / 1.28 GB, free: 11.22 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.0002478/0.9352, allocations: 182.7 kB / 1.28 GB, free: 11.14 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003361/0.9355, allocations: 206.6 kB / 1.28 GB, free: 11.06 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001053/0.9356, allocations: 101.8 kB / 1.28 GB, free: 11.01 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001437/0.9358, allocations: 117.7 kB / 1.28 GB, free: 10.95 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 4.442e-05/0.9358, allocations: 28.69 kB / 1.28 GB, free: 10.94 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 3.699e-05/0.9359, allocations: 24.84 kB / 1.28 GB, free: 10.94 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 0.0001002/0.936, allocations: 67.02 kB / 1.28 GB, free: 10.9 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 0.0001465/0.9361, allocations: 131.7 kB / 1.281 GB, free: 10.8 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.0004529/0.9366, allocations: 373.6 kB / 1.281 GB, free: 10.66 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 4.679e-06/0.9366, allocations: 0 / 1.281 GB, free: 10.66 MB / 0.9981 GB Notification: Performance of FrontEnd: time 2.044e-06/0.9366, allocations: 1.156 kB / 1.281 GB, free: 10.66 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 9.168e-06/0.9366, allocations: 0 / 1.281 GB, free: 10.66 MB / 0.9981 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.0008124/0.9374, allocations: 0.5548 MB / 1.281 GB, free: 10.17 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 4.574e-05/0.9374, allocations: 9.406 kB / 1.281 GB, free: 10.17 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 3.082e-05/0.9375, allocations: 6.906 kB / 1.281 GB, free: 10.17 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.418e-05/0.9375, allocations: 63.55 kB / 1.282 GB, free: 10.11 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.316e-05/0.9376, allocations: 36.31 kB / 1.282 GB, free: 10.09 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005131/0.9381, allocations: 322.4 kB / 1.282 GB, free: 9.824 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.381e-05/0.9382, allocations: 31.27 kB / 1.282 GB, free: 9.809 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.379e-05/0.9383, allocations: 24.59 kB / 1.282 GB, free: 9.801 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005783/0.9388, allocations: 344.6 kB / 1.282 GB, free: 9.656 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.089e-05/0.9389, allocations: 4.688 kB / 1.282 GB, free: 9.652 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.715e-05/0.9389, allocations: 10.69 kB / 1.282 GB, free: 9.645 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.838e-06/0.9389, allocations: 10.22 kB / 1.282 GB, free: 9.641 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004013/0.9393, allocations: 260.8 kB / 1.283 GB, free: 9.566 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00138/0.9407, allocations: 0.9053 MB / 1.283 GB, free: 8.988 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 9.079e-05/0.9408, allocations: 61.83 kB / 1.283 GB, free: 8.926 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.171e-05/0.9408, allocations: 42.53 kB / 1.284 GB, free: 8.895 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.802e-05/0.9408, allocations: 0.6094 kB / 1.284 GB, free: 8.895 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.893e-05/0.9409, allocations: 32.61 kB / 1.284 GB, free: 8.855 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=2): time 1.543e-06/0.9409, allocations: 0 / 1.284 GB, free: 8.855 MB / 0.9981 GB Notification: Performance of matching and sorting (n=2): time 0.0002968/0.9412, allocations: 133 kB / 1.284 GB, free: 8.781 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.935e-05/0.9412, allocations: 82.81 kB / 1.284 GB, free: 8.684 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006125/0.9418, allocations: 479.1 kB / 1.284 GB, free: 8.473 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 2.027e-05/0.9419, allocations: 33.7 kB / 1.284 GB, free: 8.434 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001645/0.942, allocations: 188.5 kB / 1.284 GB, free: 8.273 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 9.558e-06/0.942, allocations: 2.125 kB / 1.284 GB, free: 8.273 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.618e-05/0.9421, allocations: 48.62 kB / 1.284 GB, free: 8.242 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001716/0.9423, allocations: 341.2 kB / 1.285 GB, free: 7.918 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001043/0.9424, allocations: 59.14 kB / 1.285 GB, free: 7.898 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001167/0.9425, allocations: 70.03 kB / 1.285 GB, free: 7.867 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001517/0.9427, allocations: 106.9 kB / 1.285 GB, free: 7.809 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.705e-06/0.9427, allocations: 0 / 1.285 GB, free: 7.809 MB / 0.9981 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0003111/0.943, allocations: 185.2 kB / 1.285 GB, free: 7.715 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.549e-05/0.943, allocations: 5.344 kB / 1.285 GB, free: 7.715 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.392e-06/0.943, allocations: 1.344 kB / 1.285 GB, free: 7.715 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.86e-05/0.943, allocations: 2 kB / 1.285 GB, free: 7.715 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001597/0.9432, allocations: 30.83 kB / 1.285 GB, free: 7.707 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.672e-06/0.9432, allocations: 1.344 kB / 1.285 GB, free: 7.707 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.614e-05/0.9433, allocations: 24.72 kB / 1.285 GB, free: 7.691 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.797e-05/0.9433, allocations: 9.562 kB / 1.285 GB, free: 7.688 MB / 0.9981 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.0002402/0.9435, allocations: 196.8 kB / 1.285 GB, free: 7.543 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.21e-05/0.9436, allocations: 27.8 kB / 1.285 GB, free: 7.527 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002128/0.9438, allocations: 167 kB / 1.286 GB, free: 7.383 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.695e-05/0.9439, allocations: 182.2 kB / 1.286 GB, free: 7.199 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.647e-05/0.944, allocations: 185.9 kB / 1.286 GB, free: 7.012 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.12e-05/0.9441, allocations: 178 kB / 1.286 GB, free: 6.832 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000454/0.9445, allocations: 0.52 MB / 1.287 GB, free: 6.348 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.575e-05/0.9446, allocations: 105.4 kB / 1.287 GB, free: 6.238 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.021e-05/0.9446, allocations: 102.9 kB / 1.287 GB, free: 6.133 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.475e-05/0.9447, allocations: 186.8 kB / 1.287 GB, free: 5.945 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.338e-05/0.9448, allocations: 178 kB / 1.287 GB, free: 5.766 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.006e-05/0.9449, allocations: 178.4 kB / 1.287 GB, free: 5.586 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.348e-05/0.9449, allocations: 189.9 kB / 1.288 GB, free: 5.395 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001919/0.9451, allocations: 335.7 kB / 1.288 GB, free: 5.059 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001491/0.9453, allocations: 220.5 kB / 1.288 GB, free: 4.836 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001188/0.9454, allocations: 179.2 kB / 1.288 GB, free: 4.656 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001295/0.9455, allocations: 116.3 kB / 1.288 GB, free: 4.539 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.165e-05/0.9456, allocations: 177.4 kB / 1.289 GB, free: 4.359 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.365e-05/0.9457, allocations: 111.3 kB / 1.289 GB, free: 4.246 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.0004152/0.9461, allocations: 358.6 kB / 1.289 GB, free: 4.086 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.11e-07/0.9461, allocations: 5.281 kB / 1.289 GB, free: 4.082 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0002869/0.9464, allocations: 33.38 kB / 1.289 GB, free: 4.074 MB / 0.9981 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.0005429/0.9469, allocations: 0.8366 MB / 1.29 GB, free: 3.25 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0001933/0.9471, allocations: 71.02 kB / 1.29 GB, free: 3.23 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 2.755e-06/0.9471, allocations: 5.5 kB / 1.29 GB, free: 3.227 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 2.284e-06/0.9471, allocations: 0 / 1.29 GB, free: 3.227 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005181/0.9476, allocations: 480.5 kB / 1.29 GB, free: 2.766 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00317/0.9508, allocations: 2.831 MB / 1.293 GB, free: 0.9414 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004432/0.9512, allocations: 0.7658 MB / 1.294 GB, free: 244 kB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.0001206/0.9514, allocations: 59.53 kB / 1.294 GB, free: 236 kB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001278/0.9515, allocations: 77.81 kB / 1.294 GB, free: 176 kB / 0.9981 GB Notification: Performance of SimCode: time 7.81e-07/0.9515, allocations: 0 / 1.294 GB, free: 176 kB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0229/0.9744, allocations: 5.011 MB / 1.299 GB, free: 15.55 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.752/9.726, allocations: 13.28 kB / 1.299 GB, free: 15.55 MB / 1.014 GB " [Timeout remaining time 290] (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 --stepSize=0.0004 --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) [Timeout 420.0] 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) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 16.140181666996796]