/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 121 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 = 7431
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2235.1-0623_daily_bin1055
RA = 338.799, Dec = -6.3955
tmin = 512784001, tmax = 513043201
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='377143', job_status='RUN', time_executed='2021-09-28 15:37:58.837380', time_epoch_executed='1632868678.84' WHERE source_name='4FGL J2235.1-0623' and cadence='daily' and bin_id='1055'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/377143

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/377143/ft1_4FGL_J2235.1-0623_daily_bin1055.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/377143/ft2_4FGL_J2235.1-0623_daily_bin1055.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/377143/ft1_4FGL_J2235.1-0623_daily_bin1055.fits outfile=/scratch/kocevski/377143/ft1_filteredMKT_4FGL_J2235.1-0623_daily_bin1055.fits ra=338.799 dec=-6.3955 rad=12.0 tmin=512784001.0 tmax=513043201.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 4.43
user 4.15
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/377143/ft2_4FGL_J2235.1-0623_daily_bin1055.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/377143/ft1_filteredMKT_4FGL_J2235.1-0623_daily_bin1055.fits evtable="EVENTS" outfile="/scratch/kocevski/377143/ft1_filtered_4FGL_J2235.1-0623_daily_bin1055.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.50
user 0.33
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/377143/ft1_filtered_4FGL_J2235.1-0623_daily_bin1055.fits" evtable="EVENTS" scfile=/scratch/kocevski/377143/ft2_4FGL_J2235.1-0623_daily_bin1055.fits sctable="SC_DATA" outfile=/scratch/kocevski/377143/ltcube_512784001_513043201_4FGL_J2235.1-0623_daily_bin1055.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/377143/ft2_4FGL_J2235.1-0623_daily_bin1055.fits
.....................!
real 14.81
user 14.40
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/377143/ft1_filtered_4FGL_J2235.1-0623_daily_bin1055.fits evtable="EVENTS" scfile=/scratch/kocevski/377143/ft2_4FGL_J2235.1-0623_daily_bin1055.fits sctable="SC_DATA" expcube=/scratch/kocevski/377143/ltcube_512784001_513043201_4FGL_J2235.1-0623_daily_bin1055.fits outfile=/scratch/kocevski/377143/expmap_512784001_513043201_4FGL_J2235.1-0623_daily_bin1055.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/377143/ltcube_512784001_513043201_4FGL_J2235.1-0623_daily_bin1055.fits
.....................!
real 192.23
user 187.50
sys 4.38

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/377143/ft1_filtered_4FGL_J2235.1-0623_daily_bin1055.fits scfile=/scratch/kocevski/377143/ft2_4FGL_J2235.1-0623_daily_bin1055.fits outfile=/scratch/kocevski/377143/cmap_512784001_513043201_4FGL_J2235.1-0623_daily_bin1055.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.52
user 0.35
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/377143/ft1_filtered_4FGL_J2235.1-0623_daily_bin1055.fits scfile=/scratch/kocevski/377143/ft2_4FGL_J2235.1-0623_daily_bin1055.fits outfile=/scratch/kocevski/377143/cmap_HighResolution_512784001_513043201_4FGL_J2235.1-0623_daily_bin1055.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.53
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/377143/ft1_filtered_4FGL_J2235.1-0623_daily_bin1055.fits evtable="EVENTS" scfile=/scratch/kocevski/377143/ft2_4FGL_J2235.1-0623_daily_bin1055.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/377143/Model_4FGL_J2235.1-0623_daily_bin1055.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/377143/ft1_filtered_4FGL_J2235.1-0623_daily_bin1055.fits.....................!
real 64.46
user 63.08
sys 1.26

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/377143/ft1_filtered_4FGL_J2235.1-0623_daily_bin1055.fits', '/scratch/kocevski/377143/ft2_4FGL_J2235.1-0623_daily_bin1055.fits', expMap='/scratch/kocevski/377143/expmap_512784001_513043201_4FGL_J2235.1-0623_daily_bin1055.fits', expCube='/scratch/kocevski/377143/ltcube_512784001_513043201_4FGL_J2235.1-0623_daily_bin1055.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/377143/Model_4FGL_J2235.1-0623_daily_bin1055.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/377143/ft1_filtered_4FGL_J2235.1-0623_daily_bin1055.fits
Spacecraft file(s): /scratch/kocevski/377143/ft2_4FGL_J2235.1-0623_daily_bin1055.fits
Exposure map: /scratch/kocevski/377143/expmap_512784001_513043201_4FGL_J2235.1-0623_daily_bin1055.fits
Exposure cube: /scratch/kocevski/377143/ltcube_512784001_513043201_4FGL_J2235.1-0623_daily_bin1055.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/377143/Model_4FGL_J2235.1-0623_daily_bin1055.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) = 6669.77771266

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.9820       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10102E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    27.518       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .16069E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    22.341       1.0000         .10000E-03   10000.    
     6 'Prefactor '    12.535       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10102E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    61.303       1.0000         .10000E-03   10000.    
    10 'norm      '    3.9313       1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.0230       1.0000         .10000E-03   10000.    
    12 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.8499       1.0000         .10000E-03   10000.    
    14 'norm      '    12.814       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    13.493       1.0000         .10000E-03   10000.    
    17 'Prefactor '    12.271       1.0000         .10000E-03   10000.    
    18 'norm      '    19.631       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    29.735       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.2109       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .81524       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=   6669.759     FROM MIGRAD    STATUS=CONVERGED    457 CALLS     2336 TOTAL
                     EDM=   .49E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.9825        8.5113       -.51496E-06   -.81157E-04
   2  Prefactor     .10000E-03    9.0786       -.22880E-06** at limit **
   3  Prefactor     27.519        18.575        .47662E-06   -.23714E-03
   4  Prefactor     .10000E-03    36.286        .14477E-04** at limit **
   5  Prefactor     22.341        16.738       -.14701E-06    .65022E-04
   6  Prefactor     12.537        10.809       -.37422E-06   -.28653E-04
   7  Prefactor     .10000E-03    42.016       -.64365E-05** at limit **
   8  Prefactor     .10000E-03    3.2072       -.35698E-06** at limit **
   9  Prefactor     61.301        48.190       -.19877E-05    .22867E-04
  10  norm          3.9316        4.1836       -.52868E-06   -.31729E-03
  11  Prefactor     5.0269        194.91        .15272E-04    .16141E-05
  12  norm          .10000E-03    .19072        .16477E-06** at limit **
  13  Prefactor     5.8176        137.34       -.11362E-03   -.16950E-04
  14  norm          12.816        5.0410        .63099E-05    .56276E-03
  15  Prefactor     .10000E-03    19.089        .50988E-06** at limit **
  16  Prefactor     13.492        10.973        .39649E-07    .12919E-03
  17  Prefactor     12.271        12.855        .86982E-06    .14702E-03
  18  norm          19.631        14.414       -.40165E-06    .19692E-04
  19  Prefactor     .10000E-03    27.246       -.31734E-05** at limit **
  20  Prefactor     29.736        16.987        .96541E-07    .56647E-04
  21  Normalizat    1.2109        .24108        .52758E-05    .46253E-04
  22  Prefactor     .81526        .14197       -.25368E-05    .47674E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.98251
  Prefactor  = 0.0001
  Prefactor  = 27.5188
  Prefactor  = 0.000100001
  Prefactor  = 22.3411
  Prefactor  = 12.5369
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 61.301
  norm       = 3.93156
  Prefactor  = 5.02687
  norm       = 0.0001
  Prefactor  = 5.81764
  norm       = 12.8164
  Prefactor  = 0.000100001
  Prefactor  = 13.4925
  Prefactor  = 12.2708
  norm       = 19.6315
  Prefactor  = 0.0001
  Prefactor  = 29.7363
  Normalizat = 1.21086
  Prefactor  = 0.815262
 **********
 **   18 **HESSE 
 **********

 FCN=   6669.759     FROM HESSE     STATUS=OK           340 CALLS     2676 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.9825        8.5126        .13374E-03   -1.5108    
   2  Prefactor     .10000E-03    9.1630        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     27.519        18.536        .76369E-04   -1.4658    
   4  Prefactor     .10000E-03    36.602        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     22.341        16.871        .84743E-04   -1.4762    
   6  Prefactor     12.537        10.810        .11314E-03   -1.5000    
   7  Prefactor     .10000E-03    42.030        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    3.3012        .28500E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     61.301        48.197        .51247E-04   -1.4140    
  10  norm          3.9316        4.1779        .16079E-03   -1.5311    
  11  Prefactor     5.0269        194.06        .17942E-03   -1.5260    
  12  norm          .10000E-03    .19307        .34842E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     5.8176        141.32        .16604E-03   -1.5226    
  14  norm          12.816        5.0972        .46376E-04   -1.4992    
  15  Prefactor     .10000E-03    19.112        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     13.492        10.974        .54522E-03   -1.4973    
  17  Prefactor     12.271        12.864        .11435E-03   -1.5007    
  18  norm          19.631        14.454        .90398E-04   -1.4822    
  19  Prefactor     .10000E-03    27.251        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     29.736        17.028        .73474E-04   -1.4617    
  21  Normalizat    1.2109        .29091        .30831E-03   -.86268    
  22  Prefactor     .81526        .17035        .22977E-03   -.99168    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.15791e-09
