Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/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_11_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_11_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.001218/0.001218, allocations: 108.6 kB / 15.73 MB, free: 72 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001195/0.001195, allocations: 183 kB / 16.66 MB, free: 6.602 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.376/1.376, 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.1.0-maint.11.x/package.mo): time 2.825/2.825, allocations: 469.8 MB / 0.7425 GB, free: 7.395 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001203/0.001203, allocations: 63.89 kB / 1.065 GB, free: 13.13 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3029/0.3041, allocations: 159.1 MB / 1.221 GB, free: 13.88 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex): time 0.001846/0.306, allocations: 0.7247 MB / 1.221 GB, free: 13.16 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.0002063/0.3062, allocations: 43.84 kB / 1.221 GB, free: 13.11 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.125e-05/0.3062, allocations: 3.938 kB / 1.221 GB, free: 13.11 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.0001123/0.3063, allocations: 19.86 kB / 1.221 GB, free: 13.09 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 0.0001037/0.3065, allocations: 3.938 kB / 1.221 GB, free: 13.09 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 5.192e-05/0.3065, allocations: 19.97 kB / 1.221 GB, free: 13.07 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0002148/0.3067, allocations: 183.5 kB / 1.222 GB, free: 12.89 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002914/0.307, allocations: 212.9 kB / 1.222 GB, free: 12.68 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 7.864e-05/0.3071, allocations: 91.66 kB / 1.222 GB, free: 12.59 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001073/0.3072, allocations: 119.5 kB / 1.222 GB, free: 12.47 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 3.824e-05/0.3072, allocations: 24 kB / 1.222 GB, free: 12.45 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 3.538e-05/0.3073, allocations: 24 kB / 1.222 GB, free: 12.43 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 6.903e-05/0.3073, allocations: 71.78 kB / 1.222 GB, free: 12.36 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 9.476e-05/0.3074, allocations: 119.3 kB / 1.222 GB, free: 12.24 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0003125/0.3077, allocations: 386.3 kB / 1.223 GB, free: 11.86 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 3.957e-06/0.3077, allocations: 0 / 1.223 GB, free: 11.86 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.152e-06/0.3078, allocations: 0 / 1.223 GB, free: 11.86 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 6.362e-06/0.3078, allocations: 0 / 1.223 GB, free: 11.86 MB / 0.9825 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.0005735/0.3083, allocations: 0.5533 MB / 1.223 GB, free: 11.25 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.339e-05/0.3084, allocations: 8.031 kB / 1.223 GB, free: 11.25 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.333e-05/0.3084, allocations: 36.7 kB / 1.223 GB, free: 11.21 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003685/0.3088, allocations: 317.2 kB / 1.223 GB, free: 10.86 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.538e-05/0.3088, allocations: 36.92 kB / 1.223 GB, free: 10.82 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.502e-05/0.3089, allocations: 24.38 kB / 1.223 GB, free: 10.8 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004457/0.3093, allocations: 335.1 kB / 1.224 GB, free: 10.46 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.317e-05/0.3093, allocations: 4.188 kB / 1.224 GB, free: 10.46 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.508e-05/0.3094, allocations: 11.94 kB / 1.224 GB, free: 10.45 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.017e-06/0.3094, allocations: 8 kB / 1.224 GB, free: 10.44 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003435/0.3097, allocations: 256.3 kB / 1.224 GB, free: 10.19 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001156/0.3109, allocations: 0.9174 MB / 1.225 GB, free: 9.215 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 8.399e-05/0.311, allocations: 61.12 kB / 1.225 GB, free: 9.137 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.692e-05/0.311, allocations: 25.77 kB / 1.225 GB, free: 9.105 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 2.082e-05/0.311, allocations: 7.938 kB / 1.225 GB, free: 9.098 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.597e-05/0.311, allocations: 50.44 kB / 1.225 GB, free: 9.039 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=2): time 1.223e-06/0.311, allocations: 0 / 1.225 GB, free: 9.039 MB / 0.9825 GB Notification: Performance of matching and sorting (n=2): time 0.0002517/0.3113, allocations: 129.4 kB / 1.225 GB, free: 8.906 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.252e-05/0.3113, allocations: 77.11 kB / 1.225 GB, free: 8.812 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004409/0.3118, allocations: 481.4 kB / 1.226 GB, free: 8.336 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 1.333e-05/0.3118, allocations: 25.7 kB / 1.226 GB, free: 8.305 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001134/0.3119, allocations: 179.8 kB / 1.226 GB, free: 8.125 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 9.057e-06/0.3119, allocations: 12.2 kB / 1.226 GB, free: 8.113 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.387e-05/0.312, allocations: 53.62 kB / 1.226 GB, free: 8.055 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001054/0.3121, allocations: 338.8 kB / 1.226 GB, free: 7.715 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.137e-05/0.3122, allocations: 55.95 kB / 1.226 GB, free: 7.66 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.295e-05/0.3123, allocations: 81.61 kB / 1.226 GB, free: 7.574 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001213/0.3124, allocations: 97.66 kB / 1.227 GB, free: 7.473 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.234e-06/0.3124, allocations: 0 / 1.227 GB, free: 7.473 MB / 0.9825 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002296/0.3126, allocations: 185.3 kB / 1.227 GB, free: 7.285 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.298e-05/0.3126, allocations: 12 kB / 1.227 GB, free: 7.273 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.288e-06/0.3126, allocations: 0 / 1.227 GB, free: 7.273 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.403e-05/0.3126, allocations: 0 / 1.227 GB, free: 7.273 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001189/0.3128, allocations: 23.98 kB / 1.227 GB, free: 7.25 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.494e-06/0.3128, allocations: 4 kB / 1.227 GB, free: 7.246 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.4e-05/0.3128, allocations: 31.73 kB / 1.227 GB, free: 7.215 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.429e-05/0.3128, allocations: 4 kB / 1.227 GB, free: 7.211 MB / 0.9825 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.00016/0.313, allocations: 205.7 kB / 1.227 GB, free: 7 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.841e-05/0.3131, allocations: 31.75 kB / 1.227 GB, free: 6.969 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001541/0.3132, allocations: 156.7 kB / 1.227 GB, free: 6.801 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.081e-05/0.3133, allocations: 180.2 kB / 1.227 GB, free: 6.617 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.95e-05/0.3133, allocations: 180.3 kB / 1.228 GB, free: 6.434 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.176e-05/0.3134, allocations: 184.2 kB / 1.228 GB, free: 6.246 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000297/0.3137, allocations: 0.5167 MB / 1.228 GB, free: 5.672 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.086e-05/0.3137, allocations: 108.9 kB / 1.228 GB, free: 5.559 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.836e-05/0.3137, allocations: 104.9 kB / 1.228 GB, free: 5.449 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.569e-05/0.3138, allocations: 184.3 kB / 1.229 GB, free: 5.262 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.563e-05/0.3138, allocations: 180.4 kB / 1.229 GB, free: 5.078 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.842e-05/0.3139, allocations: 184.3 kB / 1.229 GB, free: 4.891 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.193e-05/0.3139, allocations: 176.3 kB / 1.229 GB, free: 4.711 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001313/0.3141, allocations: 335.6 kB / 1.229 GB, free: 4.359 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001136/0.3142, allocations: 225.8 kB / 1.23 GB, free: 4.113 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.312e-05/0.3143, allocations: 176.3 kB / 1.23 GB, free: 3.934 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001112/0.3144, allocations: 109 kB / 1.23 GB, free: 3.82 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.107e-05/0.3144, allocations: 180.2 kB / 1.23 GB, free: 3.637 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.407e-05/0.3145, allocations: 105 kB / 1.23 GB, free: 3.527 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.0003463/0.3148, allocations: 363.1 kB / 1.231 GB, free: 3.176 MB / 0.9825 GB Notification: Performance of sort global known variables: time 8.1e-08/0.3148, allocations: 3.938 kB / 1.231 GB, free: 3.172 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002507/0.3151, allocations: 35.89 kB / 1.231 GB, free: 3.137 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.0001254/0.3152, allocations: 182.5 kB / 1.231 GB, free: 2.949 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0001564/0.3153, allocations: 76.19 kB / 1.231 GB, free: 2.875 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.654e-06/0.3153, allocations: 0 / 1.231 GB, free: 2.875 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 1.393e-06/0.3154, allocations: 0 / 1.231 GB, free: 2.875 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004549/0.3158, allocations: 497.1 kB / 1.231 GB, free: 2.383 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005787/0.3164, allocations: 0.4964 MB / 1.232 GB, free: 1.855 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003057/0.3167, allocations: 0.7675 MB / 1.233 GB, free: 1.062 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 9.033e-05/0.3168, allocations: 54.25 kB / 1.233 GB, free: 1.012 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.663e-05/0.3168, allocations: 23.44 kB / 1.233 GB, free: 0.9883 MB / 0.9825 GB Notification: Performance of SimCode: time 4.11e-07/0.3168, allocations: 0 / 1.233 GB, free: 0.9883 MB / 0.9825 GB Notification: Performance of Templates: time 0.006449/0.3233, allocations: 1.712 MB / 1.234 GB, free: 15.29 MB / 0.9981 GB make -j1 -f Buildings_11_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex.makefile (rm -f Buildings_11_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex.pipe ; mkfifo Buildings_11_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex.pipe ; head -c 1048576 < Buildings_11_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex.pipe >> ../files/Buildings_11_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex.sim & ./Buildings_11_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Templates_Plants_Controls_Utilities_Validation_LastTrueIndex.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches