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


Performing analysis on: 4FGL_J1221.3+3010_daily_bin1158
RA = 185.345, Dec = 30.1677
tmin = 539481601, tmax = 539740801
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='521601', job_status='RUN', time_executed='2021-09-05 09:28:03.565976', time_epoch_executed='1630859283.57' WHERE source_name='4FGL J1221.3+3010' and cadence='daily' and bin_id='1158'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/521601

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/521601/ft1_4FGL_J1221.3+3010_daily_bin1158.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/521601/ft2_4FGL_J1221.3+3010_daily_bin1158.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/521601/ft1_4FGL_J1221.3+3010_daily_bin1158.fits outfile=/scratch/kocevski/521601/ft1_filteredMKT_4FGL_J1221.3+3010_daily_bin1158.fits ra=185.345 dec=30.1677 rad=12.0 tmin=539481601.0 tmax=539740801.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 5.16
user 4.87
sys 0.24

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/521601/ft1_filtered_4FGL_J1221.3+3010_daily_bin1158.fits evtable="EVENTS" scfile=/scratch/kocevski/521601/ft2_4FGL_J1221.3+3010_daily_bin1158.fits sctable="SC_DATA" expcube=/scratch/kocevski/521601/ltcube_539481601_539740801_4FGL_J1221.3+3010_daily_bin1158.fits outfile=/scratch/kocevski/521601/expmap_539481601_539740801_4FGL_J1221.3+3010_daily_bin1158.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/521601/ltcube_539481601_539740801_4FGL_J1221.3+3010_daily_bin1158.fits
.....................!
real 191.95
user 186.46
sys 5.07

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/521601/ft1_filtered_4FGL_J1221.3+3010_daily_bin1158.fits scfile=/scratch/kocevski/521601/ft2_4FGL_J1221.3+3010_daily_bin1158.fits outfile=/scratch/kocevski/521601/cmap_539481601_539740801_4FGL_J1221.3+3010_daily_bin1158.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/521601/ft1_filtered_4FGL_J1221.3+3010_daily_bin1158.fits scfile=/scratch/kocevski/521601/ft2_4FGL_J1221.3+3010_daily_bin1158.fits outfile=/scratch/kocevski/521601/cmap_HighResolution_539481601_539740801_4FGL_J1221.3+3010_daily_bin1158.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.36
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    14.597       1.0000         .10000E-03   10000.    
     4 'Prefactor '    21.023       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10106E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    13.499       1.0000         .10000E-03   10000.    
     8 'norm      '    12.329       1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.3051       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    7.1033       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .39915       1.0000         .10000E-03   10000.    
    17 'norm      '    .91527       1.0000         .10000E-03   10000.    
    18 'Prefactor '    24.540       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    95.401       1.0000         .10000E-03   10000.    
    21 'Prefactor '    14.277       1.0000         .10000E-03   10000.    
    22 'Prefactor '    5.2695       1.0000         .10000E-03   10000.    
    23 'norm      '    4.3000       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .73165E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .92927       1.0000         .10000E-03   10000.    
    27 'norm      '    3.8435       1.0000         .10000E-03   10000.    
    28 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.1314       1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.0855       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=   3040.640     FROM MIGRAD    STATUS=CONVERGED    814 CALLS     4132 TOTAL
                     EDM=   .69E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8.3913       -.59538E-07** at limit **
   2  Prefactor     .10000E-03    7.3557        .35692E-07** at limit **
   3  Prefactor     14.596        10.696       -.11485E-06   -.28133E-05
   4  Prefactor     21.071        31.781       -.64883E-06   -.51696E-05
   5  Prefactor     .10000E-03    3.1517       -.97315E-07** at limit **
   6  Prefactor     .10000E-03    14.475        .28292E-06** at limit **
   7  Prefactor     13.656        236.06       -.11979E-04   -.15254E-04
   8  norm          12.329        3.3721        .15301E-07    .23080E-04
   9  Prefactor     3.3060        5.3872       -.39429E-06    .32621E-05
  10  Prefactor     .10000E-03    25.457        .63162E-06** at limit **
  11  norm          .10000E-03    4.0789        .26848E-06** at limit **
  12  Prefactor     .10000E-03    3.8287        .17829E-06** at limit **
  13  Prefactor     7.1027        4.6642       -.13739E-06   -.33014E-04
  14  Prefactor     .10000E-03    2.3772        .42047E-06** at limit **
  15  Prefactor     .10000E-03    3.7046        .36529E-06** at limit **
  16  norm          .39910        .34495        .55624E-07    .85851E-03
  17  norm          .91715        12.436       -.59554E-05    .43676E-04
  18  Prefactor     24.536        20.951        .28529E-06    .59353E-04
  19  Prefactor     .10000E-03    17.855        .10228E-07** at limit **
  20  Prefactor     95.377        139.70        .33966E-06    .46039E-05
  21  Prefactor     14.271        15.410       -.59254E-06   -.50119E-07
  22  Prefactor     5.2708        7.6197       -.58390E-06   -.21291E-04
  23  norm          4.2999        5.1619       -.27408E-07   -.92781E-05
  24  Prefactor     .10000E-03    15.342        .41288E-06** at limit **
  25  norm          .10000E-03    4.6489        .26247E-06** at limit **
  26  Prefactor     .88194        92.848        .12299E-04   -.54175E-05
  27  norm          3.8446        5.6694       -.39369E-06   -.20038E-04
  28  norm          .10000E-03    2.0071        .29529E-06** at limit **
  29  norm          .10000E-03    2.9281        .10741E-06** at limit **
  30  Normalizat    1.1312        .28667       -.61933E-06    .86684E-04
  31  Prefactor     1.0859        .31853        .12506E-05    .94300E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.5964
  Prefactor  = 21.071
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.6555
  norm       = 12.3288
  Prefactor  = 3.306
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.1027
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.399096
  norm       = 0.917154
  Prefactor  = 24.5355
  Prefactor  = 0.0001
  Prefactor  = 95.3774
  Prefactor  = 14.2706
  Prefactor  = 5.27084
  norm       = 4.29992
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.881944
  norm       = 3.84458
  norm       = 0.0001
  norm       = 0.0001
  Normalizat = 1.13115
  Prefactor  = 1.08593
 **********
 **   18 **HESSE 
 **********

 FCN=   3040.640     FROM HESSE     STATUS=OK           624 CALLS     4756 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8.3918        .15602E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    7.3594        .14607E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     14.596        10.702        .10483E-03   -1.4944    
   4  Prefactor     21.071        31.810        .87357E-04   -1.4790    
   5  Prefactor     .10000E-03    3.2820        .19067E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    14.482        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     13.656        238.53        .10902E-03   -1.4969    
   8  norm          12.329        3.3746        .50052E-04   -1.5006    
   9  Prefactor     3.3060        5.3752        .15816E-03   -1.5344    
  10  Prefactor     .10000E-03    25.486        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    4.1495        .21627E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    3.8311        .10538E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     7.1027        4.6392        .92090E-04   -1.5175    
  14  Prefactor     .10000E-03    2.4263        .83134E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    3.7236        .10385E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .39910        .34249        .28801E-04   -1.5582    
  17  norm          .91715        12.545        .36147E-03   -1.5516    
  18  Prefactor     24.536        20.935        .80863E-04   -1.4717    
  19  Prefactor     .10000E-03    17.885        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     95.377        140.43        .41150E-04   -1.3752    
  21  Prefactor     14.271        15.350        .10600E-03   -1.4952    
  22  Prefactor     5.2708        7.5806        .17465E-03   -1.5249    
  23  norm          4.2999        5.1554        .13170E-03   -1.5293    
  24  Prefactor     .10000E-03    15.353        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    24.684        .22826E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .88194        93.137        .49548E-02   -1.5520    
  27  norm          3.8446        5.6361        .15251E-03   -1.5316    
  28  norm          .10000E-03    2.0146        .76283E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          .10000E-03    2.9293        .92155E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    1.1312        .34066        .26412E-03   -.88758    
  31  Prefactor     1.0859        .37728        .31312E-03   -.89918    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.81847e-08