Minuit parameter uncertainties:
  1  8.51376
  2  1.65184e-05
  3  18.5401
  4  0.000288517
  5  16.8744
  6  10.8116
  7  4.52823e-05
  8  3.94244e-06
  9  48.2272
  10  4.17819
  11  62.6858
  12  4.0526e-06
  13  57.4989
  14  5.09733
  15  0.00021723
  16  10.9755
  17  12.8671
  18  14.4565
  19  2.73688e-06
  20  17.0305
  21  0.291296
  22  0.170456
Done.

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

Extracting fit parameters...

4FGL J2235.1-0623
   Spectrum: PowerLaw
269    Prefactor:  5.027e+00  6.269e+01  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:  8.153e-01  1.705e-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.211e+00  2.913e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/377143/likelihoodResults_512784001_513043201_4FGL_J2235.1-0623_daily_bin1055.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): 0
logL (Free Index) = 6669.75348997
delta logL = 0.00541005983996

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6669.7530736
delta logL = 0.00582643168491

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.9920       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4327       1.0000          .0000       10.000    
     3 'Normalizat'    1.2095       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81544       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6669.753     FROM MIGRAD    STATUS=FAILED        86 CALLS      271 TOTAL
                     EDM=   .97E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.0334        106.07        .16403E-03    .10805E-03
   2  Index         2.4301        2.3627        .49713E-02    .48010E-03
   3  Normalizat    1.2092        .26646        .30850E-03    .41460E-02
   4  Prefactor     .81532        .16708        .22976E-03    .53063E-02
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6669.753     FROM SIMPLEX   STATUS=UNCHANGED     73 CALLS      344 TOTAL
                     EDM=   .17E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.0334        106.07        .86874E-03   -1.5217    
   2  Index         2.4301        2.3627        .17208E-02   -.53981    
   3  Normalizat    1.2092        .26646        .41516E-03   -.86320    
   4  Prefactor     .81532        .16708        .31760E-03   -.99166    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6669.753     FROM MIGRAD    STATUS=CONVERGED     26 CALLS      370 TOTAL
                     EDM=   .44E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.0397        100.86        .65614E-05    .85247E-04
   2  Index         2.4295        2.3108        .19885E-03   -.12841E-04
   3  Normalizat    1.2091        .26671        .61700E-04    .19384E-04
   4  Prefactor     .81532        .16722        .45952E-04    .17566E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.03971
  Index      = 2.42946
  Normalizat = 1.20915
  Prefactor  = 0.815317
 **********
 **   18 **HESSE 
 **********

 FCN=   6669.753     FROM HESSE     STATUS=OK            23 CALLS      393 TOTAL
                     EDM=   .44E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.0397        101.80        .13123E-05   -1.5216    
   2  Index         2.4295        2.3096        .39771E-04   -.53997    
   3  Normalizat    1.2091        .26674        .12340E-04   -.86321    
   4  Prefactor     .81532        .16725        .91903E-05   -.99166    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.43652e-10
