/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 1 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 = 7560
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1221.3+3010_daily_bin56
RA = 185.345, Dec = 30.1677
tmin = 253843201, tmax = 254102401
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='511171', job_status='RUN', time_executed='2021-09-05 08:55:53.559446', time_epoch_executed='1630857353.56' WHERE source_name='4FGL J1221.3+3010' and cadence='daily' and bin_id='56'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/511171

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/511171/ft1_4FGL_J1221.3+3010_daily_bin56.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/511171/ft2_4FGL_J1221.3+3010_daily_bin56.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/511171/ft1_4FGL_J1221.3+3010_daily_bin56.fits outfile=/scratch/kocevski/511171/ft1_filteredMKT_4FGL_J1221.3+3010_daily_bin56.fits ra=185.345 dec=30.1677 rad=12.0 tmin=253843201.0 tmax=254102401.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 1.48
user 1.28
sys 0.17

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/511171/ft1_filtered_4FGL_J1221.3+3010_daily_bin56.fits" evtable="EVENTS" scfile=/scratch/kocevski/511171/ft2_4FGL_J1221.3+3010_daily_bin56.fits sctable="SC_DATA" outfile=/scratch/kocevski/511171/ltcube_253843201_254102401_4FGL_J1221.3+3010_daily_bin56.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/511171/ft2_4FGL_J1221.3+3010_daily_bin56.fits
.....................!
real 12.87
user 12.47
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/511171/ft1_filtered_4FGL_J1221.3+3010_daily_bin56.fits evtable="EVENTS" scfile=/scratch/kocevski/511171/ft2_4FGL_J1221.3+3010_daily_bin56.fits sctable="SC_DATA" expcube=/scratch/kocevski/511171/ltcube_253843201_254102401_4FGL_J1221.3+3010_daily_bin56.fits outfile=/scratch/kocevski/511171/expmap_253843201_254102401_4FGL_J1221.3+3010_daily_bin56.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/511171/ltcube_253843201_254102401_4FGL_J1221.3+3010_daily_bin56.fits
.....................!
real 192.05
user 186.75
sys 4.73

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/511171/ft1_filtered_4FGL_J1221.3+3010_daily_bin56.fits scfile=/scratch/kocevski/511171/ft2_4FGL_J1221.3+3010_daily_bin56.fits outfile=/scratch/kocevski/511171/cmap_253843201_254102401_4FGL_J1221.3+3010_daily_bin56.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.53
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/511171/ft1_filtered_4FGL_J1221.3+3010_daily_bin56.fits scfile=/scratch/kocevski/511171/ft2_4FGL_J1221.3+3010_daily_bin56.fits outfile=/scratch/kocevski/511171/cmap_HighResolution_253843201_254102401_4FGL_J1221.3+3010_daily_bin56.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.56
user 0.38
sys 0.17

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/511171/ft1_filtered_4FGL_J1221.3+3010_daily_bin56.fits', '/scratch/kocevski/511171/ft2_4FGL_J1221.3+3010_daily_bin56.fits', expMap='/scratch/kocevski/511171/expmap_253843201_254102401_4FGL_J1221.3+3010_daily_bin56.fits', expCube='/scratch/kocevski/511171/ltcube_253843201_254102401_4FGL_J1221.3+3010_daily_bin56.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/511171/Model_4FGL_J1221.3+3010_daily_bin56.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/511171/ft1_filtered_4FGL_J1221.3+3010_daily_bin56.fits
Spacecraft file(s): /scratch/kocevski/511171/ft2_4FGL_J1221.3+3010_daily_bin56.fits
Exposure map: /scratch/kocevski/511171/expmap_253843201_254102401_4FGL_J1221.3+3010_daily_bin56.fits
Exposure cube: /scratch/kocevski/511171/ltcube_253843201_254102401_4FGL_J1221.3+3010_daily_bin56.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/511171/Model_4FGL_J1221.3+3010_daily_bin56.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) = 5424.4874538

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    9.9792       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .25708E-01   1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.3731       1.0000         .10000E-03   10000.    
     6 'Prefactor '    15.438       1.0000         .10000E-03   10000.    
     7 'Prefactor '    24.449       1.0000         .10000E-03   10000.    
     8 'norm      '    3.3178       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    16.340       1.0000         .10000E-03   10000.    
    11 'norm      '    7.2237       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.2314       1.0000         .10000E-03   10000.    
    14 'Prefactor '    7.9593       1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.9476       1.0000         .10000E-03   10000.    
    16 'norm      '    .21230       1.0000         .10000E-03   10000.    
    17 'norm      '    2.6468       1.0000         .10000E-03   10000.    
    18 'Prefactor '    24.812       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    6.0962       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .63911       1.0000         .10000E-03   10000.    
    23 'norm      '    .10267E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    52.461       1.0000         .10000E-03   10000.    
    25 'norm      '    9.7043       1.0000         .10000E-03   10000.    
    26 'Prefactor '    13.665       1.0000         .10000E-03   10000.    
    27 'norm      '    .10820E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    5.1813       1.0000         .10000E-03   10000.    
    29 'norm      '    12.768       1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.0665       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .83487       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=   5424.480     FROM MIGRAD    STATUS=CONVERGED    799 CALLS     4220 TOTAL
                     EDM=   .17E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    10.042       -.25386E-06** at limit **
   2  Prefactor     9.9831        14.392        .64166E-06    .31218E-04
   3  Prefactor     .10000E-03    1.6895       -.38421E-07** at limit **
   4  Prefactor     .10004E-03    17.993       -.42220E-06** at limit **
   5  Prefactor     2.3727        1.8701        .19545E-07   -.25952E-04
   6  Prefactor     15.439        25.270        .55115E-06    .71884E-05
   7  Prefactor     24.409        66.403        .82706E-05    .65704E-04
   8  norm          3.3176        1.4823        .16850E-07   -.68741E-04
   9  Prefactor     .10000E-03    1.9349        .46450E-07** at limit **
  10  Prefactor     16.341        27.036        .50773E-06    .52088E-05
  11  norm          7.2236        3.6404       -.53418E-07   -.37784E-04
  12  Prefactor     .10000E-03    2.5690        .17942E-07** at limit **
  13  Prefactor     1.2313        2.0901        .17952E-06    .10889E-03
  14  Prefactor     7.9595        3.1612       -.21601E-06   -.23672E-03
  15  Prefactor     3.9477        4.1755       -.18253E-06    .42805E-04
  16  norm          .21230        .16527        .80337E-08    .24318E-03
  17  norm          2.6469        4.9713        .33603E-05   -.31370E-03
  18  Prefactor     24.813        13.852       -.16457E-06   -.18990E-04
  19  Prefactor     .10000E-03    8.3214        .57476E-07** at limit **
  20  Prefactor     .10000E-03    37.495       -.13161E-06** at limit **
  21  Prefactor     6.0961        6.2998        .37965E-07   -.79631E-05
  22  Prefactor     .64294        6.6583        .17212E-05    .83961E-04
  23  norm          .10000E-03    1.8166        .26566E-07** at limit **
  24  Prefactor     52.458        34.216        .21439E-06   -.22843E-04
  25  norm          9.7045        5.1019        .47501E-07   -.16817E-04
  26  Prefactor     13.654        22.287       -.12470E-05   -.96439E-04
  27  norm          .10000E-03    4.4011        .51139E-06** at limit **
  28  norm          5.1809        8.0577        .15987E-06   -.18286E-04
  29  norm          12.771        13.106       -.96659E-07   -.23811E-04
  30  Normalizat    1.0664        .20530       -.13727E-05   -.63118E-04
  31  Prefactor     .83501        .22493        .10175E-06   -.69023E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 9.98307
  Prefactor  = 0.0001
  Prefactor  = 0.000100037
  Prefactor  = 2.37266
  Prefactor  = 15.4385
  Prefactor  = 24.4093
  norm       = 3.31758
  Prefactor  = 0.0001
  Prefactor  = 16.3414
  norm       = 7.22363
  Prefactor  = 0.0001
  Prefactor  = 1.23128
  Prefactor  = 7.95952
  Prefactor  = 3.94767
  norm       = 0.212303
  norm       = 2.64689
  Prefactor  = 24.8133
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.09608
  Prefactor  = 0.642938
  norm       = 0.0001
  Prefactor  = 52.4584
  norm       = 9.70453
  Prefactor  = 13.6541
  norm       = 0.0001
  norm       = 5.18093
  norm       = 12.7705
  Normalizat = 1.06642
  Prefactor  = 0.835009
 **********
 **   18 **HESSE 
 **********

 FCN=   5424.480     FROM HESSE     STATUS=OK           636 CALLS     4856 TOTAL
                     EDM=   .50E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    10.061        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     9.9831        14.378        .12685E-03   -1.5076    
   3  Prefactor     .10000E-03    1.6954        .93477E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10004E-03    165.91        .57014E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     2.3727        1.8360        .84062E-04   -1.5400    
   6  Prefactor     15.439        25.292        .10194E-03   -1.4922    
   7  Prefactor     24.409        66.512        .81012E-04   -1.4719    
   8  norm          3.3176        1.4694        .56572E-04   -1.5344    
   9  Prefactor     .10000E-03    1.9602        .10002E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     16.341        27.032        .99082E-04   -1.4899    
  11  norm          7.2236        3.6525        .88748E-04   -1.5170    
  12  Prefactor     .10000E-03    2.5753        .11528E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     1.2313        2.0523        .12446E-03   -1.5486    
  14  Prefactor     7.9595        3.1593        .77198E-04   -1.5144    
  15  Prefactor     3.9477        4.1782        .14898E-03   -1.5311    
  16  norm          .21230        .16276        .25459E-04   -1.5616    
  17  norm          2.6469        4.9911        .10638E-02   -1.5383    
  18  Prefactor     24.813        13.857        .80418E-04   -1.4711    
  19  Prefactor     .10000E-03    8.3236        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    37.508        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     6.0961        6.2996        .16261E-03   -1.5214    
  22  Prefactor     .64294        6.5015        .35309E-03   -1.5548    
  23  norm          .10000E-03    1.8209        .96850E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     52.458        34.183        .55374E-04   -1.4258    
  25  norm          9.7045        5.0997        .11597E-03   -1.5085    
  26  Prefactor     13.654        22.016        .10835E-03   -1.4969    
  27  norm          .10000E-03    4.4509        .15082E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          5.1809        8.2261        .15972E-03   -1.5253    
  29  norm          12.771        13.429        .11210E-03   -1.4993    
  30  Normalizat    1.0664        .23828        .24344E-03   -.90837    
  31  Prefactor     .83501        .26247        .31549E-03   -.98450    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.01843e-10
