/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 1 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 = 7473
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1223.5+0818_daily_bin39
RA = 185.883, Dec = 8.3017
tmin = 249436801, tmax = 249696001
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='543237', job_status='RUN', time_executed='2021-09-05 10:35:42.683196', time_epoch_executed='1630863342.68' WHERE source_name='4FGL J1223.5+0818' and cadence='daily' and bin_id='39'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/543237

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/543237/ft1_4FGL_J1223.5+0818_daily_bin39.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/543237/ft2_4FGL_J1223.5+0818_daily_bin39.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/543237/ft1_4FGL_J1223.5+0818_daily_bin39.fits outfile=/scratch/kocevski/543237/ft1_filteredMKT_4FGL_J1223.5+0818_daily_bin39.fits ra=185.883 dec=8.3017 rad=12.0 tmin=249436801.0 tmax=249696001.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 1.48
user 1.28
sys 0.18

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/543237/ft1_filtered_4FGL_J1223.5+0818_daily_bin39.fits evtable="EVENTS" scfile=/scratch/kocevski/543237/ft2_4FGL_J1223.5+0818_daily_bin39.fits sctable="SC_DATA" expcube=/scratch/kocevski/543237/ltcube_249436801_249696001_4FGL_J1223.5+0818_daily_bin39.fits outfile=/scratch/kocevski/543237/expmap_249436801_249696001_4FGL_J1223.5+0818_daily_bin39.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/543237/ltcube_249436801_249696001_4FGL_J1223.5+0818_daily_bin39.fits
.....................!
real 190.64
user 185.61
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/543237/ft1_filtered_4FGL_J1223.5+0818_daily_bin39.fits scfile=/scratch/kocevski/543237/ft2_4FGL_J1223.5+0818_daily_bin39.fits outfile=/scratch/kocevski/543237/cmap_249436801_249696001_4FGL_J1223.5+0818_daily_bin39.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.56
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/543237/ft1_filtered_4FGL_J1223.5+0818_daily_bin39.fits scfile=/scratch/kocevski/543237/ft2_4FGL_J1223.5+0818_daily_bin39.fits outfile=/scratch/kocevski/543237/cmap_HighResolution_249436801_249696001_4FGL_J1223.5+0818_daily_bin39.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.54
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    39.766       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.1455       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-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      '    .10017E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    31.617       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    4.6315       1.0000         .10000E-03   10000.    
    19 'Prefactor '    10.602       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    4.2110       1.0000         .10000E-03   10000.    
    23 'Prefactor '    17.086       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10105E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    7.9522       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .90717E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.1805       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.0165       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=   6566.071     FROM MIGRAD    STATUS=CONVERGED    730 CALLS     3690 TOTAL
                     EDM=   .38E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    53.922        .53737E-06** at limit **
   2  Prefactor     .10000E-03    52.502       -.70254E-06** at limit **
   3  Prefactor     .10000E-03    19.519        .18925E-05** at limit **
   4  Prefactor     .10000E-03    5.1394       -.10991E-06** at limit **
   5  Prefactor     .10000E-03    6.5519        .37428E-06** at limit **
   6  Prefactor     39.798        102.89        .69380E-05    .62144E-04
   7  Prefactor     .10000E-03    10.702       -.38345E-06** at limit **
   8  Prefactor     5.1458        15.917        .59089E-05   -.10712E-03
   9  Prefactor     .10000E-03    1.4877       -.23402E-08** at limit **
  10  Prefactor     .10000E-03    1.0815        .68259E-08** at limit **
  11  Prefactor     .10000E-03    9.9001       -.13472E-07** at limit **
  12  Prefactor     .10000E-03    3.9079       -.72980E-07** at limit **
  13  norm          .10000E-03    .75873       -.35872E-07** at limit **
  14  norm          .10000E-03    2.4303        .81215E-06** at limit **
  15  Prefactor     .10000E-03    9.8322        .19465E-06** at limit **
  16  norm          31.649        39.105        .18873E-05    .11515E-03
  17  Prefactor     .10000E-03    125.84       -.23451E-05** at limit **
  18  norm          4.6322        .83994       -.77899E-07   -.19701E-02
  19  Prefactor     10.602        10.295        .13522E-06   -.11238E-04
  20  Prefactor     .10000E-03    27.441       -.18451E-06** at limit **
  21  Prefactor     .10000E-03    12.541        .79014E-06** at limit **
  22  norm          4.2112        1.9588        .40839E-07   -.29994E-03
  23  Prefactor     17.085        11.450        .44371E-06   -.67941E-04
  24  Prefactor     .10000E-03    112.69        .28086E-05** at limit **
  25  Prefactor     .10000E-03    15.267       -.99259E-06** at limit **
  26  Prefactor     7.9468        11.860        .43209E-06    .48820E-04
  27  Prefactor     .10004E-03    8.2805       -.67859E-06** at limit **
  28  Normalizat    1.1805        .21348       -.16024E-05   -.76333E-04
  29  Prefactor     1.0165        .17824        .27261E-06   -.16341E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 39.798
  Prefactor  = 0.0001
  Prefactor  = 5.14582
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.000100001
  Prefactor  = 0.0001
  norm       = 31.649
  Prefactor  = 0.000100002
  norm       = 4.63222
  Prefactor  = 10.6021
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.21115
  Prefactor  = 17.0849
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 7.94677
  Prefactor  = 0.000100037
  Normalizat = 1.18046
  Prefactor  = 1.01652
 **********
 **   18 **HESSE 
 **********

 FCN=   6566.071     FROM HESSE     STATUS=OK           541 CALLS     4231 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    55.071        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    52.583        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    19.639        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    5.2007        .17938E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    6.5519        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     39.798        104.70        .63563E-04   -1.4445    
   7  Prefactor     .10000E-03    10.719        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     5.1458        16.372        .88616E-03   -1.5254    
   9  Prefactor     .10000E-03    1.5239        .19292E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    1.0933        .82266E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    9.9077        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    3.9201        .15643E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    .76952        .68916E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    4.0609        .23060E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    9.8397        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          31.649        39.611        .71259E-04   -1.4582    
  17  Prefactor     .10000E-03    126.51        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          4.6322        .83945        .28721E-04   -1.5277    
  19  Prefactor     10.602        10.295        .12305E-03   -1.5057    
  20  Prefactor     .10000E-03    27.524        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    13.029        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          4.2112        1.9559        .73002E-04   -1.5298    
  23  Prefactor     17.085        11.455        .48448E-03   -1.4881    
  24  Prefactor     .10000E-03    115.94        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    15.364        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     7.9468        11.710        .14219E-03   -1.5144    
  27  Prefactor     .10004E-03    39.701        .43814E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.1805        .24978        .28026E-03   -.87209    
  29  Prefactor     1.0165        .21004        .26255E-03   -.92181    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.66038e-09
