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


Performing analysis on: 4FGL_J1221.3+3010_daily_bin413
RA = 185.345, Dec = 30.1677
tmin = 346377601, tmax = 346636801
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='516494', job_status='RUN', time_executed='2021-09-05 09:11:22.417608', time_epoch_executed='1630858282.42' WHERE source_name='4FGL J1221.3+3010' and cadence='daily' and bin_id='413'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/516494

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/516494/ft1_4FGL_J1221.3+3010_daily_bin413.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/516494/ft2_4FGL_J1221.3+3010_daily_bin413.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/516494/ft1_4FGL_J1221.3+3010_daily_bin413.fits outfile=/scratch/kocevski/516494/ft1_filteredMKT_4FGL_J1221.3+3010_daily_bin413.fits ra=185.345 dec=30.1677 rad=12.0 tmin=346377601.0 tmax=346636801.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.41
user 3.14
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/516494/ft2_4FGL_J1221.3+3010_daily_bin413.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/516494/ft2_4FGL_J1221.3+3010_daily_bin413.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/516494/ft1_filteredMKT_4FGL_J1221.3+3010_daily_bin413.fits evtable="EVENTS" outfile="/scratch/kocevski/516494/ft1_filtered_4FGL_J1221.3+3010_daily_bin413.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.50
user 0.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/516494/ft1_filtered_4FGL_J1221.3+3010_daily_bin413.fits" evtable="EVENTS" scfile=/scratch/kocevski/516494/ft2_4FGL_J1221.3+3010_daily_bin413.fits sctable="SC_DATA" outfile=/scratch/kocevski/516494/ltcube_346377601_346636801_4FGL_J1221.3+3010_daily_bin413.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/516494/ft2_4FGL_J1221.3+3010_daily_bin413.fits
.....................!
real 11.77
user 11.36
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/516494/ft1_filtered_4FGL_J1221.3+3010_daily_bin413.fits evtable="EVENTS" scfile=/scratch/kocevski/516494/ft2_4FGL_J1221.3+3010_daily_bin413.fits sctable="SC_DATA" expcube=/scratch/kocevski/516494/ltcube_346377601_346636801_4FGL_J1221.3+3010_daily_bin413.fits outfile=/scratch/kocevski/516494/expmap_346377601_346636801_4FGL_J1221.3+3010_daily_bin413.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/516494/ltcube_346377601_346636801_4FGL_J1221.3+3010_daily_bin413.fits
.....................!
real 190.04
user 184.95
sys 4.70

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

Setting source of interest to:
4FGL J1221.3+3010 @ 185.345 30.1677

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/516494/ft1_filtered_4FGL_J1221.3+3010_daily_bin413.fits scfile=/scratch/kocevski/516494/ft2_4FGL_J1221.3+3010_daily_bin413.fits outfile=/scratch/kocevski/516494/cmap_346377601_346636801_4FGL_J1221.3+3010_daily_bin413.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.345 yref=30.1677 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.57
user 0.40
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/516494/ft1_filtered_4FGL_J1221.3+3010_daily_bin413.fits scfile=/scratch/kocevski/516494/ft2_4FGL_J1221.3+3010_daily_bin413.fits outfile=/scratch/kocevski/516494/cmap_HighResolution_346377601_346636801_4FGL_J1221.3+3010_daily_bin413.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.345 yref=30.1677 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.40
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/516494/ft1_filtered_4FGL_J1221.3+3010_daily_bin413.fits evtable="EVENTS" scfile=/scratch/kocevski/516494/ft2_4FGL_J1221.3+3010_daily_bin413.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/516494/Model_4FGL_J1221.3+3010_daily_bin413.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/516494/ft1_filtered_4FGL_J1221.3+3010_daily_bin413.fits.....................!
real 54.31
user 52.82
sys 1.29

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/516494/ft1_filtered_4FGL_J1221.3+3010_daily_bin413.fits', '/scratch/kocevski/516494/ft2_4FGL_J1221.3+3010_daily_bin413.fits', expMap='/scratch/kocevski/516494/expmap_346377601_346636801_4FGL_J1221.3+3010_daily_bin413.fits', expCube='/scratch/kocevski/516494/ltcube_346377601_346636801_4FGL_J1221.3+3010_daily_bin413.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/516494/Model_4FGL_J1221.3+3010_daily_bin413.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1221.3+3010'

