/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 4 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 = 7441
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1223.5+0818_daily_bin205
RA = 185.883, Dec = 8.3017
tmin = 292464001, tmax = 292723201
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='544706', job_status='RUN', time_executed='2021-09-05 10:40:47.168751', time_epoch_executed='1630863647.17' WHERE source_name='4FGL J1223.5+0818' and cadence='daily' and bin_id='205'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/544706

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/544706/ft1_4FGL_J1223.5+0818_daily_bin205.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/544706/ft2_4FGL_J1223.5+0818_daily_bin205.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/544706/ft1_4FGL_J1223.5+0818_daily_bin205.fits outfile=/scratch/kocevski/544706/ft1_filteredMKT_4FGL_J1223.5+0818_daily_bin205.fits ra=185.883 dec=8.3017 rad=12.0 tmin=292464001.0 tmax=292723201.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.64
user 3.40
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/544706/ft2_4FGL_J1223.5+0818_daily_bin205.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/544706/ft1_filteredMKT_4FGL_J1223.5+0818_daily_bin205.fits evtable="EVENTS" outfile="/scratch/kocevski/544706/ft1_filtered_4FGL_J1223.5+0818_daily_bin205.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.51
user 0.32
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/544706/ft1_filtered_4FGL_J1223.5+0818_daily_bin205.fits" evtable="EVENTS" scfile=/scratch/kocevski/544706/ft2_4FGL_J1223.5+0818_daily_bin205.fits sctable="SC_DATA" outfile=/scratch/kocevski/544706/ltcube_292464001_292723201_4FGL_J1223.5+0818_daily_bin205.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/544706/ft2_4FGL_J1223.5+0818_daily_bin205.fits
.....................!
real 12.41
user 12.04
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/544706/ft1_filtered_4FGL_J1223.5+0818_daily_bin205.fits evtable="EVENTS" scfile=/scratch/kocevski/544706/ft2_4FGL_J1223.5+0818_daily_bin205.fits sctable="SC_DATA" expcube=/scratch/kocevski/544706/ltcube_292464001_292723201_4FGL_J1223.5+0818_daily_bin205.fits outfile=/scratch/kocevski/544706/expmap_292464001_292723201_4FGL_J1223.5+0818_daily_bin205.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/544706/ltcube_292464001_292723201_4FGL_J1223.5+0818_daily_bin205.fits
.....................!
real 192.57
user 185.74
sys 4.06

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/544706/ft1_filtered_4FGL_J1223.5+0818_daily_bin205.fits scfile=/scratch/kocevski/544706/ft2_4FGL_J1223.5+0818_daily_bin205.fits outfile=/scratch/kocevski/544706/cmap_292464001_292723201_4FGL_J1223.5+0818_daily_bin205.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.55
user 0.37
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10066E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10574E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .12069E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.4624       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .11026E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.6740       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.1654       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10060E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    9.9891       1.0000         .10000E-03   10000.    
    15 'Prefactor '    11.985       1.0000         .10000E-03   10000.    
    16 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    2.3421       1.0000         .10000E-03   10000.    
    19 'Prefactor '    6.1984       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .11003E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    36.236       1.0000         .10000E-03   10000.    
    25 'Prefactor '    72.363       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10602E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10483E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .86779       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.2439       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=   6903.320     FROM MIGRAD    STATUS=CONVERGED    794 CALLS     3761 TOTAL
                     EDM=   .95E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    26.809        .10547E-04** at limit **
   2  Prefactor     .10000E-03    63.628        .44379E-05** at limit **
   3  Prefactor     .10000E-03    7.3047        .25575E-06** at limit **
   4  Prefactor     .10000E-03    4.0395       -.18139E-07** at limit **
   5  Prefactor     .10000E-03    16.319        .16093E-05** at limit **
   6  Prefactor     6.1564        282.86       -.42842E-04   -.34164E-05
   7  Prefactor     .10000E-03    104.27       -.71079E-05** at limit **
   8  Prefactor     .10000E-03    7.1411        .52617E-07** at limit **
   9  Prefactor     3.6742        3.7987        .28298E-06   -.31404E-03
  10  Prefactor     1.1648        3.6940       -.90720E-06   -.11710E-02
  11  Prefactor     .10000E-03    8.0131        .58362E-07** at limit **
  12  Prefactor     .10000E-03    6.2946        .55667E-07** at limit **
  13  norm          .10000E-03    .93059        .49392E-07** at limit **
  14  norm          9.9864        4.5750        .15254E-06    .41631E-03
  15  Prefactor     11.984        21.208        .49237E-06    .68798E-05
  16  norm          .10000E-03    28.215       -.82556E-05** at limit **
  17  Prefactor     .10000E-03    50.080       -.15081E-05** at limit **
  18  norm          2.3417        .68487       -.13757E-06    .16112E-02
  19  Prefactor     6.1990        6.4653       -.23981E-07    .62869E-04
  20  Prefactor     .10000E-03    14.930       -.52790E-06** at limit **
  21  Prefactor     .10000E-03    2.3987       -.35336E-07** at limit **
  22  norm          .10001E-03    .62690       -.70905E-06** at limit **
  23  Prefactor     .10000E-03    2.6404       -.71587E-07** at limit **
  24  Prefactor     36.210        34.052        .27645E-04    .76175E-04
  25  Prefactor     72.350        50.638        .94342E-06   -.98038E-05
  26  Prefactor     .10000E-03    10.381        .24291E-05** at limit **
  27  Prefactor     .10000E-03    22.198       -.25430E-05** at limit **
  28  Normalizat    .86818        .20247        .92858E-06    .13102E-03
  29  Prefactor     1.2436        .17003       -.18675E-05    .41861E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 6.1564
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.67418
  Prefactor  = 1.16482
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 9.98642
  Prefactor  = 11.9836
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 2.34171
  Prefactor  = 6.19895
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100009
  Prefactor  = 0.0001
  Prefactor  = 36.2098
  Prefactor  = 72.3498
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.868178
  Prefactor  = 1.24356
 **********
 **   18 **HESSE 
 **********

 FCN=   6903.320     FROM HESSE     STATUS=OK           543 CALLS     4304 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    26.909        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    63.674        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    7.3379        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    4.0570        .16306E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    16.399        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     6.1564        283.86        .15788E-03   -1.5212    
   7  Prefactor     .10000E-03    105.42        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    7.1482        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     3.6742        3.6668        .14026E-03   -1.5325    
  10  Prefactor     1.1648        3.5621        .24084E-03   -1.5492    
  11  Prefactor     .10000E-03    8.0146        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    6.3511        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    1.6245        .15576E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          9.9864        4.5886        .10696E-03   -1.5076    
  15  Prefactor     11.984        21.206        .11572E-03   -1.5015    
  16  norm          .10000E-03    28.248        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    50.083        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          2.3417        .68156        .33193E-04   -1.5402    
  19  Prefactor     6.1990        6.4663        .16124E-03   -1.5210    
  20  Prefactor     .10000E-03    14.964        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    2.4040        .12567E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10001E-03    10.363        .12442E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    2.6461        .13186E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     36.210        33.845        .66577E-04   -1.4504    
  25  Prefactor     72.350        50.577        .47194E-04   -1.4005    
  26  Prefactor     .10000E-03    10.504        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    22.943        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .86818        .23919        .31861E-03   -.97588    
  29  Prefactor     1.2436        .20177        .23728E-03   -.85001    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.6316e-09
