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


Performing analysis on: 4FGL_J1223.5+0818_daily_bin603
RA = 185.883, Dec = 8.3017
tmin = 395625601, tmax = 395884801
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='546555', job_status='RUN', time_executed='2021-09-05 10:48:01.009426', time_epoch_executed='1630864081.01' WHERE source_name='4FGL J1223.5+0818' and cadence='daily' and bin_id='603'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/546555

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/546555/ft1_4FGL_J1223.5+0818_daily_bin603.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/546555/ft2_4FGL_J1223.5+0818_daily_bin603.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/546555/ft1_4FGL_J1223.5+0818_daily_bin603.fits outfile=/scratch/kocevski/546555/ft1_filteredMKT_4FGL_J1223.5+0818_daily_bin603.fits ra=185.883 dec=8.3017 rad=12.0 tmin=395625601.0 tmax=395884801.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.55
user 4.24
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/546555/ft1_filtered_4FGL_J1223.5+0818_daily_bin603.fits evtable="EVENTS" scfile=/scratch/kocevski/546555/ft2_4FGL_J1223.5+0818_daily_bin603.fits sctable="SC_DATA" expcube=/scratch/kocevski/546555/ltcube_395625601_395884801_4FGL_J1223.5+0818_daily_bin603.fits outfile=/scratch/kocevski/546555/expmap_395625601_395884801_4FGL_J1223.5+0818_daily_bin603.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/546555/ltcube_395625601_395884801_4FGL_J1223.5+0818_daily_bin603.fits
.....................!
real 190.16
user 185.45
sys 4.17

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/546555/ft1_filtered_4FGL_J1223.5+0818_daily_bin603.fits scfile=/scratch/kocevski/546555/ft2_4FGL_J1223.5+0818_daily_bin603.fits outfile=/scratch/kocevski/546555/cmap_395625601_395884801_4FGL_J1223.5+0818_daily_bin603.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.35
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.8796       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.7916       1.0000         .10000E-03   10000.    
     5 'Prefactor '    12.391       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10547E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.1487       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.3448       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .12603E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    6.8481       1.0000         .10000E-03   10000.    
    13 'norm      '    .10114E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    6.4023       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10112E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .23306E-02   1.0000         .10000E-03   10000.    
    18 'norm      '    .65046       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    20.619       1.0000         .10000E-03   10000.    
    22 'norm      '    10.458       1.0000         .10000E-03   10000.    
    23 'Prefactor '    5.5173       1.0000         .10000E-03   10000.    
    24 'Prefactor '    51.645       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .78880       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.2049       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=   5573.652     FROM MIGRAD    STATUS=CONVERGED    713 CALLS     3672 TOTAL
                     EDM=   .12E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.8850        24.788        .12700E-06   -.10478E-05
   2  Prefactor     .10000E-03    81.249        .44359E-06** at limit **
   3  Prefactor     .10000E-03    13.283        .44350E-06** at limit **
   4  Prefactor     2.7911        6.6121        .47768E-06   -.28645E-04
   5  Prefactor     12.394        14.952        .30782E-06   -.15477E-04
   6  Prefactor     .10000E-03    84.284        .41110E-06** at limit **
   7  Prefactor     .10000E-03    33.107       -.20472E-06** at limit **
   8  Prefactor     .10000E-03    63.936       -.48931E-06** at limit **
   9  Prefactor     4.1483        3.8790       -.37791E-07   -.95823E-04
  10  Prefactor     1.3468        3.5615        .78468E-06   -.25453E-04
  11  Prefactor     .10000E-03    87.815        .43915E-06** at limit **
  12  Prefactor     6.8524        12.818        .42350E-05   -.82207E-04
  13  norm          .10000E-03    1.1493       -.26459E-06** at limit **
  14  norm          6.3955        5.2010        .56110E-07   -.97760E-05
  15  Prefactor     .10000E-03    13.987       -.27489E-06** at limit **
  16  norm          .10000E-03    20.498        .38613E-07** at limit **
  17  Prefactor     .10002E-03    209.67       -.33608E-05** at limit **
  18  norm          .65011        .69996       -.59372E-07   -.49578E-03
  19  Prefactor     .10000E-03    6.9693       -.35822E-07** at limit **
  20  Prefactor     .10000E-03    52.733       -.61028E-06** at limit **
  21  Prefactor     20.624        15.160       -.17722E-06   -.72618E-06
  22  norm          10.458        2.7540        .11434E-07    .80054E-06
  23  Prefactor     5.5177        7.9434        .67537E-07   -.83272E-05
  24  Prefactor     51.659        46.593        .40735E-06    .52996E-04
  25  Prefactor     .10000E-03    30.785        .18998E-06** at limit **
  26  Prefactor     .10000E-03    9.3739        .26599E-07** at limit **
  27  Prefactor     .10000E-03    5.5181        .89943E-08** at limit **
  28  Normalizat    .78866        .21755       -.68449E-06   -.23679E-04
  29  Prefactor     1.2048        .18680       -.42902E-06   -.10464E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.885
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.79109
  Prefactor  = 12.3938
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.14834
  Prefactor  = 1.34684
  Prefactor  = 0.0001
  Prefactor  = 6.85237
  norm       = 0.0001
  norm       = 6.39548
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100025
  norm       = 0.650107
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 20.6237
  norm       = 10.4578
  Prefactor  = 5.51773
  Prefactor  = 51.6594
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.788664
  Prefactor  = 1.20482
 **********
 **   18 **HESSE 
 **********

 FCN=   5573.652     FROM HESSE     STATUS=OK           551 CALLS     4223 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.8850        24.775        .13451E-03   -1.5112    
   2  Prefactor     .10000E-03    81.419        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    13.529        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     2.7911        6.5808        .24352E-03   -1.5374    
   5  Prefactor     12.394        14.952        .11380E-03   -1.5004    
   6  Prefactor     .10000E-03    84.399        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    33.216        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    65.178        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     4.1483        3.8100        .12669E-03   -1.5301    
  10  Prefactor     1.3468        3.4807        .20263E-03   -1.5476    
  11  Prefactor     .10000E-03    88.692        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     6.8524        12.826        .76659E-03   -1.5184    
  13  norm          .10000E-03    1.1757        .78734E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          6.3955        5.1108        .13286E-03   -1.5202    
  15  Prefactor     .10000E-03    14.014        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    20.504        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10002E-03    212.98        .20087E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .65011        .64946        .55272E-03   -1.5547    
  19  Prefactor     .10000E-03    7.0104        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    53.168        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     20.624        15.108        .88206E-04   -1.4799    
  22  norm          10.458        2.7448        .59228E-04   -1.5061    
  23  Prefactor     5.5177        7.9318        .17105E-03   -1.5238    
  24  Prefactor     51.659        46.566        .55807E-04   -1.4269    
  25  Prefactor     .10000E-03    30.834        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    9.4473        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    5.5348        .17127E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .78866        .25368        .32242E-03   -1.0049    
  29  Prefactor     1.2048        .21986        .23599E-03   -.86183    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.33124e-10
