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


Performing analysis on: 4FGL_J1221.3+3010_daily_bin453
RA = 185.345, Dec = 30.1677
tmin = 356745601, tmax = 357004801
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='516552', job_status='RUN', time_executed='2021-09-05 09:11:09.976267', time_epoch_executed='1630858269.98' WHERE source_name='4FGL J1221.3+3010' and cadence='daily' and bin_id='453'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/516552

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/516552/ft1_4FGL_J1221.3+3010_daily_bin453.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/516552/ft2_4FGL_J1221.3+3010_daily_bin453.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/516552/ft1_4FGL_J1221.3+3010_daily_bin453.fits outfile=/scratch/kocevski/516552/ft1_filteredMKT_4FGL_J1221.3+3010_daily_bin453.fits ra=185.345 dec=30.1677 rad=12.0 tmin=356745601.0 tmax=357004801.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.51
user 3.27
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/516552/ft1_filtered_4FGL_J1221.3+3010_daily_bin453.fits evtable="EVENTS" scfile=/scratch/kocevski/516552/ft2_4FGL_J1221.3+3010_daily_bin453.fits sctable="SC_DATA" expcube=/scratch/kocevski/516552/ltcube_356745601_357004801_4FGL_J1221.3+3010_daily_bin453.fits outfile=/scratch/kocevski/516552/expmap_356745601_357004801_4FGL_J1221.3+3010_daily_bin453.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/516552/ltcube_356745601_357004801_4FGL_J1221.3+3010_daily_bin453.fits
.....................!
real 190.95
user 185.81
sys 4.71

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/516552/ft1_filtered_4FGL_J1221.3+3010_daily_bin453.fits scfile=/scratch/kocevski/516552/ft2_4FGL_J1221.3+3010_daily_bin453.fits outfile=/scratch/kocevski/516552/cmap_356745601_357004801_4FGL_J1221.3+3010_daily_bin453.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.35
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/516552/ft1_filtered_4FGL_J1221.3+3010_daily_bin453.fits scfile=/scratch/kocevski/516552/ft2_4FGL_J1221.3+3010_daily_bin453.fits outfile=/scratch/kocevski/516552/cmap_HighResolution_356745601_357004801_4FGL_J1221.3+3010_daily_bin453.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.64
user 0.35
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.455       1.0000         .10000E-03   10000.    
     2 'Prefactor '    23.753       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10183E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .30979E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .44587       1.0000         .10000E-03   10000.    
     6 'Prefactor '    17.301       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    1.9951       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    8.5319       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10258E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.5037       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    1.1962       1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    7.8209       1.0000         .10000E-03   10000.    
    19 'Prefactor '    5.7550       1.0000         .10000E-03   10000.    
    20 'Prefactor '    108.09       1.0000         .10000E-03   10000.    
    21 'Prefactor '    5.9871       1.0000         .10000E-03   10000.    
    22 'Prefactor '    3.0625       1.0000         .10000E-03   10000.    
    23 'norm      '    2.5552       1.0000         .10000E-03   10000.    
    24 'Prefactor '    16.028       1.0000         .10000E-03   10000.    
    25 'norm      '    .15719E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    24.655       1.0000         .10000E-03   10000.    
    27 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    2.6424       1.0000         .10000E-03   10000.    
    29 'norm      '    .10038E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    .94856       1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.1418       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=   6131.876     FROM MIGRAD    STATUS=CONVERGED     93 CALLS     3431 TOTAL
                     EDM=   .12E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.453        1.3587        .60212E-06   -.21172E-02
   2  Prefactor     23.742        1.3702       -.23878E-06    .17143E-02
   3  Prefactor     .10000E-03    3.9473        .22855E-05** at limit **
   4  Prefactor     .10085E-03    1.6286       -.27939E-05** at limit **
   5  Prefactor     .44155        1.0023       -.11880E-06   -.13817E-04
   6  Prefactor     17.302        1.1157        .24152E-06   -.13531E-02
   7  Prefactor     .10002E-03    41.714       -.18974E-05** at limit **
   8  norm          1.9934        1.3210       -.64739E-08    .38645E-05
   9  Prefactor     .10000E-03    1.3305       -.24686E-06** at limit **
  10  Prefactor     .10000E-03    11.750        .23831E-05** at limit **
  11  norm          8.5330        3.4301        .11229E-05    .47820E-03
  12  Prefactor     .10000E-03    2.3256       -.29793E-06** at limit **
  13  Prefactor     .10000E-03    4.9183       -.40711E-05** at limit **
  14  Prefactor     3.5039        2.2824       -.36509E-06   -.82229E-04
  15  Prefactor     .10000E-03    1.2531       -.98121E-07** at limit **
  16  norm          1.1962        .34335       -.17612E-06   -.13599E-03
  17  norm          .10000E-03    .95044        .70033E-06** at limit **
  18  Prefactor     7.8224        1.0161       -.93900E-07    .13199E-03
  19  Prefactor     5.7581        1.1096        .35507E-06   -.62963E-03
  20  Prefactor     108.10        1.0672        .73717E-07   -.27269E-02
  21  Prefactor     5.9892        1.0095        .58778E-07   -.14374E-04
  22  Prefactor     3.0596        1.0341       -.23104E-06    .12114E-03
  23  norm          2.5550        1.1986       -.45145E-06   -.79997E-03
  24  Prefactor     16.031        1.2767        .39253E-06   -.21629E-02
  25  norm          .10000E-03    6.3046        .71069E-05** at limit **
  26  Prefactor     24.658        1.1234        .18452E-06   -.14107E-02
  27  norm          .10000E-03    1.9032       -.70565E-06** at limit **
  28  norm          2.6426        1.0980       -.68229E-07    .14047E-03
  29  norm          .10000E-03    8.1949       -.64168E-05** at limit **
  30  Normalizat    .94847        .21149       -.16728E-06   -.40130E-05
  31  Prefactor     1.1418        .24612        .18607E-06   -.54452E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.4527
  Prefactor  = 23.7418
  Prefactor  = 0.0001
  Prefactor  = 0.000100855
  Prefactor  = 0.441553
  Prefactor  = 17.3022
  Prefactor  = 0.000100017
  norm       = 1.99341
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 8.53295
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.50388
  Prefactor  = 0.0001
  norm       = 1.19623
  norm       = 0.0001
  Prefactor  = 7.82238
  Prefactor  = 5.75811
  Prefactor  = 108.095
  Prefactor  = 5.98919
  Prefactor  = 3.05958
  norm       = 2.555
  Prefactor  = 16.0313
  norm       = 0.000100001
  Prefactor  = 24.6579
  norm       = 0.0001
  norm       = 2.64257
  norm       = 0.000100002
  Normalizat = 0.94847
  Prefactor  = 1.14178
 **********
 **   18 **HESSE 
 **********

 FCN=   6131.876     FROM HESSE     STATUS=OK           704 CALLS     4135 TOTAL
                     EDM=   .16E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.453        28.224        .30980E-02   -1.5061    
   2  Prefactor     23.742        21.000        .20547E-02   -1.4733    
   3  Prefactor     .10000E-03    3.8789        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10085E-03    69.178        .10688E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .44155        1.1695        .27731E-01   -1.5575    
   6  Prefactor     17.302        27.882        .24073E-02   -1.4876    
   7  Prefactor     .10002E-03    42.322        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.9934        1.3367        .73319E-02   -1.5426    
   9  Prefactor     .10000E-03    1.3247        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    11.760        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          8.5330        3.7600        .34309E-02   -1.5124    
  12  Prefactor     .10000E-03    2.3240        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    2.0067        .31840E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     3.5039        2.3062        .53998E-02   -1.5334    
  15  Prefactor     .10000E-03    1.2526        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.1962        .34569        .52963E-02   -1.5489    
  17  norm          .10000E-03    .94924        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     7.8224        8.8708        .35846E-02   -1.5149    
  19  Prefactor     5.7581        19.544        .41856E-02   -1.5228    
  20  Prefactor     108.10        78.661        .96708E-03   -1.3625    
  21  Prefactor     5.9892        6.4968        .41026E-02   -1.5218    
  22  Prefactor     3.0596        7.6048        .57952E-02   -1.5358    
  23  norm          2.5550        4.0578        .63854E-02   -1.5388    
  24  Prefactor     16.031        32.736        .25011E-02   -1.4907    
  25  norm          .10000E-03    2.6500        .43019E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     24.658        20.298        .20169E-02   -1.4714    
  27  norm          .10000E-03    1.9021        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          2.6426        3.9291        .62705E-02   -1.5383    
  29  norm          .10000E-03    8.1893        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    .94847        .19122        .45519E-01   -.94777    
  31  Prefactor     1.1418        .21228        .64662E-01   -.88142    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.56051e-07
Minuit parameter uncertainties:
  1  28.2603
  2  21.0062
  3  1.2664e-05
  4  0.0153983
  5  1.16961
  6  27.9025
  7  0.00171377
  8  1.3367
  9  4.59126e-07
  10  0.000208284
  11  3.76005
  12  3.67192e-07
  13  3.10758e-05
  14  2.30622
  15  1.52515e-07
  16  0.345691
  17  5.04521e-07
  18  8.87224
  19  19.5659
  20  78.737
  21  6.4976
  22  7.60724
  23  4.05823
  24  32.7731
  25  9.6636e-05
  26  20.3041
  27  1.74938e-06
  28  3.9295
  29  0.000229233
  30  0.191356
  31  0.212434
Done.

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

Extracting fit parameters...

4FGL J1221.3+3010
   Spectrum: PowerLaw
317    Prefactor:  1.000e-04  3.108e-05  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.142e+00  2.124e-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:  9.485e-01  1.914e-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: 5.20e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.79e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/516552/likelihoodResults_356745601_357004801_4FGL_J1221.3+3010_daily_bin453.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) = 6131.87647298
delta logL = -0.000972818791524

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6131.8754996
delta logL = 5.63408320886e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12671E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.7813       1.0000          .0000       10.000    
     3 'Normalizat'    .94845       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1418       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=   6131.780     FROM MIGRAD    STATUS=CONVERGED    111 CALLS      279 TOTAL
                     EDM=   .91E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .17867E-01    .36405E-01    .53156E-02   -.28909E-02
   2  Index         3.2965        .61529        .59038E-01    .19696E-03
   3  Normalizat    .92637        .18754        .45518E-01   -.17448E-03
   4  Prefactor     1.1555        .21149        .64300E-01   -.92250E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0178674
  Index      = 3.2965
  Normalizat = 0.926374
  Prefactor  = 1.15551
 **********
 **   18 **HESSE 
 **********

 FCN=   6131.780     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      314 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .17867E-01    4.8952        .20886E-03   -1.5735    
   2  Index         3.2965        5.6070        .94144E-02   -.34766    
   3  Normalizat    .92637        .24752        .26984E-03   -.95539    
   4  Prefactor     1.1555        .26136        .28441E-03   -.87712    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.69348e-09
Minuit parameter uncertainties:
  1  0.589881
  2  10.2052
  3  0.247827
  4  0.261649
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/516552': 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) = 6131.78011545
delta logL = 0.0953847103556

Extracting fit parameters...

4FGL J1221.3+3010
   Spectrum: PowerLaw
317    Prefactor:  1.787e-02  5.899e-01  1.000e-04  1.000e+04 ( 1.000e-13)
318        Index:  3.296e+00  1.021e+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:  1.156e+00  2.616e-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:  9.264e-01  2.478e-01  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/516552/cmap_HighResolution_356745601_357004801_4FGL_J1221.3+3010_daily_bin453.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.79e-03', job_status='DONE', photon_flux_upper_limit='5.20e-08', time_completed='2021-09-05 09:25:28.152090', job_id='516552', GAL2='1.16', fit_tolerance='1e-08', EG2='0.93', EG='0.95', time_epoch_completed='1630859128.15', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.14', dlogl='9.54e-02', ts2='0.20', photon_index_error='0.00', photon_index='1.71' WHERE bin_id='453' AND source_name='4FGL J1221.3+3010' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 09:25:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0129>
Subject: Job 516552: <4FGL_J1221.3+3010_daily_bin453> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1221.3+3010_daily_bin453 185.345 30.1677 356745601 357004801 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 :                                   851.35 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             345.70 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   879 sec.
    Turnaround time :                            881 sec.

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

