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


Performing analysis on: 4FGL_J1223.5+0818_daily_bin921
RA = 185.883, Dec = 8.3017
tmin = 478051201, tmax = 478310401
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='548208', job_status='RUN', time_executed='2021-09-05 10:51:09.074937', time_epoch_executed='1630864269.07' WHERE source_name='4FGL J1223.5+0818' and cadence='daily' and bin_id='921'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/548208

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/548208/ft1_4FGL_J1223.5+0818_daily_bin921.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/548208/ft2_4FGL_J1223.5+0818_daily_bin921.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/548208/ft1_4FGL_J1223.5+0818_daily_bin921.fits outfile=/scratch/kocevski/548208/ft1_filteredMKT_4FGL_J1223.5+0818_daily_bin921.fits ra=185.883 dec=8.3017 rad=12.0 tmin=478051201.0 tmax=478310401.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 3.58
user 3.31
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/548208/ft2_4FGL_J1223.5+0818_daily_bin921.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/548208/ft2_4FGL_J1223.5+0818_daily_bin921.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/548208/ft1_filteredMKT_4FGL_J1223.5+0818_daily_bin921.fits evtable="EVENTS" outfile="/scratch/kocevski/548208/ft1_filtered_4FGL_J1223.5+0818_daily_bin921.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.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/548208/ft1_filtered_4FGL_J1223.5+0818_daily_bin921.fits" evtable="EVENTS" scfile=/scratch/kocevski/548208/ft2_4FGL_J1223.5+0818_daily_bin921.fits sctable="SC_DATA" outfile=/scratch/kocevski/548208/ltcube_478051201_478310401_4FGL_J1223.5+0818_daily_bin921.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/548208/ft2_4FGL_J1223.5+0818_daily_bin921.fits
.....................!
real 12.45
user 12.06
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/548208/ft1_filtered_4FGL_J1223.5+0818_daily_bin921.fits evtable="EVENTS" scfile=/scratch/kocevski/548208/ft2_4FGL_J1223.5+0818_daily_bin921.fits sctable="SC_DATA" expcube=/scratch/kocevski/548208/ltcube_478051201_478310401_4FGL_J1223.5+0818_daily_bin921.fits outfile=/scratch/kocevski/548208/expmap_478051201_478310401_4FGL_J1223.5+0818_daily_bin921.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/548208/ltcube_478051201_478310401_4FGL_J1223.5+0818_daily_bin921.fits
.....................!
real 192.85
user 187.73
sys 4.68

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 184 point sources and 0 extended sources

Setting source of interest to:
4FGL J1223.5+0818 @ 185.883 8.3017

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/548208/ft1_filtered_4FGL_J1223.5+0818_daily_bin921.fits scfile=/scratch/kocevski/548208/ft2_4FGL_J1223.5+0818_daily_bin921.fits outfile=/scratch/kocevski/548208/cmap_478051201_478310401_4FGL_J1223.5+0818_daily_bin921.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=185.883 yref=8.3017 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.55
user 0.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/548208/ft1_filtered_4FGL_J1223.5+0818_daily_bin921.fits scfile=/scratch/kocevski/548208/ft2_4FGL_J1223.5+0818_daily_bin921.fits outfile=/scratch/kocevski/548208/cmap_HighResolution_478051201_478310401_4FGL_J1223.5+0818_daily_bin921.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=185.883 yref=8.3017 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.55
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/548208/ft1_filtered_4FGL_J1223.5+0818_daily_bin921.fits evtable="EVENTS" scfile=/scratch/kocevski/548208/ft2_4FGL_J1223.5+0818_daily_bin921.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/548208/Model_4FGL_J1223.5+0818_daily_bin921.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/548208/ft1_filtered_4FGL_J1223.5+0818_daily_bin921.fits.....................!
real 58.07
user 56.68
sys 1.17

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/548208/ft1_filtered_4FGL_J1223.5+0818_daily_bin921.fits', '/scratch/kocevski/548208/ft2_4FGL_J1223.5+0818_daily_bin921.fits', expMap='/scratch/kocevski/548208/expmap_478051201_478310401_4FGL_J1223.5+0818_daily_bin921.fits', expCube='/scratch/kocevski/548208/ltcube_478051201_478310401_4FGL_J1223.5+0818_daily_bin921.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/548208/Model_4FGL_J1223.5+0818_daily_bin921.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1223.5+0818'

