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.001525/0.001525, allocations: 108.1 kB / 15.99 MB, free: 6.355 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.001622/0.001622, allocations: 191.2 kB / 16.91 MB, free: 6.195 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.418/1.418, allocations: 222.9 MB / 240.6 MB, free: 15.42 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.722/2.722, allocations: 469.8 MB / 0.7427 GB, free: 3.617 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001949/0.001949, allocations: 63.64 kB / 0.9087 GB, free: 14.18 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2938/0.2958, allocations: 159.1 MB / 1.064 GB, free: 15.07 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex): time 0.002067/0.2979, allocations: 0.7701 MB / 1.065 GB, free: 14.29 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.0001983/0.2981, allocations: 51.78 kB / 1.065 GB, free: 14.24 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.926e-05/0.2982, allocations: 0 / 1.065 GB, free: 14.24 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.0001041/0.2983, allocations: 11.92 kB / 1.065 GB, free: 14.23 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.0001111/0.2984, allocations: 15.92 kB / 1.065 GB, free: 14.21 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 4.977e-05/0.2985, allocations: 12 kB / 1.065 GB, free: 14.2 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.0002247/0.2987, allocations: 183.6 kB / 1.065 GB, free: 14.02 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003577/0.2991, allocations: 260.9 kB / 1.065 GB, free: 13.77 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 9.837e-05/0.2992, allocations: 99.64 kB / 1.066 GB, free: 13.67 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001284/0.2993, allocations: 111.5 kB / 1.066 GB, free: 13.56 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 4.179e-05/0.2993, allocations: 28 kB / 1.066 GB, free: 13.53 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 3.616e-05/0.2994, allocations: 24 kB / 1.066 GB, free: 13.51 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 7.694e-05/0.2995, allocations: 67.78 kB / 1.066 GB, free: 13.44 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 0.000124/0.2996, allocations: 131.2 kB / 1.066 GB, free: 13.31 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.0002784/0.2999, allocations: 283.5 kB / 1.066 GB, free: 13.04 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 5.891e-06/0.2999, allocations: 3.938 kB / 1.066 GB, free: 13.03 MB / 0.8419 GB Notification: Performance of FrontEnd: time 1.522e-06/0.2999, allocations: 7.938 kB / 1.066 GB, free: 13.02 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 6.542e-06/0.2999, allocations: 0 / 1.066 GB, free: 13.02 MB / 0.8419 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.0006958/0.3006, allocations: 0.5421 MB / 1.067 GB, free: 12.43 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 4.046e-05/0.3007, allocations: 12.62 kB / 1.067 GB, free: 12.42 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.395e-05/0.3007, allocations: 40.48 kB / 1.067 GB, free: 12.38 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004001/0.3011, allocations: 305.2 kB / 1.067 GB, free: 12.04 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.508e-05/0.3012, allocations: 28.94 kB / 1.067 GB, free: 12.02 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.509e-05/0.3012, allocations: 24.38 kB / 1.067 GB, free: 11.99 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005731/0.3018, allocations: 347 kB / 1.067 GB, free: 11.64 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.402e-05/0.3018, allocations: 192 / 1.067 GB, free: 11.64 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.923e-05/0.3019, allocations: 11.94 kB / 1.067 GB, free: 11.63 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.829e-06/0.3019, allocations: 8 kB / 1.067 GB, free: 11.62 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004141/0.3023, allocations: 259.8 kB / 1.068 GB, free: 11.37 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001259/0.3036, allocations: 0.9168 MB / 1.069 GB, free: 10.4 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 8.585e-05/0.3037, allocations: 61.12 kB / 1.069 GB, free: 10.32 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.758e-05/0.3037, allocations: 29.77 kB / 1.069 GB, free: 10.29 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 2.542e-05/0.3038, allocations: 7.938 kB / 1.069 GB, free: 10.28 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.089e-05/0.3038, allocations: 38.5 kB / 1.069 GB, free: 10.23 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=2): time 1.283e-06/0.3038, allocations: 0 / 1.069 GB, free: 10.23 MB / 0.8419 GB Notification: Performance of matching and sorting (n=2): time 0.0002813/0.3041, allocations: 125.4 kB / 1.069 GB, free: 10.1 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.605e-05/0.3042, allocations: 81.05 kB / 1.069 GB, free: 10 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005381/0.3047, allocations: 477.4 kB / 1.069 GB, free: 9.531 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 1.96e-05/0.3047, allocations: 29.7 kB / 1.069 GB, free: 9.496 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001407/0.3049, allocations: 183.9 kB / 1.07 GB, free: 9.312 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 1.108e-05/0.3049, allocations: 7.891 kB / 1.07 GB, free: 9.305 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.643e-05/0.305, allocations: 45.7 kB / 1.07 GB, free: 9.254 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001598/0.3051, allocations: 342.8 kB / 1.07 GB, free: 8.91 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.452e-05/0.3052, allocations: 59.95 kB / 1.07 GB, free: 8.852 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001098/0.3054, allocations: 69.67 kB / 1.07 GB, free: 8.777 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001429/0.3055, allocations: 97.67 kB / 1.07 GB, free: 8.676 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.843e-06/0.3055, allocations: 4 kB / 1.07 GB, free: 8.672 MB / 0.8419 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002689/0.3058, allocations: 189.1 kB / 1.07 GB, free: 8.48 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 1.555e-05/0.3058, allocations: 4 kB / 1.07 GB, free: 8.477 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.345e-06/0.3058, allocations: 0 / 1.07 GB, free: 8.477 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.364e-05/0.3058, allocations: 3.938 kB / 1.07 GB, free: 8.473 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001321/0.306, allocations: 27.94 kB / 1.07 GB, free: 8.445 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.426e-06/0.306, allocations: 4 kB / 1.07 GB, free: 8.441 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.002e-05/0.3061, allocations: 27.67 kB / 1.07 GB, free: 8.414 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.72e-05/0.3061, allocations: 4 kB / 1.07 GB, free: 8.41 MB / 0.8419 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.0001946/0.3063, allocations: 191.1 kB / 1.071 GB, free: 8.215 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.591e-05/0.3064, allocations: 31.56 kB / 1.071 GB, free: 8.184 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001928/0.3066, allocations: 172.6 kB / 1.071 GB, free: 8 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.717e-05/0.3067, allocations: 176.3 kB / 1.071 GB, free: 7.82 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.183e-05/0.3067, allocations: 180.2 kB / 1.071 GB, free: 7.637 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.211e-05/0.3068, allocations: 180.3 kB / 1.071 GB, free: 7.453 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003973/0.3072, allocations: 0.5205 MB / 1.072 GB, free: 6.875 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.847e-05/0.3073, allocations: 112.9 kB / 1.072 GB, free: 6.758 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.978e-05/0.3073, allocations: 105 kB / 1.072 GB, free: 6.648 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.445e-05/0.3074, allocations: 184.4 kB / 1.072 GB, free: 6.461 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.193e-05/0.3075, allocations: 184.3 kB / 1.072 GB, free: 6.273 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.82e-05/0.3076, allocations: 180.3 kB / 1.073 GB, free: 6.09 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.916e-05/0.3077, allocations: 184.2 kB / 1.073 GB, free: 5.902 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001852/0.3079, allocations: 331.4 kB / 1.073 GB, free: 5.555 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001453/0.308, allocations: 221.6 kB / 1.073 GB, free: 5.312 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001004/0.3081, allocations: 180.3 kB / 1.073 GB, free: 5.129 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001124/0.3082, allocations: 112.9 kB / 1.073 GB, free: 5.012 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.087e-05/0.3083, allocations: 176.3 kB / 1.074 GB, free: 4.832 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.769e-05/0.3084, allocations: 104.9 kB / 1.074 GB, free: 4.723 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0004111/0.3088, allocations: 359.1 kB / 1.074 GB, free: 4.375 MB / 0.8419 GB Notification: Performance of sort global known variables: time 2.5e-07/0.3088, allocations: 0 / 1.074 GB, free: 4.375 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0002602/0.3091, allocations: 36 kB / 1.074 GB, free: 4.34 MB / 0.8419 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.0001547/0.3092, allocations: 182.5 kB / 1.074 GB, free: 4.152 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0001772/0.3094, allocations: 80.19 kB / 1.074 GB, free: 4.074 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 1.993e-06/0.3094, allocations: 0 / 1.074 GB, free: 4.074 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 1.583e-06/0.3094, allocations: 0 / 1.074 GB, free: 4.074 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004738/0.3099, allocations: 481.2 kB / 1.075 GB, free: 3.602 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007088/0.3106, allocations: 0.5802 MB / 1.075 GB, free: 2.988 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003941/0.311, allocations: 0.7714 MB / 1.076 GB, free: 2.191 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.737e-05/0.3111, allocations: 19.44 kB / 1.076 GB, free: 2.172 MB / 0.8419 GB Notification: Performance of SimCode: time 2.094e-06/0.3111, allocations: 0 / 1.076 GB, free: 2.172 MB / 0.8419 GB Notification: Performance of Templates: time 0.4569/0.768, allocations: 3.265 MB / 1.079 GB, free: 21.32 MB / 0.8419 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=400 -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/jenkins1/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