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


Performing analysis on: 4FGL_J1223.8+8039_daily_bin662
RA = 185.971, Dec = 80.6598
tmin = 410918401, tmax = 411177601
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='557850', job_status='RUN', time_executed='2021-09-05 11:20:31.862346', time_epoch_executed='1630866031.86' WHERE source_name='4FGL J1223.8+8039' and cadence='daily' and bin_id='662'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/557850

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/557850/ft1_4FGL_J1223.8+8039_daily_bin662.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/557850/ft2_4FGL_J1223.8+8039_daily_bin662.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/557850/ft1_4FGL_J1223.8+8039_daily_bin662.fits outfile=/scratch/kocevski/557850/ft1_filteredMKT_4FGL_J1223.8+8039_daily_bin662.fits ra=185.971 dec=80.6598 rad=12.0 tmin=410918401.0 tmax=411177601.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 6.96
user 6.66
sys 0.27

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/557850/ft2_4FGL_J1223.8+8039_daily_bin662.fits

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/557850/ft1_filtered_4FGL_J1223.8+8039_daily_bin662.fits" evtable="EVENTS" scfile=/scratch/kocevski/557850/ft2_4FGL_J1223.8+8039_daily_bin662.fits sctable="SC_DATA" outfile=/scratch/kocevski/557850/ltcube_410918401_411177601_4FGL_J1223.8+8039_daily_bin662.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/557850/ft2_4FGL_J1223.8+8039_daily_bin662.fits
.....................!
real 11.89
user 11.54
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/557850/ft1_filtered_4FGL_J1223.8+8039_daily_bin662.fits evtable="EVENTS" scfile=/scratch/kocevski/557850/ft2_4FGL_J1223.8+8039_daily_bin662.fits sctable="SC_DATA" expcube=/scratch/kocevski/557850/ltcube_410918401_411177601_4FGL_J1223.8+8039_daily_bin662.fits outfile=/scratch/kocevski/557850/expmap_410918401_411177601_4FGL_J1223.8+8039_daily_bin662.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/557850/ltcube_410918401_411177601_4FGL_J1223.8+8039_daily_bin662.fits
.....................!
real 190.72
user 185.36
sys 4.92

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

Setting source of interest to:
4FGL J1223.8+8039 @ 185.971 80.6598

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/557850/ft1_filtered_4FGL_J1223.8+8039_daily_bin662.fits scfile=/scratch/kocevski/557850/ft2_4FGL_J1223.8+8039_daily_bin662.fits outfile=/scratch/kocevski/557850/cmap_410918401_411177601_4FGL_J1223.8+8039_daily_bin662.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.971 yref=80.6598 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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/557850/ft1_filtered_4FGL_J1223.8+8039_daily_bin662.fits scfile=/scratch/kocevski/557850/ft2_4FGL_J1223.8+8039_daily_bin662.fits outfile=/scratch/kocevski/557850/cmap_HighResolution_410918401_411177601_4FGL_J1223.8+8039_daily_bin662.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.971 yref=80.6598 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.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/557850/ft1_filtered_4FGL_J1223.8+8039_daily_bin662.fits evtable="EVENTS" scfile=/scratch/kocevski/557850/ft2_4FGL_J1223.8+8039_daily_bin662.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/557850/Model_4FGL_J1223.8+8039_daily_bin662.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/557850/ft1_filtered_4FGL_J1223.8+8039_daily_bin662.fits.....................!
real 57.49
user 56.09
sys 1.16

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/557850/ft1_filtered_4FGL_J1223.8+8039_daily_bin662.fits', '/scratch/kocevski/557850/ft2_4FGL_J1223.8+8039_daily_bin662.fits', expMap='/scratch/kocevski/557850/expmap_410918401_411177601_4FGL_J1223.8+8039_daily_bin662.fits', expCube='/scratch/kocevski/557850/ltcube_410918401_411177601_4FGL_J1223.8+8039_daily_bin662.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/557850/Model_4FGL_J1223.8+8039_daily_bin662.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1223.8+8039'

4FGL J1223.8+8039
   Spectrum: LogParabola