4FGL J1223.5+0818
   Spectrum: PowerLaw
320    Prefactor:  2.243e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
321        Index:  1.922e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
322        Scale:  3.064e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/548208/ft1_filtered_4FGL_J1223.5+0818_daily_bin921.fits
Spacecraft file(s): /scratch/kocevski/548208/ft2_4FGL_J1223.5+0818_daily_bin921.fits
Exposure map: /scratch/kocevski/548208/expmap_478051201_478310401_4FGL_J1223.5+0818_daily_bin921.fits
Exposure cube: /scratch/kocevski/548208/ltcube_478051201_478310401_4FGL_J1223.5+0818_daily_bin921.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/548208/Model_4FGL_J1223.5+0818_daily_bin921.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) = 6457.26542827

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 'Prefactor '    110.08       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    9.9055       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10218E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    23.979       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .13221E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    4.2762       1.0000         .10000E-03   10000.    
    14 'norm      '    8.7902       1.0000         .10000E-03   10000.    
    15 'Prefactor '    12.728       1.0000         .10000E-03   10000.    
    16 'norm      '    50.994       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .65717       1.0000         .10000E-03   10000.    
    19 'Prefactor '    5.5035       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    18.029       1.0000         .10000E-03   10000.    
    22 'norm      '    1.9718       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10058E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    100.62       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10757E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    3.5544       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.2680       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .85424       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5980E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6456.562     FROM MIGRAD    STATUS=CONVERGED    721 CALLS     3726 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7.4784        .15263E-05** at limit **
   2  Prefactor     110.09        109.49        .56571E-05    .14902E-03
   3  Prefactor     .10000E-03    2.8439        .53275E-07** at limit **
   4  Prefactor     9.9057        7.6449        .58345E-08   -.73403E-05
   5  Prefactor     .10000E-03    6.5301        .16255E-05** at limit **
   6  Prefactor     .10000E-03    92.626       -.28555E-05** at limit **
   7  Prefactor     .10000E-03    15.374       -.13399E-05** at limit **
   8  Prefactor     23.979        22.219        .45576E-07   -.11256E-04
   9  Prefactor     .10000E-03    1.5190        .10677E-06** at limit **
  10  Prefactor     .10000E-03    .81915        .79851E-08** at limit **
  11  Prefactor     .10001E-03    25.386       -.63140E-05** at limit **
  12  Prefactor     .10000E-03    9.5698       -.17813E-06** at limit **
  13  norm          4.2761        2.9467        .43249E-07   -.53492E-04
  14  norm          8.7916        5.2294        .26450E-06   -.17268E-03
  15  Prefactor     12.714        26.059       -.20746E-05   -.13171E-03
  16  norm          50.987        47.609       -.27172E-05   -.19454E-03
  17  Prefactor     .10001E-03    37.023        .55667E-05** at limit **
  18  norm          .65729        .57237        .55244E-07   -.83344E-04
  19  Prefactor     5.5040        5.5666       -.71638E-06    .89646E-03
  20  Prefactor     .10000E-03    6.9527       -.16815E-05** at limit **
  21  Prefactor     18.030        12.395        .32472E-06   -.18757E-03
  22  norm          1.9722        1.8254        .12022E-06   -.23323E-03
  23  Prefactor     .10000E-03    15.130       -.12533E-05** at limit **
  24  Prefactor     .10001E-03    17.420        .51835E-05** at limit **
  25  Prefactor     100.62        57.200       -.25734E-06    .26378E-05
  26  Prefactor     .10000E-03    6.7776       -.13893E-05** at limit **
  27  Prefactor     3.5554        10.932        .59629E-05   -.85029E-03
  28  Normalizat    1.2678        .21150       -.10487E-05    .34428E-04
  29  Prefactor     .85444        .17177       -.25892E-07   -.30730E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 110.094
  Prefactor  = 0.0001
  Prefactor  = 9.90567
  Prefactor  = 0.000100001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 23.9794
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100009
  Prefactor  = 0.0001
  norm       = 4.27611
  norm       = 8.79156
  Prefactor  = 12.7138
  norm       = 50.9865
  Prefactor  = 0.000100008
  norm       = 0.657293
  Prefactor  = 5.50405
  Prefactor  = 0.000100001
  Prefactor  = 18.0295
  norm       = 1.97223
  Prefactor  = 0.0001
  Prefactor  = 0.000100007
  Prefactor  = 100.619
  Prefactor  = 0.0001
  Prefactor  = 3.5554
  Normalizat = 1.26779
  Prefactor  = 0.854443
 **********
 **   18 **HESSE 
 **********

 FCN=   6456.562     FROM HESSE     STATUS=OK           551 CALLS     4277 TOTAL
                     EDM=   .62E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7.5270        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     110.09        110.37        .38337E-04   -1.3606    
   3  Prefactor     .10000E-03    2.8456        .13233E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     9.9057        7.6449        .12732E-03   -1.5078    
   5  Prefactor     .10000E-03    6.5880        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    92.950        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    15.425        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     23.979        22.206        .81801E-04   -1.4728    
   9  Prefactor     .10000E-03    5.5385        .18999E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    .82139        .70993E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10001E-03    26.195        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    9.6056        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          4.2761        2.9365        .10853E-03   -1.5294    
  14  norm          8.7916        5.2224        .11459E-03   -1.5115    
  15  Prefactor     12.714        26.180        .11228E-03   -1.4995    
  16  norm          50.987        48.043        .56160E-04   -1.4279    
  17  Prefactor     .10001E-03    37.648        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .65729        .53747        .50339E-03   -1.5546    
  19  Prefactor     5.5040        5.6755        .85634E-03   -1.5239    
  20  Prefactor     .10000E-03    7.0090        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     18.030        12.376        .47163E-03   -1.4858    
  22  norm          1.9722        1.8050        .97435E-04   -1.5427    
  23  Prefactor     .10000E-03    15.440        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10001E-03    17.966        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     100.62        57.265        .40079E-04   -1.3698    
  26  Prefactor     .10000E-03    6.8297        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     3.5554        12.889        .10719E-02   -1.5331    
  28  Normalizat    1.2678        .24546        .27084E-03   -.84533    
  29  Prefactor     .85444        .20004        .27227E-03   -.97752    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.20491e-09
