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


Performing analysis on: 4FGL_J1221.5+2814_daily_bin1002
RA = 185.378, Dec = 28.2382
tmin = 499046401, tmax = 499305601
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='530606', job_status='RUN', time_executed='2021-09-05 09:59:18.510798', time_epoch_executed='1630861158.51' WHERE source_name='4FGL J1221.5+2814' and cadence='daily' and bin_id='1002'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/530606

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/530606/ft1_4FGL_J1221.5+2814_daily_bin1002.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/530606/ft2_4FGL_J1221.5+2814_daily_bin1002.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/530606/ft1_4FGL_J1221.5+2814_daily_bin1002.fits outfile=/scratch/kocevski/530606/ft1_filteredMKT_4FGL_J1221.5+2814_daily_bin1002.fits ra=185.378 dec=28.2382 rad=12.0 tmin=499046401.0 tmax=499305601.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 4.27
user 4.03
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/530606/ft2_4FGL_J1221.5+2814_daily_bin1002.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/530606/ft2_4FGL_J1221.5+2814_daily_bin1002.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/530606/ft1_filteredMKT_4FGL_J1221.5+2814_daily_bin1002.fits evtable="EVENTS" outfile="/scratch/kocevski/530606/ft1_filtered_4FGL_J1221.5+2814_daily_bin1002.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.48
user 0.33
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/530606/ft1_filtered_4FGL_J1221.5+2814_daily_bin1002.fits" evtable="EVENTS" scfile=/scratch/kocevski/530606/ft2_4FGL_J1221.5+2814_daily_bin1002.fits sctable="SC_DATA" outfile=/scratch/kocevski/530606/ltcube_499046401_499305601_4FGL_J1221.5+2814_daily_bin1002.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/530606/ft2_4FGL_J1221.5+2814_daily_bin1002.fits
.....................!
real 11.76
user 11.43
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/530606/ft1_filtered_4FGL_J1221.5+2814_daily_bin1002.fits evtable="EVENTS" scfile=/scratch/kocevski/530606/ft2_4FGL_J1221.5+2814_daily_bin1002.fits sctable="SC_DATA" expcube=/scratch/kocevski/530606/ltcube_499046401_499305601_4FGL_J1221.5+2814_daily_bin1002.fits outfile=/scratch/kocevski/530606/expmap_499046401_499305601_4FGL_J1221.5+2814_daily_bin1002.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/530606/ltcube_499046401_499305601_4FGL_J1221.5+2814_daily_bin1002.fits
.....................!
real 189.91
user 184.72
sys 4.79

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 197 point sources and 0 extended sources

Setting source of interest to:
4FGL J1221.5+2814 @ 185.378 28.2382

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/530606/ft1_filtered_4FGL_J1221.5+2814_daily_bin1002.fits scfile=/scratch/kocevski/530606/ft2_4FGL_J1221.5+2814_daily_bin1002.fits outfile=/scratch/kocevski/530606/cmap_499046401_499305601_4FGL_J1221.5+2814_daily_bin1002.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.378 yref=28.2382 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.60
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/530606/ft1_filtered_4FGL_J1221.5+2814_daily_bin1002.fits scfile=/scratch/kocevski/530606/ft2_4FGL_J1221.5+2814_daily_bin1002.fits outfile=/scratch/kocevski/530606/cmap_HighResolution_499046401_499305601_4FGL_J1221.5+2814_daily_bin1002.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.378 yref=28.2382 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.55
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/530606/ft1_filtered_4FGL_J1221.5+2814_daily_bin1002.fits evtable="EVENTS" scfile=/scratch/kocevski/530606/ft2_4FGL_J1221.5+2814_daily_bin1002.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/530606/Model_4FGL_J1221.5+2814_daily_bin1002.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/530606/ft1_filtered_4FGL_J1221.5+2814_daily_bin1002.fits.....................!
real 42.81
user 41.26
sys 1.18

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/530606/ft1_filtered_4FGL_J1221.5+2814_daily_bin1002.fits', '/scratch/kocevski/530606/ft2_4FGL_J1221.5+2814_daily_bin1002.fits', expMap='/scratch/kocevski/530606/expmap_499046401_499305601_4FGL_J1221.5+2814_daily_bin1002.fits', expCube='/scratch/kocevski/530606/ltcube_499046401_499305601_4FGL_J1221.5+2814_daily_bin1002.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/530606/Model_4FGL_J1221.5+2814_daily_bin1002.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1221.5+2814'

