/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


Waiting 7 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

number of points = 7460
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2235.1-0623_daily_bin1475
RA = 338.799, Dec = -6.3955
tmin = 621648001, tmax = 621907201
emin = 100.0, emax = 100000.0
irfs = P8R3_SOURCE_V2
ROI = 12
zmax = 90

Fitting strategies:
Fix sources to their catalog values = True
Leave variable source normalizations free = True
Perform pre-fit where ALL sources are frozen to catalog values = False
Perform secondary fit with a free spectral index = True
Remove all catalog sources = False
Remove weak (TS < 2) catalog sources = False
Freeze Galactic component = False

Likelihood fit parameters:
Statistic: UNBINNED
Optimizer: MINUIT

Catalog: 4FGL

Repository Job = True

LAT data Source:
Data catalog

Updating database...

UPDATE lightcurve_data_v2 SET job_id='378760', job_status='RUN', time_executed='2021-09-28 15:40:53.267006', time_epoch_executed='1632868853.27' WHERE source_name='4FGL J2235.1-0623' and cadence='daily' and bin_id='1475'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/378760

Creating custom pfile directory:
/scratch/kocevski/378760/pfiles/

Retrieving the FT1 file...

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT1 --filter 'nMetStop>=621648001.0 && nMetStart<621907201.0' /Data/Flight/Reprocess/P305

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT1 --filter 'nMetStart>564945418 && nMetStop>=621648001.0 && nMetStart<621907201.0' /Data/Flight/Level1/LPA

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/378760/ft1_4FGL_J2235.1-0623_daily_bin1475.fits


Retrieving the FT1 file...

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT2 --filter 'nMetStop>=621648001.0 && nMetStart<621907201.0' /Data/Flight/Level1/LPA

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/378760/ft2_4FGL_J2235.1-0623_daily_bin1475.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/378760/ft1_4FGL_J2235.1-0623_daily_bin1475.fits outfile=/scratch/kocevski/378760/ft1_filteredMKT_4FGL_J2235.1-0623_daily_bin1475.fits ra=338.799 dec=-6.3955 rad=12.0 tmin=621648001.0 tmax=621907201.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 5.36
user 5.14
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/378760/ft2_4FGL_J2235.1-0623_daily_bin1475.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/378760/ft2_4FGL_J2235.1-0623_daily_bin1475.fits sctable="SC_DATA" filter="IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))" roicut=no evfile=/scratch/kocevski/378760/ft1_filteredMKT_4FGL_J2235.1-0623_daily_bin1475.fits evtable="EVENTS" outfile="/scratch/kocevski/378760/ft1_filtered_4FGL_J2235.1-0623_daily_bin1475.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.51
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/378760/ft1_filtered_4FGL_J2235.1-0623_daily_bin1475.fits" evtable="EVENTS" scfile=/scratch/kocevski/378760/ft2_4FGL_J2235.1-0623_daily_bin1475.fits sctable="SC_DATA" outfile=/scratch/kocevski/378760/ltcube_621648001_621907201_4FGL_J2235.1-0623_daily_bin1475.fits dcostheta=0.025 binsz=1.0 phibins=0 tmin=0.0 tmax=0.0 file_version="1" zmin=0.0 zmax=90.0 chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Working on file /scratch/kocevski/378760/ft2_4FGL_J2235.1-0623_daily_bin1475.fits
.....................!
real 11.91
user 11.51
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/378760/ft1_filtered_4FGL_J2235.1-0623_daily_bin1475.fits evtable="EVENTS" scfile=/scratch/kocevski/378760/ft2_4FGL_J2235.1-0623_daily_bin1475.fits sctable="SC_DATA" expcube=/scratch/kocevski/378760/ltcube_621648001_621907201_4FGL_J2235.1-0623_daily_bin1475.fits outfile=/scratch/kocevski/378760/expmap_621648001_621907201_4FGL_J2235.1-0623_daily_bin1475.fits irfs="P8R3_SOURCE_V2" evtype="INDEF" srcrad=30.0 nlong=88 nlat=88 nenergies=10 submap=no nlongmin=0 nlongmax=0 nlatmin=0 nlatmax=0 chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

