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


Performing analysis on: 4FGL_J1223.5+0818_daily_bin936
RA = 185.883, Dec = 8.3017
tmin = 481939201, tmax = 482198401
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='548228', job_status='RUN', time_executed='2021-09-05 10:54:27.013236', time_epoch_executed='1630864467.01' WHERE source_name='4FGL J1223.5+0818' and cadence='daily' and bin_id='936'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/548228

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/548228/ft1_4FGL_J1223.5+0818_daily_bin936.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/548228/ft2_4FGL_J1223.5+0818_daily_bin936.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/548228/ft1_4FGL_J1223.5+0818_daily_bin936.fits outfile=/scratch/kocevski/548228/ft1_filteredMKT_4FGL_J1223.5+0818_daily_bin936.fits ra=185.883 dec=8.3017 rad=12.0 tmin=481939201.0 tmax=482198401.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.57
user 3.34
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/548228/ft2_4FGL_J1223.5+0818_daily_bin936.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/548228/ft1_filteredMKT_4FGL_J1223.5+0818_daily_bin936.fits evtable="EVENTS" outfile="/scratch/kocevski/548228/ft1_filtered_4FGL_J1223.5+0818_daily_bin936.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.49
user 0.31
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/548228/ft1_filtered_4FGL_J1223.5+0818_daily_bin936.fits" evtable="EVENTS" scfile=/scratch/kocevski/548228/ft2_4FGL_J1223.5+0818_daily_bin936.fits sctable="SC_DATA" outfile=/scratch/kocevski/548228/ltcube_481939201_482198401_4FGL_J1223.5+0818_daily_bin936.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/548228/ft2_4FGL_J1223.5+0818_daily_bin936.fits
.....................!
real 11.75
user 11.37
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/548228/ft1_filtered_4FGL_J1223.5+0818_daily_bin936.fits evtable="EVENTS" scfile=/scratch/kocevski/548228/ft2_4FGL_J1223.5+0818_daily_bin936.fits sctable="SC_DATA" expcube=/scratch/kocevski/548228/ltcube_481939201_482198401_4FGL_J1223.5+0818_daily_bin936.fits outfile=/scratch/kocevski/548228/expmap_481939201_482198401_4FGL_J1223.5+0818_daily_bin936.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/548228/ltcube_481939201_482198401_4FGL_J1223.5+0818_daily_bin936.fits
.....................!
real 190.30
user 185.09
sys 4.86

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/548228/ft1_filtered_4FGL_J1223.5+0818_daily_bin936.fits scfile=/scratch/kocevski/548228/ft2_4FGL_J1223.5+0818_daily_bin936.fits outfile=/scratch/kocevski/548228/cmap_481939201_482198401_4FGL_J1223.5+0818_daily_bin936.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.54
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/548228/ft1_filtered_4FGL_J1223.5+0818_daily_bin936.fits scfile=/scratch/kocevski/548228/ft2_4FGL_J1223.5+0818_daily_bin936.fits outfile=/scratch/kocevski/548228/cmap_HighResolution_481939201_482198401_4FGL_J1223.5+0818_daily_bin936.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.38
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/548228/ft1_filtered_4FGL_J1223.5+0818_daily_bin936.fits', '/scratch/kocevski/548228/ft2_4FGL_J1223.5+0818_daily_bin936.fits', expMap='/scratch/kocevski/548228/expmap_481939201_482198401_4FGL_J1223.5+0818_daily_bin936.fits', expCube='/scratch/kocevski/548228/ltcube_481939201_482198401_4FGL_J1223.5+0818_daily_bin936.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/548228/Model_4FGL_J1223.5+0818_daily_bin936.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/548228/ft1_filtered_4FGL_J1223.5+0818_daily_bin936.fits
Spacecraft file(s): /scratch/kocevski/548228/ft2_4FGL_J1223.5+0818_daily_bin936.fits
Exposure map: /scratch/kocevski/548228/expmap_481939201_482198401_4FGL_J1223.5+0818_daily_bin936.fits
Exposure cube: /scratch/kocevski/548228/ltcube_481939201_482198401_4FGL_J1223.5+0818_daily_bin936.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/548228/Model_4FGL_J1223.5+0818_daily_bin936.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) = 6445.25046454

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    12.195       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10227E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    30.629       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .35618       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .12346E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    2.7176       1.0000         .10000E-03   10000.    
    15 'Prefactor '    37.329       1.0000         .10000E-03   10000.    
    16 'norm      '    14.033       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    3.8319       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    18.686       1.0000         .10000E-03   10000.    
    22 'norm      '    .13761E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    9.8342       1.0000         .10000E-03   10000.    
    25 'Prefactor '    47.349       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10070E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.2200       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .68002       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=   6445.233     FROM MIGRAD    STATUS=CONVERGED    727 CALLS     3767 TOTAL
                     EDM=   .38E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7.3258        .20547E-05** at limit **
   2  Prefactor     .10000E-03    36.457        .11215E-04** at limit **
   3  Prefactor     .10000E-03    3.0741        .90714E-07** at limit **
   4  Prefactor     .10000E-03    4.5154       -.86076E-06** at limit **
   5  Prefactor     12.186        18.577       -.25692E-05    .26804E-04
   6  Prefactor     .10000E-03    43.505       -.15374E-04** at limit **
   7  Prefactor     .10000E-03    13.557        .20601E-05** at limit **
   8  Prefactor     30.629        18.079        .34110E-07   -.12787E-03
   9  Prefactor     .36244        1.8097       -.10869E-05    .22411E-03
  10  Prefactor     .10000E-03    2.1973        .10141E-05** at limit **
  11  Prefactor     .10000E-03    9.8915       -.41014E-06** at limit **
  12  Prefactor     .10000E-03    3.6432       -.93743E-09** at limit **
  13  norm          .10000E-03    1.1621        .14974E-06** at limit **
  14  norm          2.7167        3.2913       -.42353E-06   -.57691E-03
  15  Prefactor     37.329        29.894       -.10727E-06    .12776E-04
  16  norm          14.037        23.231        .30563E-05   -.12385E-05
  17  Prefactor     .10000E-03    39.080        .35264E-05** at limit **
  18  norm          3.8319        .72584        .21251E-07    .43569E-04
  19  Prefactor     .10000E-03    8.7474       -.37102E-05** at limit **
  20  Prefactor     .10000E-03    12.263        .44815E-05** at limit **
  21  Prefactor     18.687        10.116        .13709E-06   -.37083E-04
  22  norm          .10000E-03    .66927       -.53502E-07** at limit **
  23  Prefactor     .10000E-03    2.2863        .46410E-07** at limit **
  24  Prefactor     9.8342        17.325        .15308E-07   -.12337E-04
  25  Prefactor     47.368        45.547        .21336E-04    .15487E-03
  26  Prefactor     .10001E-03    17.680       -.11865E-04** at limit **
  27  Prefactor     .10000E-03    25.618        .50878E-05** at limit **
  28  Normalizat    1.2202        .18571        .11074E-09    .11810E-03
  29  Prefactor     .67989        .15163       -.14560E-05    .97963E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.1859
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 30.6288
  Prefactor  = 0.362441
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 2.71675
  Prefactor  = 37.3288
  norm       = 14.037
  Prefactor  = 0.0001
  norm       = 3.83188
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 18.6868
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.83419
  Prefactor  = 47.3684
  Prefactor  = 0.000100008
  Prefactor  = 0.0001
  Normalizat = 1.22018
  Prefactor  = 0.679892
 **********
 **   18 **HESSE 
 **********

 FCN=   6445.233     FROM HESSE     STATUS=OK           549 CALLS     4316 TOTAL
                     EDM=   .95E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7.3324        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    36.408        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    3.0788        .13746E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    4.5809        .16652E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     12.186        18.605        .11471E-03   -1.5010    
   6  Prefactor     .10000E-03    43.316        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    13.577        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     30.629        18.045        .36199E-03   -1.4601    
   9  Prefactor     .36244        5.3946        .19117E-02   -1.5588    
  10  Prefactor     .10000E-03    4.5057        .21420E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    9.9024        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    3.6542        .14959E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    1.8963        .16713E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          2.7167        3.2811        .14110E-03   -1.5378    
  15  Prefactor     37.329        29.903        .65598E-04   -1.4485    
  16  norm          14.037        23.222        .10692E-03   -1.4958    
  17  Prefactor     .10000E-03    39.075        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          3.8319        .72435        .26745E-04   -1.5316    
  19  Prefactor     .10000E-03    8.8603        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    12.275        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     18.687        10.115        .92655E-04   -1.4843    
  22  norm          .10000E-03    5.3053        .12448E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    2.2883        .11854E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     9.8342        17.314        .12778E-03   -1.5081    
  25  Prefactor     47.368        45.883        .58272E-04   -1.4330    
  26  Prefactor     .10001E-03    18.692        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    26.073        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.2202        .22206        .24688E-03   -.85981    
  29  Prefactor     .67989        .17923        .26897E-03   -1.0432    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.52216e-10
