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


Performing analysis on: 4FGL_J1221.3+3010_daily_bin1225
RA = 185.345, Dec = 30.1677
tmin = 556848001, tmax = 557107201
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='521679', job_status='RUN', time_executed='2021-09-05 09:29:14.576265', time_epoch_executed='1630859354.58' WHERE source_name='4FGL J1221.3+3010' and cadence='daily' and bin_id='1225'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/521679

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/521679/ft1_4FGL_J1221.3+3010_daily_bin1225.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/521679/ft2_4FGL_J1221.3+3010_daily_bin1225.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/521679/ft1_4FGL_J1221.3+3010_daily_bin1225.fits outfile=/scratch/kocevski/521679/ft1_filteredMKT_4FGL_J1221.3+3010_daily_bin1225.fits ra=185.345 dec=30.1677 rad=12.0 tmin=556848001.0 tmax=557107201.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.59
user 3.38
sys 0.17

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/521679/ft1_filtered_4FGL_J1221.3+3010_daily_bin1225.fits" evtable="EVENTS" scfile=/scratch/kocevski/521679/ft2_4FGL_J1221.3+3010_daily_bin1225.fits sctable="SC_DATA" outfile=/scratch/kocevski/521679/ltcube_556848001_557107201_4FGL_J1221.3+3010_daily_bin1225.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/521679/ft2_4FGL_J1221.3+3010_daily_bin1225.fits
.....................!
real 12.07
user 11.70
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/521679/ft1_filtered_4FGL_J1221.3+3010_daily_bin1225.fits evtable="EVENTS" scfile=/scratch/kocevski/521679/ft2_4FGL_J1221.3+3010_daily_bin1225.fits sctable="SC_DATA" expcube=/scratch/kocevski/521679/ltcube_556848001_557107201_4FGL_J1221.3+3010_daily_bin1225.fits outfile=/scratch/kocevski/521679/expmap_556848001_557107201_4FGL_J1221.3+3010_daily_bin1225.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/521679/ltcube_556848001_557107201_4FGL_J1221.3+3010_daily_bin1225.fits
.....................!
real 189.07
user 184.78
sys 3.98

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/521679/ft1_filtered_4FGL_J1221.3+3010_daily_bin1225.fits scfile=/scratch/kocevski/521679/ft2_4FGL_J1221.3+3010_daily_bin1225.fits outfile=/scratch/kocevski/521679/cmap_556848001_557107201_4FGL_J1221.3+3010_daily_bin1225.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.55
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/521679/ft1_filtered_4FGL_J1221.3+3010_daily_bin1225.fits scfile=/scratch/kocevski/521679/ft2_4FGL_J1221.3+3010_daily_bin1225.fits outfile=/scratch/kocevski/521679/cmap_HighResolution_556848001_557107201_4FGL_J1221.3+3010_daily_bin1225.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/521679/ft1_filtered_4FGL_J1221.3+3010_daily_bin1225.fits evtable="EVENTS" scfile=/scratch/kocevski/521679/ft2_4FGL_J1221.3+3010_daily_bin1225.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/521679/Model_4FGL_J1221.3+3010_daily_bin1225.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/521679/ft1_filtered_4FGL_J1221.3+3010_daily_bin1225.fits.....................!
real 25.31
user 23.47
sys 1.17

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/521679/ft1_filtered_4FGL_J1221.3+3010_daily_bin1225.fits', '/scratch/kocevski/521679/ft2_4FGL_J1221.3+3010_daily_bin1225.fits', expMap='/scratch/kocevski/521679/expmap_556848001_557107201_4FGL_J1221.3+3010_daily_bin1225.fits', expCube='/scratch/kocevski/521679/ltcube_556848001_557107201_4FGL_J1221.3+3010_daily_bin1225.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/521679/Model_4FGL_J1221.3+3010_daily_bin1225.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/521679/ft1_filtered_4FGL_J1221.3+3010_daily_bin1225.fits
Spacecraft file(s): /scratch/kocevski/521679/ft2_4FGL_J1221.3+3010_daily_bin1225.fits
Exposure map: /scratch/kocevski/521679/expmap_556848001_557107201_4FGL_J1221.3+3010_daily_bin1225.fits
Exposure cube: /scratch/kocevski/521679/ltcube_556848001_557107201_4FGL_J1221.3+3010_daily_bin1225.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/521679/Model_4FGL_J1221.3+3010_daily_bin1225.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 1794.43470858

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    340.55       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10172E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    136.53       1.0000         .10000E-03   10000.    
     4 'Prefactor '    146.11       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .25485E-02   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .11358E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    3.1957       1.0000         .10000E-03   10000.    
     9 'Prefactor '    45.292       1.0000         .10000E-03   10000.    
    10 'Prefactor '    56.045       1.0000         .10000E-03   10000.    
    11 'norm      '    6.1192       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .76474       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .11093E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .46515       1.0000         .10000E-03   10000.    
    17 'norm      '    2.8927       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10571E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    10.102       1.0000         .10000E-03   10000.    
    22 'Prefactor '    1.2977       1.0000         .10000E-03   10000.    
    23 'norm      '    .10194E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    19.104       1.0000         .10000E-03   10000.    
    25 'norm      '    10.513       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .11655E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    92.777       1.0000         .10000E-03   10000.    
    28 'norm      '    .10070E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.1406       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .49070       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6280E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   1794.400     FROM MIGRAD    STATUS=CONVERGED    137 CALLS     3531 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     340.55        1.1800       -.38234E-07    .89161E-03
   2  Prefactor     .11589E-03    86.907        .24940E-04** at limit **
   3  Prefactor     136.47        15.002       -.15550E-05    .16255E-01
   4  Prefactor     146.09        3.8522       -.36058E-06    .38299E-02
   5  Prefactor     .10000E-03    2.8893       -.43393E-06** at limit **
   6  Prefactor     .13432E-03    56.181        .11571E-04** at limit **
   7  Prefactor     .20294E-03    228.27        .14767E-04** at limit **
   8  norm          3.1942        3.1411       -.35147E-06    .10969E-04
   9  Prefactor     45.293        1.0045       -.54407E-07   -.12580E-03
  10  Prefactor     55.934        25.801       -.41618E-05    .17931E-01
  11  norm          6.1190        6.1378       -.23542E-05   -.12029E-02
  12  Prefactor     .10000E-03    8.5267        .71079E-06** at limit **
  13  Prefactor     .10000E-03    4.3767       -.25935E-05** at limit **
  14  Prefactor     .76262        6.7292        .88429E-05    .19516E-03
  15  Prefactor     .10044E-03    26.705       -.11385E-04** at limit **
  16  norm          .46494        .52191       -.71876E-06   -.18078E-03
  17  norm          2.8906        1.2302       -.11933E-05   -.97624E-04
  18  Prefactor     .10037E-03    12.769        .72944E-06** at limit **
  19  Prefactor     .10001E-03    21.758       -.13618E-05** at limit **
  20  Prefactor     .10566E-03    64.789       -.75220E-05** at limit **
  21  Prefactor     10.101        1.2213        .23454E-06    .61511E-03
  22  Prefactor     1.3034        13.396        .25417E-04    .61337E-03
  23  norm          .10000E-03    6.1119        .40483E-05** at limit **
  24  Prefactor     19.104        1.0837       -.21211E-06    .29819E-03
  25  norm          10.513        6.9577        .48938E-05    .63251E-02
  26  Prefactor     .10005E-03    22.501        .80783E-05** at limit **
  27  norm          92.770        1.1797        .15369E-06    .52692E-03
  28  norm          .10000E-03    2.4527       -.35684E-07** at limit **
  29  norm          .10000E-03    3.7753       -.10667E-05** at limit **
  30  Normalizat    1.1410        .41070        .22406E-05   -.11558E-06
  31  Prefactor     .49012        .44404       -.12678E-04   -.50235E-07
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 340.548
  Prefactor  = 0.000115889
  Prefactor  = 136.467
  Prefactor  = 146.091
  Prefactor  = 0.0001
  Prefactor  = 0.000134319
  Prefactor  = 0.000202937
  norm       = 3.19416
  Prefactor  = 45.2931
  Prefactor  = 55.9344
  norm       = 6.11901
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.76262
  Prefactor  = 0.00010044
  norm       = 0.464938
  norm       = 2.89058
  Prefactor  = 0.000100371
  Prefactor  = 0.000100006
  Prefactor  = 0.000105658
  Prefactor  = 10.1013
  Prefactor  = 1.30344
  norm       = 0.0001
  Prefactor  = 19.1044
  norm       = 10.5133
  Prefactor  = 0.000100053
  norm       = 92.7698
  norm       = 0.0001
  norm       = 0.0001
  Normalizat = 1.14103
  Prefactor  = 0.490124
 **********
 **   18 **HESSE 
 **********

 FCN=   1794.400     FROM HESSE     STATUS=OK           678 CALLS     4209 TOTAL
                     EDM=   .11E-04    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     340.55        374.82        .55136E-03   -1.1996    
   2  Prefactor     .11589E-03    88.875        .90712E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     136.47        147.32        .86173E-03   -1.3366    
   4  Prefactor     146.09        114.09        .83342E-03   -1.3285    
   5  Prefactor     .10000E-03    2.8875        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .13432E-03    319.35        .99993E-02   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .20294E-03    289.78        .90712E-02   -1.5710    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          3.1942        3.1852        .56665E-02   -1.5351    
   9  Prefactor     45.293        20.899        .14894E-02   -1.4361    
  10  Prefactor     55.934        122.47        .13396E-02   -1.4211    
  11  norm          6.1190        6.2427        .40575E-02   -1.5213    
  12  Prefactor     .10000E-03    8.5233        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    4.3620        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .76262        7.2207        .12308E-01   -1.5533    
  15  Prefactor     .10044E-03    27.909        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .46494        .54383        .68952E-02   -1.5572    
  17  norm          2.8906        14.256        .59734E-02   -1.5368    
  18  Prefactor     .10037E-03    31.367        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10001E-03    21.762        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10566E-03    65.705        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     10.101        12.691        .31518E-02   -1.5072    
  22  Prefactor     1.3034        14.071        .97033E-02   -1.5480    
  23  norm          .10000E-03    6.0579        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     19.104        36.185        .22909E-02   -1.4834    
  25  norm          10.513        7.1233        .30893E-02   -1.5059    
  26  Prefactor     .10005E-03    33.277        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          92.770        19.928        .10431E-02   -1.3779    
  28  norm          .10000E-03    2.4236        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          .10000E-03    3.7647        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    1.1410        .36952        .55852E-01   -.88445    
  31  Prefactor     .49012        .39326        .91120E-01   -1.1243    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.10623e-05
