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


Performing analysis on: 4FGL_J1223.5+0818_daily_bin765
RA = 185.883, Dec = 8.3017
tmin = 437616001, tmax = 437875201
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='547975', job_status='RUN', time_executed='2021-09-05 10:53:29.022812', time_epoch_executed='1630864409.02' WHERE source_name='4FGL J1223.5+0818' and cadence='daily' and bin_id='765'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/547975

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/547975/ft1_4FGL_J1223.5+0818_daily_bin765.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/547975/ft2_4FGL_J1223.5+0818_daily_bin765.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/547975/ft1_4FGL_J1223.5+0818_daily_bin765.fits outfile=/scratch/kocevski/547975/ft1_filteredMKT_4FGL_J1223.5+0818_daily_bin765.fits ra=185.883 dec=8.3017 rad=12.0 tmin=437616001.0 tmax=437875201.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.64
user 5.34
sys 0.25

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/547975/ft2_4FGL_J1223.5+0818_daily_bin765.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/547975/ft1_filteredMKT_4FGL_J1223.5+0818_daily_bin765.fits evtable="EVENTS" outfile="/scratch/kocevski/547975/ft1_filtered_4FGL_J1223.5+0818_daily_bin765.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.33
sys 0.15

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/547975/ft1_filtered_4FGL_J1223.5+0818_daily_bin765.fits evtable="EVENTS" scfile=/scratch/kocevski/547975/ft2_4FGL_J1223.5+0818_daily_bin765.fits sctable="SC_DATA" expcube=/scratch/kocevski/547975/ltcube_437616001_437875201_4FGL_J1223.5+0818_daily_bin765.fits outfile=/scratch/kocevski/547975/expmap_437616001_437875201_4FGL_J1223.5+0818_daily_bin765.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/547975/ltcube_437616001_437875201_4FGL_J1223.5+0818_daily_bin765.fits
.....................!
real 193.84
user 186.14
sys 6.50

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/547975/ft1_filtered_4FGL_J1223.5+0818_daily_bin765.fits scfile=/scratch/kocevski/547975/ft2_4FGL_J1223.5+0818_daily_bin765.fits outfile=/scratch/kocevski/547975/cmap_437616001_437875201_4FGL_J1223.5+0818_daily_bin765.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/547975/ft1_filtered_4FGL_J1223.5+0818_daily_bin765.fits scfile=/scratch/kocevski/547975/ft2_4FGL_J1223.5+0818_daily_bin765.fits outfile=/scratch/kocevski/547975/cmap_HighResolution_437616001_437875201_4FGL_J1223.5+0818_daily_bin765.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=185.883 yref=8.3017 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.55
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .12715       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    49.623       1.0000         .10000E-03   10000.    
     8 'Prefactor '    121.18       1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.2687       1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.9888       1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.6529       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .59531       1.0000         .10000E-03   10000.    
    14 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    26.898       1.0000         .10000E-03   10000.    
    16 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .17850E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    2.0834       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10589E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    54.861       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    8.0177       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    78.943       1.0000         .10000E-03   10000.    
    26 'Prefactor '    18.193       1.0000         .10000E-03   10000.    
    27 'Prefactor '    2.7369       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.3652       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .94672       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5980E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5157.026     FROM MIGRAD    STATUS=CONVERGED    117 CALLS     3133 TOTAL
                     EDM=   .22E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    9.7380       -.19135E-04** at limit **
   2  Prefactor     .10002E-03    53.623        .20322E-04** at limit **
   3  Prefactor     .10000E-03    3.3479       -.34718E-05** at limit **
   4  Prefactor     .10000E-03    5.0620       -.11643E-05** at limit **
   5  Prefactor     .10113E-03    255.78       -.62003E-05** at limit **
   6  Prefactor     .10026E-03    22.308       -.22426E-04** at limit **
   7  Prefactor     49.622        1.0614       -.22227E-06    .14445E-02
   8  Prefactor     121.18        1.0579       -.13112E-06    .19965E-02
   9  Prefactor     3.2710        2.6617        .38959E-06   -.24360E-04
  10  Prefactor     5.9903        3.4030        .42094E-06   -.15420E-04
  11  Prefactor     4.6487        1.0366        .39570E-06   -.17504E-03
  12  Prefactor     .10000E-03    3.4214        .16027E-05** at limit **
  13  norm          .59336        1.8338        .26611E-06    .16287E-04
  14  norm          .10000E-03    3.3551        .38224E-05** at limit **
  15  Prefactor     26.884        1.2247       -.14699E-06    .40810E-03
  16  norm          .10048E-03    11.904       -.97365E-06** at limit **
  17  Prefactor     .10592E-03    21.094        .21630E-05** at limit **
  18  norm          2.0830        .74759       -.54078E-07    .63481E-03
  19  Prefactor     .10000E-03    11.863       -.12870E-04** at limit **
  20  Prefactor     54.863        1.0335       -.16047E-06    .11336E-02
  21  Prefactor     .10001E-03    10.258        .25347E-04** at limit **
  22  norm          8.0160        2.6952        .14084E-06    .68620E-04
  23  Prefactor     .10000E-03    7.6855        .33697E-05** at limit **
  24  Prefactor     .10007E-03    20.773        .12444E-04** at limit **
  25  Prefactor     78.937        1.1414       -.23378E-06    .24726E-02
  26  Prefactor     18.191        1.0372        .13448E-06   -.38197E-03
  27  Prefactor     2.7340        1.0426       -.22132E-06    .80035E-04
  28  Normalizat    1.3650        .30484       -.47568E-05   -.62652E-04
  29  Prefactor     .94725        .25314        .22851E-06   -.48020E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 0.000100018
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.00010113
  Prefactor  = 0.000100262
  Prefactor  = 49.6219
  Prefactor  = 121.179
  Prefactor  = 3.27099
  Prefactor  = 5.9903
  Prefactor  = 4.64872
  Prefactor  = 0.0001
  norm       = 0.593358
  norm       = 0.0001
  Prefactor  = 26.8836
  norm       = 0.00010048
  Prefactor  = 0.000105923
  norm       = 2.08304
  Prefactor  = 0.000100001
  Prefactor  = 54.8631
  Prefactor  = 0.000100007
  norm       = 8.01603
  Prefactor  = 0.0001
  Prefactor  = 0.00010007
  Prefactor  = 78.9374
  Prefactor  = 18.1907
  Prefactor  = 2.73405
  Normalizat = 1.36496
  Prefactor  = 0.947254
 **********
 **   18 **HESSE 
 **********

 FCN=   5157.026     FROM HESSE     STATUS=OK           617 CALLS     3750 TOTAL
                     EDM=   .14E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    9.7885        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10002E-03    54.459        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    3.3468        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    5.0456        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10113E-03    16.363        .96399E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10026E-03    31.945        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     49.622        51.386        .14232E-02   -1.4298    
   8  Prefactor     121.18        41.105        .91398E-03   -1.3502    
   9  Prefactor     3.2710        6.4451        .55996E-02   -1.5346    
  10  Prefactor     5.9903        5.5673        .41020E-02   -1.5218    
  11  Prefactor     4.6487        19.031        .46644E-02   -1.5277    
  12  Prefactor     .10000E-03    3.4219        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .59336        1.8869        .38783E-01   -1.5554    
  14  norm          .10000E-03    3.2464        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     26.884        32.944        .19311E-02   -1.4671    
  16  norm          .10048E-03    27.071        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10592E-03    208.78        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          2.0830        .75188        .71519E-02   -1.5419    
  19  Prefactor     .10000E-03    11.902        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     54.863        43.974        .13539E-02   -1.4225    
  21  Prefactor     .10001E-03    10.293        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          8.0160        2.7028        .35400E-02   -1.5142    
  23  Prefactor     .10000E-03    7.6477        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10007E-03    22.965        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     78.937        79.186        .11300E-02   -1.3929    
  26  Prefactor     18.191        19.930        .23475E-02   -1.4855    
  27  Prefactor     2.7340        14.637        .61529E-02   -1.5377    
  28  Normalizat    1.3650        .27260        .67614E-01   -.81647    
  29  Prefactor     .94725        .21557        .67463E-01   -.94509    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.38674e-07