Minuit parameter uncertainties:
  1  2.84256e-06
  2  1.58918e-05
  3  6.87838e-06
  4  1.15524e-05
  5  18.6136
  6  0.000111882
  7  9.86179e-06
  8  18.0486
  9  2.79649
  10  1.86055e-05
  11  7.67744e-06
  12  1.65699e-06
  13  5.98042e-06
  14  3.28133
  15  29.9146
  16  23.237
  17  3.22163e-06
  18  0.724355
  19  3.26098e-06
  20  8.96917e-06
  21  10.1158
  22  5.32727e-05
  23  5.91581e-07
  24  17.3226
  25  45.917
  26  0.000767581
  27  0.000201818
  28  0.22223
  29  0.179385
Done.

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

Extracting fit parameters...

4FGL J1223.5+0818
   Spectrum: PowerLaw
320    Prefactor:  3.733e+01  2.991e+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:  6.799e-01  1.794e-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.220e+00  2.222e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.36
Ra Dec: 185.883 8.302
Photon Index (Fixed Index): 1.92 +/- 0.00
Photon Flux (Fixed Index): 2.91e-08 +/- 2.33e-08
Energy Flux (Fixed Index): 2.46e-05 +/- 1.97e-05

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) = 6445.22552235
delta logL = 0.00724669684951

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6445.2240464
delta logL = 0.00872265148064