Minuit parameter uncertainties:
  1  377.543
  2  0.0752686
  3  147.722
  4  114.266
  5  3.43228e-08
  6  0.21051
  7  0.34711
  8  3.18534
  9  20.9025
  10  123.027
  11  6.24335
  12  7.51968e-06
  13  5.18696e-06
  14  4.69368
  15  0.00700972
  16  0.543839
  17  12.8436
  18  0.00682587
  19  0.000722689
  20  0.0386048
  21  12.6942
  22  8.56752
  23  1.44931e-05
  24  36.2266
  25  7.12391
  26  0.00266516
  27  19.9294
  28  1.57386e-06
  29  6.31258e-07
  30  0.370367
  31  0.395469
Done.

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

Extracting fit parameters...

4FGL J1221.3+3010
   Spectrum: PowerLaw
317    Prefactor:  1.000e-04  5.187e-06  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:  4.901e-01  3.955e-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.141e+00  3.704e-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: 1.43e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.05e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/521679/likelihoodResults_556848001_557107201_4FGL_J1221.3+3010_daily_bin1225.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) = 1794.40097911
delta logL = -0.00105297851701

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1794.3999263
delta logL = -1.65485062098e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.7008       1.0000          .0000       10.000    
     3 'Normalizat'    1.1409       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .49039       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=   1794.400     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      201 TOTAL
                     EDM=   .25E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    9.5297        .90712E-02** at limit **
   2  Index         1.6942        5.3624        .50000        .10599E-04
   3  Normalizat    1.1410        .12516E-01    .55852E-01    .80490E-05
   4  Prefactor     .49012        .13921E-01    .91120E-01    .12734E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.69421
  Normalizat = 1.14103
  Prefactor  = 0.490124
 **********
 **   18 **HESSE 
 **********

 FCN=   1794.400     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      234 TOTAL
                     EDM=   .77E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    297.02        .86291E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.6942        5.6099        .50000       -.72236    
   3  Normalizat    1.1410        .75706E-01    .24696E-03   -.88445    
   4  Prefactor     .49012        .83931E-01    .40398E-03   -1.1243    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.69239e-09