Minuit parameter uncertainties:
  1  24.8032
  2  0.000365471
  3  9.18975e-05
  4  6.58247
  5  14.9568
  6  0.000316146
  7  9.67839e-05
  8  0.00014749
  9  3.81026
  10  3.48119
  11  0.000207751
  12  12.8314
  13  1.38085e-05
  14  5.11118
  15  9.33477e-05
  16  1.64588e-05
  17  0.00459056
  18  0.64947
  19  5.44695e-06
  20  0.000276591
  21  15.1104
  22  2.74485
  23  7.93332
  24  46.5989
  25  0.000106859
  26  1.03553e-05
  27  3.19211e-06
  28  0.254063
  29  0.220029
Done.

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

Extracting fit parameters...

4FGL J1223.5+0818
   Spectrum: PowerLaw
320    Prefactor:  1.000e-04  9.335e-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.205e+00  2.200e-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.887e-01  2.541e-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: 5.23e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.90e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/546555/likelihoodResults_395625601_395884801_4FGL_J1223.5+0818_daily_bin603.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) = 5573.65254874
delta logL = -0.000339001477187

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5573.65220991
delta logL = -1.62459400599e-07

Fit tolerance = 1e-08

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

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

 FCN=   5573.652     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      212 TOTAL
                     EDM=   .62E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    17.215        .90712E-02** at limit **
   2  Index         1.8951        5.8961        .50000        .71637E-05
   3  Normalizat    .78866        .20612        .72851E-01    .25368E-04
   4  Prefactor     1.2048        .18353        .53375E-01    .82765E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.89507
  Normalizat = 0.788664
  Prefactor  = 1.20482
 **********
 **   18 **HESSE 
 **********

 FCN=   5573.652     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      245 TOTAL
                     EDM=   .69E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1571.0        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8951        8.7319        .50000       -.67000    
   3  Normalizat    .78866        .67804E-01    .32242E-03   -1.0049    
   4  Prefactor     1.2048        .60440E-01    .23599E-03   -.86183    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.90125e-09
Minuit parameter uncertainties:
  1  0.000154871
  2  42.4734
  3  0.0678114
  4  0.0604437
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/546555': 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) = 5573.65220969
delta logL = 5.06870492245e-08

Extracting fit parameters...

4FGL J1223.5+0818
   Spectrum: PowerLaw
320    Prefactor:  1.000e-04  1.549e-04  1.000e-04  1.000e+04 ( 1.000e-14)
321        Index:  1.895e+00  4.247e+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:  1.205e+00  6.044e-02  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.887e-01  6.781e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/546555/cmap_HighResolution_395625601_395884801_4FGL_J1223.5+0818_daily_bin603.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.90e-03', job_status='DONE', photon_flux_upper_limit='5.23e-08', time_completed='2021-09-05 11:00:40.060453', job_id='546555', GAL2='1.20', fit_tolerance='1e-08', EG2='0.79', EG='0.79', time_epoch_completed='1630864840.06', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.20', dlogl='5.07e-08', ts2='-0.00', photon_index_error='0.00', photon_index='1.92' WHERE bin_id='603' AND source_name='4FGL J1223.5+0818' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 11:00:40 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0161>
Subject: Job 546555: <4FGL_J1223.5+0818_daily_bin603> in cluster <slac> Done

Job <4FGL_J1223.5+0818_daily_bin603> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sun Sep  5 10:45:50 2021
Job was executed on host(s) <bullet0161>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 10:45:51 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:45:51 2021
Terminated at Sun Sep  5 11:00:41 2021
Results reported at Sun Sep  5 11:00:41 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1223.5+0818_daily_bin603 185.883 8.3017 395625601 395884801 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 :                                   756.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             296.44 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   889 sec.
    Turnaround time :                            891 sec.

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