The exposure maps generated by this tool are meant
to be used for *unbinned* likelihood analysis only.
Do not use them for binned analyses.
Computing the ExposureMap using /scratch/kocevski/378760/ltcube_621648001_621907201_4FGL_J2235.1-0623_daily_bin1475.fits
.....................!
real 192.27
user 187.21
sys 4.69

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 159 point sources and 0 extended sources

Setting source of interest to:
4FGL J2235.1-0623 @ 338.799 -6.3955

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/378760/ft1_filtered_4FGL_J2235.1-0623_daily_bin1475.fits scfile=/scratch/kocevski/378760/ft2_4FGL_J2235.1-0623_daily_bin1475.fits outfile=/scratch/kocevski/378760/cmap_621648001_621907201_4FGL_J2235.1-0623_daily_bin1475.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=338.799 yref=-6.3955 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/378760/ft1_filtered_4FGL_J2235.1-0623_daily_bin1475.fits scfile=/scratch/kocevski/378760/ft2_4FGL_J2235.1-0623_daily_bin1475.fits outfile=/scratch/kocevski/378760/cmap_HighResolution_621648001_621907201_4FGL_J2235.1-0623_daily_bin1475.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=338.799 yref=-6.3955 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.57
user 0.40
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/378760/ft1_filtered_4FGL_J2235.1-0623_daily_bin1475.fits evtable="EVENTS" scfile=/scratch/kocevski/378760/ft2_4FGL_J2235.1-0623_daily_bin1475.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/378760/Model_4FGL_J2235.1-0623_daily_bin1475.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

adding source EG_v02
adding source GAL_V02
Working on...
/scratch/kocevski/378760/ft1_filtered_4FGL_J2235.1-0623_daily_bin1475.fits....................!
real 71.94
user 70.58
sys 1.18

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/378760/ft1_filtered_4FGL_J2235.1-0623_daily_bin1475.fits', '/scratch/kocevski/378760/ft2_4FGL_J2235.1-0623_daily_bin1475.fits', expMap='/scratch/kocevski/378760/expmap_621648001_621907201_4FGL_J2235.1-0623_daily_bin1475.fits', expCube='/scratch/kocevski/378760/ltcube_621648001_621907201_4FGL_J2235.1-0623_daily_bin1475.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/378760/Model_4FGL_J2235.1-0623_daily_bin1475.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2235.1-0623'

4FGL J2235.1-0623
   Spectrum: PowerLaw
269    Prefactor:  6.499e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
270        Index:  2.149e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
271        Scale:  1.759e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/378760/ft1_filtered_4FGL_J2235.1-0623_daily_bin1475.fits
Spacecraft file(s): /scratch/kocevski/378760/ft2_4FGL_J2235.1-0623_daily_bin1475.fits
Exposure map: /scratch/kocevski/378760/expmap_621648001_621907201_4FGL_J2235.1-0623_daily_bin1475.fits
Exposure cube: /scratch/kocevski/378760/ltcube_621648001_621907201_4FGL_J2235.1-0623_daily_bin1475.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/378760/Model_4FGL_J2235.1-0623_daily_bin1475.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 7647.52010397

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 7647.51174625

Fit tolerance = 1e-08

