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.001688/0.001688, allocations: 110.4 kB / 18.94 MB, free: 2.812 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.002046/0.002046, allocations: 222.7 kB / 22.26 MB, free: 5.191 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.499/1.499, allocations: 230.6 MB / 256 MB, free: 8.039 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.388/3.388, allocations: 0.505 GB / 0.8101 GB, free: 22.05 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex,fileNamePrefix="Buildings_latest_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.002065/0.002065, allocations: 64.16 kB / 1.177 GB, free: 17.15 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3435/0.3456, allocations: 180.2 MB / 1.353 GB, free: 8.488 MB / 1.045 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex): time 0.002027/0.3476, allocations: 0.7272 MB / 1.354 GB, free: 7.762 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.0002681/0.3479, allocations: 47.84 kB / 1.354 GB, free: 7.715 MB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.377e-05/0.348, allocations: 0 / 1.354 GB, free: 7.715 MB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 0.0001103/0.3481, allocations: 15.86 kB / 1.354 GB, free: 7.699 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 0.0001173/0.3482, allocations: 15.92 kB / 1.354 GB, free: 7.684 MB / 1.045 GB Notification: Performance of NFTyping.typeClassSections: time 5.446e-05/0.3483, allocations: 19.98 kB / 1.354 GB, free: 7.664 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 0.0002441/0.3485, allocations: 187.5 kB / 1.354 GB, free: 7.48 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002765/0.3488, allocations: 145.6 kB / 1.354 GB, free: 7.336 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001087/0.3489, allocations: 99.66 kB / 1.354 GB, free: 7.238 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001534/0.349, allocations: 119.4 kB / 1.354 GB, free: 7.121 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 4.54e-05/0.3491, allocations: 24 kB / 1.354 GB, free: 7.098 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 3.919e-05/0.3491, allocations: 28 kB / 1.354 GB, free: 7.07 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 7.578e-05/0.3492, allocations: 67.78 kB / 1.354 GB, free: 7.004 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 0.0001323/0.3493, allocations: 127.2 kB / 1.354 GB, free: 6.879 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 0.0003903/0.3497, allocations: 378.4 kB / 1.355 GB, free: 6.508 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 3.546e-06/0.3497, allocations: 4 kB / 1.355 GB, free: 6.504 MB / 1.045 GB Notification: Performance of FrontEnd: time 1.232e-06/0.3497, allocations: 0 / 1.355 GB, free: 6.504 MB / 1.045 GB Notification: Performance of Transformations before backend: time 1.009e-05/0.3497, allocations: 0 / 1.355 GB, free: 6.504 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.0006858/0.3504, allocations: 489.5 kB / 1.355 GB, free: 5.992 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 3.709e-05/0.3505, allocations: 15.97 kB / 1.355 GB, free: 5.977 MB / 1.045 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.103e-05/0.3505, allocations: 58.73 kB / 1.355 GB, free: 5.91 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.025e-05/0.3506, allocations: 36.7 kB / 1.355 GB, free: 5.875 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004241/0.351, allocations: 243.6 kB / 1.356 GB, free: 5.609 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.311e-05/0.3511, allocations: 40.95 kB / 1.356 GB, free: 5.57 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.482e-05/0.3511, allocations: 24.38 kB / 1.356 GB, free: 5.547 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005244/0.3516, allocations: 344.3 kB / 1.356 GB, free: 5.195 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.243e-05/0.3516, allocations: 3.938 kB / 1.356 GB, free: 5.191 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.581e-05/0.3517, allocations: 12 kB / 1.356 GB, free: 5.18 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.524e-06/0.3517, allocations: 4 kB / 1.356 GB, free: 5.176 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004031/0.3521, allocations: 259.8 kB / 1.356 GB, free: 4.922 MB / 1.045 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001291/0.3534, allocations: 0.8868 MB / 1.357 GB, free: 3.988 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 9.764e-05/0.3535, allocations: 61.12 kB / 1.357 GB, free: 3.91 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.689e-05/0.3535, allocations: 29.7 kB / 1.357 GB, free: 3.875 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 1.84e-05/0.3535, allocations: 0 / 1.357 GB, free: 3.875 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.13e-05/0.3536, allocations: 42.56 kB / 1.357 GB, free: 3.824 MB / 1.045 GB Notification: Performance of pre-optimization done (n=2): time 8.91e-07/0.3536, allocations: 0 / 1.357 GB, free: 3.824 MB / 1.045 GB Notification: Performance of matching and sorting (n=2): time 0.0003011/0.3539, allocations: 129.4 kB / 1.357 GB, free: 3.691 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.5e-05/0.3539, allocations: 77.11 kB / 1.357 GB, free: 3.598 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005729/0.3545, allocations: 485.4 kB / 1.358 GB, free: 3.117 MB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 1.922e-05/0.3545, allocations: 25.7 kB / 1.358 GB, free: 3.086 MB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001615/0.3547, allocations: 183.8 kB / 1.358 GB, free: 2.902 MB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 1.298e-05/0.3547, allocations: 8.141 kB / 1.358 GB, free: 2.895 MB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.125e-05/0.3548, allocations: 53.7 kB / 1.358 GB, free: 2.836 MB / 1.045 GB Notification: Performance of setup shared object (initialization): time 0.00017/0.3549, allocations: 342.8 kB / 1.358 GB, free: 2.492 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.825e-05/0.355, allocations: 55.95 kB / 1.359 GB, free: 2.438 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001078/0.3551, allocations: 76.05 kB / 1.359 GB, free: 2.359 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001493/0.3553, allocations: 97.61 kB / 1.359 GB, free: 2.258 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.953e-06/0.3553, allocations: 0 / 1.359 GB, free: 2.258 MB / 1.045 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002929/0.3556, allocations: 189.3 kB / 1.359 GB, free: 2.066 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 1.576e-05/0.3556, allocations: 12 kB / 1.359 GB, free: 2.055 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.919e-06/0.3556, allocations: 3.938 kB / 1.359 GB, free: 2.051 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.367e-05/0.3556, allocations: 0 / 1.359 GB, free: 2.051 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001299/0.3558, allocations: 20 kB / 1.359 GB, free: 2.031 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.065e-05/0.3558, allocations: 7.984 kB / 1.359 GB, free: 2.023 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.943e-05/0.3558, allocations: 27.73 kB / 1.359 GB, free: 1.996 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.117e-05/0.3559, allocations: 8 kB / 1.359 GB, free: 1.988 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.000201/0.3561, allocations: 198.1 kB / 1.359 GB, free: 1.785 MB / 1.045 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.978e-05/0.3561, allocations: 31.75 kB / 1.359 GB, free: 1.754 MB / 1.045 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001898/0.3563, allocations: 160.6 kB / 1.359 GB, free: 1.582 MB / 1.045 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.15e-05/0.3564, allocations: 180.2 kB / 1.36 GB, free: 1.398 MB / 1.045 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.203e-05/0.3565, allocations: 176.3 kB / 1.36 GB, free: 1.219 MB / 1.045 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.121e-05/0.3566, allocations: 180.3 kB / 1.36 GB, free: 1.035 MB / 1.045 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004022/0.357, allocations: 0.4961 MB / 1.36 GB, free: 500 kB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.887e-05/0.357, allocations: 101 kB / 1.36 GB, free: 392 kB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.003e-05/0.3571, allocations: 116.9 kB / 1.361 GB, free: 268 kB / 1.045 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.211e-05/0.3571, allocations: 188.2 kB / 1.361 GB, free: 72 kB / 1.045 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.277e-05/0.3572, allocations: 176.8 kB / 1.361 GB, free: 15.89 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.598e-05/0.3573, allocations: 180.2 kB / 1.361 GB, free: 15.71 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.063e-05/0.3574, allocations: 180.3 kB / 1.361 GB, free: 15.52 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001874/0.3576, allocations: 339.7 kB / 1.362 GB, free: 15.17 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001288/0.3577, allocations: 148.8 kB / 1.362 GB, free: 15.02 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001141/0.3578, allocations: 180.3 kB / 1.362 GB, free: 14.83 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001255/0.3579, allocations: 105 kB / 1.362 GB, free: 14.72 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.578e-05/0.358, allocations: 184.2 kB / 1.362 GB, free: 14.54 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.336e-05/0.3581, allocations: 101 kB / 1.362 GB, free: 14.43 MB / 1.061 GB Notification: Performance of sorting global known variables: time 0.0004411/0.3585, allocations: 363.1 kB / 1.363 GB, free: 14.07 MB / 1.061 GB Notification: Performance of sort global known variables: time 8e-08/0.3585, allocations: 0 / 1.363 GB, free: 14.07 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.000276/0.3588, allocations: 35.89 kB / 1.363 GB, free: 14.04 MB / 1.061 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.0005596/0.3594, allocations: 0.8397 MB / 1.363 GB, free: 13.17 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0001971/0.3596, allocations: 68.27 kB / 1.364 GB, free: 13.11 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/0.3596, allocations: 3.938 kB / 1.364 GB, free: 13.1 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 4.418e-06/0.3596, allocations: 4 kB / 1.364 GB, free: 13.1 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005281/0.3601, allocations: 485.3 kB / 1.364 GB, free: 12.62 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003264/0.3634, allocations: 2.816 MB / 1.367 GB, free: 9.715 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004439/0.3638, allocations: 0.779 MB / 1.367 GB, free: 8.91 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 0.000112/0.3639, allocations: 58.23 kB / 1.368 GB, free: 8.855 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001211/0.364, allocations: 79.41 kB / 1.368 GB, free: 8.777 MB / 1.061 GB Notification: Performance of SimCode: time 4.3e-07/0.364, allocations: 0 / 1.368 GB, free: 8.777 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03265/0.3967, allocations: 5.109 MB / 1.373 GB, free: 3.812 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.17/11.57, allocations: 13.03 kB / 1.373 GB, free: 3.805 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.488129309145734]