Minuit parameter uncertainties:
  1  4.16795e-06
  2  7.0682e-05
  3  6.99778e-05
  4  4.99705e-06
  5  0.000277395
  6  84.0341
  7  0.000332731
  8  2.68073e-06
  9  3.66699
  10  3.56274
  11  3.67635e-06
  12  5.64448e-06
  13  5.45427e-06
  14  4.58874
  15  21.2195
  16  1.0046e-05
  17  7.32073e-06
  18  0.681564
  19  6.467
  20  1.80334e-05
  21  3.63459e-06
  22  0.000600129
  23  1.22976e-05
  24  33.8627
  25  50.6072
  26  1.48807e-05
  27  7.2862e-05
  28  0.239486
  29  0.201894
Done.

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

Extracting fit parameters...

4FGL J1223.5+0818
   Spectrum: PowerLaw
320    Prefactor:  1.198e+01  2.122e+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:  1.244e+00  2.019e-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:  8.682e-01  2.395e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/544706/likelihoodResults_292464001_292723201_4FGL_J1223.5+0818_daily_bin205.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) = 6903.1666724
delta logL = 0.153014511861

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6903.15941066
delta logL = 0.160276245045

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    19.846       1.0000         .10000E-03   10000.    
     2 'Index     '    1.4445       1.0000          .0000       10.000    
     3 'Normalizat'    .87259       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2408       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=   6903.159     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      316 TOTAL
                     EDM=   .91E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     19.832        29.652        .89908E-04    .64969E-04
   2  Index         1.4449        .76105        .11804E-01   -.59376E-05
   3  Normalizat    .87292        .22696        .31780E-03    .54375E-04
   4  Prefactor     1.2405        .19972        .23749E-03   -.67238E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 19.8315
  Index      = 1.44493
  Normalizat = 0.872918
  Prefactor  = 1.24052
 **********
 **   18 **HESSE 
 **********

 FCN=   6903.159     FROM HESSE     STATUS=OK            25 CALLS      341 TOTAL
                     EDM=   .92E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     19.832        29.575        .17982E-04   -1.4817    
   2  Index         1.4449        .75942        .47216E-03   -.79094    
   3  Normalizat    .87292        .22714        .12712E-04   -.97418    
   4  Prefactor     1.2405        .19990        .47498E-04   -.85093    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.2179e-11
Minuit parameter uncertainties:
  1  29.5973
  2  0.765451
  3  0.227389
  4  0.200019
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/544706': 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) = 6903.15940925
delta logL = 0.160277661866

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
595    Prefactor:  1.241e+00  2.000e-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:  8.729e-01  2.274e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.46
Ra Dec: 185.883 8.302

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/544706/cmap_HighResolution_292464001_292723201_4FGL_J1223.5+0818_daily_bin205.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.41e-03', job_status='DONE', photon_flux_upper_limit='5.92e-08', time_completed='2021-09-05 10:55:31.608098', job_id='544706', GAL2='1.24', fit_tolerance='1e-08', EG2='0.87', EG='0.87', time_epoch_completed='1630864531.61', return_code2='0', ts='0.46', comment='SUCCESS', return_code='0', GAL='1.24', dlogl='1.60e-01', ts2='0.78', photon_index_error='0.00', photon_index='1.92' WHERE bin_id='205' AND source_name='4FGL J1223.5+0818' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 10:55:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0213>
Subject: Job 544706: <4FGL_J1223.5+0818_daily_bin205> in cluster <slac> Done

Job <4FGL_J1223.5+0818_daily_bin205> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sun Sep  5 10:40:30 2021
Job was executed on host(s) <bullet0213>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 10:40:32 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:40:32 2021
Terminated at Sun Sep  5 10:55:32 2021
Results reported at Sun Sep  5 10:55:32 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1223.5+0818_daily_bin205 185.883 8.3017 292464001 292723201 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 :                                   877.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             304.28 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   899 sec.
    Turnaround time :                            902 sec.

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

