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


Performing analysis on: 4FGL_J1221.3+3010_daily_bin2
RA = 185.345, Dec = 30.1677
tmin = 239846401, tmax = 240105601
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='511080', job_status='RUN', time_executed='2021-09-05 08:56:40.412457', time_epoch_executed='1630857400.41' WHERE source_name='4FGL J1221.3+3010' and cadence='daily' and bin_id='2'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/511080

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/511080/ft1_4FGL_J1221.3+3010_daily_bin2.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/511080/ft2_4FGL_J1221.3+3010_daily_bin2.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/511080/ft1_4FGL_J1221.3+3010_daily_bin2.fits outfile=/scratch/kocevski/511080/ft1_filteredMKT_4FGL_J1221.3+3010_daily_bin2.fits ra=185.345 dec=30.1677 rad=12.0 tmin=239846401.0 tmax=240105601.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.48
user 1.27
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/511080/ft2_4FGL_J1221.3+3010_daily_bin2.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/511080/ft1_filteredMKT_4FGL_J1221.3+3010_daily_bin2.fits evtable="EVENTS" outfile="/scratch/kocevski/511080/ft1_filtered_4FGL_J1221.3+3010_daily_bin2.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.50
user 0.35
sys 0.13

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/511080/ft1_filtered_4FGL_J1221.3+3010_daily_bin2.fits evtable="EVENTS" scfile=/scratch/kocevski/511080/ft2_4FGL_J1221.3+3010_daily_bin2.fits sctable="SC_DATA" expcube=/scratch/kocevski/511080/ltcube_239846401_240105601_4FGL_J1221.3+3010_daily_bin2.fits outfile=/scratch/kocevski/511080/expmap_239846401_240105601_4FGL_J1221.3+3010_daily_bin2.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/511080/ltcube_239846401_240105601_4FGL_J1221.3+3010_daily_bin2.fits
.....................!
real 190.93
user 185.74
sys 4.58

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/511080/ft1_filtered_4FGL_J1221.3+3010_daily_bin2.fits scfile=/scratch/kocevski/511080/ft2_4FGL_J1221.3+3010_daily_bin2.fits outfile=/scratch/kocevski/511080/cmap_239846401_240105601_4FGL_J1221.3+3010_daily_bin2.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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/511080/ft1_filtered_4FGL_J1221.3+3010_daily_bin2.fits scfile=/scratch/kocevski/511080/ft2_4FGL_J1221.3+3010_daily_bin2.fits outfile=/scratch/kocevski/511080/cmap_HighResolution_239846401_240105601_4FGL_J1221.3+3010_daily_bin2.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.53
user 0.37
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    35.630       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.1345       1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.4276       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    39.696       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .18065       1.0000         .10000E-03   10000.    
     9 'Prefactor '    6.0060       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10148E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.6046       1.0000         .10000E-03   10000.    
    14 'Prefactor '    18.117       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10744       1.0000         .10000E-03   10000.    
    17 'norm      '    9.7909       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .48838       1.0000         .10000E-03   10000.    
    19 'Prefactor '    7.7788       1.0000         .10000E-03   10000.    
    20 'Prefactor '    27.552       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .18351E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .86387       1.0000         .10000E-03   10000.    
    28 'norm      '    13.122       1.0000         .10000E-03   10000.    
    29 'norm      '    .12705E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.0442       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .93888       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=   5325.192     FROM MIGRAD    STATUS=CONVERGED    819 CALLS     4205 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  9.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     35.629        22.461        .12182E-05    .56314E-03
   2  Prefactor     .10000E-03    19.915       -.58623E-06** at limit **
   3  Prefactor     2.1330        6.7817       -.81007E-06    .11520E-03
   4  Prefactor     4.4271        11.855       -.10569E-07    .82446E-04
   5  Prefactor     .10000E-03    .39703        .14361E-08** at limit **
   6  Prefactor     39.701        31.999        .64122E-06    .88561E-04
   7  Prefactor     .10000E-03    18.203       -.39553E-06** at limit **
   8  norm          .18073        .83045       -.28123E-06    .41115E-03
   9  Prefactor     6.0056        4.5850       -.68502E-06    .14646E-03
  10  Prefactor     .10000E-03    38.129       -.40373E-06** at limit **
  11  norm          .10000E-03    2.0878       -.77898E-07** at limit **
  12  Prefactor     .10000E-03    4.5380       -.49015E-07** at limit **
  13  Prefactor     1.6050        1.9147       -.16351E-07    .64266E-04
  14  Prefactor     18.120        4.2923        .14700E-06    .38971E-03
  15  Prefactor     .10000E-03    2.9766       -.94093E-07** at limit **
  16  norm          .10745        .17439        .22356E-07    .14071E-02
  17  norm          9.7919        5.9154       -.29717E-06    .10696E-03
  18  Prefactor     .42650        77.529       -.13862E-04    .22441E-03
  19  Prefactor     7.7752        17.406       -.70537E-06   -.36335E-04
  20  Prefactor     27.548        87.179       -.30105E-05   -.37962E-04
  21  Prefactor     .10000E-03    2.3368        .16982E-07** at limit **
  22  Prefactor     .10000E-03    3.5705        .17128E-07** at limit **
  23  norm          .10000E-03    2.5034        .39481E-06** at limit **
  24  Prefactor     .10000E-03    8.0737        .39635E-07** at limit **
  25  norm          .10000E-03    2.0457        .43713E-07** at limit **
  26  Prefactor     .10000E-03    35.092        .65329E-06** at limit **
  27  norm          .86438        3.9506       -.13245E-05   -.19709E-03
  28  norm          13.113        5.5514       -.56156E-06   -.84593E-03
  29  norm          .10006E-03    9.2983        .23824E-05** at limit **
  30  Normalizat    1.0444        .19254        .46998E-06    .54119E-04
  31  Prefactor     .93872        .20849        .55089E-06    .33868E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 35.6293
  Prefactor  = 0.000100001
  Prefactor  = 2.133
  Prefactor  = 4.42708
  Prefactor  = 0.0001
  Prefactor  = 39.7014
  Prefactor  = 0.0001
  norm       = 0.180729
  Prefactor  = 6.00557
  Prefactor  = 0.000100002
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.60501
  Prefactor  = 18.1199
  Prefactor  = 0.0001
  norm       = 0.107447
  norm       = 9.79192
  Prefactor  = 0.426505
  Prefactor  = 7.77521
  Prefactor  = 27.5479
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.864382
  norm       = 13.113
  norm       = 0.000100056
  Normalizat = 1.0444
  Prefactor  = 0.938721
 **********
 **   18 **HESSE 
 **********

 FCN=   5325.192     FROM HESSE     STATUS=OK           624 CALLS     4829 TOTAL
                     EDM=   .68E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     35.629        22.647        .67138E-04   -1.4513    
   2  Prefactor     .10000E-03    19.911        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     2.1330        6.7638        .28217E-03   -1.5416    
   4  Prefactor     4.4271        11.829        .19138E-03   -1.5287    
   5  Prefactor     .10000E-03    .39823        .44890E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     39.701        31.938        .63618E-04   -1.4447    
   7  Prefactor     .10000E-03    18.189        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .18073        1.2132        .12247E-02   -1.5623    
   9  Prefactor     6.0056        4.6679        .66590E-03   -1.5218    
  10  Prefactor     .10000E-03    38.328        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    2.1442        .20516E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    4.5692        .15180E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     1.6050        1.8849        .10584E-03   -1.5455    
  14  Prefactor     18.120        4.2540        .66525E-04   -1.4856    
  15  Prefactor     .10000E-03    2.9887        .12289E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10745        .15234        .37064E-03   -1.5642    
  17  norm          9.7919        5.9241        .64033E-03   -1.5082    
  18  Prefactor     .42650        91.681        .38946E-02   -1.5577    
  19  Prefactor     7.7752        17.382        .14377E-03   -1.5150    
  20  Prefactor     27.548        86.513        .76322E-04   -1.4658    
  21  Prefactor     .10000E-03    2.3394        .10894E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    3.5929        .13460E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    5.6305        .22178E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    8.0785        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    2.0693        .10192E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    35.847        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .86438        3.8303        .28251E-03   -1.5522    
  28  norm          13.113        5.0731        .98192E-04   -1.4984    
  29  norm          .10006E-03    16.466        .33429E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    1.0444        .22188        .24193E-03   -.91557    
  31  Prefactor     .93872        .24135        .29103E-03   -.94801    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.84552e-09