Fit tolerance = 1e-08

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

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

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6445.224     FROM MIGRAD    STATUS=CONVERGED    106 CALLS      303 TOTAL
                     EDM=   .15E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     39.079        34.973        .32059E-03    .11419E-05
   2  Index         1.8204        .80931        .11412E-01    .19186E-04
   3  Normalizat    1.2250        .21432        .24648E-03    .23707E-04
   4  Prefactor     .67852        .17746        .26925E-03    .14820E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 39.0789
  Index      = 1.82037
  Normalizat = 1.22504
  Prefactor  = 0.67852
 **********
 **   18 **HESSE 
 **********

 FCN=   6445.224     FROM HESSE     STATUS=OK            25 CALLS      328 TOTAL
                     EDM=   .64E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     39.079        33.991        .64118E-04   -1.4457    
   2  Index         1.8204        .78601        .45650E-03   -.68921    
   3  Normalizat    1.2250        .21406        .98594E-05   -.85833    
   4  Prefactor     .67852        .17756        .10770E-04   -1.0437    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.39491e-13
Minuit parameter uncertainties:
  1  34.0079
  2  0.791554
  3  0.21421
  4  0.177711
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/548228': 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) = 6445.22404628
delta logL = 0.00872276549308

Extracting fit parameters...

4FGL J1223.5+0818
   Spectrum: PowerLaw
320    Prefactor:  3.908e+01  3.401e+01  1.000e-04  1.000e+04 ( 1.000e-14)
321        Index:  1.820e+00  7.916e-01  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:  6.785e-01  1.777e-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.225e+00  2.142e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.36
Ra Dec: 185.883 8.302
Photon Index (Free Index): 1.82 +/- 0.79
Photon Flux (Free Index): 2.41e-08 +/- 4.18e-08
Energy Flux (Free Index): 2.72e-05 +/- 3.18e-05

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/548228/cmap_HighResolution_481939201_482198401_4FGL_J1223.5+0818_daily_bin936.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.91e-08', energy_flux2='2.72e-05', photon_flux_error='2.33e-08', dlogl='8.72e-03', energy_flux='2.46e-05', photon_flux2='2.41e-08', job_status='DONE', time_completed='2021-09-05 11:06:47.078293', photon_index_error2='0.79', photon_index2='1.82', ts='8.36', fit_tolerance='1e-08', GAL='0.68', photon_index_error='0.00', energy_flux_error2='3.18e-05', EG='1.22', time_epoch_completed='1630865207.08', return_code='0', job_id='548228', GAL2='0.68', EG2='1.23', return_code2='0', energy_flux_error='1.97e-05', photon_flux_error2='4.18e-08', ts2='8.36', photon_index='1.92' WHERE bin_id='936' AND source_name='4FGL J1223.5+0818' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 11:06:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0235>
Subject: Job 548228: <4FGL_J1223.5+0818_daily_bin936> in cluster <slac> Done

Job <4FGL_J1223.5+0818_daily_bin936> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Sep  5 10:50:53 2021
Job was executed on host(s) <bullet0235>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 10:50:54 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:54 2021
Terminated at Sun Sep  5 11:06:47 2021
Results reported at Sun Sep  5 11:06:47 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1223.5+0818_daily_bin936 185.883 8.3017 481939201 482198401 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 :                                   738.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             276.41 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   953 sec.
    Turnaround time :                            954 sec.

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