Minuit parameter uncertainties:
  1  0.000230847
  2  0.00197133
  3  9.40519e-06
  4  2.35419e-05
  5  0.00860394
  6  0.00579127
  7  51.4323
  8  41.1145
  9  6.44646
  10  5.56775
  11  18.8219
  12  5.46924e-06
  13  1.88711
  14  2.60521e-05
  15  32.9661
  16  0.00721444
  17  0.070581
  18  0.751887
  19  0.000235429
  20  43.9997
  21  0.000531396
  22  2.7028
  23  4.41278e-05
  24  0.00254229
  25  79.2924
  26  19.9371
  27  12.6565
  28  0.272885
  29  0.215769
Done.

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

Extracting fit parameters...

4FGL J1223.5+0818
   Spectrum: PowerLaw
320    Prefactor:  2.688e+01  3.297e+01  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:  9.473e-01  2.158e-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.365e+00  2.729e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.28
Ra Dec: 185.883 8.302
Photon Index (Fixed Index): 1.92 +/- 0.00
Photon Flux (Fixed Index): 2.09e-08 +/- 2.57e-08
Energy Flux (Fixed Index): 1.77e-05 +/- 2.17e-05

TS (Fixed Index): 1.28
Ra Dec: 185.883 8.302
Photon Flux Upper Limit: 9.61e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.16e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/547975/likelihoodResults_437616001_437875201_4FGL_J1223.5+0818_daily_bin765.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) = 5156.98458191
delta logL = 0.0411164423904

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5156.98349732
delta logL = 0.0422010348911

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    19.497       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2112       1.0000          .0000       10.000    
     3 'Normalizat'    1.3536       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95169       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=   5156.983     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      303 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     19.484        42.574        .90707E-04   -.10766E-03
   2  Index         2.2118        1.2069        .82206E-02   -.78454E-04
   3  Normalizat    1.3535        .29840        .30019E-03   -.82781E-03
   4  Prefactor     .95203        .25091        .29773E-03   -.10573E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 19.4844
  Index      = 2.21182
  Normalizat = 1.35354
  Prefactor  = 0.952032
 **********
 **   18 **HESSE 
 **********

 FCN=   5156.983     FROM HESSE     STATUS=OK            25 CALLS      328 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     19.484        36.133        .18141E-04   -1.4825    
   2  Index         2.2118        1.0269        .32882E-03   -.59153    
   3  Normalizat    1.3535        .29677        .60038E-04   -.81982    
   4  Prefactor     .95203        .25046        .59546E-04   -.94346    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.23592e-09
