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


Performing analysis on: 4FGL_J1223.5+0818_daily_bin974
RA = 185.883, Dec = 8.3017
tmin = 491788801, tmax = 492048001
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='548266', job_status='RUN', time_executed='2021-09-05 10:53:48.053339', time_epoch_executed='1630864428.05' WHERE source_name='4FGL J1223.5+0818' and cadence='daily' and bin_id='974'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/548266

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/548266/ft1_4FGL_J1223.5+0818_daily_bin974.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/548266/ft2_4FGL_J1223.5+0818_daily_bin974.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/548266/ft1_4FGL_J1223.5+0818_daily_bin974.fits outfile=/scratch/kocevski/548266/ft1_filteredMKT_4FGL_J1223.5+0818_daily_bin974.fits ra=185.883 dec=8.3017 rad=12.0 tmin=491788801.0 tmax=492048001.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.23
user 4.02
sys 0.19

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/548266/ft1_filtered_4FGL_J1223.5+0818_daily_bin974.fits evtable="EVENTS" scfile=/scratch/kocevski/548266/ft2_4FGL_J1223.5+0818_daily_bin974.fits sctable="SC_DATA" expcube=/scratch/kocevski/548266/ltcube_491788801_492048001_4FGL_J1223.5+0818_daily_bin974.fits outfile=/scratch/kocevski/548266/expmap_491788801_492048001_4FGL_J1223.5+0818_daily_bin974.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/548266/ltcube_491788801_492048001_4FGL_J1223.5+0818_daily_bin974.fits
.....................!
real 190.59
user 185.31
sys 4.90

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/548266/ft1_filtered_4FGL_J1223.5+0818_daily_bin974.fits scfile=/scratch/kocevski/548266/ft2_4FGL_J1223.5+0818_daily_bin974.fits outfile=/scratch/kocevski/548266/cmap_491788801_492048001_4FGL_J1223.5+0818_daily_bin974.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.37
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    118.50       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10100E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10743E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10331E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    15.863       1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.1078       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    21.365       1.0000         .10000E-03   10000.    
    12 'Prefactor '    9.9465       1.0000         .10000E-03   10000.    
    13 'norm      '    2.8574       1.0000         .10000E-03   10000.    
    14 'norm      '    1.4601       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .11267E-02   1.0000         .10000E-03   10000.    
    16 'norm      '    .16081E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    369.26       1.0000         .10000E-03   10000.    
    18 'norm      '    2.5160       1.0000         .10000E-03   10000.    
    19 'Prefactor '    19.100       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .83644E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .13347E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    19.111       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10431E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .11589E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10714E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .12063E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .83456       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.2653       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=   4230.964     FROM MIGRAD    STATUS=CONVERGED    735 CALLS     4736 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8.4391       -.17099E-06** at limit **
   2  Prefactor     118.61        102.21        .10343E-05    .99719E-04
   3  Prefactor     .10000E-03    7.5359        .65418E-06** at limit **
   4  Prefactor     .10000E-03    2.6540       -.11951E-07** at limit **
   5  Prefactor     .10000E-03    11.688        .56726E-07** at limit **
   6  Prefactor     .10000E-03    56.889        .14072E-06** at limit **
   7  Prefactor     .10000E-03    25.488        .54051E-06** at limit **
   8  Prefactor     15.880        24.717        .91827E-08    .46308E-04
   9  Prefactor     1.1084        3.7142        .14553E-05    .62268E-03
  10  Prefactor     .10000E-03    1.4730       -.56400E-07** at limit **
  11  Prefactor     21.270        45.617        .13476E-05    .15310E-03
  12  Prefactor     9.9438        12.371        .53091E-07    .15128E-03
  13  norm          2.8574        2.7259       -.40302E-07    .19784E-03
  14  norm          1.4820        8.8376        .11019E-05    .31874E-03
  15  Prefactor     .10001E-03    234.81        .35957E-05** at limit **
  16  norm          .10000E-03    62.365        .24116E-06** at limit **
  17  Prefactor     369.33        259.71        .33734E-05    .11743E-03
  18  norm          2.5143        .98417        .98386E-07    .21950E-02
  19  Prefactor     19.102        21.189       -.17676E-06    .74141E-05
  20  Prefactor     .10000E-03    20.803       -.24868E-06** at limit **
  21  Prefactor     .10000E-03    10.924       -.25766E-05** at limit **
  22  norm          .10008E-03    2.9247        .16962E-05** at limit **
  23  Prefactor     19.111        14.028        .11166E-06    .21944E-03
  24  Prefactor     .10000E-03    56.799       -.45404E-06** at limit **
  25  Prefactor     .10000E-03    46.266       -.21237E-06** at limit **
  26  Prefactor     .10000E-03    18.196       -.20099E-06** at limit **
  27  Prefactor     .10000E-03    52.213       -.94784E-06** at limit **
  28  Normalizat    .83407        .29074       -.35342E-05    .22092E-03
  29  Prefactor     1.2654        .23803        .32026E-05    .42487E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 118.613
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.8802
  Prefactor  = 1.10837
  Prefactor  = 0.0001
  Prefactor  = 21.2704
  Prefactor  = 9.94379
  norm       = 2.85743
  norm       = 1.48199
  Prefactor  = 0.000100005
  norm       = 0.0001
  Prefactor  = 369.333
  norm       = 2.51428
  Prefactor  = 19.1017
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  norm       = 0.000100078
  Prefactor  = 19.111
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Normalizat = 0.834074
  Prefactor  = 1.26539
 **********
 **   18 **HESSE 
 **********

 FCN=   4230.964     FROM HESSE     STATUS=OK           545 CALLS     5281 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8.4499        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     118.61        102.49        .18483E-03   -1.3525    
   3  Prefactor     .10000E-03    7.5563        .17447E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    2.6593        .10348E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    11.701        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    56.896        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    25.531        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     15.880        24.678        .10056E-03   -1.4911    
   9  Prefactor     1.1084        3.7289        .22701E-03   -1.5497    
  10  Prefactor     .10000E-03    1.4743        .77107E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     21.270        44.043        .86654E-04   -1.4785    
  12  Prefactor     9.9438        12.312        .12706E-03   -1.5077    
  13  norm          2.8574        2.7126        .95607E-04   -1.5370    
  14  norm          1.4820        7.4846        .26612E-03   -1.5464    
  15  Prefactor     .10001E-03    237.47        .20682E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    62.404        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     369.33        259.24        .10606E-03   -1.1840    
  18  norm          2.5143        .94958        .32419E-04   -1.5391    
  19  Prefactor     19.102        21.193        .91645E-04   -1.4834    
  20  Prefactor     .10000E-03    20.817        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    29.781        .37893E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10008E-03    8.4682        .14149E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     19.111        13.893        .91618E-04   -1.4833    
  24  Prefactor     .10000E-03    56.984        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    46.292        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    18.288        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    53.008        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .83407        .32628        .34631E-03   -.98817    
  29  Prefactor     1.2654        .27112        .24558E-03   -.84342    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.04654e-08
