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.001629/0.001629, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.002178/0.002178, allocations: 191.6 kB / 16.25 MB, free: 6.633 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.49/1.49, allocations: 222.9 MB / 239.9 MB, free: 4.438 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.733/2.733, allocations: 461.9 MB / 0.7343 GB, free: 14.99 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001286/0.001286, allocations: 65.59 kB / 0.8986 GB, free: 37.22 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3207/0.322, allocations: 157.4 MB / 1.052 GB, free: 8.754 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex): time 0.002234/0.3243, allocations: 0.7817 MB / 1.053 GB, free: 7.969 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.0002231/0.3246, allocations: 43.84 kB / 1.053 GB, free: 7.926 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.717e-05/0.3247, allocations: 3.938 kB / 1.053 GB, free: 7.922 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0001202/0.3248, allocations: 7.938 kB / 1.053 GB, free: 7.914 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0001145/0.3249, allocations: 11.92 kB / 1.053 GB, free: 7.902 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 5.822e-05/0.325, allocations: 20 kB / 1.053 GB, free: 7.883 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0002198/0.3252, allocations: 179.6 kB / 1.053 GB, free: 7.707 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003667/0.3256, allocations: 256.9 kB / 1.054 GB, free: 7.457 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001064/0.3257, allocations: 99.64 kB / 1.054 GB, free: 7.359 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000127/0.3258, allocations: 115.4 kB / 1.054 GB, free: 7.246 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 4.254e-05/0.3259, allocations: 28 kB / 1.054 GB, free: 7.219 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 3.766e-05/0.3259, allocations: 28 kB / 1.054 GB, free: 7.191 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 7.804e-05/0.326, allocations: 71.77 kB / 1.054 GB, free: 7.121 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0001102/0.3261, allocations: 119.3 kB / 1.054 GB, free: 7.004 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0003271/0.3265, allocations: 362.8 kB / 1.054 GB, free: 6.648 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.507e-06/0.3265, allocations: 0 / 1.054 GB, free: 6.648 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.633e-06/0.3265, allocations: 0 / 1.054 GB, free: 6.648 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 1.242e-05/0.3265, allocations: 0 / 1.054 GB, free: 6.648 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.0007049/0.3272, allocations: 0.5421 MB / 1.055 GB, free: 6.055 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 5.553e-05/0.3273, allocations: 12.03 kB / 1.055 GB, free: 6.043 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.074e-05/0.3274, allocations: 40.41 kB / 1.055 GB, free: 6.004 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004272/0.3278, allocations: 305.3 kB / 1.055 GB, free: 5.664 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.945e-05/0.3279, allocations: 36.86 kB / 1.055 GB, free: 5.629 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.461e-05/0.3279, allocations: 24.38 kB / 1.055 GB, free: 5.605 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005031/0.3284, allocations: 343 kB / 1.056 GB, free: 5.262 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.135e-05/0.3284, allocations: 4.188 kB / 1.056 GB, free: 5.258 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.46e-05/0.3285, allocations: 11.94 kB / 1.056 GB, free: 5.246 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.269e-05/0.3285, allocations: 11.98 kB / 1.056 GB, free: 5.234 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003816/0.3289, allocations: 259.8 kB / 1.056 GB, free: 4.98 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001212/0.3301, allocations: 0.9091 MB / 1.057 GB, free: 4.016 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 7.426e-05/0.3302, allocations: 65.25 kB / 1.057 GB, free: 3.934 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.705e-05/0.3302, allocations: 29.64 kB / 1.057 GB, free: 3.898 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.884e-05/0.3302, allocations: 3.938 kB / 1.057 GB, free: 3.895 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.577e-05/0.3303, allocations: 38.56 kB / 1.057 GB, free: 3.848 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=2): time 1.282e-06/0.3303, allocations: 0 / 1.057 GB, free: 3.848 MB / 0.8106 GB Notification: Performance of matching and sorting (n=2): time 0.0002723/0.3306, allocations: 133.4 kB / 1.057 GB, free: 3.711 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.708e-05/0.3306, allocations: 81.09 kB / 1.057 GB, free: 3.613 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005175/0.3311, allocations: 477.4 kB / 1.058 GB, free: 3.145 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.687e-05/0.3312, allocations: 25.7 kB / 1.058 GB, free: 3.113 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001582/0.3313, allocations: 179.6 kB / 1.058 GB, free: 2.934 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 1.306e-05/0.3314, allocations: 7.906 kB / 1.058 GB, free: 2.926 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.332e-05/0.3314, allocations: 49.69 kB / 1.058 GB, free: 2.871 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001332/0.3316, allocations: 338.8 kB / 1.058 GB, free: 2.531 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.987e-05/0.3317, allocations: 60.02 kB / 1.058 GB, free: 2.473 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.867e-05/0.3318, allocations: 77.67 kB / 1.058 GB, free: 2.391 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001497/0.3319, allocations: 97.61 kB / 1.058 GB, free: 2.289 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.164e-06/0.332, allocations: 0 / 1.058 GB, free: 2.289 MB / 0.8106 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002642/0.3322, allocations: 189.2 kB / 1.059 GB, free: 2.098 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.966e-05/0.3323, allocations: 8 kB / 1.059 GB, free: 2.09 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.723e-06/0.3323, allocations: 7.922 kB / 1.059 GB, free: 2.082 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.464e-05/0.3323, allocations: 0 / 1.059 GB, free: 2.082 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001395/0.3324, allocations: 27.98 kB / 1.059 GB, free: 2.055 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.117e-06/0.3324, allocations: 4 kB / 1.059 GB, free: 2.051 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.029e-05/0.3325, allocations: 27.69 kB / 1.059 GB, free: 2.023 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.577e-05/0.3326, allocations: 4 kB / 1.059 GB, free: 2.02 MB / 0.8106 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.0001929/0.3327, allocations: 189.8 kB / 1.059 GB, free: 1.824 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.046e-05/0.3328, allocations: 35.5 kB / 1.059 GB, free: 1.789 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001796/0.333, allocations: 164.6 kB / 1.059 GB, free: 1.613 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.796e-05/0.3331, allocations: 180.3 kB / 1.059 GB, free: 1.43 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.464e-05/0.3332, allocations: 184.3 kB / 1.059 GB, free: 1.242 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.127e-05/0.3332, allocations: 176.3 kB / 1.059 GB, free: 1.062 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003499/0.3336, allocations: 0.5244 MB / 1.06 GB, free: 492 kB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.9e-05/0.3336, allocations: 108.9 kB / 1.06 GB, free: 376 kB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.73e-05/0.3337, allocations: 104.9 kB / 1.06 GB, free: 264 kB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.848e-05/0.3338, allocations: 180.3 kB / 1.06 GB, free: 76 kB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.044e-05/0.3339, allocations: 180.3 kB / 1.061 GB, free: 15.89 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.085e-05/0.3339, allocations: 184.1 kB / 1.061 GB, free: 15.7 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.446e-05/0.334, allocations: 184.2 kB / 1.061 GB, free: 15.52 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001947/0.3342, allocations: 335.4 kB / 1.061 GB, free: 15.16 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001376/0.3344, allocations: 217.6 kB / 1.061 GB, free: 14.93 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.199e-05/0.3345, allocations: 184.2 kB / 1.062 GB, free: 14.74 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001158/0.3346, allocations: 105 kB / 1.062 GB, free: 14.63 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.576e-05/0.3347, allocations: 188.2 kB / 1.062 GB, free: 14.44 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.419e-05/0.3347, allocations: 101 kB / 1.062 GB, free: 14.33 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0003852/0.3351, allocations: 363.1 kB / 1.062 GB, free: 13.98 MB / 0.8262 GB Notification: Performance of sort global known variables: time 2e-07/0.3351, allocations: 0 / 1.062 GB, free: 13.98 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002691/0.3354, allocations: 28 kB / 1.062 GB, free: 13.95 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.0001511/0.3355, allocations: 174.5 kB / 1.063 GB, free: 13.77 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0001671/0.3357, allocations: 83.89 kB / 1.063 GB, free: 13.69 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.304e-06/0.3357, allocations: 4 kB / 1.063 GB, free: 13.68 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 2.304e-06/0.3357, allocations: 0 / 1.063 GB, free: 13.68 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005073/0.3362, allocations: 485.2 kB / 1.063 GB, free: 13.21 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000682/0.3369, allocations: 0.5474 MB / 1.064 GB, free: 12.63 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003995/0.3373, allocations: 0.7752 MB / 1.064 GB, free: 11.83 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.0001023/0.3374, allocations: 54.25 kB / 1.064 GB, free: 11.78 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.92e-05/0.3375, allocations: 23.38 kB / 1.064 GB, free: 11.76 MB / 0.8262 GB Notification: Performance of SimCode: time 2.21e-07/0.3375, allocations: 0 / 1.064 GB, free: 11.76 MB / 0.8262 GB Notification: Performance of Templates: time 0.004831/0.3423, allocations: 1.699 MB / 1.066 GB, free: 10.07 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