Minuit parameter uncertainties:
  1  36.1734
  2  1.03768
  3  0.297144
  4  0.250769
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/547975': 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) = 5156.98349454
delta logL = 0.04220381085

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
595    Prefactor:  9.520e-01  2.508e-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.354e+00  2.971e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.37
Ra Dec: 185.883 8.302
Photon Index (Free Index): 2.21 +/- 1.04
Photon Flux (Free Index): 3.12e-08 +/- 5.30e-08
Energy Flux (Free Index): 1.37e-05 +/- 1.81e-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/547975/cmap_HighResolution_437616001_437875201_4FGL_J1223.5+0818_daily_bin765.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.16e-03', comment='SUCCESS', photon_flux='2.09e-08', energy_flux2='1.37e-05', photon_flux_error='2.57e-08', dlogl='4.22e-02', energy_flux='1.77e-05', photon_flux2='3.12e-08', job_status='DONE', time_completed='2021-09-05 11:05:47.474319', photon_index_error2='1.04', photon_index2='2.21', ts='1.28', fit_tolerance='1e-08', GAL='0.95', photon_index_error='0.00', photon_flux_upper_limit='9.61e-08', energy_flux_error2='1.81e-05', EG='1.36', time_epoch_completed='1630865147.47', return_code='0', job_id='547975', GAL2='0.95', EG2='1.35', return_code2='0', energy_flux_error='2.17e-05', photon_flux_error2='5.30e-08', ts2='1.37', photon_index='1.92' WHERE bin_id='765' AND source_name='4FGL J1223.5+0818' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 11:05:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0069>
Subject: Job 547975: <4FGL_J1223.5+0818_daily_bin765> in cluster <slac> Done

Job <4FGL_J1223.5+0818_daily_bin765> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Sep  5 10:50:34 2021
Job was executed on host(s) <bullet0069>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 10:50:35 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep  5 10:50:35 2021
Terminated at Sun Sep  5 11:05:48 2021
Results reported at Sun Sep  5 11:05:48 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1223.5+0818_daily_bin765 185.883 8.3017 437616001 437875201 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 :                                   733.21 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             279.66 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   912 sec.
    Turnaround time :                            914 sec.

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

