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


Performing analysis on: 4FGL_J1221.3+3010_daily_bin128
RA = 185.345, Dec = 30.1677
tmin = 272505601, tmax = 272764801
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='514458', job_status='RUN', time_executed='2021-09-05 09:05:36.288007', time_epoch_executed='1630857936.29' WHERE source_name='4FGL J1221.3+3010' and cadence='daily' and bin_id='128'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/514458

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/514458/ft1_4FGL_J1221.3+3010_daily_bin128.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/514458/ft2_4FGL_J1221.3+3010_daily_bin128.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/514458/ft1_4FGL_J1221.3+3010_daily_bin128.fits outfile=/scratch/kocevski/514458/ft1_filteredMKT_4FGL_J1221.3+3010_daily_bin128.fits ra=185.345 dec=30.1677 rad=12.0 tmin=272505601.0 tmax=272764801.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.74
user 1.56
sys 0.16

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/514458/ft2_4FGL_J1221.3+3010_daily_bin128.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/514458/ft1_filteredMKT_4FGL_J1221.3+3010_daily_bin128.fits evtable="EVENTS" outfile="/scratch/kocevski/514458/ft1_filtered_4FGL_J1221.3+3010_daily_bin128.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.49
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/514458/ft1_filtered_4FGL_J1221.3+3010_daily_bin128.fits" evtable="EVENTS" scfile=/scratch/kocevski/514458/ft2_4FGL_J1221.3+3010_daily_bin128.fits sctable="SC_DATA" outfile=/scratch/kocevski/514458/ltcube_272505601_272764801_4FGL_J1221.3+3010_daily_bin128.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/514458/ft2_4FGL_J1221.3+3010_daily_bin128.fits
.....................!
real 12.89
user 12.54
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/514458/ft1_filtered_4FGL_J1221.3+3010_daily_bin128.fits evtable="EVENTS" scfile=/scratch/kocevski/514458/ft2_4FGL_J1221.3+3010_daily_bin128.fits sctable="SC_DATA" expcube=/scratch/kocevski/514458/ltcube_272505601_272764801_4FGL_J1221.3+3010_daily_bin128.fits outfile=/scratch/kocevski/514458/expmap_272505601_272764801_4FGL_J1221.3+3010_daily_bin128.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/514458/ltcube_272505601_272764801_4FGL_J1221.3+3010_daily_bin128.fits
.....................!
real 190.89
user 185.92
sys 4.42

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/514458/ft1_filtered_4FGL_J1221.3+3010_daily_bin128.fits scfile=/scratch/kocevski/514458/ft2_4FGL_J1221.3+3010_daily_bin128.fits outfile=/scratch/kocevski/514458/cmap_272505601_272764801_4FGL_J1221.3+3010_daily_bin128.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.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/514458/ft1_filtered_4FGL_J1221.3+3010_daily_bin128.fits scfile=/scratch/kocevski/514458/ft2_4FGL_J1221.3+3010_daily_bin128.fits outfile=/scratch/kocevski/514458/cmap_HighResolution_272505601_272764801_4FGL_J1221.3+3010_daily_bin128.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.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .90976E-01   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .72796E-02   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10056E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    31.339       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.3117       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    7.0745       1.0000         .10000E-03   10000.    
    12 'Prefactor '    7.1749       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.9562       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .30976       1.0000         .10000E-03   10000.    
    17 'norm      '    1.2249       1.0000         .10000E-03   10000.    
    18 'Prefactor '    19.007       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    22.807       1.0000         .10000E-03   10000.    
    21 'Prefactor '    5.3441       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    8.3732       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10167E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    5.8296       1.0000         .10000E-03   10000.    
    26 'Prefactor '    10.213       1.0000         .10000E-03   10000.    
    27 'norm      '    .10099E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    4.3225       1.0000         .10000E-03   10000.    
    29 'norm      '    9.1922       1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.0051       1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.3214       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=   5937.041     FROM MIGRAD    STATUS=CONVERGED    848 CALLS     4244 TOTAL
                     EDM=   .92E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  9.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    12.068       -.13586E-07** at limit **
   2  Prefactor     .10002E-03    17.355       -.12926E-04** at limit **
   3  Prefactor     .10001E-03    97.404        .40563E-04** at limit **
   4  Prefactor     .10000E-03    30.441       -.52905E-05** at limit **
   5  Prefactor     .10000E-03    1.1391        .48555E-06** at limit **
   6  Prefactor     31.357        27.003        .75663E-06    .15240E-03
   7  Prefactor     .10000E-03    77.508        .30901E-05** at limit **
   8  norm          .10000E-03    .39374       -.11839E-07** at limit **
   9  Prefactor     4.3106        3.5737       -.13248E-06    .33017E-03
  10  Prefactor     .10000E-03    27.320        .36740E-05** at limit **
  11  norm          7.0736        3.2090       -.63683E-08    .98995E-04
  12  Prefactor     7.1693        8.6876       -.67211E-06   -.13180E-03
  13  Prefactor     .10000E-03    .73547       -.96145E-08** at limit **
  14  Prefactor     3.9556        2.1757        .50266E-07    .47586E-03
  15  Prefactor     .10000E-03    3.4936        .11339E-05** at limit **
  16  norm          .30967        .19445        .19190E-07    .16036E-02
  17  norm          1.2247        3.5789       -.20640E-05    .46211E-03
  18  Prefactor     19.002        11.419        .57251E-07    .13395E-03
  19  Prefactor     .10000E-03    20.916       -.48791E-06** at limit **
  20  Prefactor     22.791        53.274        .24067E-05    .67587E-04
  21  Prefactor     5.3424        5.5719        .24635E-06    .18875E-03
  22  Prefactor     .10000E-03    2.0692       -.21198E-07** at limit **
  23  norm          8.3707        6.0364       -.14002E-06   -.26140E-03
  24  Prefactor     .10000E-03    45.716        .26955E-05** at limit **
  25  norm          5.8283        4.0364       -.22573E-07    .17912E-03
  26  Prefactor     10.210        13.237       -.84004E-07   -.33785E-04
  27  norm          .10000E-03    7.1797       -.39199E-07** at limit **
  28  norm          4.3199        5.8449       -.38505E-06    .60699E-04
  29  norm          9.1932        9.1571        .21008E-06   -.12456E-03
  30  Normalizat    1.0056        .19714        .10272E-05    .55198E-03
  31  Prefactor     1.3212        .22764        .29143E-06    .50638E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100018
  Prefactor  = 0.000100008
  Prefactor  = 0.000100002
  Prefactor  = 0.000100001
  Prefactor  = 31.3568
  Prefactor  = 0.000100003
  norm       = 0.0001
  Prefactor  = 4.3106
  Prefactor  = 0.000100003
  norm       = 7.07364
  Prefactor  = 7.16928
  Prefactor  = 0.0001
  Prefactor  = 3.9556
  Prefactor  = 0.000100002
  norm       = 0.309674
  norm       = 1.22474
  Prefactor  = 19.0024
  Prefactor  = 0.0001
  Prefactor  = 22.7909
  Prefactor  = 5.34236
  Prefactor  = 0.0001
  norm       = 8.37072
  Prefactor  = 0.000100002
  norm       = 5.82828
  Prefactor  = 10.2095
  norm       = 0.0001
  norm       = 4.31986
  norm       = 9.1932
  Normalizat = 1.00561
  Prefactor  = 1.32122
 **********
 **   18 **HESSE 
 **********

 FCN=   5937.041     FROM HESSE     STATUS=OK           634 CALLS     4878 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    12.094        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10002E-03    11.537        .73278E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10001E-03    7.6623        .50606E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    31.326        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    2.1619        .15834E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     31.357        27.054        .71574E-04   -1.4587    
   7  Prefactor     .10000E-03    77.882        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    .40211        .47172E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     4.3106        3.5696        .12855E-03   -1.5293    
  10  Prefactor     .10000E-03    27.699        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          7.0736        3.2067        .89430E-04   -1.5176    
  12  Prefactor     7.1693        8.7053        .14975E-03   -1.5172    
  13  Prefactor     .10000E-03    .73980        .64492E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     3.9556        2.1750        .80624E-04   -1.5310    
  15  Prefactor     .10000E-03    3.5702        .14155E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .30967        .19636        .25893E-04   -1.5597    
  17  norm          1.2247        3.6202        .24387E-03   -1.5487    
  18  Prefactor     19.002        11.416        .91870E-04   -1.4836    
  19  Prefactor     .10000E-03    21.216        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     22.791        53.381        .83874E-04   -1.4753    
  21  Prefactor     5.3424        5.5736        .17385E-03   -1.5246    
  22  Prefactor     .10000E-03    2.0724        .10823E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          8.3707        6.0282        .13854E-03   -1.5129    
  24  Prefactor     .10000E-03    46.202        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          5.8283        4.0353        .12469E-03   -1.5225    
  26  Prefactor     10.210        13.205        .12538E-03   -1.5069    
  27  norm          .10000E-03    7.4262        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          4.3199        5.9137        .15821E-03   -1.5292    
  29  norm          9.1932        9.2750        .13219E-03   -1.5101    
  30  Normalizat    1.0056        .23351        .26511E-03   -.92843    
  31  Prefactor     1.3212        .27016        .28333E-03   -.82678    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.90818e-09