Minuit parameter uncertainties:
  1  3.58257e-05
  2  14.3828
  3  2.80665e-06
  4  0.00496194
  5  1.836
  6  25.3092
  7  66.7151
  8  1.46942
  9  4.27465e-06
  10  27.0518
  11  3.65266
  12  9.62837e-07
  13  2.05238
  14  3.15935
  15  4.17848
  16  0.16276
  17  4.99186
  18  13.8586
  19  7.37465e-06
  20  6.5429e-06
  21  6.3003
  22  4.0893
  23  2.7287e-06
  24  34.1956
  25  5.09991
  26  22.0286
  27  5.89969e-05
  28  8.22785
  29  13.4318
  30  0.238515
  31  0.262862
Done.

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

Extracting fit parameters...

4FGL J1221.3+3010
   Spectrum: PowerLaw
317    Prefactor:  1.231e+00  2.052e+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

GAL_V02
   Spectrum: PowerLaw
625    Prefactor:  8.350e-01  2.629e-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.066e+00  2.385e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/511171/likelihoodResults_253843201_254102401_4FGL_J1221.3+3010_daily_bin56.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) = 5424.47843589
delta logL = 0.00172591622231

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5424.47790383
delta logL = 0.00225798181964

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.3025       1.0000         .10000E-03   10000.    
     2 'Index     '    1.6626       1.0000          .0000       10.000    
     3 'Normalizat'    1.0669       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83480       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=   5424.478     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      216 TOTAL
                     EDM=   .66E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.3025        84.576        .96753E-02    .10616E-02
   2  Index         1.6626        5.6043        .15913        .90564E-04
   3  Normalizat    1.0669        .59458E-01    .39546E-01    .81609E-05
   4  Prefactor     .83479        .65759E-01    .71310E-01    .15699E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.30247
  Index      = 1.66257
  Normalizat = 1.06687
  Prefactor  = 0.834786
 **********
 **   18 **HESSE 
 **********

 FCN=   5424.478     FROM HESSE     STATUS=OK            33 CALLS      249 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.3025        2.3101        .12782E-03   -1.5480    
   2  Index         1.6626        .68610        .88016E-02   -.73083    
   3  Normalizat    1.0669        .22008        .24340E-03   -.90823    
   4  Prefactor     .83479        .25634        .31554E-03   -.98459    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.32736e-10
