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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|idxLasTru.y|idxLasTruAllFal.y",fileNamePrefix="Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex") translateModel(Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|idxLasTru.y|idxLasTruAllFal.y",fileNamePrefix="Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001029/0.001029, allocations: 90.83 kB / 15.36 MB, free: 0.7383 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.009028/0.009029, allocations: 169.6 kB / 16.26 MB, free: 6.613 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.419/1.419, allocations: 223.3 MB / 240.3 MB, free: 5.344 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.803/2.803, allocations: 462.7 MB / 0.7364 GB, free: 328 kB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.0003842/0.0003842, allocations: 9 kB / 0.9028 GB, free: 36.81 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3578/0.3582, allocations: 159.6 MB / 1.059 GB, free: 5.5 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex): time 0.001542/0.3598, allocations: 437.6 kB / 1.059 GB, free: 5.074 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.0003221/0.3601, allocations: 47.83 kB / 1.059 GB, free: 5.027 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001115/0.3603, allocations: 3.938 kB / 1.059 GB, free: 5.023 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.000146/0.3604, allocations: 7.938 kB / 1.059 GB, free: 5.016 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0001563/0.3606, allocations: 15.86 kB / 1.059 GB, free: 5 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 9.106e-05/0.3607, allocations: 16 kB / 1.059 GB, free: 4.984 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0003548/0.3611, allocations: 167.6 kB / 1.059 GB, free: 4.82 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006735/0.3618, allocations: 252.9 kB / 1.06 GB, free: 4.574 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001334/0.3619, allocations: 51.66 kB / 1.06 GB, free: 4.523 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001831/0.3621, allocations: 63.52 kB / 1.06 GB, free: 4.461 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 4.129e-05/0.3622, allocations: 4 kB / 1.06 GB, free: 4.457 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 2.954e-05/0.3622, allocations: 4 kB / 1.06 GB, free: 4.453 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 8.907e-05/0.3623, allocations: 43.8 kB / 1.06 GB, free: 4.41 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0001772/0.3625, allocations: 113 kB / 1.06 GB, free: 4.293 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0005515/0.3631, allocations: 330.7 kB / 1.06 GB, free: 3.969 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.328e-06/0.3631, allocations: 0 / 1.06 GB, free: 3.969 MB / 0.8106 GB Notification: Performance of FrontEnd: time 3.407e-06/0.3631, allocations: 0 / 1.06 GB, free: 3.969 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 2.275e-05/0.3632, allocations: 4 kB / 1.06 GB, free: 3.965 MB / 0.8106 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.001115/0.3643, allocations: 0.4915 MB / 1.061 GB, free: 3.422 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 6.949e-05/0.3644, allocations: 12.03 kB / 1.061 GB, free: 3.41 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001436/0.3645, allocations: 32.56 kB / 1.061 GB, free: 3.379 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008247/0.3654, allocations: 309.1 kB / 1.061 GB, free: 3.031 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.664e-05/0.3655, allocations: 28.94 kB / 1.061 GB, free: 3.004 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.062e-05/0.3656, allocations: 24.38 kB / 1.061 GB, free: 2.98 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00099/0.3666, allocations: 343 kB / 1.061 GB, free: 2.637 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.86e-05/0.3666, allocations: 4.125 kB / 1.061 GB, free: 2.633 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.286e-05/0.3667, allocations: 11.94 kB / 1.061 GB, free: 2.621 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.679e-05/0.3667, allocations: 8 kB / 1.061 GB, free: 2.613 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000724/0.3675, allocations: 259.8 kB / 1.062 GB, free: 2.359 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002399/0.3699, allocations: 0.9245 MB / 1.063 GB, free: 1.379 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000136/0.37, allocations: 61.12 kB / 1.063 GB, free: 1.301 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.627e-05/0.3701, allocations: 29.77 kB / 1.063 GB, free: 1.266 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 3.82e-05/0.3702, allocations: 7.938 kB / 1.063 GB, free: 1.258 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.97e-05/0.3702, allocations: 34.56 kB / 1.063 GB, free: 1.215 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=2): time 2.255e-06/0.3703, allocations: 0 / 1.063 GB, free: 1.215 MB / 0.8106 GB Notification: Performance of matching and sorting (n=2): time 0.0004735/0.3707, allocations: 129.3 kB / 1.063 GB, free: 1.082 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.376e-05/0.3708, allocations: 77.11 kB / 1.063 GB, free: 0.9883 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009267/0.3718, allocations: 477.4 kB / 1.063 GB, free: 0.5195 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 2.784e-05/0.3718, allocations: 33.64 kB / 1.063 GB, free: 492 kB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002185/0.3721, allocations: 183.8 kB / 1.064 GB, free: 304 kB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 1.704e-05/0.3721, allocations: 7.984 kB / 1.064 GB, free: 296 kB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.147e-05/0.3722, allocations: 33.7 kB / 1.064 GB, free: 256 kB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0002239/0.3724, allocations: 342.8 kB / 1.064 GB, free: 15.91 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001721/0.3726, allocations: 55.95 kB / 1.064 GB, free: 15.85 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001772/0.3728, allocations: 73.67 kB / 1.064 GB, free: 15.77 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002475/0.3731, allocations: 93.67 kB / 1.064 GB, free: 15.68 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.807e-06/0.3731, allocations: 0 / 1.064 GB, free: 15.68 MB / 0.8262 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.000499/0.3736, allocations: 189.1 kB / 1.064 GB, free: 15.48 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 3.058e-05/0.3736, allocations: 15.98 kB / 1.064 GB, free: 15.47 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.882e-05/0.3737, allocations: 0 / 1.064 GB, free: 15.47 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.677e-05/0.3737, allocations: 0 / 1.064 GB, free: 15.47 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002142/0.3739, allocations: 20 kB / 1.064 GB, free: 15.45 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.6e-05/0.374, allocations: 7.938 kB / 1.064 GB, free: 15.44 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001464/0.3741, allocations: 35.67 kB / 1.064 GB, free: 15.41 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.433e-05/0.3742, allocations: 4 kB / 1.064 GB, free: 15.4 MB / 0.8262 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.0002923/0.3745, allocations: 189.8 kB / 1.065 GB, free: 15.21 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001218/0.3746, allocations: 31.56 kB / 1.065 GB, free: 15.18 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002752/0.3749, allocations: 168.6 kB / 1.065 GB, free: 15 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001085/0.375, allocations: 180.2 kB / 1.065 GB, free: 14.81 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001284/0.3751, allocations: 176.3 kB / 1.065 GB, free: 14.63 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001379/0.3753, allocations: 184.2 kB / 1.065 GB, free: 14.45 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007229/0.376, allocations: 0.5205 MB / 1.066 GB, free: 13.87 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.135e-05/0.3761, allocations: 112.9 kB / 1.066 GB, free: 13.75 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.569e-05/0.3762, allocations: 108.9 kB / 1.066 GB, free: 13.64 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001013/0.3763, allocations: 180.3 kB / 1.066 GB, free: 13.45 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.979e-05/0.3764, allocations: 180.2 kB / 1.066 GB, free: 13.27 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.061e-05/0.3766, allocations: 180.3 kB / 1.066 GB, free: 13.09 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0001057/0.3767, allocations: 180.2 kB / 1.067 GB, free: 12.9 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002775/0.377, allocations: 339.4 kB / 1.067 GB, free: 12.55 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000219/0.3772, allocations: 221.6 kB / 1.067 GB, free: 12.3 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001346/0.3774, allocations: 184.3 kB / 1.067 GB, free: 12.12 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001889/0.3776, allocations: 108.9 kB / 1.067 GB, free: 12 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001137/0.3777, allocations: 180.2 kB / 1.068 GB, free: 11.82 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.801e-05/0.3778, allocations: 112.9 kB / 1.068 GB, free: 11.7 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0007315/0.3785, allocations: 359.1 kB / 1.068 GB, free: 11.35 MB / 0.8262 GB Notification: Performance of sort global known variables: time 3.71e-07/0.3785, allocations: 0 / 1.068 GB, free: 11.35 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0004654/0.379, allocations: 32 kB / 1.068 GB, free: 11.32 MB / 0.8262 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.0001969/0.3792, allocations: 178.5 kB / 1.068 GB, free: 11.14 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.000269/0.3795, allocations: 71.95 kB / 1.068 GB, free: 11.07 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.885e-06/0.3795, allocations: 0 / 1.068 GB, free: 11.07 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 7.714e-06/0.3795, allocations: 3.938 kB / 1.068 GB, free: 11.06 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007713/0.3803, allocations: 0.5454 MB / 1.069 GB, free: 10.52 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001169/0.3815, allocations: 0.549 MB / 1.069 GB, free: 9.938 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006314/0.3822, allocations: 0.7755 MB / 1.07 GB, free: 9.137 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.0001844/0.3824, allocations: 54.25 kB / 1.07 GB, free: 9.086 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.405e-05/0.3824, allocations: 19.44 kB / 1.07 GB, free: 9.066 MB / 0.8262 GB Notification: Performance of SimCode: time 4.91e-07/0.3825, allocations: 0 / 1.07 GB, free: 9.066 MB / 0.8262 GB Notification: Performance of Templates: time 0.008347/0.3908, allocations: 1.598 MB / 1.072 GB, free: 7.484 MB / 0.8262 GB make -j1 -f Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex.makefile (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 & ./Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex.pipe 2>&1) 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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches