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


Performing analysis on: 4FGL_J1223.5+0818_daily_bin978
RA = 185.883, Dec = 8.3017
tmin = 492825601, tmax = 493084801
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='548270', job_status='RUN', time_executed='2021-09-05 10:51:14.826942', time_epoch_executed='1630864274.83' WHERE source_name='4FGL J1223.5+0818' and cadence='daily' and bin_id='978'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/548270

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/548270/ft1_4FGL_J1223.5+0818_daily_bin978.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/548270/ft2_4FGL_J1223.5+0818_daily_bin978.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/548270/ft1_4FGL_J1223.5+0818_daily_bin978.fits outfile=/scratch/kocevski/548270/ft1_filteredMKT_4FGL_J1223.5+0818_daily_bin978.fits ra=185.883 dec=8.3017 rad=12.0 tmin=492825601.0 tmax=493084801.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 3.70
user 3.50
sys 0.18

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/548270/ft1_filtered_4FGL_J1223.5+0818_daily_bin978.fits evtable="EVENTS" scfile=/scratch/kocevski/548270/ft2_4FGL_J1223.5+0818_daily_bin978.fits sctable="SC_DATA" expcube=/scratch/kocevski/548270/ltcube_492825601_493084801_4FGL_J1223.5+0818_daily_bin978.fits outfile=/scratch/kocevski/548270/expmap_492825601_493084801_4FGL_J1223.5+0818_daily_bin978.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/548270/ltcube_492825601_493084801_4FGL_J1223.5+0818_daily_bin978.fits
.....................!
real 191.12
user 185.80
sys 4.82

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/548270/ft1_filtered_4FGL_J1223.5+0818_daily_bin978.fits scfile=/scratch/kocevski/548270/ft2_4FGL_J1223.5+0818_daily_bin978.fits outfile=/scratch/kocevski/548270/cmap_492825601_493084801_4FGL_J1223.5+0818_daily_bin978.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.38
sys 0.14

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

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

This is gtbin version HEAD
real 0.54
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    22.019       1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.9372       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10625E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    75.236       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10082E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.5802       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10057E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.4870       1.0000         .10000E-03   10000.    
    14 'norm      '    3.3491       1.0000         .10000E-03   10000.    
    15 'Prefactor '    8.4161       1.0000         .10000E-03   10000.    
    16 'norm      '    9.8844       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10625E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    1.8511       1.0000         .10000E-03   10000.    
    19 'Prefactor '    12.989       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    11.828       1.0000         .10000E-03   10000.    
    22 'norm      '    5.4209       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10112E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    27.879       1.0000         .10000E-03   10000.    
    26 'Prefactor '    1.0399       1.0000         .10000E-03   10000.    
    27 'Prefactor '    4.7806       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.4907       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .76706       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=   5864.654     FROM MIGRAD    STATUS=CONVERGED    708 CALLS     3759 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    10.291       -.55224E-06** at limit **
   2  Prefactor     .10000E-03    58.667        .61256E-04** at limit **
   3  Prefactor     22.017        15.145       -.30594E-05   -.50968E-04
   4  Prefactor     4.9382        8.8654        .54291E-07   -.13593E-03
   5  Prefactor     .10001E-03    22.934       -.11315E-04** at limit **
   6  Prefactor     75.278        106.39        .44560E-04    .59110E-04
   7  Prefactor     .10000E-03    14.283       -.10014E-04** at limit **
   8  Prefactor     .10000E-03    14.935       -.30954E-05** at limit **
   9  Prefactor     .10000E-03    1.2887        .30865E-06** at limit **
  10  Prefactor     3.5804        3.4886       -.26664E-06   -.56321E-03
  11  Prefactor     .10000E-03    20.594        .10468E-04** at limit **
  12  Prefactor     .10000E-03    21.174        .27532E-05** at limit **
  13  norm          1.4867        1.8966        .14264E-07   -.31886E-03
  14  norm          3.3496        3.5345       -.64142E-07   -.42309E-03
  15  Prefactor     8.4214        25.787        .33353E-05   -.17648E-04
  16  norm          9.8842        47.716       -.21117E-06   -.93957E-05
  17  Prefactor     .10000E-03    91.808       -.70038E-04** at limit **
  18  norm          1.8510        .73315        .49744E-07   -.90494E-03
  19  Prefactor     12.991        10.828       -.51380E-06   -.90159E-03
  20  Prefactor     .10000E-03    12.210        .53162E-05** at limit **
  21  Prefactor     11.829        10.159        .37448E-07   -.23509E-03
  22  norm          5.4210        2.1784        .67136E-07   -.33430E-03
  23  Prefactor     .10000E-03    18.838        .17461E-04** at limit **
  24  Prefactor     .10000E-03    26.353       -.26324E-04** at limit **
  25  Prefactor     27.868        55.021       -.14219E-04   -.27908E-03
  26  Prefactor     1.0433        15.324        .52754E-05   -.48130E-03
  27  Prefactor     4.7786        13.065       -.61358E-06   -.39603E-03
  28  Normalizat    1.4907        .22905       -.28405E-05   -.40410E-03
  29  Prefactor     .76699        .18529        .75082E-06   -.46324E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 22.0172
  Prefactor  = 4.93819
  Prefactor  = 0.000100013
  Prefactor  = 75.2775
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.58041
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.48671
  norm       = 3.34965
  Prefactor  = 8.42144
  norm       = 9.88424
  Prefactor  = 0.0001
  norm       = 1.85104
  Prefactor  = 12.9908
  Prefactor  = 0.0001
  Prefactor  = 11.8288
  norm       = 5.42098
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 27.8685
  Prefactor  = 1.04329
  Prefactor  = 4.77857
  Normalizat = 1.49074
  Prefactor  = 0.766995
 **********
 **   18 **HESSE 
 **********

 FCN=   5864.654     FROM HESSE     STATUS=OK           551 CALLS     4310 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    10.301        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    58.437        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     22.017        15.192        .85359E-04   -1.4769    
   4  Prefactor     4.9382        8.8605        .18101E-03   -1.5263    
   5  Prefactor     .10001E-03    23.250        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     75.278        106.74        .46291E-04   -1.3971    
   7  Prefactor     .10000E-03    14.280        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    14.980        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    1.3055        .84692E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     3.5804        3.4835        .13329E-03   -1.5330    
  11  Prefactor     .10000E-03    20.632        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    21.722        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.4867        1.8748        .11545E-03   -1.5464    
  14  norm          3.3496        3.5127        .13186E-03   -1.5342    
  15  Prefactor     8.4214        25.782        .13818E-03   -1.5127    
  16  norm          9.8842        47.847        .12746E-03   -1.5079    
  17  Prefactor     .10000E-03    91.505        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          1.8510        .73275        .36886E-04   -1.5436    
  19  Prefactor     12.991        10.847        .55571E-03   -1.4987    
  20  Prefactor     .10000E-03    12.227        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     11.829        10.153        .11648E-03   -1.5020    
  22  norm          5.4210        2.1793        .67707E-04   -1.5242    
  23  Prefactor     .10000E-03    19.265        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    26.335        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     27.868        54.682        .75875E-04   -1.4652    
  26  Prefactor     1.0433        46.567        .45146E-02   -1.5504    
  27  Prefactor     4.7786        12.872        .18401E-03   -1.5271    
  28  Normalizat    1.4907        .27378        .25656E-03   -.78039    
  29  Prefactor     .76699        .21917        .29628E-03   -1.0096    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.98371e-09