Minuit parameter uncertainties:
  1  2.85472e-07
  2  31.0305
  3  0.0757132
  4  0.0839522
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/521679': 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) = 1794.39992609
delta logL = 3.87908585253e-08

Extracting fit parameters...

4FGL J1221.3+3010
   Spectrum: PowerLaw
317    Prefactor:  1.000e-04  2.855e-07  1.000e-04  1.000e+04 ( 1.000e-13)
318        Index:  1.694e+00  3.103e+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:  4.901e-01  8.395e-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.141e+00  7.571e-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/521679/cmap_HighResolution_556848001_557107201_4FGL_J1221.3+3010_daily_bin1225.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.05e-02', job_status='DONE', photon_flux_upper_limit='1.43e-07', time_completed='2021-09-05 09:39:50.434570', job_id='521679', GAL2='0.49', fit_tolerance='1e-08', EG2='1.14', EG='1.14', time_epoch_completed='1630859990.43', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.49', dlogl='3.88e-08', ts2='-0.00', photon_index_error='0.00', photon_index='1.71' WHERE bin_id='1225' AND source_name='4FGL J1221.3+3010' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 09:39:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0158>
Subject: Job 521679: <4FGL_J1221.3+3010_daily_bin1225> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1221.3+3010_daily_bin1225 185.345 30.1677 556848001 557107201 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 :                                   485.40 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             228.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   832 sec.
    Turnaround time :                            835 sec.

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

