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


Performing analysis on: 4FGL_J1223.5+0818_daily_bin677
RA = 185.883, Dec = 8.3017
tmin = 414806401, tmax = 415065601
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='546641', job_status='RUN', time_executed='2021-09-05 10:48:43.594130', time_epoch_executed='1630864123.59' WHERE source_name='4FGL J1223.5+0818' and cadence='daily' and bin_id='677'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/546641

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/546641/ft1_4FGL_J1223.5+0818_daily_bin677.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/546641/ft2_4FGL_J1223.5+0818_daily_bin677.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/546641/ft1_4FGL_J1223.5+0818_daily_bin677.fits outfile=/scratch/kocevski/546641/ft1_filteredMKT_4FGL_J1223.5+0818_daily_bin677.fits ra=185.883 dec=8.3017 rad=12.0 tmin=414806401.0 tmax=415065601.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 5.88
user 5.62
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/546641/ft2_4FGL_J1223.5+0818_daily_bin677.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/546641/ft1_filteredMKT_4FGL_J1223.5+0818_daily_bin677.fits evtable="EVENTS" outfile="/scratch/kocevski/546641/ft1_filtered_4FGL_J1223.5+0818_daily_bin677.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/546641/ft1_filtered_4FGL_J1223.5+0818_daily_bin677.fits" evtable="EVENTS" scfile=/scratch/kocevski/546641/ft2_4FGL_J1223.5+0818_daily_bin677.fits sctable="SC_DATA" outfile=/scratch/kocevski/546641/ltcube_414806401_415065601_4FGL_J1223.5+0818_daily_bin677.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/546641/ft2_4FGL_J1223.5+0818_daily_bin677.fits
.....................!
real 12.37
user 11.92
sys 0.27

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/546641/ft1_filtered_4FGL_J1223.5+0818_daily_bin677.fits evtable="EVENTS" scfile=/scratch/kocevski/546641/ft2_4FGL_J1223.5+0818_daily_bin677.fits sctable="SC_DATA" expcube=/scratch/kocevski/546641/ltcube_414806401_415065601_4FGL_J1223.5+0818_daily_bin677.fits outfile=/scratch/kocevski/546641/expmap_414806401_415065601_4FGL_J1223.5+0818_daily_bin677.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/546641/ltcube_414806401_415065601_4FGL_J1223.5+0818_daily_bin677.fits
.....................!
real 190.16
user 185.29
sys 4.45

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/546641/ft1_filtered_4FGL_J1223.5+0818_daily_bin677.fits scfile=/scratch/kocevski/546641/ft2_4FGL_J1223.5+0818_daily_bin677.fits outfile=/scratch/kocevski/546641/cmap_414806401_415065601_4FGL_J1223.5+0818_daily_bin677.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.53
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/546641/ft1_filtered_4FGL_J1223.5+0818_daily_bin677.fits scfile=/scratch/kocevski/546641/ft2_4FGL_J1223.5+0818_daily_bin677.fits outfile=/scratch/kocevski/546641/cmap_HighResolution_414806401_415065601_4FGL_J1223.5+0818_daily_bin677.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.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .36549E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.3530       1.0000         .10000E-03   10000.    
     4 'Prefactor '    14.533       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10007E-03   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 '    3.9614       1.0000         .10000E-03   10000.    
    13 'norm      '    .50153       1.0000         .10000E-03   10000.    
    14 'norm      '    .25446E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    3.6793       1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.2808       1.0000         .10000E-03   10000.    
    20 'Prefactor '    48.946       1.0000         .10000E-03   10000.    
    21 'Prefactor '    32.892       1.0000         .10000E-03   10000.    
    22 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .40735E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    12.316       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    27.883       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.3282       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .68387       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=   4062.012     FROM MIGRAD    STATUS=CONVERGED   1300 CALLS     4896 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10002E-03    286.16        .59110E-02** at limit **
   2  Prefactor     .10000E-03    147.36        .18142E-02** at limit **
   3  Prefactor     3.3532        6.8005        .22101E-03    .54011E-06
   4  Prefactor     14.531        13.907        .10507E-03    .30352E-04
   5  Prefactor     .10000E-03    8.8084        .18142E-02** at limit **
   6  Prefactor     .10000E-03    62.537        .18142E-02** at limit **
   7  Prefactor     .10000E-03    53.916        .18142E-02** at limit **
   8  Prefactor     .10000E-03    47.174        .18142E-02** at limit **
   9  Prefactor     .10000E-03    2.6998        .20164E-03** at limit **
  10  Prefactor     .10000E-03    1.2696        .69962E-03** at limit **
  11  Prefactor     .10000E-03    25.234        .18142E-02** at limit **
  12  Prefactor     4.0337        224.09        .20266E-03    .99599E-04
  13  norm          .48242        77.204        .21513E-02    .20725E-03
  14  norm          .10002E-03    31.692        .19017E-02** at limit **
  15  Prefactor     .10000E-03    13.543        .18142E-02** at limit **
  16  norm          .10000E-03    58.787        .18142E-02** at limit **
  17  Prefactor     .10000E-03    67.704        .18142E-02** at limit **
  18  norm          3.6785        1.0432        .30856E-04    .77852E-03
  19  Prefactor     1.2868        51.517        .39219E-03   -.41221E-04
  20  Prefactor     48.945        50.432        .57318E-04    .43596E-04
  21  Prefactor     32.893        16.553        .69868E-04    .51255E-05
  22  norm          .10000E-03    1.4432        .14678E-03** at limit **
  23  Prefactor     .10000E-03    5.7633        .14930E-02** at limit **
  24  Prefactor     .10039E-03    313.63        .80619E-02** at limit **
  25  Prefactor     12.319        47.745        .11414E-03    .43824E-05
  26  Prefactor     .10000E-03    4.6366        .13396E-02** at limit **
  27  Prefactor     27.885        19.253        .75869E-04   -.77171E-05
  28  Normalizat    1.3281        .30004        .25093E-03    .47731E-04
  29  Prefactor     .68384        .24773        .28491E-03   -.62228E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100024
  Prefactor  = 0.000100001
  Prefactor  = 3.35317
  Prefactor  = 14.5312
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.03371
  norm       = 0.482421
  norm       = 0.000100021
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 3.67851
  Prefactor  = 1.2868
  Prefactor  = 48.9446
  Prefactor  = 32.8926
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100387
  Prefactor  = 12.319
  Prefactor  = 0.0001
  Prefactor  = 27.8846
  Normalizat = 1.32815
  Prefactor  = 0.683839
 **********
 **   18 **HESSE 
 **********

 FCN=   4062.012     FROM HESSE     STATUS=OK           525 CALLS     5421 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10002E-03    295.62        .23644E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    147.37        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     3.3532        6.8003        .88405E-05   -1.5342    
   4  Prefactor     14.531        13.869        .42026E-05   -1.4945    
   5  Prefactor     .10000E-03    8.8091        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    62.539        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    53.920        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    47.181        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    2.6998        .40328E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    1.2696        .13992E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    25.237        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     4.0337        100.62        .81065E-05   -1.5306    
  13  norm          .48242        34.515        .86052E-04   -1.5569    
  14  norm          .10002E-03    32.042        .38033E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    13.543        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    58.799        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    67.704        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          3.6785        1.0234        .12342E-05   -1.5324    
  19  Prefactor     1.2868        51.149        .15687E-04   -1.5481    
  20  Prefactor     48.945        50.264        .11464E-04   -1.4308    
  21  Prefactor     32.893        16.545        .27947E-05   -1.4560    
  22  norm          .10000E-03    1.4432        .29356E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    5.7636        .29859E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10039E-03    322.87        .32247E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     12.319        47.737        .45658E-05   -1.5006    
  26  Prefactor     .10000E-03    4.6367        .26792E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     27.885        19.252        .30348E-05   -1.4651    
  28  Normalizat    1.3281        .29915        .10037E-04   -.82730    
  29  Prefactor     .68384        .24678        .11396E-04   -1.0416    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.19237e-09