Minuit parameter uncertainties:
  1  0.00013051
  2  110.578
  3  4.00775e-07
  4  7.64562
  5  0.000128983
  6  0.000882224
  7  0.000173782
  8  22.2134
  9  2.70889e-05
  10  5.17475e-07
  11  0.000991119
  12  1.52115e-05
  13  2.93659
  14  5.22264
  15  26.2036
  16  48.0799
  17  0.00107417
  18  0.537475
  19  5.67607
  20  0.000137335
  21  12.3774
  22  1.80509
  23  0.00013967
  24  0.000684772
  25  57.2967
  26  0.000108451
  27  12.8989
  28  0.245686
  29  0.200213
Done.

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

Extracting fit parameters...

4FGL J1223.5+0818
   Spectrum: PowerLaw
320    Prefactor:  1.271e+01  2.620e+01  1.000e-04  1.000e+04 ( 1.000e-14)
321        Index:  1.922e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
322        Scale:  3.064e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
595    Prefactor:  8.544e-01  2.002e-01  0.000e+00  1.000e+01 ( 1.000e+00)
596        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
597        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
594   Normalization:  1.268e+00  2.457e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.33
Ra Dec: 185.883 8.302
Photon Flux Upper Limit: 7.05e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.25e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/548208/likelihoodResults_478051201_478310401_4FGL_J1223.5+0818_daily_bin921.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) = 6456.42617732
delta logL = 0.135394754638

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6456.41954364
delta logL = 0.142028433798

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 FCN=   6456.420     FROM MIGRAD    STATUS=FAILED       108 CALLS      315 TOTAL
                     EDM=   .21E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.9631        574.38        .82033E-03   -.89389E-05
   2  Index         2.6604        5.2448        .85007E-02    .70231E-03
   3  Normalizat    1.2437        .32811        .27303E-03   -.94104E-05
   4  Prefactor     .86449        .22704        .27080E-03   -.92781E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6456.420     FROM SIMPLEX   STATUS=UNCHANGED     94 CALLS      409 TOTAL
                     EDM=   .11E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.9631        574.38        .22123E-03   -.89389E-05
   2  Index         2.6604        5.2448        .12766E-02    .70231E-03
   3  Normalizat    1.2437        .32811        .76864E-04   -.94104E-05
   4  Prefactor     .86449        .22704        .12548E-03   -.92781E-05
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6456.420     FROM MIGRAD    STATUS=CONVERGED     31 CALLS      440 TOTAL
                     EDM=   .41E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.9631        21.156        .32813E-04   -.14552E-04
   2  Index         2.6604        1.5938        .17001E-02   -.24006E-05
   3  Normalizat    1.2437        .24322        .10921E-04   -.93687E-05
   4  Prefactor     .86449        .20076        .10832E-04   -.92361E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.96312
  Index      = 2.66036
  Normalizat = 1.24365
  Prefactor  = 0.864492
 **********
 **   18 **HESSE 
 **********

 FCN=   6456.420     FROM HESSE     STATUS=OK            25 CALLS      465 TOTAL
                     EDM=   .33E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.9631        18.898        .13125E-05   -1.5220    
   2  Index         2.6604        1.4287        .68005E-04   -.48695    
   3  Normalizat    1.2437        .24169        .21842E-05   -.85264    
   4  Prefactor     .86449        .19995        .21664E-05   -.97393    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.27655e-13