Minuit parameter uncertainties:
  1  22.6525
  2  0.000248694
  3  6.76625
  4  11.8352
  5  1.59292e-07
  6  31.952
  7  4.50403e-05
  8  0.936255
  9  4.66817
  10  0.000512294
  11  4.90099e-06
  12  1.06344e-06
  13  1.88498
  14  4.25409
  15  5.32529e-06
  16  0.152345
  17  5.92449
  18  12.5244
  19  17.3936
  20  86.911
  21  2.79644e-07
  22  4.24017e-06
  23  6.69303e-05
  24  2.8861e-05
  25  2.42592e-06
  26  0.000257728
  27  3.63931
  28  5.07325
  29  0.00191445
  30  0.222074
  31  0.241623
Done.

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

Extracting fit parameters...

4FGL J1221.3+3010
   Spectrum: PowerLaw
317    Prefactor:  1.605e+00  1.885e+00  1.000e-04  1.000e+04 ( 1.000e-13)
318        Index:  1.707e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
319        Scale:  4.501e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
625    Prefactor:  9.387e-01  2.416e-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.044e+00  2.221e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.32
Ra Dec: 185.345 30.168
Photon Index (Fixed Index): 1.71 +/- 0.00
Photon Flux (Fixed Index): 1.50e-08 +/- 1.76e-08
Energy Flux (Fixed Index): 2.39e-05 +/- 2.81e-05

