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


Performing analysis on: 4FGL_J1221.3+3010_daily_bin1184
RA = 185.345, Dec = 30.1677
tmin = 546220801, tmax = 546480001
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='521638', job_status='RUN', time_executed='2021-09-05 09:26:08.612503', time_epoch_executed='1630859168.61' WHERE source_name='4FGL J1221.3+3010' and cadence='daily' and bin_id='1184'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/521638

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/521638/ft1_4FGL_J1221.3+3010_daily_bin1184.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/521638/ft2_4FGL_J1221.3+3010_daily_bin1184.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/521638/ft1_4FGL_J1221.3+3010_daily_bin1184.fits outfile=/scratch/kocevski/521638/ft1_filteredMKT_4FGL_J1221.3+3010_daily_bin1184.fits ra=185.345 dec=30.1677 rad=12.0 tmin=546220801.0 tmax=546480001.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 4.11
user 3.67
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/521638/ft1_filtered_4FGL_J1221.3+3010_daily_bin1184.fits" evtable="EVENTS" scfile=/scratch/kocevski/521638/ft2_4FGL_J1221.3+3010_daily_bin1184.fits sctable="SC_DATA" outfile=/scratch/kocevski/521638/ltcube_546220801_546480001_4FGL_J1221.3+3010_daily_bin1184.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/521638/ft2_4FGL_J1221.3+3010_daily_bin1184.fits
.....................!
real 11.78
user 11.25
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/521638/ft1_filtered_4FGL_J1221.3+3010_daily_bin1184.fits evtable="EVENTS" scfile=/scratch/kocevski/521638/ft2_4FGL_J1221.3+3010_daily_bin1184.fits sctable="SC_DATA" expcube=/scratch/kocevski/521638/ltcube_546220801_546480001_4FGL_J1221.3+3010_daily_bin1184.fits outfile=/scratch/kocevski/521638/expmap_546220801_546480001_4FGL_J1221.3+3010_daily_bin1184.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/521638/ltcube_546220801_546480001_4FGL_J1221.3+3010_daily_bin1184.fits
.....................!
real 189.92
user 184.81
sys 4.63

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/521638/ft1_filtered_4FGL_J1221.3+3010_daily_bin1184.fits scfile=/scratch/kocevski/521638/ft2_4FGL_J1221.3+3010_daily_bin1184.fits outfile=/scratch/kocevski/521638/cmap_546220801_546480001_4FGL_J1221.3+3010_daily_bin1184.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.54
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/521638/ft1_filtered_4FGL_J1221.3+3010_daily_bin1184.fits scfile=/scratch/kocevski/521638/ft2_4FGL_J1221.3+3010_daily_bin1184.fits outfile=/scratch/kocevski/521638/cmap_HighResolution_546220801_546480001_4FGL_J1221.3+3010_daily_bin1184.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.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .68880E-02   1.0000         .10000E-03   10000.    
     2 'Prefactor '    25.397       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    37.978       1.0000         .10000E-03   10000.    
     5 'Prefactor '    6.4200       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .31348E-01   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .17879       1.0000         .10000E-03   10000.    
     8 'norm      '    19.014       1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.7835       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10145E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    7.9453       1.0000         .10000E-03   10000.    
    12 'Prefactor '    10.173       1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.3572       1.0000         .10000E-03   10000.    
    14 'Prefactor '    10.192       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    1.1946       1.0000         .10000E-03   10000.    
    17 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .38641E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .18198E-02   1.0000         .10000E-03   10000.    
    20 'Prefactor '    148.89       1.0000         .10000E-03   10000.    
    21 'Prefactor '    3.8961       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .12561E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .57403E-02   1.0000         .10000E-03   10000.    
    25 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    166.37       1.0000         .10000E-03   10000.    
    27 'norm      '    12.619       1.0000         .10000E-03   10000.    
    28 'norm      '    .25924E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    28.414       1.0000         .10000E-03   10000.    
    30 'Normalizat'    .56607       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .92568       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=   2560.493     FROM MIGRAD    STATUS=CONVERGED    963 CALLS     3862 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    117.01        .93628E-02** at limit **
   2  Prefactor     26.396        33.233        .19872E-02    .17035E-03
   3  Prefactor     .10000E-03    17.990        .90712E-02** at limit **
   4  Prefactor     35.982        55.869        .16259E-02   -.52899E-04
   5  Prefactor     6.4768        4.1520        .39601E-02    .22810E-04
   6  Prefactor     .10000E-03    125.66        .91787E-02** at limit **
   7  Prefactor     .10000E-03    245.74        .98804E-02** at limit **
   8  norm          19.030        4.4415        .22963E-02   -.78007E-04
   9  Prefactor     4.7777        5.2995        .45988E-02    .63718E-04
  10  Prefactor     .10000E-03    28.949        .90712E-02** at limit **
  11  norm          7.9460        7.1348        .35562E-02    .64241E-03
  12  Prefactor     10.113        13.403        .31407E-02    .27907E-04
  13  Prefactor     3.3566        5.0746        .55217E-02    .10799E-03
  14  Prefactor     10.191        5.7498        .31377E-02   -.51736E-04
  15  Prefactor     .10000E-03    7.4190        .90712E-02** at limit **
  16  norm          1.1935        .48700        .44003E-02   -.21487E-03
  17  norm          .10000E-03    4.9019        .90712E-02** at limit **
  18  Prefactor     .10000E-03    48.110        .10640E-01** at limit **
  19  Prefactor     .10000E-03    58.160        .10156E-01** at limit **
  20  Prefactor     142.98        158.76        .82571E-03    .46115E-04
  21  Prefactor     3.8945        6.7918        .51102E-02    .87175E-04
  22  Prefactor     .10000E-03    34.578        .90712E-02** at limit **
  23  norm          .10000E-03    8.0402        .90712E-02** at limit **
  24  Prefactor     .10000E-03    94.096        .95029E-02** at limit **
  25  norm          .10000E-03    2.4210        .90712E-02** at limit **
  26  Prefactor     180.32        391.46        .78183E-03   -.16730E-04
  27  norm          7.3854        173.27        .28190E-02    .89699E-04
  28  norm          .10000E-03    47.890        .10725E-01** at limit **
  29  norm          28.226        28.731        .18790E-02   -.40239E-04
  30  Normalizat    .56899        .37508        .86106E-01   -.67462E-05
  31  Prefactor     .92422        .33728        .70305E-01   -.20072E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 26.3962
  Prefactor  = 0.0001
  Prefactor  = 35.9822
  Prefactor  = 6.47682
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  norm       = 19.0301
  Prefactor  = 4.77769
  Prefactor  = 0.0001
  norm       = 7.94602
  Prefactor  = 10.1128
  Prefactor  = 3.35661
  Prefactor  = 10.1908
  Prefactor  = 0.0001
  norm       = 1.19353
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 142.977
  Prefactor  = 3.89449
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 180.322
  norm       = 7.38542
  norm       = 0.0001
  norm       = 28.2259
  Normalizat = 0.568988
  Prefactor  = 0.924219
 **********
 **   18 **HESSE 
 **********

 FCN=   2560.493     FROM HESSE     STATUS=OK           608 CALLS     4470 TOTAL
                     EDM=   .95E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    117.88        .18726E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     26.396        33.156        .79489E-04   -1.4680    
   3  Prefactor     .10000E-03    18.203        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     35.982        56.461        .65037E-04   -1.4508    
   5  Prefactor     6.4768        4.1546        .69519E-04   -1.5199    
   6  Prefactor     .10000E-03    126.10        .18357E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    245.75        .19761E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          19.030        4.4408        .46881E-04   -1.4835    
   9  Prefactor     4.7777        5.2940        .11355E-03   -1.5271    
  10  Prefactor     .10000E-03    28.951        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          7.9460        7.2175        .53294E-03   -1.5144    
  12  Prefactor     10.113        13.401        .12563E-03   -1.5072    
  13  Prefactor     3.3566        5.1198        .11749E-03   -1.5342    
  14  Prefactor     10.191        5.7440        .83762E-04   -1.5069    
  15  Prefactor     .10000E-03    7.4404        .13453E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.1935        .48939        .19506E-04   -1.5489    
  17  norm          .10000E-03    4.9221        .10934E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    49.907        .42559E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    58.160        .20312E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     142.98        158.87        .16514E-03   -1.3311    
  21  Prefactor     3.8945        6.7858        .16842E-03   -1.5313    
  22  Prefactor     .10000E-03    34.579        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    8.0432        .14013E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    94.110        .19006E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    2.4235        .76892E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     180.32        386.82        .31273E-04   -1.3014    
  27  norm          7.3854        168.62        .11276E-03   -1.5164    
  28  norm          .10000E-03    47.996        .42901E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          28.226        28.360        .75159E-04   -1.4645    
  30  Normalizat    .56899        .41833        .38149E-03   -1.0932    
  31  Prefactor     .92422        .38271        .31101E-03   -.95300    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.45544e-10