Minuit parameter uncertainties:
  1  3.46838e-05
  2  102.647
  3  8.20988e-05
  4  1.82575e-06
  5  6.1942e-06
  6  3.82611e-05
  7  0.000148609
  8  24.6934
  9  3.72964
  10  4.54731e-06
  11  44.1099
  12  12.3151
  13  2.71274
  14  6.66205
  15  0.0022355
  16  6.73496e-06
  17  260.063
  18  0.949582
  19  21.2016
  20  9.33146e-05
  21  0.000474446
  22  0.00162472
  23  13.8952
  24  0.000246281
  25  0.00010361
  26  2.78181e-05
  27  0.000355154
  28  0.32705
  29  0.271424
Done.

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

Extracting fit parameters...

4FGL J1223.5+0818
   Spectrum: PowerLaw
320    Prefactor:  1.000e-04  2.236e-03  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:  1.265e+00  2.714e-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:  8.341e-01  3.270e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 185.883 8.302
Photon Flux Upper Limit: 1.17e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.73e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/548266/likelihoodResults_491788801_492048001_4FGL_J1223.5+0818_daily_bin974.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) = 4230.96411212
delta logL = -1.99183587029e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4230.53174317
delta logL = 0.432349034042

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.3211       1.0000         .10000E-03   10000.    
     2 'Index     '    3.1585       1.0000          .0000       10.000    
     3 'Normalizat'    .74515       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2993       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   4230.532     FROM MIGRAD    STATUS=FAILED        86 CALLS      308 TOTAL
                     EDM=   .31E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.3190        243.80        .14288E-03   -.19053E-02
   2  Index         3.1587        6.5768        .42224E-02   -.66804E-03
   3  Normalizat    .74506        .33635        .36409E-03   -.57952E-03
   4  Prefactor     1.2993        .28277        .24244E-03   -.78952E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   4230.532     FROM SIMPLEX   STATUS=UNCHANGED     90 CALLS      398 TOTAL
                     EDM=   .12E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.3190        243.80        .24122E-03   -.19053E-02
   2  Index         3.1587        6.5768        .90744E-03   -.66804E-03
   3  Normalizat    .74506        .33635        .55660E-03   -.57952E-03
   4  Prefactor     1.2993        .28277        .34463E-03   -.78952E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4230.532     FROM MIGRAD    STATUS=CONVERGED     33 CALLS      431 TOTAL
                     EDM=   .44E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.3186        13.418        .57153E-05   -.84738E-04
   2  Index         3.1588        1.0880        .16889E-03   -.22617E-04
   3  Normalizat    .74506        .32638        .72819E-04   -.23418E-05
   4  Prefactor     1.2993        .27132        .48487E-04   -.67996E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.31865
  Index      = 3.15877
  Normalizat = 0.745064
  Prefactor  = 1.29932
 **********
 **   18 **HESSE 
 **********

 FCN=   4230.532     FROM HESSE     STATUS=OK            23 CALLS      454 TOTAL
                     EDM=   .44E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.3186        13.139        .11431E-05   -1.5292    
   2  Index         3.1588        1.0659        .67558E-05   -.37712    
   3  Normalizat    .74506        .32608        .29128E-05   -1.0214    
   4  Prefactor     1.2993        .27116        .96974E-05   -.83327    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.40211e-12