4FGL J1221.5+2814
   Spectrum: PowerLaw
324    Prefactor:  3.206e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
325        Index:  2.153e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
326        Scale:  1.082e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/530606/ft1_filtered_4FGL_J1221.5+2814_daily_bin1002.fits
Spacecraft file(s): /scratch/kocevski/530606/ft2_4FGL_J1221.5+2814_daily_bin1002.fits
Exposure map: /scratch/kocevski/530606/expmap_499046401_499305601_4FGL_J1221.5+2814_daily_bin1002.fits
Exposure cube: /scratch/kocevski/530606/ltcube_499046401_499305601_4FGL_J1221.5+2814_daily_bin1002.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/530606/Model_4FGL_J1221.5+2814_daily_bin1002.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) = 4451.71026946

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    19.127       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    9.2107       1.0000         .10000E-03   10000.    
     4 'Prefactor '    29.400       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .97002       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10237E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    1.9190       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.9804       1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.5945       1.0000         .10000E-03   10000.    
    12 'norm      '    7.9767       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.0821       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .78949E-01   1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    37.226       1.0000         .10000E-03   10000.    
    21 'Prefactor '    38.081       1.0000         .10000E-03   10000.    
    22 'Prefactor '    5.8543       1.0000         .10000E-03   10000.    
    23 'Prefactor '    1.7410       1.0000         .10000E-03   10000.    
    24 'norm      '    .42891E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    13.743       1.0000         .10000E-03   10000.    
    26 'norm      '    2.0166       1.0000         .10000E-03   10000.    
    27 'norm      '    .10396E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    1.4005       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .82490       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.0977       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6240E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4451.694     FROM MIGRAD    STATUS=CONVERGED    118 CALLS     3267 TOTAL
                     EDM=   .41E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     19.129        1.0269       -.44401E-07   -.18496E-03
   2  Prefactor     .10001E-03    3.2566        .24346E-05** at limit **
   3  Prefactor     9.2119        2.6540       -.24392E-06   -.17854E-02
   4  Prefactor     29.367        10.208       -.25603E-05    .22149E-02
   5  Prefactor     .97583        2.5976        .13710E-05   -.18043E-03
   6  Prefactor     .10000E-03    39.533       -.43361E-05** at limit **
   7  norm          1.9195        1.4413        .12085E-06    .58251E-04
   8  Prefactor     .10000E-03    1.7536       -.40872E-06** at limit **
   9  Prefactor     .10000E-03    60.423        .60282E-05** at limit **
  10  Prefactor     2.9804        2.8495        .74980E-06   -.79874E-04
  11  Prefactor     4.5948        1.4097       -.11476E-06    .25603E-03
  12  norm          7.9768        3.8574        .24095E-05    .66414E-03
  13  Prefactor     .10001E-03    3.2764       -.24277E-05** at limit **
  14  Prefactor     .10000E-03    1.8494        .10642E-06** at limit **
  15  Prefactor     2.0823        2.3999       -.14108E-05    .96269E-05
  16  Prefactor     .10000E-03    5.0491       -.60728E-05** at limit **
  17  norm          .79032E-01    .25198        .24042E-06    .25968E-04
  18  norm          .10000E-03    1.8214        .77153E-07** at limit **
  19  Prefactor     .10000E-03    5.4857        .84862E-05** at limit **
  20  Prefactor     37.238        3.4915        .76100E-06    .54809E-04
  21  Prefactor     38.049        11.097       -.27523E-05    .71789E-02
  22  Prefactor     5.8566        2.7460       -.23889E-05    .37520E-02
  23  Prefactor     1.7368        7.3811        .64331E-05    .24280E-03
  24  norm          .10000E-03    2.4864       -.76900E-05** at limit **
  25  Prefactor     13.641        26.080       -.82761E-05   -.21068E-02
  26  norm          2.0165        2.2797        .24791E-06   -.14277E-04
  27  norm          .10000E-03    3.3644        .26219E-06** at limit **
  28  norm          1.4055        4.6021       -.67360E-05   -.35799E-03
  29  Normalizat    .82461        .24480       -.59733E-06   -.17455E-04
  30  Prefactor     1.0978        .26851        .73177E-06   -.44817E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 19.1289
  Prefactor  = 0.000100012
  Prefactor  = 9.21186
  Prefactor  = 29.3669
  Prefactor  = 0.975826
  Prefactor  = 0.0001
  norm       = 1.91954
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 2.98036
  Prefactor  = 4.59484
  norm       = 7.97676
  Prefactor  = 0.000100011
  Prefactor  = 0.0001
  Prefactor  = 2.08232
  Prefactor  = 0.0001
  norm       = 0.0790321
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 37.2379
  Prefactor  = 38.049
  Prefactor  = 5.85656
  Prefactor  = 1.73681
  norm       = 0.000100001
  Prefactor  = 13.6411
  norm       = 2.01648
  norm       = 0.0001
  norm       = 1.40551
  Normalizat = 0.824612
  Prefactor  = 1.09783
 **********
 **   18 **HESSE 
 **********

 FCN=   4451.694     FROM HESSE     STATUS=OK           662 CALLS     3929 TOTAL
                     EDM=   .98E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     19.129        17.823        .22895E-02   -1.4833    
   2  Prefactor     .10001E-03    5.1195        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     9.2119        7.3664        .33014E-02   -1.5101    
   4  Prefactor     29.367        34.728        .18473E-02   -1.4624    
   5  Prefactor     .97583        3.2174        .13059E-01   -1.5510    
   6  Prefactor     .10000E-03    39.344        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          1.9195        1.4726        .74995E-02   -1.5431    
   8  Prefactor     .10000E-03    1.7465        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    60.420        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     2.9804        3.1375        .58793E-02   -1.5363    
  11  Prefactor     4.5948        4.0712        .46946E-02   -1.5279    
  12  norm          7.9768        3.9345        .35491E-02   -1.5143    
  13  Prefactor     .10001E-03    5.0846        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    1.7960        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     2.0823        2.4230        .71543E-02   -1.5419    
  16  Prefactor     .10000E-03    6.6464        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .79032E-01    .24552        .94104E-02   -1.5652    
  18  norm          .10000E-03    1.8165        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    6.7217        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     37.238        30.533        .16422E-02   -1.4487    
  21  Prefactor     38.049        61.764        .16237E-02   -1.4474    
  22  Prefactor     5.8566        9.6120        .41495E-02   -1.5224    
  23  Prefactor     1.7368        9.7769        .79488E-02   -1.5444    
  24  norm          .10000E-03    5.2152        .43429E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     13.641        31.110        .27012E-02   -1.4969    
  26  norm          2.0165        2.2835        .72867E-02   -1.5424    
  27  norm          .10000E-03    3.3444        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          1.4055        4.8447        .91661E-02   -1.5471    
  29  Normalizat    .82461        .21287        .43934E-01   -.99162    
  30  Prefactor     1.0978        .22875        .58934E-01   -.89536    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.79883e-07