4FGL J1221.3+3010
   Spectrum: PowerLaw
317    Prefactor:  1.833e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
318        Index:  1.707e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
319        Scale:  4.501e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/516494/ft1_filtered_4FGL_J1221.3+3010_daily_bin413.fits
Spacecraft file(s): /scratch/kocevski/516494/ft2_4FGL_J1221.3+3010_daily_bin413.fits
Exposure map: /scratch/kocevski/516494/expmap_346377601_346636801_4FGL_J1221.3+3010_daily_bin413.fits
Exposure cube: /scratch/kocevski/516494/ltcube_346377601_346636801_4FGL_J1221.3+3010_daily_bin413.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/516494/Model_4FGL_J1221.3+3010_daily_bin413.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) = 6123.93779803

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.4186       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10561E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.5196       1.0000         .10000E-03   10000.    
     4 'Prefactor '    108.67       1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.9344       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.0954       1.0000         .10000E-03   10000.    
     8 'norm      '    .62002       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10122E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    3.4512       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.3775       1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.8042       1.0000         .10000E-03   10000.    
    16 'norm      '    .76004E-01   1.0000         .10000E-03   10000.    
    17 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    15.027       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .22508E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    8.0161       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    5.8419       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .13898E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    4.9440       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .16073E-02   1.0000         .10000E-03   10000.    
    27 'norm      '    1.3785       1.0000         .10000E-03   10000.    
    28 'norm      '    2.9604       1.0000         .10000E-03   10000.    
    29 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.0943       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .97431       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6280E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6123.882     FROM MIGRAD    STATUS=CONVERGED    843 CALLS     3619 TOTAL
                     EDM=   .13E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.4282        13.328       -.54434E-07   -.24860E-03
   2  Prefactor     .10000E-03    20.838       -.42149E-06** at limit **
   3  Prefactor     1.5187        4.5151       -.39371E-06   -.85135E-04
   4  Prefactor     108.66        30.033        .19388E-06    .18134E-04
   5  Prefactor     5.9342        2.8413       -.13198E-06    .12886E-05
   6  Prefactor     .10000E-03    7.0496        .10744E-07** at limit **
   7  Prefactor     3.0732        193.33       -.21371E-04   -.14180E-05
   8  norm          .61993        .92959       -.68890E-07   -.94309E-05
   9  Prefactor     .10000E-03    1.6692       -.97197E-08** at limit **
  10  Prefactor     .10000E-03    37.326        .98906E-07** at limit **
  11  norm          3.4511        2.4606       -.24696E-07    .10429E-04
  12  Prefactor     .10000E-03    3.2119       -.13920E-07** at limit **
  13  Prefactor     .10000E-03    .77789        .13511E-08** at limit **
  14  Prefactor     4.3774        2.8503       -.24571E-07    .10742E-04
  15  Prefactor     3.8042        4.2807       -.27821E-06   -.36084E-05
  16  norm          .75933E-01    .16949       -.49088E-07   -.61046E-03
  17  norm          .10000E-03    1.4272        .72020E-08** at limit **
  18  Prefactor     15.027        10.006       -.82104E-06    .33938E-05
  19  Prefactor     .10000E-03    5.2319        .12523E-07** at limit **
  20  Prefactor     .10000E-03    319.48        .37541E-06** at limit **
  21  Prefactor     8.0159        7.3293        .73146E-06    .12642E-04
  22  Prefactor     .10000E-03    1.8569        .74669E-08** at limit **
  23  norm          5.8426        5.1560       -.19822E-05   -.12113E-03
  24  Prefactor     .10001E-03    92.870        .26395E-05** at limit **
  25  norm          4.9438        3.6283       -.11038E-05   -.23936E-04
  26  Prefactor     .10002E-03    8.1375        .42730E-07** at limit **
  27  norm          1.3800        4.3025       -.97195E-06   -.96154E-04
  28  norm          2.9602        3.1126        .38271E-06   -.82121E-03
  29  norm          .10000E-03    2.8612       -.32503E-07** at limit **
  30  Normalizat    1.0943        .18169        .10392E-05    .23150E-04
  31  Prefactor     .97439        .20652        .33331E-06    .53036E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.42822
  Prefactor  = 0.0001
  Prefactor  = 1.51872
  Prefactor  = 108.664
  Prefactor  = 5.93417
  Prefactor  = 0.0001
  Prefactor  = 3.07324
  norm       = 0.619934
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.45106
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.37739
  Prefactor  = 3.80422
  norm       = 0.0759326
  norm       = 0.0001
  Prefactor  = 15.0269
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 8.01588
  Prefactor  = 0.0001
  norm       = 5.84264
  Prefactor  = 0.000100008
  norm       = 4.94385
  Prefactor  = 0.000100018
  norm       = 1.38004
  norm       = 2.96018
  norm       = 0.0001
  Normalizat = 1.09428
  Prefactor  = 0.974394
 **********
 **   18 **HESSE 
 **********

 FCN=   6123.882     FROM HESSE     STATUS=OK           628 CALLS     4247 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.4282        63.130        .18166E-02   -1.5469    
   2  Prefactor     .10000E-03    21.347        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.5187        4.4817        .27299E-03   -1.5461    
   4  Prefactor     108.66        30.088        .38583E-04   -1.3619    
   5  Prefactor     5.9342        2.8406        .83310E-04   -1.5221    
   6  Prefactor     .10000E-03    7.0558        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     3.0732        193.36        .23050E-03   -1.5357    
   8  norm          .61993        .92908        .47006E-04   -1.5551    
   9  Prefactor     .10000E-03    1.6889        .98715E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    37.697        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          3.4511        2.4545        .98950E-04   -1.5336    
  12  Prefactor     .10000E-03    3.2232        .13695E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    .78423        .67301E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     4.3774        2.8481        .97905E-04   -1.5289    
  15  Prefactor     3.8042        4.2677        .16592E-03   -1.5318    
  16  norm          .75933E-01    .16572        .45611E-04   -1.5653    
  17  norm          .10000E-03    1.4380        .91235E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     15.027        10.000        .10332E-03   -1.4932    
  19  Prefactor     .10000E-03    5.2334        .17482E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    322.69        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     8.0159        7.3351        .14161E-03   -1.5142    
  22  Prefactor     .10000E-03    1.8623        .10413E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          5.8426        5.1592        .15685E-03   -1.5224    
  24  Prefactor     .10001E-03    96.029        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          4.9438        3.6232        .12342E-03   -1.5263    
  26  Prefactor     .10002E-03    72.971        .42305E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          1.3800        4.1781        .27121E-03   -1.5473    
  28  norm          2.9602        3.3655        .72639E-03   -1.5364    
  29  norm          .10000E-03    2.8668        .12902E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    1.0943        .21212        .24098E-03   -.89936    
  31  Prefactor     .97439        .23997        .29679E-03   -.93588    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.18096e-09