Minuit parameter uncertainties:
  1  0.000292554
  2  33.1794
  3  3.20182e-06
  4  56.5447
  5  4.15479
  6  0.000249628
  7  0.00208163
  8  4.44087
  9  5.29453
  10  3.59762e-05
  11  7.21833
  12  13.4049
  13  5.12042
  14  5.7443
  15  4.3014e-06
  16  0.489387
  17  6.61033e-06
  18  2.88895e-05
  19  6.65306e-05
  20  159.351
  21  6.78717
  22  6.45322e-05
  23  3.236e-06
  24  0.000229345
  25  3.5303e-06
  26  392.482
  27  70.8053
  28  0.000126402
  29  28.3737
  30  0.42068
  31  0.383836
Done.

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

Extracting fit parameters...

4FGL J1221.3+3010
   Spectrum: PowerLaw
317    Prefactor:  3.357e+00  5.120e+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:  9.242e-01  3.838e-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:  5.690e-01  4.207e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.05
Ra Dec: 185.345 30.168
Photon Index (Fixed Index): 1.71 +/- 0.00
Photon Flux (Fixed Index): 3.13e-08 +/- 4.78e-08
Energy Flux (Fixed Index): 5.00e-05 +/- 7.62e-05

TS (Fixed Index): 1.05
Ra Dec: 185.345 30.168
Photon Flux Upper Limit: 1.49e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.09e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/521638/likelihoodResults_546220801_546480001_4FGL_J1221.3+3010_daily_bin1184.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) = 2560.16505565
delta logL = 0.327947255755

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2560.15758014
delta logL = 0.335422762973

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.4548       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4101       1.0000          .0000       10.000    
     3 'Normalizat'    .52174       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94711       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=   2560.158     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      244 TOTAL
                     EDM=   .33E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.4548        32.155        .89248E-02    .56075E-03
   2  Index         2.4101        2.7600        .10034        .65731E-04
   3  Normalizat    .52175        .10465        .89494E-01    .16899E-04
   4  Prefactor     .94708        .94769E-01    .69394E-01    .42133E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.45483
  Index      = 2.41014
  Normalizat = 0.521754
  Prefactor  = 0.947083
 **********
 **   18 **HESSE 
 **********

 FCN=   2560.158     FROM HESSE     STATUS=OK            33 CALLS      277 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.4548        3.6889        .56707E-04   -1.5467    
   2  Index         2.4101        1.0567        .34958E-02   -.54448    
   3  Normalizat    .52175        .36774        .39658E-03   -1.1142    
   4  Prefactor     .94708        .37144        .30695E-03   -.94515    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.51185e-09