Minuit parameter uncertainties:
  1  49.6919
  2  2.43898
  3  0.267039
  4  0.167359
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/377143': 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) = 6669.75306539
delta logL = 0.00583463747626

Extracting fit parameters...

4FGL J2235.1-0623
   Spectrum: PowerLaw
269    Prefactor:  6.040e+00  4.969e+01  1.000e-04  1.000e+04 ( 1.000e-14)
270        Index:  2.429e+00  2.439e+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:  8.153e-01  1.674e-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.209e+00  2.670e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/377143/cmap_HighResolution_512784001_513043201_4FGL_J2235.1-0623_daily_bin1055.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.23e-03', job_status='DONE', photon_flux_upper_limit='8.21e-08', time_completed='2021-09-28 15:49:23.859510', job_id='377143', GAL2='0.82', fit_tolerance='1e-08', EG2='1.21', EG='1.21', time_epoch_completed='1632869363.86', return_code2='0', ts='0.01', comment='SUCCESS', return_code='0', GAL='0.82', dlogl='5.83e-03', ts2='0.02', photon_index_error='0.00', photon_index='2.15' WHERE bin_id='1055' AND source_name='4FGL J2235.1-0623' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 15:49:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0091>
Subject: Job 377143: <4FGL_J2235.1-0623_daily_bin1055> in cluster <slac> Done

Job <4FGL_J2235.1-0623_daily_bin1055> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 15:35:47 2021
Job was executed on host(s) <bullet0091>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 15:35:48 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:35:48 2021
Terminated at Tue Sep 28 15:49:24 2021
Results reported at Tue Sep 28 15:49:24 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2235.1-0623_daily_bin1055 338.799 -6.3955 512784001 513043201 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 :                                   640.14 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             275.28 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   816 sec.
    Turnaround time :                            817 sec.

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