Performing likelihood fit...
 **********
 **   14 **SET NOWARN 
 **********

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .87794       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    18.687       1.0000         .10000E-03   10000.    
     4 'Prefactor '    7.0334       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .28170E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    33.910       1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.2303       1.0000         .10000E-03   10000.    
     9 'Prefactor '    58.339       1.0000         .10000E-03   10000.    
    10 'norm      '    5.0300       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    1.8960       1.0000         .10000E-03   10000.    
    13 'Prefactor '    10.237       1.0000         .10000E-03   10000.    
    14 'norm      '    2.1532       1.0000         .10000E-03   10000.    
    15 'Prefactor '    27.071       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .14038E-02   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    74.430       1.0000         .10000E-03   10000.    
    19 'Prefactor '    45.591       1.0000         .10000E-03   10000.    
    20 'Prefactor '    5.4058       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.2722       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .70261       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5130E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7647.512     FROM MIGRAD    STATUS=CONVERGED    471 CALLS     2406 TOTAL
                     EDM=   .64E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .87823        3.3219        .18700E-05   -.50066E-05
   2  Prefactor     .10000E-03    5.4586        .33636E-07** at limit **
   3  Prefactor     18.689        16.762        .34403E-06   -.37816E-04
   4  Prefactor     7.0273        20.168        .21139E-06   -.57486E-04
   5  Prefactor     .10000E-03    4.5992       -.11578E-06** at limit **
   6  Prefactor     .31939E-03    6.3774        .78928E-06** at limit **
   7  Prefactor     33.897        55.005       -.25576E-05   -.67677E-04
   8  Prefactor     1.2280        3.9236        .12491E-05   -.30502E-03
   9  Prefactor     58.333        46.634       -.28539E-06   -.51133E-04
  10  norm          5.0300        3.2491        .13818E-05   -.47985E-03
  11  Prefactor     .10000E-03    43.924        .13842E-06** at limit **
  12  norm          1.8960        .87520        .42066E-07   -.82402E-04
  13  Prefactor     10.217        25.848       -.27529E-05   -.14996E-03
  14  norm          2.1541        1.9087        .29044E-06   -.22115E-03
  15  Prefactor     27.100        28.833        .23207E-05    .17992E-03
  16  Prefactor     .10001E-03    4.8923        .42955E-06** at limit **
  17  Prefactor     .10000E-03    4.3033        .10850E-06** at limit **
  18  norm          74.428        17.203        .82430E-07   -.61183E-04
  19  Prefactor     45.626        102.54        .55111E-06    .44045E-04
  20  Prefactor     5.3952        23.301        .10312E-05   -.60301E-05
  21  Normalizat    1.2725        .19783       -.25701E-05   -.13722E-03
  22  Prefactor     .70250        .11807        .62546E-06   -.38650E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.878235
  Prefactor  = 0.0001
  Prefactor  = 18.6891
  Prefactor  = 7.0273
  Prefactor  = 0.0001
  Prefactor  = 0.000319385
  Prefactor  = 33.8971
  Prefactor  = 1.22796
  Prefactor  = 58.3334
  norm       = 5.02999
  Prefactor  = 0.0001
  norm       = 1.896
  Prefactor  = 10.2174
  norm       = 2.15411
  Prefactor  = 27.1
  Prefactor  = 0.000100007
  Prefactor  = 0.0001
  norm       = 74.4276
  Prefactor  = 45.6255
  Prefactor  = 5.39516
  Normalizat = 1.27247
  Prefactor  = 0.702499
 **********
 **   18 **HESSE 
 **********

 FCN=   7647.512     FROM HESSE     STATUS=OK           352 CALLS     2758 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .87823        3.3059        .30096E-03   -1.5521    
   2  Prefactor     .10000E-03    5.4963        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     18.689        16.670        .92651E-04   -1.4843    
   4  Prefactor     7.0273        20.078        .15126E-03   -1.5178    
   5  Prefactor     .10000E-03    4.6367        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .31939E-03    7.3117        .62636E-01   -1.5705    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     33.897        55.247        .68815E-04   -1.4543    
   8  Prefactor     1.2280        3.8562        .27386E-03   -1.5486    
   9  Prefactor     58.333        46.700        .52525E-04   -1.4179    
  10  norm          5.0300        3.2275        .58837E-03   -1.5259    
  11  Prefactor     .10000E-03    43.965        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.8960        .87121        .52458E-04   -1.5433    
  13  Prefactor     10.217        26.026        .12524E-03   -1.5069    
  14  norm          2.1541        1.9009        .14039E-03   -1.5414    
  15  Prefactor     27.100        29.433        .76997E-04   -1.4666    
  16  Prefactor     .10001E-03    19.640        .37219E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    4.3264        .17717E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          74.428        17.216        .46539E-04   -1.3980    
  19  Prefactor     45.626        99.587        .59380E-04   -1.4356    
  20  Prefactor     5.3952        21.795        .17284E-03   -1.5243    
  21  Normalizat    1.2725        .22996        .26588E-03   -.84392    
  22  Prefactor     .70250        .13833        .22529E-03   -1.0343    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.65936e-09