Minuit parameter uncertainties:
  1  17.8275
  2  0.000486385
  3  7.36715
  4  34.7515
  5  3.21794
  6  0.0002339
  7  1.47259
  8  4.78009e-06
  9  0.000535722
  10  3.13764
  11  4.07149
  12  3.93463
  13  0.000476695
  14  6.79014e-07
  15  2.42315
  16  1.62648e-05
  17  0.245528
  18  1.41974e-06
  19  8.51105e-05
  20  30.5457
  21  61.8683
  22  9.61453
  23  8.24333
  24  0.000157408
  25  31.1469
  26  2.28362
  27  8.55972e-06
  28  4.84601
  29  0.213088
  30  0.228956
Done.

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

Extracting fit parameters...

4FGL J1221.5+2814
   Spectrum: PowerLaw
324    Prefactor:  2.082e+00  2.423e+00  1.000e-04  1.000e+04 ( 1.000e-12)
325        Index:  2.153e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
326        Scale:  1.082e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
621    Prefactor:  1.098e+00  2.290e-01  0.000e+00  1.000e+01 ( 1.000e+00)
622        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
623        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
620   Normalization:  8.246e-01  2.131e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.27
Ra Dec: 185.378 28.238
Photon Index (Fixed Index): 2.15 +/- 0.00
Photon Flux (Fixed Index): 3.05e-08 +/- 3.54e-08
Energy Flux (Fixed Index): 1.50e-05 +/- 1.74e-05