Minuit parameter uncertainties:
  1  19.0117
  2  2.04715e-05
  3  4.48268
  4  30.0926
  5  2.84063
  6  2.24918e-06
  7  48.9193
  8  0.929104
  9  2.03041e-06
  10  4.51185e-05
  11  2.45453
  12  2.81714e-06
  13  1.18589e-07
  14  2.84823
  15  4.26799
  16  0.165724
  17  5.28863e-07
  18  10.0014
  19  6.43349e-08
  20  0.00193704
  21  7.33589
  22  7.63075e-07
  23  5.15955
  24  0.0017405
  25  3.62336
  26  0.0022855
  27  4.17894
  28  3.36572
  29  1.36533e-06
  30  0.212281
  31  0.240228
Done.

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

Extracting fit parameters...

4FGL J1221.3+3010
   Spectrum: PowerLaw
317    Prefactor:  1.000e-04  1.186e-07  1.000e-04  1.000e+04 ( 1.000e-13)
318        Index:  1.707e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
319        Scale:  4.501e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
625    Prefactor:  9.744e-01  2.402e-01  0.000e+00  1.000e+01 ( 1.000e+00)
626        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
627        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
624   Normalization:  1.094e+00  2.123e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 185.345 30.168
Photon Flux Upper Limit: 3.58e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.62e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/516494/likelihoodResults_346377601_346636801_4FGL_J1221.3+3010_daily_bin413.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) = 6123.88742482
delta logL = -0.00568877810383

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6123.88173598
delta logL = 6.17328623775e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.6955       1.0000          .0000       10.000    
     3 'Normalizat'    1.0943       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97443       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6280E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6123.882     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      195 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .80753        .90712E-02** at limit **
   2  Index         1.6827        5.8059        .50000        .11267E-03
   3  Normalizat    1.0943        .44420E-02    .38238E-01    .10590E-03
   4  Prefactor     .97439        .52194E-02    .67099E-01    .97019E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.68275
  Normalizat = 1.09428
  Prefactor  = 0.974394
 **********
 **   18 **HESSE 
 **********

 FCN=   6123.882     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      228 TOTAL
                     EDM=   .82E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    47.153        .67745E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.6827        5.4245        .50000       -.72542    
   3  Normalizat    1.0943        .36221E-01    .24098E-03   -.89936    
   4  Prefactor     .97439        .42494E-01    .29679E-03   -.93588    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.19582e-07