361         norm:  1.610e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
362        alpha:  2.117e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
363         beta:  1.252e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
364           Eb:  9.363e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/557850/ft1_filtered_4FGL_J1223.8+8039_daily_bin662.fits
Spacecraft file(s): /scratch/kocevski/557850/ft2_4FGL_J1223.8+8039_daily_bin662.fits
Exposure map: /scratch/kocevski/557850/expmap_410918401_411177601_4FGL_J1223.8+8039_daily_bin662.fits
Exposure cube: /scratch/kocevski/557850/ltcube_410918401_411177601_4FGL_J1223.8+8039_daily_bin662.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/557850/Model_4FGL_J1223.8+8039_daily_bin662.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) = 4152.99027383

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10101E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    1.9192       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.7257       1.0000         .10000E-03   10000.    
     5 'Prefactor '    21.374       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .39192E-01   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .12710E-02   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10156E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    11.729       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    13.758       1.0000         .10000E-03   10000.    
    12 'norm      '    6.7882       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10129E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.8690       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10653E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .17849E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10033E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    4.2567       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .11389E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10155E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    9.6449       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10057E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .16711E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .22284E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    13.583       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10110E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    .96002       1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.0473       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6940E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4152.966     FROM MIGRAD    STATUS=CONVERGED    789 CALLS     4167 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    26.929        .33595E-06** at limit **
   2  norm          1.9283        71.243        .36961E-06    .53329E-04
   3  Prefactor     .10000E-03    17.669        .11309E-06** at limit **
   4  Prefactor     5.7273        12.437        .28481E-06    .11835E-03
   5  Prefactor     21.434        18.970        .38999E-06   -.23601E-03
   6  Prefactor     .10006E-03    163.52        .27747E-04** at limit **
   7  Prefactor     .10003E-03    269.70       -.78597E-05** at limit **
   8  Prefactor     .10000E-03    29.192       -.45584E-06** at limit **
   9  norm          11.742        8.8615        .12292E-05    .57450E-03
  10  Prefactor     .10000E-03    3.0045       -.11126E-06** at limit **
  11  norm          13.758        2.6777       -.49147E-08   -.21958E-03
  12  norm          6.7842        9.2198        .29360E-07    .61671E-04
  13  Prefactor     .10000E-03    26.933       -.50672E-06** at limit **
  14  Prefactor     .10000E-03    18.382       -.88856E-08** at limit **
  15  Prefactor     2.8707        10.701        .21470E-06    .16532E-03
  16  Prefactor     .10000E-03    30.836       -.12953E-05** at limit **
  17  Prefactor     .10002E-03    218.46        .59911E-05** at limit **
  18  norm          .10000E-03    8.1198       -.11300E-06** at limit **
  19  norm          4.2572        5.3076        .26808E-06    .84309E-03
  20  Prefactor     .10000E-03    47.115       -.52724E-06** at limit **
  21  Prefactor     .10000E-03    20.514       -.75203E-06** at limit **
  22  Prefactor     .10000E-03    23.233        .11277E-06** at limit **
  23  Prefactor     .10000E-03    4.1511       -.80426E-08** at limit **
  24  Prefactor     9.6626        37.910        .21631E-07    .22887E-04
  25  Prefactor     .10000E-03    48.235       -.21564E-06** at limit **
  26  Prefactor     .10000E-03    56.651        .16395E-05** at limit **
  27  Prefactor     .10000E-03    104.72       -.17971E-05** at limit **
  28  norm          13.603        27.286       -.13996E-07    .17697E-04
  29  Prefactor     .10000E-03    26.283        .49204E-06** at limit **
  30  Normalizat    .95996        .24784       -.12844E-05    .45872E-04
  31  Prefactor     1.0473        .15762        .14301E-05    .47737E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 1.92831
  Prefactor  = 0.0001
  Prefactor  = 5.72729
  Prefactor  = 21.4336
  Prefactor  = 0.000100064
  Prefactor  = 0.000100032
  Prefactor  = 0.0001
  norm       = 11.742
  Prefactor  = 0.0001
  norm       = 13.7583
  norm       = 6.78423
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 2.87073
  Prefactor  = 0.0001
  Prefactor  = 0.000100022
  norm       = 0.0001
  norm       = 4.25723
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.66261
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.000100003
  norm       = 13.603
  Prefactor  = 0.0001
  Normalizat = 0.959958
  Prefactor  = 1.04732
 **********
 **   18 **HESSE 
 **********

 FCN=   4152.966     FROM HESSE     STATUS=OK           614 CALLS     4781 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    26.952        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.9283        71.943        .29997E-03   -1.5430    
   3  Prefactor     .10000E-03    17.671        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     5.7273        12.421        .16786E-03   -1.5229    
   5  Prefactor     21.434        18.925        .86637E-04   -1.4782    
   6  Prefactor     .10006E-03    163.07        .54169E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10003E-03    283.42        .41193E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    29.209        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          11.742        8.7354        .11697E-03   -1.5023    
  10  Prefactor     .10000E-03    3.0095        .10908E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          13.758        2.6867        .40948E-04   -1.4966    
  12  norm          6.7842        9.2173        .15400E-03   -1.5187    
  13  Prefactor     .10000E-03    27.529        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    18.422        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     2.8707        10.699        .23998E-03   -1.5369    
  16  Prefactor     .10000E-03    31.343        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10002E-03    219.39        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    8.1615        .17936E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          4.2572        5.3208        .15983E-03   -1.5295    
  20  Prefactor     .10000E-03    47.129        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    20.654        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    23.234        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    4.1520        .12823E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     9.6626        38.210        .12904E-03   -1.5086    
  25  Prefactor     .10000E-03    48.250        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    56.836        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    105.08        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          13.603        27.284        .10868E-03   -1.4970    
  29  Prefactor     .10000E-03    26.294        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    .95996        .27909        .31308E-03   -.94384    
  31  Prefactor     1.0473        .17829        .20295E-03   -.91168    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.27853e-09