Minuit parameter uncertainties:
  1  18.9165
  2  1.45482
  3  0.241911
  4  0.200123
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/548208': 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) = 6456.41953663
delta logL = 0.142035439804

Extracting fit parameters...

4FGL J1223.5+0818
   Spectrum: PowerLaw
320    Prefactor:  5.963e+00  1.892e+01  1.000e-04  1.000e+04 ( 1.000e-14)
321        Index:  2.660e+00  1.455e+00  0.000e+00  1.000e+01 (-1.000e+00)
322        Scale:  3.064e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
595    Prefactor:  8.645e-01  2.001e-01  0.000e+00  1.000e+01 ( 1.000e+00)
596        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
597        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
594   Normalization:  1.244e+00  2.419e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.33
Ra Dec: 185.883 8.302

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/548208/cmap_HighResolution_478051201_478310401_4FGL_J1223.5+0818_daily_bin921.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.25e-03', job_status='DONE', photon_flux_upper_limit='7.05e-08', time_completed='2021-09-05 11:05:24.579975', job_id='548208', GAL2='0.86', fit_tolerance='1e-08', EG2='1.24', EG='1.27', time_epoch_completed='1630865124.58', return_code2='0', ts='0.33', comment='SUCCESS', return_code='0', GAL='0.85', dlogl='1.42e-01', ts2='0.61', photon_index_error='0.00', photon_index='1.92' WHERE bin_id='921' AND source_name='4FGL J1223.5+0818' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 11:05:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0038>
Subject: Job 548208: <4FGL_J1223.5+0818_daily_bin921> in cluster <slac> Done

Job <4FGL_J1223.5+0818_daily_bin921> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Sep  5 10:50:51 2021
Job was executed on host(s) <bullet0038>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 10:50:53 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep  5 10:50:53 2021
Terminated at Sun Sep  5 11:05:25 2021
Results reported at Sun Sep  5 11:05:25 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1223.5+0818_daily_bin921 185.883 8.3017 478051201 478310401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1223.5+0818 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   851.18 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             336.33 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   871 sec.
    Turnaround time :                            874 sec.

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