Minuit parameter uncertainties:
  1  0.00540082
  2  0.000718093
  3  6.80191
  4  13.8724
  5  4.26118e-06
  6  6.64869e-05
  7  0.000175906
  8  0.000170398
  9  1.20568e-05
  10  3.28734e-06
  11  4.77844e-05
  12  40.3684
  13  8.16507
  14  0.00164782
  15  3.93976e-06
  16  0.000103085
  17  0.000346151
  18  1.02342
  19  16.2401
  20  50.3073
  21  16.5475
  22  3.5934e-06
  23  8.46473e-06
  24  0.0224793
  25  47.8853
  26  6.16504e-06
  27  19.2559
  28  0.299545
  29  0.247179
Done.

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

Extracting fit parameters...

4FGL J1223.5+0818
   Spectrum: PowerLaw
320    Prefactor:  1.000e-04  3.940e-06  1.000e-04  1.000e+04 ( 1.000e-14)
321        Index:  1.922e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
322        Scale:  3.064e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
595    Prefactor:  6.838e-01  2.472e-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.328e+00  2.995e-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.51e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.11e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/546641/likelihoodResults_414806401_415065601_4FGL_J1223.5+0818_daily_bin677.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) = 4062.012
delta logL = -0.000346341071236

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4062.01165358
delta logL = 7.88286342868e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10154E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.8918       1.0000          .0000       10.000    
     3 'Normalizat'    1.3282       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .68384       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=   4062.012     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      249 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10094E-03    74.990        .18142E-02** at limit **
   2  Index         1.8433        7.7310        .50000        .14602E-04
   3  Normalizat    1.3281        .13756E-01    .25093E-03   -.49823E-03
   4  Prefactor     .68384        .11648E-01    .28491E-03   -.52441E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100938
  Index      = 1.84329
  Normalizat = 1.32815
  Prefactor  = 0.683838
 **********
 **   18 **HESSE 
 **********

 FCN=   4062.012     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      278 TOTAL
                     EDM=   .68E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10094E-03    332.67        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8433        8.9991        .50000       -.68328    
   3  Normalizat    1.3281        .29654E-01    .50185E-04   -.82730    
   4  Prefactor     .68384        .25110E-01    .56982E-04   -1.0416    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.79547e-09