Minuit parameter uncertainties:
  1  13.1477
  2  1.07551
  3  0.326933
  4  0.271455
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/548266': 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) = 4230.53174311
delta logL = 0.432349087186

Extracting fit parameters...

4FGL J1223.5+0818
   Spectrum: PowerLaw
320    Prefactor:  4.319e+00  1.315e+01  1.000e-04  1.000e+04 ( 1.000e-14)
321        Index:  3.159e+00  1.076e+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:  1.299e+00  2.715e-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:  7.451e-01  3.269e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
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/548266/cmap_HighResolution_491788801_492048001_4FGL_J1223.5+0818_daily_bin974.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.73e-03', job_status='DONE', photon_flux_upper_limit='1.17e-07', time_completed='2021-09-05 11:05:37.332770', job_id='548266', GAL2='1.30', fit_tolerance='1e-08', EG2='0.75', EG='0.83', time_epoch_completed='1630865137.33', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.27', dlogl='4.32e-01', ts2='0.92', photon_index_error='0.00', photon_index='1.92' WHERE bin_id='974' AND source_name='4FGL J1223.5+0818' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 11:05:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0070>
Subject: Job 548266: <4FGL_J1223.5+0818_daily_bin974> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1223.5+0818_daily_bin974 185.883 8.3017 491788801 492048001 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 :                                   706.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             256.36 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   879 sec.
    Turnaround time :                            884 sec.

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

