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.009642/0.009642, allocations: 101 kB / 15.73 MB, free: 6.043 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.002231/0.002232, allocations: 188.3 kB / 16.67 MB, free: 5.973 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.478/1.478, allocations: 222.9 MB / 240.4 MB, free: 4.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.739/2.739, allocations: 461.9 MB / 0.7348 GB, free: 14.68 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.00138/0.00138, allocations: 67.89 kB / 1.054 GB, free: 7.176 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3537/0.3551, allocations: 157.4 MB / 1.208 GB, free: 9.68 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex): time 0.002013/0.3572, allocations: 0.7205 MB / 1.208 GB, free: 8.957 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.0002274/0.3574, allocations: 47.84 kB / 1.208 GB, free: 8.91 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.796e-05/0.3575, allocations: 0 / 1.208 GB, free: 8.91 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.0001512/0.3576, allocations: 19.86 kB / 1.208 GB, free: 8.891 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.000121/0.3578, allocations: 11.91 kB / 1.208 GB, free: 8.879 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 5.632e-05/0.3578, allocations: 15.98 kB / 1.209 GB, free: 8.863 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0002435/0.3581, allocations: 183.5 kB / 1.209 GB, free: 8.684 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000373/0.3585, allocations: 264.9 kB / 1.209 GB, free: 8.422 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 9.365e-05/0.3586, allocations: 99.58 kB / 1.209 GB, free: 8.324 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001332/0.3587, allocations: 115.5 kB / 1.209 GB, free: 8.211 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 4.387e-05/0.3588, allocations: 24 kB / 1.209 GB, free: 8.188 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 3.904e-05/0.3588, allocations: 24 kB / 1.209 GB, free: 8.164 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 8.555e-05/0.3589, allocations: 71.78 kB / 1.209 GB, free: 8.094 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 0.0001158/0.359, allocations: 119.3 kB / 1.209 GB, free: 7.977 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0003694/0.3594, allocations: 378.6 kB / 1.21 GB, free: 7.605 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 6.392e-06/0.3594, allocations: 0 / 1.21 GB, free: 7.605 MB / 0.9669 GB Notification: Performance of FrontEnd: time 2.214e-06/0.3594, allocations: 0 / 1.21 GB, free: 7.605 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 9.017e-06/0.3594, allocations: 4 kB / 1.21 GB, free: 7.602 MB / 0.9669 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.0007139/0.3601, allocations: 0.5419 MB / 1.21 GB, free: 7.008 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 4.248e-05/0.3602, allocations: 15.95 kB / 1.21 GB, free: 6.992 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.241e-05/0.3603, allocations: 32.56 kB / 1.21 GB, free: 6.961 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004209/0.3607, allocations: 309.2 kB / 1.211 GB, free: 6.617 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.17e-05/0.3607, allocations: 28.92 kB / 1.211 GB, free: 6.59 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.366e-05/0.3608, allocations: 28.38 kB / 1.211 GB, free: 6.562 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004995/0.3613, allocations: 339 kB / 1.211 GB, free: 6.223 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.165e-05/0.3613, allocations: 192 / 1.211 GB, free: 6.223 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.31e-05/0.3614, allocations: 23.91 kB / 1.211 GB, free: 6.199 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.184e-05/0.3614, allocations: 8 kB / 1.211 GB, free: 6.191 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003973/0.3618, allocations: 251.8 kB / 1.211 GB, free: 5.945 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001223/0.363, allocations: 0.9169 MB / 1.212 GB, free: 4.973 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 8.256e-05/0.3631, allocations: 61.14 kB / 1.212 GB, free: 4.895 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.847e-05/0.3632, allocations: 25.77 kB / 1.212 GB, free: 4.863 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 3.076e-05/0.3632, allocations: 7.938 kB / 1.212 GB, free: 4.855 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.786e-05/0.3632, allocations: 42.44 kB / 1.212 GB, free: 4.805 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=2): time 2.665e-06/0.3632, allocations: 0 / 1.212 GB, free: 4.805 MB / 0.9669 GB Notification: Performance of matching and sorting (n=2): time 0.0002948/0.3635, allocations: 137.2 kB / 1.212 GB, free: 4.664 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.684e-05/0.3636, allocations: 81.05 kB / 1.212 GB, free: 4.566 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004816/0.3641, allocations: 473.5 kB / 1.213 GB, free: 4.098 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 1.805e-05/0.3641, allocations: 25.7 kB / 1.213 GB, free: 4.066 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001405/0.3643, allocations: 183.6 kB / 1.213 GB, free: 3.883 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 9.317e-06/0.3643, allocations: 3.984 kB / 1.213 GB, free: 3.879 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.409e-05/0.3644, allocations: 49.61 kB / 1.213 GB, free: 3.824 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001385/0.3645, allocations: 343.1 kB / 1.214 GB, free: 3.48 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.742e-05/0.3646, allocations: 63.89 kB / 1.214 GB, free: 3.418 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.017e-05/0.3647, allocations: 73.67 kB / 1.214 GB, free: 3.34 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001271/0.3648, allocations: 93.67 kB / 1.214 GB, free: 3.242 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.687e-06/0.3648, allocations: 0 / 1.214 GB, free: 3.242 MB / 0.9669 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002326/0.3651, allocations: 185.2 kB / 1.214 GB, free: 3.055 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.653e-05/0.3651, allocations: 8 kB / 1.214 GB, free: 3.047 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.721e-06/0.3651, allocations: 0 / 1.214 GB, free: 3.047 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.224e-05/0.3651, allocations: 4 kB / 1.214 GB, free: 3.043 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001245/0.3653, allocations: 27.92 kB / 1.214 GB, free: 3.016 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.255e-06/0.3653, allocations: 4.156 kB / 1.214 GB, free: 3.012 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.099e-05/0.3653, allocations: 27.59 kB / 1.214 GB, free: 2.984 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.881e-05/0.3654, allocations: 11.98 kB / 1.214 GB, free: 2.973 MB / 0.9669 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.0001704/0.3655, allocations: 193.7 kB / 1.214 GB, free: 2.773 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.256e-05/0.3656, allocations: 27.66 kB / 1.214 GB, free: 2.746 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001641/0.3658, allocations: 168.5 kB / 1.214 GB, free: 2.562 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.64e-05/0.3659, allocations: 176.3 kB / 1.215 GB, free: 2.383 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.851e-05/0.3659, allocations: 180.2 kB / 1.215 GB, free: 2.199 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.274e-05/0.366, allocations: 188.3 kB / 1.215 GB, free: 2.008 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003317/0.3663, allocations: 0.5171 MB / 1.215 GB, free: 1.434 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.857e-05/0.3664, allocations: 116.9 kB / 1.215 GB, free: 1.312 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.976e-05/0.3665, allocations: 105 kB / 1.216 GB, free: 1.203 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001408/0.3666, allocations: 184.2 kB / 1.216 GB, free: 1.016 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.892e-05/0.3667, allocations: 180.4 kB / 1.216 GB, free: 0.832 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.083e-05/0.3668, allocations: 180.3 kB / 1.216 GB, free: 0.6484 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.142e-05/0.3668, allocations: 184.2 kB / 1.216 GB, free: 472 kB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001641/0.367, allocations: 331.5 kB / 1.217 GB, free: 116 kB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001509/0.3672, allocations: 221.8 kB / 1.217 GB, free: 15.87 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.421e-05/0.3673, allocations: 180.2 kB / 1.217 GB, free: 15.68 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001107/0.3674, allocations: 105 kB / 1.217 GB, free: 15.57 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.908e-05/0.3675, allocations: 184.2 kB / 1.217 GB, free: 15.39 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.426e-05/0.3675, allocations: 104.9 kB / 1.217 GB, free: 15.28 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.0004366/0.368, allocations: 363.1 kB / 1.218 GB, free: 14.93 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.6e-07/0.368, allocations: 3.938 kB / 1.218 GB, free: 14.93 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0003041/0.3683, allocations: 31.91 kB / 1.218 GB, free: 14.89 MB / 0.9825 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.0001491/0.3684, allocations: 170.5 kB / 1.218 GB, free: 14.72 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0001649/0.3686, allocations: 83.89 kB / 1.218 GB, free: 14.64 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 4.319e-06/0.3686, allocations: 7.938 kB / 1.218 GB, free: 14.63 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 1.413e-06/0.3686, allocations: 0 / 1.218 GB, free: 14.63 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004362/0.3691, allocations: 485.2 kB / 1.218 GB, free: 14.14 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006189/0.3697, allocations: 492.4 kB / 1.219 GB, free: 13.64 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003314/0.37, allocations: 0.7753 MB / 1.22 GB, free: 12.84 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 9.364e-05/0.3701, allocations: 54.25 kB / 1.22 GB, free: 12.79 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.428e-05/0.3702, allocations: 19.44 kB / 1.22 GB, free: 12.77 MB / 0.9825 GB Notification: Performance of SimCode: time 2e-07/0.3702, allocations: 0 / 1.22 GB, free: 12.77 MB / 0.9825 GB Notification: Performance of Templates: time 0.004916/0.3751, allocations: 1.706 MB / 1.221 GB, free: 11.07 MB / 0.9825 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