Minuit parameter uncertainties:
  1  5.75618e-05
  2  28.8604
  3  0.0362221
  4  0.0424953
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/516494': 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) = 6123.88173527
delta logL = 7.71329723648e-07

Extracting fit parameters...

4FGL J1221.3+3010
   Spectrum: PowerLaw
317    Prefactor:  1.000e-04  5.756e-05  1.000e-04  1.000e+04 ( 1.000e-13)
318        Index:  1.683e+00  2.886e+01  0.000e+00  1.000e+01 (-1.000e+00)
319        Scale:  4.501e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
625    Prefactor:  9.744e-01  4.250e-02  0.000e+00  1.000e+01 ( 1.000e+00)
626        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
627        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
624   Normalization:  1.094e+00  3.622e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 185.345 30.168

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/516494/cmap_HighResolution_346377601_346636801_4FGL_J1221.3+3010_daily_bin413.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.62e-03', job_status='DONE', photon_flux_upper_limit='3.58e-08', time_completed='2021-09-05 09:26:31.051255', job_id='516494', GAL2='0.97', fit_tolerance='1e-08', EG2='1.09', EG='1.09', time_epoch_completed='1630859191.05', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.97', dlogl='7.71e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.71' WHERE bin_id='413' AND source_name='4FGL J1221.3+3010' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 09:26:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0203>
Subject: Job 516494: <4FGL_J1221.3+3010_daily_bin413> in cluster <slac> Done

Job <4FGL_J1221.3+3010_daily_bin413> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sun Sep  5 09:10:44 2021
Job was executed on host(s) <bullet0203>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 09:10:46 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep  5 09:10:46 2021
Terminated at Sun Sep  5 09:26:31 2021
Results reported at Sun Sep  5 09:26:31 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1221.3+3010_daily_bin413 185.345 30.1677 346377601 346636801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1221.3+3010 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   901.06 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             290.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   945 sec.
    Turnaround time :                            947 sec.

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