TS (Fixed Index): 1.32
Ra Dec: 185.345 30.168
Photon Flux Upper Limit: 6.53e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.77e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/511080/likelihoodResults_239846401_240105601_4FGL_J1221.3+3010_daily_bin2.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) = 5325.18459772
delta logL = 0.00725866372704

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5325.17450017
delta logL = 0.0173562194523

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.2268       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9343       1.0000          .0000       10.000    
     3 'Normalizat'    1.0400       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94085       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5325.175     FROM MIGRAD    STATUS=CONVERGED    101 CALLS      269 TOTAL
                     EDM=   .36E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.2268        22.557        .45095E-03   -.32091E-03
   2  Index         1.9343        1.7564        .23773       -.10742E-03
   3  Normalizat    1.0400        .45020E-01    .24231E-03   -.75538E-05
   4  Prefactor     .94086        .45452E-01    .29068E-03    .10560E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.22681
  Index      = 1.93432
  Normalizat = 1.03999
  Prefactor  = 0.940864
 **********
 **   18 **HESSE 
 **********

 FCN=   5325.175     FROM HESSE     STATUS=OK            27 CALLS      296 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.2268        2.8186        .18038E-04   -1.5486    
   2  Index         1.9343        1.3612        .42781E-02   -.66003    
   3  Normalizat    1.0400        .20853        .96924E-05   -.91703    
   4  Prefactor     .94086        .23725        .11627E-04   -.94727    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.39722e-09
Minuit parameter uncertainties:
  1  2.8189
  2  1.38967
  3  0.208693
  4  0.237507
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/511080': 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) = 5325.17450016
delta logL = 0.0173562209875

Extracting fit parameters...

4FGL J1221.3+3010
   Spectrum: PowerLaw
317    Prefactor:  1.227e+00  2.819e+00  1.000e-04  1.000e+04 ( 1.000e-13)
318        Index:  1.934e+00  1.390e+00  0.000e+00  1.000e+01 (-1.000e+00)
319        Scale:  4.501e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
625    Prefactor:  9.409e-01  2.375e-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.040e+00  2.087e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.36
Ra Dec: 185.345 30.168
Photon Index (Free Index): 1.93 +/- 1.39
Photon Flux (Free Index): 2.07e-08 +/- 4.42e-08
Energy Flux (Free Index): 1.69e-05 +/- 3.70e-05

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

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.77e-03', comment='SUCCESS', photon_flux='1.50e-08', energy_flux2='1.69e-05', photon_flux_error='1.76e-08', dlogl='1.74e-02', energy_flux='2.39e-05', photon_flux2='2.07e-08', job_status='DONE', time_completed='2021-09-05 09:10:54.359724', photon_index_error2='1.39', photon_index2='1.93', ts='1.32', fit_tolerance='1e-08', GAL='0.94', photon_index_error='0.00', photon_flux_upper_limit='6.53e-08', energy_flux_error2='3.70e-05', EG='1.04', time_epoch_completed='1630858254.36', return_code='0', job_id='511080', GAL2='0.94', EG2='1.04', return_code2='0', energy_flux_error='2.81e-05', photon_flux_error2='4.42e-08', ts2='1.36', photon_index='1.71' WHERE bin_id='2' AND source_name='4FGL J1221.3+3010' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 09:10:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0298>
Subject: Job 511080: <4FGL_J1221.3+3010_daily_bin2> in cluster <slac> Done

Job <4FGL_J1221.3+3010_daily_bin2> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sun Sep  5 08:55:34 2021
Job was executed on host(s) <bullet0298>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 08:55:38 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep  5 08:55:38 2021
Terminated at Sun Sep  5 09:10:55 2021
Results reported at Sun Sep  5 09:10:55 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1221.3+3010_daily_bin2 185.345 30.1677 239846401 240105601 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 :                                   852.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             325.68 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   916 sec.
    Turnaround time :                            921 sec.

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