Minuit parameter uncertainties:
  1  4.86861e-06
  2  1.63153e-06
  3  15.1943
  4  8.86284
  5  0.0010842
  6  107.014
  7  7.06574e-06
  8  1.87459e-05
  9  2.99837e-06
  10  3.48368
  11  2.42277e-06
  12  3.38133e-05
  13  1.87483
  14  3.51293
  15  25.8156
  16  43.5501
  17  3.75223e-05
  18  0.732752
  19  10.8482
  20  1.60921e-05
  21  10.154
  22  2.17936
  23  0.000162255
  24  3.32715e-05
  25  54.7809
  26  13.9512
  27  12.879
  28  0.274049
  29  0.219421
Done.

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

Extracting fit parameters...

4FGL J1223.5+0818
   Spectrum: PowerLaw
320    Prefactor:  8.421e+00  2.582e+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:  7.670e-01  2.194e-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.491e+00  2.740e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/548270/likelihoodResults_492825601_493084801_4FGL_J1223.5+0818_daily_bin978.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) = 5864.63905279
delta logL = 0.0151590090882

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5864.63618182
delta logL = 0.0180299871008

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.6780       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1348       1.0000          .0000       10.000    
     3 'Normalizat'    1.4891       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .76724       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=   5864.636     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      228 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.6780        1020.6        .38820E-02    .36099E-03
   2  Index         2.1351        5.8375        .17048        .86898E-04
   3  Normalizat    1.4893        .58791E-01    .58041E-01    .30280E-05
   4  Prefactor     .76710        .49384E-01    .66960E-01    .19337E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.67799
  Index      = 2.13514
  Normalizat = 1.48926
  Prefactor  = 0.767103
 **********
 **   18 **HESSE 
 **********

 FCN=   5864.636     FROM HESSE     STATUS=OK            33 CALLS      261 TOTAL
                     EDM=   .93E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.6780        26.407        .15528E-03   -1.5191    
   2  Index         2.1351        1.2987        .11137E-01   -.61013    
   3  Normalizat    1.4893        .24853        .25666E-03   -.78080    
   4  Prefactor     .76710        .21514        .29625E-03   -1.0095    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.29832e-10
Minuit parameter uncertainties:
  1  26.4532
  2  1.32153
  3  0.248731
  4  0.215377
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/548270': 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) = 5864.63618153
delta logL = 0.0180302743847

Extracting fit parameters...

4FGL J1223.5+0818
   Spectrum: PowerLaw
320    Prefactor:  6.678e+00  2.645e+01  1.000e-04  1.000e+04 ( 1.000e-14)
321        Index:  2.135e+00  1.322e+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:  7.671e-01  2.154e-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.489e+00  2.487e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.13
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/548270/cmap_HighResolution_492825601_493084801_4FGL_J1223.5+0818_daily_bin978.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.93e-03', job_status='DONE', photon_flux_upper_limit='6.62e-08', time_completed='2021-09-05 11:04:38.858527', job_id='548270', GAL2='0.77', fit_tolerance='1e-08', EG2='1.49', EG='1.49', time_epoch_completed='1630865078.86', return_code2='0', ts='0.13', comment='SUCCESS', return_code='0', GAL='0.77', dlogl='1.80e-02', ts2='0.17', photon_index_error='0.00', photon_index='1.92' WHERE bin_id='978' AND source_name='4FGL J1223.5+0818' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 11:04:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0258>
Subject: Job 548270: <4FGL_J1223.5+0818_daily_bin978> in cluster <slac> Done

Job <4FGL_J1223.5+0818_daily_bin978> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Sep  5 10:50:57 2021
Job was executed on host(s) <bullet0258>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 10:50:58 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:58 2021
Terminated at Sun Sep  5 11:04:39 2021
Results reported at Sun Sep  5 11:04:39 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1223.5+0818_daily_bin978 185.883 8.3017 492825601 493084801 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 :                                   800.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             329.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   821 sec.
    Turnaround time :                            822 sec.

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