Minuit parameter uncertainties:
  1  5.66667e-05
  2  23.5866
  3  1.23185e-05
  4  12.427
  5  18.9301
  6  0.00647931
  7  0.00601285
  8  0.000132117
  9  8.73632
  10  1.23413e-05
  11  2.68674
  12  9.21927
  13  0.000305675
  14  6.48818e-05
  15  10.7058
  16  0.00013414
  17  0.00441482
  18  3.87813e-05
  19  5.32138
  20  0.000166277
  21  0.000199433
  22  2.68416e-05
  23  6.45319e-07
  24  38.307
  25  7.50592e-05
  26  0.000589621
  27  0.00108642
  28  27.3093
  29  0.000118889
  30  0.279512
  31  0.178389
Done.

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

Extracting fit parameters...

4FGL J1223.8+8039
   Spectrum: LogParabola
361         norm:  4.257e+00  5.321e+00  1.000e-04  1.000e+04 ( 1.000e-12)
362        alpha:  2.117e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
363         beta:  1.252e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
364           Eb:  9.363e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
691    Prefactor:  1.047e+00  1.784e-01  0.000e+00  1.000e+01 ( 1.000e+00)
692        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
693        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
690   Normalization:  9.600e-01  2.795e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.94
Ra Dec: 185.971 80.660
Photon Flux Upper Limit: 1.32e-07 ph cm-2 s-1
Energy Flux Upper Limit: 6.38e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/557850/likelihoodResults_410918401_411177601_4FGL_J1223.8+8039_daily_bin662.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4152.85215176
delta logL = 0.113976855345

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4152.83595622
delta logL = 0.130172401287

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.3806       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.6839       1.0000          .0000       5.0000    
     3 'Normalizat'    .93655       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0537       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6940E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4152.836     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      210 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.3792        108.06        .55017E-02    .29966E-03
   2  alpha         2.6840        3.1690        .31076        .35411E-04
   3  Normalizat    .93659        .10805        .71513E-01    .86979E-05
   4  Prefactor     1.0537        .58355E-01    .39697E-01   -.32249E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 3.37917
  alpha      = 2.68398
  Normalizat = 0.936589
  Prefactor  = 1.0537
 **********
 **   18 **HESSE 
 **********

 FCN=   4152.836     FROM HESSE     STATUS=OK            33 CALLS      243 TOTAL
                     EDM=   .52E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.3792        5.5830        .11990E-03   -1.5340    
   2  alpha         2.6840        1.2114        .15680E-01    .73659E-01
   3  Normalizat    .93659        .26264        .31641E-03   -.95186    
   4  Prefactor     1.0537        .17486        .20235E-03   -.90960    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.16415e-09
Minuit parameter uncertainties:
  1  5.58381
  2  1.265
  3  0.263005
  4  0.174959
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/557850': 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) = 4152.83595615
delta logL = 0.130172466937

Extracting fit parameters...

4FGL J1223.8+8039
   Spectrum: LogParabola
361         norm:  3.379e+00  5.584e+00  1.000e-04  1.000e+04 ( 1.000e-12)
362        alpha:  2.684e+00  1.265e+00  0.000e+00  5.000e+00 ( 1.000e+00)
363         beta:  1.252e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
364           Eb:  9.363e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
691    Prefactor:  1.054e+00  1.750e-01  0.000e+00  1.000e+01 ( 1.000e+00)
692        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
693        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
690   Normalization:  9.366e-01  2.630e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.20
Ra Dec: 185.971 80.660
Photon Index (Free Index): 2.68 +/- 1.27
Photon Flux (Free Index): 5.64e-08 +/- 7.13e-08
Energy Flux (Free Index): 1.52e-05 +/- 1.65e-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/557850/cmap_HighResolution_410918401_411177601_4FGL_J1223.8+8039_daily_bin662.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.38e-05', comment='SUCCESS', energy_flux2='1.52e-05', dlogl='1.30e-01', photon_flux2='5.64e-08', job_status='DONE', time_completed='2021-09-05 11:34:13.974590', photon_index_error2='1.27', photon_index2='2.68', ts='0.94', fit_tolerance='1e-08', GAL='1.05', photon_index_error='0.00', photon_flux_upper_limit='1.32e-07', energy_flux_error2='1.65e-05', EG='0.96', time_epoch_completed='1630866853.97', return_code='0', job_id='557850', GAL2='1.05', EG2='0.94', return_code2='0', photon_flux_error2='7.13e-08', ts2='1.20', photon_index='2.12' WHERE bin_id='662' AND source_name='4FGL J1223.8+8039' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 11:34:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0040>
Subject: Job 557850: <4FGL_J1223.8+8039_daily_bin662> in cluster <slac> Done

Job <4FGL_J1223.8+8039_daily_bin662> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Sun Sep  5 11:20:22 2021
Job was executed on host(s) <bullet0040>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 11:20:24 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep  5 11:20:24 2021
Terminated at Sun Sep  5 11:34:14 2021
Results reported at Sun Sep  5 11:34:14 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1223.8+8039_daily_bin662 185.971 80.6598 410918401 411177601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1223.8+8039 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   824.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             324.74 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   830 sec.
    Turnaround time :                            832 sec.

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