Minuit parameter uncertainties:
  1  0.000188975
  2  0.000196215
  3  3.93887e-06
  4  4.5116e-06
  5  1.84244e-05
  6  105.185
  7  4.62363e-05
  8  16.3858
  9  2.8787e-06
  10  1.53095e-06
  11  7.49309e-06
  12  3.68569e-06
  13  5.26908e-07
  14  0.000141212
  15  2.20607e-05
  16  39.6435
  17  0.000993395
  18  0.839447
  19  10.2965
  20  6.41282e-06
  21  0.000104445
  22  1.95591
  23  11.4565
  24  0.00119744
  25  0.000141051
  26  11.713
  27  0.00241295
  28  0.250037
  29  0.210214
Done.

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

Extracting fit parameters...

4FGL J1223.5+0818
   Spectrum: PowerLaw
320    Prefactor:  1.000e-04  2.206e-05  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.017e+00  2.102e-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.180e+00  2.500e-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: 4.07e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.03e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/543237/likelihoodResults_249436801_249696001_4FGL_J1223.5+0818_daily_bin39.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) = 6566.07194743
delta logL = -0.000479984189951

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6566.07146717
delta logL = 2.7854275686e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.8838       1.0000          .0000       10.000    
     3 'Normalizat'    1.1804       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0165       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=   6566.071     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      247 TOTAL
                     EDM=   .47E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10246E-03    3.9515        .18142E-01** at limit **
   2  Index         1.8080        5.0952        .50000        .22899E-04
   3  Normalizat    1.1805        .29671E-02    .28026E-03    .18542E-03
   4  Prefactor     1.0165        .26162E-02    .26255E-03   -.34944E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000102465
  Index      = 1.80802
  Normalizat = 1.18047
  Prefactor  = 1.01652
 **********
 **   18 **HESSE 
 **********

 FCN=   6566.071     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      276 TOTAL
                     EDM=   .61E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10246E-03    52.094        .26935E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8080        5.4799        .50000       -.69241    
   3  Normalizat    1.1805        .10819E-01    .11210E-04   -.87209    
   4  Prefactor     1.0165        .95392E-02    .10502E-04   -.92181    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.06791e-09
Minuit parameter uncertainties:
  1  0.0226829
  2  174.923
  3  0.0108188
  4  0.00953925
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/543237': 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): 102
logL (Free Index) = 6566.07146679
delta logL = 6.64284016239e-07

Extracting fit parameters...

4FGL J1223.5+0818
   Spectrum: PowerLaw
320    Prefactor:  1.025e-04  2.268e-02  1.000e-04  1.000e+04 ( 1.000e-14)
321        Index:  1.808e+00  1.749e+02  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.017e+00  9.539e-03  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.180e+00  1.082e-02  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 -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/543237/cmap_HighResolution_249436801_249696001_4FGL_J1223.5+0818_daily_bin39.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.03e-03', job_status='DONE', photon_flux_upper_limit='4.07e-08', time_completed='2021-09-05 10:49:57.466278', job_id='543237', GAL2='1.02', fit_tolerance='1e-08', EG2='1.18', EG='1.18', time_epoch_completed='1630864197.47', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.02', dlogl='6.64e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.92' WHERE bin_id='39' AND source_name='4FGL J1223.5+0818' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 10:49:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0047>
Subject: Job 543237: <4FGL_J1223.5+0818_daily_bin39> in cluster <slac> Done

Job <4FGL_J1223.5+0818_daily_bin39> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Sun Sep  5 10:35:31 2021
Job was executed on host(s) <bullet0047>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 10:35:32 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:35:32 2021
Terminated at Sun Sep  5 10:49:58 2021
Results reported at Sun Sep  5 10:49:58 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1223.5+0818_daily_bin39 185.883 8.3017 249436801 249696001 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 :                                   853.20 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             337.36 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   865 sec.
    Turnaround time :                            867 sec.

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

