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.001445/0.001445, allocations: 103.6 kB / 16.45 MB, free: 6.449 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.001655/0.001655, allocations: 210.4 kB / 19.43 MB, free: 3.637 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.52/1.52, allocations: 230.6 MB / 252.8 MB, free: 9.113 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.203/3.203, allocations: 0.49 GB / 0.7916 GB, free: 33.35 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.003118/0.003118, allocations: 66.69 kB / 1.149 GB, free: 26.38 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3625/0.3657, allocations: 176.1 MB / 1.321 GB, free: 3.387 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex): time 0.002142/0.3678, allocations: 0.7183 MB / 1.322 GB, free: 2.668 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.0002182/0.368, allocations: 51.84 kB / 1.322 GB, free: 2.617 MB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.508e-05/0.3681, allocations: 0 / 1.322 GB, free: 2.617 MB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 0.0001227/0.3682, allocations: 19.86 kB / 1.322 GB, free: 2.598 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 0.0001121/0.3683, allocations: 7.922 kB / 1.322 GB, free: 2.59 MB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 5.579e-05/0.3684, allocations: 19.98 kB / 1.322 GB, free: 2.57 MB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.0002442/0.3686, allocations: 179.5 kB / 1.322 GB, free: 2.395 MB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003348/0.369, allocations: 213.1 kB / 1.322 GB, free: 2.18 MB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001104/0.3691, allocations: 95.66 kB / 1.322 GB, free: 2.086 MB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001408/0.3692, allocations: 119.5 kB / 1.322 GB, free: 1.969 MB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 5.038e-05/0.3693, allocations: 24 kB / 1.322 GB, free: 1.945 MB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 3.779e-05/0.3693, allocations: 24 kB / 1.322 GB, free: 1.922 MB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 8.637e-05/0.3694, allocations: 71.78 kB / 1.322 GB, free: 1.852 MB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 0.0001371/0.3695, allocations: 127.2 kB / 1.322 GB, free: 1.727 MB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.0003956/0.3699, allocations: 374.4 kB / 1.323 GB, free: 1.359 MB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 5.31e-06/0.3699, allocations: 3.984 kB / 1.323 GB, free: 1.355 MB / 1.014 GB Notification: Performance of FrontEnd: time 1.202e-06/0.3699, allocations: 0 / 1.323 GB, free: 1.355 MB / 1.014 GB Notification: Performance of Transformations before backend: time 1.098e-05/0.3699, allocations: 4 kB / 1.323 GB, free: 1.352 MB / 1.014 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.0007358/0.3707, allocations: 0.561 MB / 1.323 GB, free: 0.7383 MB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 3.985e-05/0.3707, allocations: 11.98 kB / 1.323 GB, free: 0.7266 MB / 1.014 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.015e-05/0.3708, allocations: 62.73 kB / 1.323 GB, free: 0.6562 MB / 1.014 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.876e-05/0.3709, allocations: 32.75 kB / 1.323 GB, free: 0.625 MB / 1.014 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004201/0.3713, allocations: 317.2 kB / 1.324 GB, free: 280 kB / 1.014 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.285e-05/0.3713, allocations: 28.94 kB / 1.324 GB, free: 248 kB / 1.014 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.441e-05/0.3714, allocations: 24.38 kB / 1.324 GB, free: 224 kB / 1.014 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005402/0.3719, allocations: 343 kB / 1.324 GB, free: 15.87 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.148e-05/0.3719, allocations: 3.938 kB / 1.324 GB, free: 15.87 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.513e-05/0.372, allocations: 12 kB / 1.324 GB, free: 15.86 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.654e-06/0.372, allocations: 4 kB / 1.324 GB, free: 15.85 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004147/0.3724, allocations: 267.7 kB / 1.324 GB, free: 15.59 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001266/0.3736, allocations: 0.9135 MB / 1.325 GB, free: 14.62 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 9.954e-05/0.3737, allocations: 57.19 kB / 1.325 GB, free: 14.55 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.912e-05/0.3738, allocations: 37.64 kB / 1.325 GB, free: 14.5 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 1.696e-05/0.3738, allocations: 0 / 1.325 GB, free: 14.5 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.731e-05/0.3738, allocations: 34.56 kB / 1.325 GB, free: 14.46 MB / 1.029 GB Notification: Performance of pre-optimization done (n=2): time 9.42e-07/0.3738, allocations: 0 / 1.325 GB, free: 14.46 MB / 1.029 GB Notification: Performance of matching and sorting (n=2): time 0.0002811/0.3741, allocations: 133.4 kB / 1.326 GB, free: 14.32 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.356e-05/0.3742, allocations: 77.11 kB / 1.326 GB, free: 14.23 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005418/0.3747, allocations: 481.5 kB / 1.326 GB, free: 13.75 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 1.846e-05/0.3747, allocations: 29.7 kB / 1.326 GB, free: 13.72 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001381/0.3749, allocations: 183.7 kB / 1.326 GB, free: 13.54 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 1.236e-05/0.3749, allocations: 7.984 kB / 1.326 GB, free: 13.53 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.69e-05/0.375, allocations: 45.66 kB / 1.326 GB, free: 13.48 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001601/0.3751, allocations: 351 kB / 1.327 GB, free: 13.12 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.833e-05/0.3752, allocations: 55.95 kB / 1.327 GB, free: 13.07 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001113/0.3753, allocations: 74.3 kB / 1.327 GB, free: 12.99 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001474/0.3755, allocations: 97.61 kB / 1.327 GB, free: 12.89 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.903e-06/0.3755, allocations: 4 kB / 1.327 GB, free: 12.89 MB / 1.029 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002859/0.3758, allocations: 193.3 kB / 1.327 GB, free: 12.69 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.699e-05/0.3758, allocations: 4 kB / 1.327 GB, free: 12.69 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.438e-06/0.3758, allocations: 0 / 1.327 GB, free: 12.69 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.499e-05/0.3758, allocations: 8 kB / 1.327 GB, free: 12.68 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001298/0.3759, allocations: 20 kB / 1.327 GB, free: 12.66 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.09e-06/0.3759, allocations: 0 / 1.327 GB, free: 12.66 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.897e-05/0.376, allocations: 31.72 kB / 1.327 GB, free: 12.63 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.963e-05/0.376, allocations: 12 kB / 1.327 GB, free: 12.62 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.0001907/0.3762, allocations: 193.7 kB / 1.327 GB, free: 12.42 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.568e-05/0.3763, allocations: 27.8 kB / 1.327 GB, free: 12.39 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001833/0.3765, allocations: 164.6 kB / 1.327 GB, free: 12.22 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.589e-05/0.3766, allocations: 180.2 kB / 1.328 GB, free: 12.04 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.742e-05/0.3766, allocations: 180.3 kB / 1.328 GB, free: 11.85 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.798e-05/0.3767, allocations: 180.3 kB / 1.328 GB, free: 11.67 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004081/0.3771, allocations: 0.5166 MB / 1.329 GB, free: 11.09 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.026e-05/0.3772, allocations: 112.9 kB / 1.329 GB, free: 10.98 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.833e-05/0.3772, allocations: 108.9 kB / 1.329 GB, free: 10.86 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.489e-05/0.3773, allocations: 176.3 kB / 1.329 GB, free: 10.68 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.8e-05/0.3774, allocations: 180.3 kB / 1.329 GB, free: 10.5 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.715e-05/0.3775, allocations: 188.2 kB / 1.329 GB, free: 10.31 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.656e-05/0.3775, allocations: 184.3 kB / 1.329 GB, free: 10.12 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001922/0.3777, allocations: 339.7 kB / 1.33 GB, free: 9.766 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001414/0.3779, allocations: 213.9 kB / 1.33 GB, free: 9.531 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001049/0.378, allocations: 188.2 kB / 1.33 GB, free: 9.34 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001154/0.3781, allocations: 105 kB / 1.33 GB, free: 9.23 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.326e-05/0.3782, allocations: 184.2 kB / 1.33 GB, free: 9.043 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.144e-05/0.3782, allocations: 105 kB / 1.331 GB, free: 8.934 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.0004175/0.3786, allocations: 363.1 kB / 1.331 GB, free: 8.578 MB / 1.029 GB Notification: Performance of sort global known variables: time 7e-08/0.3786, allocations: 0 / 1.331 GB, free: 8.578 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0002739/0.3789, allocations: 31.95 kB / 1.331 GB, free: 8.547 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.0004927/0.3794, allocations: 0.8397 MB / 1.332 GB, free: 7.68 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0001705/0.3796, allocations: 71.95 kB / 1.332 GB, free: 7.609 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 1.693e-06/0.3796, allocations: 3.938 kB / 1.332 GB, free: 7.605 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 3.457e-06/0.3796, allocations: 3.938 kB / 1.332 GB, free: 7.602 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004727/0.38, allocations: 485.2 kB / 1.332 GB, free: 7.125 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003244/0.3833, allocations: 2.816 MB / 1.335 GB, free: 4.219 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004199/0.3837, allocations: 0.7751 MB / 1.336 GB, free: 3.418 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 0.0001089/0.3838, allocations: 54.25 kB / 1.336 GB, free: 3.367 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001258/0.3839, allocations: 79.41 kB / 1.336 GB, free: 3.289 MB / 1.029 GB Notification: Performance of SimCode: time 4.11e-07/0.3839, allocations: 0 / 1.336 GB, free: 3.289 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03136/0.4153, allocations: 4.965 MB / 1.341 GB, free: 14.48 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.334/8.749, allocations: 7.938 kB / 1.341 GB, free: 14.48 MB / 1.045 GB " [Timeout remaining time 291] (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: 15.449000281980261]