Minuit parameter uncertainties:
  1  2.31028
  2  0.690047
  3  0.220269
  4  0.256708
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/511171': 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) = 5424.47790383
delta logL = 0.00225798390147

Extracting fit parameters...

4FGL J1221.3+3010
   Spectrum: PowerLaw
317    Prefactor:  1.302e+00  2.310e+00  1.000e-04  1.000e+04 ( 1.000e-13)
318        Index:  1.663e+00  6.900e-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:  8.348e-01  2.567e-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.067e+00  2.203e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.66
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/511171/cmap_HighResolution_253843201_254102401_4FGL_J1221.3+3010_daily_bin56.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.64e-03', job_status='DONE', photon_flux_upper_limit='6.35e-08', time_completed='2021-09-05 09:10:23.113800', job_id='511171', GAL2='0.83', fit_tolerance='1e-08', EG2='1.07', EG='1.07', time_epoch_completed='1630858223.11', return_code2='0', ts='0.66', comment='SUCCESS', return_code='0', GAL='0.84', dlogl='2.26e-03', ts2='0.68', photon_index_error='0.00', photon_index='1.71' WHERE bin_id='56' AND source_name='4FGL J1221.3+3010' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 09:10:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0083>
Subject: Job 511171: <4FGL_J1221.3+3010_daily_bin56> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1221.3+3010_daily_bin56 185.345 30.1677 253843201 254102401 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 :                                   866.03 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             332.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   879 sec.
    Turnaround time :                            884 sec.

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