Minuit parameter uncertainties:
  1  0.0355317
  2  333.323
  3  0.0296542
  4  0.0251101
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/546641': 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) = 4062.01165336
delta logL = 2.94779511023e-07

Extracting fit parameters...

4FGL J1223.5+0818
   Spectrum: PowerLaw
320    Prefactor:  1.009e-04  3.553e-02  1.000e-04  1.000e+04 ( 1.000e-14)
321        Index:  1.843e+00  3.333e+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:  6.838e-01  2.511e-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:  1.328e+00  2.965e-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/546641/cmap_HighResolution_414806401_415065601_4FGL_J1223.5+0818_daily_bin677.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.11e-03', job_status='DONE', photon_flux_upper_limit='5.51e-08', time_completed='2021-09-05 11:00:48.099775', job_id='546641', GAL2='0.68', fit_tolerance='1e-08', EG2='1.33', EG='1.33', time_epoch_completed='1630864848.1', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.68', dlogl='2.95e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.92' WHERE bin_id='677' AND source_name='4FGL J1223.5+0818' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 11:00:48 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0072>
Subject: Job 546641: <4FGL_J1223.5+0818_daily_bin677> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1223.5+0818_daily_bin677 185.883 8.3017 414806401 415065601 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 :                                   722.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             264.92 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   887 sec.
    Turnaround time :                            888 sec.

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