TS (Fixed Index): 1.27
Ra Dec: 185.378 28.238
Photon Flux Upper Limit: 1.17e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.88e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/530606/likelihoodResults_499046401_499305601_4FGL_J1221.5+2814_daily_bin1002.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) = 4450.95741694
delta logL = 0.736563497647

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4450.95026696
delta logL = 0.743713480665

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .91917       1.0000         .10000E-03   10000.    
     2 'Index     '    3.2709       1.0000          .0000       10.000    
     3 'Normalizat'    .74600       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1521       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6240E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4450.950     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      245 TOTAL
                     EDM=   .97E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .91899        10.349        .98843E-02    .52539E-03
   2  Index         3.2711        2.8392        .12485        .99883E-04
   3  Normalizat    .74594        .54825E-01    .61584E-01    .14648E-04
   4  Prefactor     1.1523        .59779E-01    .57670E-01    .26623E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.91899
  Index      = 3.2711
  Normalizat = 0.745944
  Prefactor  = 1.15225
 **********
 **   18 **HESSE 
 **********

 FCN=   4450.950     FROM HESSE     STATUS=OK            33 CALLS      278 TOTAL
                     EDM=   .20E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .91899        2.0652        .44531E-04   -1.5516    
   2  Index         3.2711        1.2976        .44909E-02   -.35307    
   3  Normalizat    .74594        .25000        .27241E-03   -1.0211    
   4  Prefactor     1.1523        .27566        .25502E-03   -.87814    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.98926e-11
Minuit parameter uncertainties:
  1  2.06532
  2  1.31471
  3  0.250387
  4  0.276
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/530606': 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) = 4450.95026673
delta logL = 0.743713707304

Extracting fit parameters...

4FGL J1221.5+2814
   Spectrum: PowerLaw
324    Prefactor:  9.190e-01  2.065e+00  1.000e-04  1.000e+04 ( 1.000e-12)
325        Index:  3.271e+00  1.315e+00  0.000e+00  1.000e+01 (-1.000e+00)
326        Scale:  1.082e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
621    Prefactor:  1.152e+00  2.760e-01  0.000e+00  1.000e+01 ( 1.000e+00)
622        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
623        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
620   Normalization:  7.459e-01  2.504e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.89
Ra Dec: 185.378 28.238
Photon Index (Free Index): 3.27 +/- 1.31
Photon Flux (Free Index): 9.81e-08 +/- 8.40e-08
Energy Flux (Free Index): 1.75e-05 +/- 1.30e-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/530606/cmap_HighResolution_499046401_499305601_4FGL_J1221.5+2814_daily_bin1002.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.88e-03', comment='SUCCESS', photon_flux='3.05e-08', energy_flux2='1.75e-05', photon_flux_error='3.54e-08', dlogl='7.44e-01', energy_flux='1.50e-05', photon_flux2='9.81e-08', job_status='DONE', time_completed='2021-09-05 10:10:41.706372', photon_index_error2='1.31', photon_index2='3.27', ts='1.27', fit_tolerance='1e-08', GAL='1.10', photon_index_error='0.00', photon_flux_upper_limit='1.17e-07', energy_flux_error2='1.30e-05', EG='0.82', time_epoch_completed='1630861841.71', return_code='0', job_id='530606', GAL2='1.15', EG2='0.75', return_code2='0', energy_flux_error='1.74e-05', photon_flux_error2='8.40e-08', ts2='2.89', photon_index='2.15' WHERE bin_id='1002' AND source_name='4FGL J1221.5+2814' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 10:10:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0220>
Subject: Job 530606: <4FGL_J1221.5+2814_daily_bin1002> in cluster <slac> Done

Job <4FGL_J1221.5+2814_daily_bin1002> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sun Sep  5 09:55:39 2021
Job was executed on host(s) <bullet0220>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 09:55:40 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:55:40 2021
Terminated at Sun Sep  5 10:10:42 2021
Results reported at Sun Sep  5 10:10:42 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1221.5+2814_daily_bin1002 185.378 28.2382 499046401 499305601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1221.5+2814 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   680.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             277.14 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   902 sec.
    Turnaround time :                            903 sec.

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