Minuit parameter uncertainties:
  1  4.4271e-07
  2  1.54304e-06
  3  10.7035
  4  31.8358
  5  2.50801e-06
  6  1.18249e-05
  7  114.683
  8  3.37461
  9  5.37602
  10  2.17474e-05
  11  9.07051e-06
  12  1.83918e-06
  13  4.63943
  14  1.61928e-05
  15  2.98672e-05
  16  0.342495
  17  6.7853
  18  20.9411
  19  5.59268e-06
  20  140.924
  21  15.3545
  22  7.582
  23  5.15589
  24  1.76453e-06
  25  7.58363e-05
  26  18.1544
  27  5.6369
  28  3.21109e-07
  29  9.99786e-08
  30  0.341329
  31  0.378215
Done.

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

Extracting fit parameters...

4FGL J1221.3+3010
   Spectrum: PowerLaw
317    Prefactor:  7.103e+00  4.639e+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:  1.086e+00  3.782e-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.131e+00  3.413e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.87
Ra Dec: 185.345 30.168
Photon Index (Fixed Index): 1.71 +/- 0.00
Photon Flux (Fixed Index): 6.63e-08 +/- 4.33e-08
Energy Flux (Fixed Index): 1.06e-04 +/- 6.91e-05

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) = 3040.6395145
delta logL = 0.000131235130084

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3040.63943452
delta logL = 0.000211218641198

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.1714       1.0000         .10000E-03   10000.    
     2 'Index     '    1.6987       1.0000          .0000       10.000    
     3 'Normalizat'    1.1315       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0861       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=   3040.639     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      228 TOTAL
                     EDM=   .98E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.1823        137.28        .37447E-02    .53286E-03
   2  Index         1.6996        3.0627        .91965E-01    .24386E-03
   3  Normalizat    1.1316        .19062        .59710E-01    .26535E-03
   4  Prefactor     1.0857        .17162        .70777E-01    .18122E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.1823
  Index      = 1.69956
  Normalizat = 1.13159
  Prefactor  = 1.0857
 **********
 **   18 **HESSE 
 **********

 FCN=   3040.639     FROM HESSE     STATUS=OK            27 CALLS      255 TOTAL
                     EDM=   .34E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.1823        6.1470        .92673E-04   -1.5172    
   2  Index         1.6996        .38037        .37395E-02   -.72094    
   3  Normalizat    1.1316        .31933        .26408E-03   -.88744    
   4  Prefactor     1.0857        .37374        .31315E-03   -.89925    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.38296e-10