Minuit parameter uncertainties:
  1  3.68943
  2  1.06773
  3  0.369467
  4  0.372446
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/521638': 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) = 2560.15758014
delta logL = 0.335422767542

Extracting fit parameters...

4FGL J1221.3+3010
   Spectrum: PowerLaw
317    Prefactor:  1.455e+00  3.689e+00  1.000e-04  1.000e+04 ( 1.000e-13)
318        Index:  2.410e+00  1.068e+00  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.471e-01  3.724e-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:  5.218e-01  3.695e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.76
Ra Dec: 185.345 30.168
Photon Index (Free Index): 2.41 +/- 1.07
Photon Flux (Free Index): 9.97e-08 +/- 1.35e-07
Energy Flux (Free Index): 3.22e-05 +/- 3.39e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/521638/cmap_HighResolution_546220801_546480001_4FGL_J1221.3+3010_daily_bin1184.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.09e-02', comment='SUCCESS', photon_flux='3.13e-08', energy_flux2='3.22e-05', photon_flux_error='4.78e-08', dlogl='3.35e-01', energy_flux='5.00e-05', photon_flux2='9.97e-08', job_status='DONE', time_completed='2021-09-05 09:35:26.876986', photon_index_error2='1.07', photon_index2='2.41', ts='1.05', fit_tolerance='1e-08', GAL='0.92', photon_index_error='0.00', photon_flux_upper_limit='1.49e-07', energy_flux_error2='3.39e-05', EG='0.57', time_epoch_completed='1630859726.88', return_code='0', job_id='521638', GAL2='0.95', EG2='0.52', return_code2='0', energy_flux_error='7.62e-05', photon_flux_error2='1.35e-07', ts2='1.76', photon_index='1.71' WHERE bin_id='1184' AND source_name='4FGL J1221.3+3010' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 09:35:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0055>
Subject: Job 521638: <4FGL_J1221.3+3010_daily_bin1184> in cluster <slac> Done

Job <4FGL_J1221.3+3010_daily_bin1184> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sun Sep  5 09:25:52 2021
Job was executed on host(s) <bullet0055>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 09:25:54 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:25:54 2021
Terminated at Sun Sep  5 09:35:27 2021
Results reported at Sun Sep  5 09:35:27 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1221.3+3010_daily_bin1184 185.345 30.1677 546220801 546480001 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 :                                   546.38 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             280.39 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   573 sec.
    Turnaround time :                            575 sec.

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

