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.001981/0.001981, allocations: 113.8 kB / 19.73 MB, free: 2.242 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.002623/0.002623, allocations: 219 kB / 23.04 MB, free: 5.078 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.487/1.487, allocations: 230.6 MB / 256.8 MB, free: 7.996 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.275/3.275, allocations: 0.5003 GB / 0.8061 GB, free: 26.74 MB / 0.6231 GB " [Timeout remaining time 176] 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.002095/0.002095, allocations: 61.41 kB / 1.171 GB, free: 19.71 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3514/0.3535, allocations: 179 MB / 1.345 GB, free: 344 kB / 1.029 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex): time 0.001964/0.3554, allocations: 0.7272 MB / 1.346 GB, free: 15.61 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.000215/0.3557, allocations: 47.78 kB / 1.346 GB, free: 15.56 MB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.832e-05/0.3557, allocations: 4 kB / 1.346 GB, free: 15.55 MB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 0.0001143/0.3558, allocations: 15.86 kB / 1.346 GB, free: 15.54 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 0.0001169/0.356, allocations: 11.92 kB / 1.346 GB, free: 15.53 MB / 1.045 GB Notification: Performance of NFTyping.typeClassSections: time 5.476e-05/0.356, allocations: 19.98 kB / 1.346 GB, free: 15.51 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 0.000249/0.3563, allocations: 183.6 kB / 1.346 GB, free: 15.33 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000284/0.3565, allocations: 149.4 kB / 1.346 GB, free: 15.18 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001057/0.3567, allocations: 107.6 kB / 1.347 GB, free: 15.07 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001482/0.3568, allocations: 111.5 kB / 1.347 GB, free: 14.96 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 5.319e-05/0.3569, allocations: 32 kB / 1.347 GB, free: 14.93 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 3.757e-05/0.3569, allocations: 24 kB / 1.347 GB, free: 14.91 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 8.527e-05/0.357, allocations: 71.78 kB / 1.347 GB, free: 14.84 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 0.0001205/0.3571, allocations: 119.2 kB / 1.347 GB, free: 14.72 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 0.0004115/0.3575, allocations: 374.5 kB / 1.347 GB, free: 14.36 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 5.34e-06/0.3575, allocations: 0 / 1.347 GB, free: 14.36 MB / 1.045 GB Notification: Performance of FrontEnd: time 2.214e-06/0.3575, allocations: 3.938 kB / 1.347 GB, free: 14.35 MB / 1.045 GB Notification: Performance of Transformations before backend: time 8.726e-06/0.3575, allocations: 0 / 1.347 GB, free: 14.35 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.0007312/0.3583, allocations: 497.4 kB / 1.348 GB, free: 13.83 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 4.485e-05/0.3583, allocations: 12.03 kB / 1.348 GB, free: 13.82 MB / 1.045 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.978e-05/0.3583, allocations: 8.844 kB / 1.348 GB, free: 13.81 MB / 1.045 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.073e-05/0.3584, allocations: 66.72 kB / 1.348 GB, free: 13.74 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.979e-05/0.3585, allocations: 40.64 kB / 1.348 GB, free: 13.7 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004098/0.3589, allocations: 235.8 kB / 1.348 GB, free: 13.44 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.35e-05/0.3589, allocations: 33.02 kB / 1.348 GB, free: 13.41 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.758e-05/0.359, allocations: 28.31 kB / 1.348 GB, free: 13.38 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005338/0.3595, allocations: 352 kB / 1.348 GB, free: 13.02 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.097e-05/0.3595, allocations: 0 / 1.348 GB, free: 13.02 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.605e-05/0.3595, allocations: 12 kB / 1.348 GB, free: 13.01 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.538e-06/0.3595, allocations: 4 kB / 1.348 GB, free: 13.01 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000401/0.3599, allocations: 259.8 kB / 1.349 GB, free: 12.75 MB / 1.045 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001277/0.3612, allocations: 0.875 MB / 1.35 GB, free: 11.83 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 8.659e-05/0.3613, allocations: 65.19 kB / 1.35 GB, free: 11.75 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.05e-05/0.3613, allocations: 29.7 kB / 1.35 GB, free: 11.71 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 1.642e-05/0.3614, allocations: 3.938 kB / 1.35 GB, free: 11.71 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.62e-05/0.3614, allocations: 34.56 kB / 1.35 GB, free: 11.67 MB / 1.045 GB Notification: Performance of pre-optimization done (n=2): time 2.985e-06/0.3614, allocations: 3.984 kB / 1.35 GB, free: 11.66 MB / 1.045 GB Notification: Performance of matching and sorting (n=2): time 0.0002712/0.3617, allocations: 125.6 kB / 1.35 GB, free: 11.54 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.859e-05/0.3617, allocations: 89.09 kB / 1.35 GB, free: 11.43 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00056/0.3623, allocations: 481.4 kB / 1.35 GB, free: 10.95 MB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 1.643e-05/0.3623, allocations: 25.7 kB / 1.35 GB, free: 10.92 MB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001495/0.3625, allocations: 187.8 kB / 1.351 GB, free: 10.73 MB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 1.297e-05/0.3625, allocations: 7.891 kB / 1.351 GB, free: 10.73 MB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.901e-05/0.3625, allocations: 49.69 kB / 1.351 GB, free: 10.67 MB / 1.045 GB Notification: Performance of setup shared object (initialization): time 0.0001594/0.3627, allocations: 338.8 kB / 1.351 GB, free: 10.33 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.745e-05/0.3628, allocations: 59.95 kB / 1.351 GB, free: 10.27 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001087/0.3629, allocations: 74.67 kB / 1.351 GB, free: 10.2 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001428/0.3631, allocations: 97.61 kB / 1.351 GB, free: 10.09 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.923e-06/0.3631, allocations: 0 / 1.351 GB, free: 10.09 MB / 1.045 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002863/0.3633, allocations: 185.4 kB / 1.351 GB, free: 9.906 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 1.758e-05/0.3634, allocations: 8 kB / 1.351 GB, free: 9.898 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.518e-06/0.3634, allocations: 0 / 1.351 GB, free: 9.898 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.827e-05/0.3634, allocations: 4 kB / 1.351 GB, free: 9.895 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001332/0.3635, allocations: 27.92 kB / 1.351 GB, free: 9.867 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.871e-06/0.3635, allocations: 4 kB / 1.351 GB, free: 9.863 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.428e-05/0.3636, allocations: 35.73 kB / 1.351 GB, free: 9.828 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.646e-05/0.3636, allocations: 4 kB / 1.351 GB, free: 9.824 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.0002026/0.3638, allocations: 197.5 kB / 1.352 GB, free: 9.621 MB / 1.045 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.408e-05/0.3639, allocations: 27.81 kB / 1.352 GB, free: 9.594 MB / 1.045 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001871/0.3641, allocations: 168.6 kB / 1.352 GB, free: 9.41 MB / 1.045 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.901e-05/0.3641, allocations: 180.2 kB / 1.352 GB, free: 9.227 MB / 1.045 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.926e-05/0.3642, allocations: 180.2 kB / 1.352 GB, free: 9.043 MB / 1.045 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.15e-05/0.3643, allocations: 176.3 kB / 1.352 GB, free: 8.863 MB / 1.045 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004002/0.3647, allocations: 0.5 MB / 1.353 GB, free: 8.312 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.443e-05/0.3647, allocations: 101 kB / 1.353 GB, free: 8.207 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.505e-05/0.3648, allocations: 109 kB / 1.353 GB, free: 8.094 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.299e-05/0.3649, allocations: 184.2 kB / 1.353 GB, free: 7.906 MB / 1.045 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.125e-05/0.365, allocations: 176.3 kB / 1.353 GB, free: 7.727 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.286e-05/0.365, allocations: 184.1 kB / 1.354 GB, free: 7.539 MB / 1.045 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.27e-05/0.3651, allocations: 180.5 kB / 1.354 GB, free: 7.355 MB / 1.045 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001832/0.3653, allocations: 343.5 kB / 1.354 GB, free: 6.996 MB / 1.045 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001192/0.3654, allocations: 140.8 kB / 1.354 GB, free: 6.852 MB / 1.045 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001003/0.3655, allocations: 180.2 kB / 1.354 GB, free: 6.668 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001134/0.3656, allocations: 105 kB / 1.354 GB, free: 6.559 MB / 1.045 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.861e-05/0.3657, allocations: 188.2 kB / 1.355 GB, free: 6.367 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.64e-05/0.3658, allocations: 109 kB / 1.355 GB, free: 6.254 MB / 1.045 GB Notification: Performance of sorting global known variables: time 0.0004052/0.3662, allocations: 359.1 kB / 1.355 GB, free: 5.906 MB / 1.045 GB Notification: Performance of sort global known variables: time 9.1e-08/0.3662, allocations: 0 / 1.355 GB, free: 5.906 MB / 1.045 GB Notification: Performance of remove unused functions: time 0.0002704/0.3664, allocations: 39.89 kB / 1.355 GB, free: 5.867 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.0004841/0.3669, allocations: 0.8383 MB / 1.356 GB, free: 5.004 MB / 1.045 GB Notification: Performance of simCode: created initialization part: time 0.0001685/0.3671, allocations: 67.94 kB / 1.356 GB, free: 4.938 MB / 1.045 GB Notification: Performance of simCode: created event and clocks part: time 2.515e-06/0.3671, allocations: 0 / 1.356 GB, free: 4.938 MB / 1.045 GB Notification: Performance of simCode: created simulation system equations: time 3.777e-06/0.3671, allocations: 3.938 kB / 1.356 GB, free: 4.934 MB / 1.045 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004774/0.3676, allocations: 477.2 kB / 1.356 GB, free: 4.465 MB / 1.045 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003098/0.3707, allocations: 2.826 MB / 1.359 GB, free: 1.551 MB / 1.045 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004199/0.3711, allocations: 0.7753 MB / 1.36 GB, free: 0.7461 MB / 1.045 GB Notification: Performance of simCode: alias equations: time 0.0001075/0.3712, allocations: 54.25 kB / 1.36 GB, free: 0.6953 MB / 1.045 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001229/0.3713, allocations: 79.41 kB / 1.36 GB, free: 0.6172 MB / 1.045 GB Notification: Performance of SimCode: time 7.21e-07/0.3713, allocations: 0 / 1.36 GB, free: 0.6172 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02617/0.3975, allocations: 5.151 MB / 1.365 GB, free: 11.62 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.28/11.68, allocations: 13.89 kB / 1.365 GB, free: 11.61 MB / 1.061 GB " [Timeout remaining time 288] (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: 18.62329807097558]