Minuit parameter uncertainties:
  1  7.94224e-06
  2  0.000918048
  3  0.000502502
  4  0.000527633
  5  8.42818e-05
  6  27.0647
  7  0.000943742
  8  7.14306e-07
  9  3.56978
  10  0.000618321
  11  3.20673
  12  8.70682
  13  4.17294e-07
  14  2.17508
  15  0.000147684
  16  0.196358
  17  3.62084
  18  11.4172
  19  7.76996e-05
  20  53.4934
  21  5.57411
  22  3.29514e-06
  23  6.02868
  24  0.000529211
  25  4.03545
  26  13.2087
  27  3.57266e-05
  28  5.91453
  29  9.27644
  30  0.233744
  31  0.270451
Done.

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

Extracting fit parameters...

4FGL J1221.3+3010
   Spectrum: PowerLaw
317    Prefactor:  1.000e-04  4.173e-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:  1.321e+00  2.705e-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.006e+00  2.337e-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.60e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.63e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/514458/likelihoodResults_272505601_272764801_4FGL_J1221.3+3010_daily_bin128.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) = 5937.04128953
delta logL = -1.79885773832e-06

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5937.04128416
delta logL = 3.5797165765e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.6542       1.0000          .0000       10.000    
     3 'Normalizat'    1.0056       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3212       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=   5937.041     FROM MIGRAD    STATUS=CONVERGED     64 CALLS      220 TOTAL
                     EDM=   .56E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .95276        .90712E-02** at limit **
   2  Index         1.3107        5.6502        .50000        .23838E-05
   3  Normalizat    1.0056        .48018E-02    .46237E-01   -.43381E-03
   4  Prefactor     1.3212        .58071E-02    .64058E-01   -.33854E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.31073
  Normalizat = 1.0056
  Prefactor  = 1.32122
 **********
 **   18 **HESSE 
 **********

 FCN=   5937.041     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      249 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    17.908        .72142E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.3107        7.8874        .50000       -.82989    
   3  Normalizat    1.0056        .21197E-01    .26511E-03   -.92843    
   4  Prefactor     1.3212        .25626E-01    .28333E-03   -.82678    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.05602e-10