Minuit parameter uncertainties:
  1  3.30663
  2  4.39105e-06
  3  16.674
  4  20.0978
  5  6.76115e-06
  6  0.0801118
  7  55.3301
  8  3.85697
  9  46.7295
  10  3.22758
  11  2.19287e-05
  12  0.871219
  13  26.0554
  14  1.901
  15  29.4483
  16  0.0007267
  17  4.81134e-06
  18  17.2169
  19  99.9535
  20  21.7011
  21  0.230149
  22  0.138393
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 7647.51171181

Extracting fit parameters...

4FGL J2235.1-0623
   Spectrum: PowerLaw
269    Prefactor:  1.000e-04  2.193e-05  1.000e-04  1.000e+04 ( 1.000e-14)
270        Index:  2.149e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
271        Scale:  1.759e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
510    Prefactor:  7.025e-01  1.384e-01  0.000e+00  1.000e+01 ( 1.000e+00)
511        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
512        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
509   Normalization:  1.272e+00  2.301e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 338.799 -6.396
Photon Flux Upper Limit: 5.90e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.48e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/378760/likelihoodResults_621648001_621907201_4FGL_J2235.1-0623_daily_bin1475.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7647.51182009
delta logL = -0.000108280576569

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7647.51171181
delta logL = -1.85536919162e-10

Fit tolerance = 1e-08

Performing likelihood fit...
 **********
 **   14 **SET NOWARN 
 **********

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1698       1.0000          .0000       10.000    
     3 'Normalizat'    1.2725       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .70251       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5130E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7647.512     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      203 TOTAL
                     EDM=   .64E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    146.71        .90712E-02** at limit **
   2  Index         2.1738        5.1930        .50000       -.76679E-06
   3  Normalizat    1.2725        .17799        .60118E-01    .16712E-04
   4  Prefactor     .70250        .11614        .42435E-01    .34713E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.17379
  Normalizat = 1.27247
  Prefactor  = 0.7025
 **********
 **   18 **HESSE 
 **********

 FCN=   7647.512     FROM HESSE     STATUS=OK            33 CALLS      236 TOTAL
                     EDM=   .31E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    84.843        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1738        5.8600        .50000       -.60073    
   3  Normalizat    1.2725        .20755        .26588E-03   -.84392    
   4  Prefactor     .70250        .13548        .22528E-03   -1.0343    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.06893e-12
Minuit parameter uncertainties:
  1  6.64024e-05
  2  5.77217
  3  0.207688
  4  0.135543
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/378760': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7647.51171181
delta logL = 4.82577888761e-09

Extracting fit parameters...

4FGL J2235.1-0623
   Spectrum: PowerLaw
269    Prefactor:  1.000e-04  6.640e-05  1.000e-04  1.000e+04 ( 1.000e-14)
270        Index:  2.174e+00  5.772e+00  0.000e+00  1.000e+01 (-1.000e+00)
271        Scale:  1.759e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
510    Prefactor:  7.025e-01  1.355e-01  0.000e+00  1.000e+01 ( 1.000e+00)
511        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
512        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
509   Normalization:  1.272e+00  2.077e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 338.799 -6.396

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/378760/cmap_HighResolution_621648001_621907201_4FGL_J2235.1-0623_daily_bin1475.png

Cleaning up...

** Nuclear option initiated! **
rmdir /scratch/kocevski/378760

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.48e-03', job_status='DONE', photon_flux_upper_limit='5.90e-08', time_completed='2021-09-28 15:52:48.247198', job_id='378760', GAL2='0.70', fit_tolerance='1e-08', EG2='1.27', EG='1.27', time_epoch_completed='1632869568.25', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.70', dlogl='4.83e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.15' WHERE bin_id='1475' AND source_name='4FGL J2235.1-0623' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 15:52:48 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0030>
Subject: Job 378760: <4FGL_J2235.1-0623_daily_bin1475> in cluster <slac> Done

Job <4FGL_J2235.1-0623_daily_bin1475> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Sep 28 15:40:36 2021
Job was executed on host(s) <bullet0030>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 15:40:38 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 28 15:40:38 2021
Terminated at Tue Sep 28 15:52:49 2021
Results reported at Tue Sep 28 15:52:49 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2235.1-0623_daily_bin1475 338.799 -6.3955 621648001 621907201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2235.1-0623 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   696.17 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             312.35 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   730 sec.
    Turnaround time :                            733 sec.

The output (if any) is above this job summary.