Minuit parameter uncertainties:
  1  6.14754
  2  0.381025
  3  0.319881
  4  0.374645
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/521601': 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) = 3040.63942257
delta logL = 0.000223171638481

Extracting fit parameters...

4FGL J1221.3+3010
   Spectrum: PowerLaw
317    Prefactor:  7.182e+00  6.148e+00  1.000e-04  1.000e+04 ( 1.000e-13)
318        Index:  1.700e+00  3.810e-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.086e+00  3.746e-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.132e+00  3.199e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.86
Ra Dec: 185.345 30.168
Photon Index (Free Index): 1.70 +/- 0.38
Photon Flux (Free Index): 6.58e-08 +/- 4.90e-08
Energy Flux (Free Index): 1.08e-04 +/- 1.15e-04

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/521601/cmap_HighResolution_539481601_539740801_4FGL_J1221.3+3010_daily_bin1158.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.63e-08', energy_flux2='1.08e-04', photon_flux_error='4.33e-08', dlogl='2.23e-04', energy_flux='1.06e-04', photon_flux2='6.58e-08', job_status='DONE', time_completed='2021-09-05 09:39:48.959853', photon_index_error2='0.38', photon_index2='1.70', ts='5.87', fit_tolerance='1e-08', GAL='1.09', photon_index_error='0.00', energy_flux_error2='1.15e-04', EG='1.13', time_epoch_completed='1630859988.96', return_code='0', job_id='521601', GAL2='1.09', EG2='1.13', return_code2='0', energy_flux_error='6.91e-05', photon_flux_error2='4.90e-08', ts2='5.86', photon_index='1.71' WHERE bin_id='1158' AND source_name='4FGL J1221.3+3010' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 09:39:48 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0064>
Subject: Job 521601: <4FGL_J1221.3+3010_daily_bin1158> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1221.3+3010_daily_bin1158 185.345 30.1677 539481601 539740801 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 :                                   571.22 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             235.08 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   837 sec.
    Turnaround time :                            839 sec.

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