Minuit parameter uncertainties:
  1  0.000115973
  2  101.77
  3  0.0211969
  4  0.0256264
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/514458': 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) = 5937.04127446
delta logL = 1.32788736664e-05

Extracting fit parameters...

4FGL J1221.3+3010
   Spectrum: PowerLaw
317    Prefactor:  1.000e-04  1.160e-04  1.000e-04  1.000e+04 ( 1.000e-13)
318        Index:  1.311e+00  1.018e+02  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:  1.321e+00  2.563e-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.006e+00  2.120e-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/514458/cmap_HighResolution_272505601_272764801_4FGL_J1221.3+3010_daily_bin128.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.63e-03', job_status='DONE', photon_flux_upper_limit='3.60e-08', time_completed='2021-09-05 09:21:11.519025', job_id='514458', GAL2='1.32', fit_tolerance='1e-08', EG2='1.01', EG='1.01', time_epoch_completed='1630858871.52', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.32', dlogl='1.33e-05', ts2='-0.00', photon_index_error='0.00', photon_index='1.71' WHERE bin_id='128' AND source_name='4FGL J1221.3+3010' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 09:21:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0080>
Subject: Job 514458: <4FGL_J1221.3+3010_daily_bin128> in cluster <slac> Done

Job <4FGL_J1221.3+3010_daily_bin128> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Sun Sep  5 09:05:18 2021
Job was executed on host(s) <bullet0080>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 09:05:19 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:05:19 2021
Terminated at Sun Sep  5 09:21:12 2021
Results reported at Sun Sep  5 09:21:12 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1221.3+3010_daily_bin128 185.345 30.1677 272505601 272764801 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 :                                   931.32 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             364.36 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   952 sec.
    Turnaround time :                            955 sec.

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

