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


Performing analysis on: 4FGL_J1221.5+2814_daily_bin1350
RA = 185.378, Dec = 28.2382
tmin = 589248001, tmax = 589507201
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='532418', job_status='RUN', time_executed='2021-09-05 10:03:51.868242', time_epoch_executed='1630861431.87' WHERE source_name='4FGL J1221.5+2814' and cadence='daily' and bin_id='1350'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/532418

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/532418/ft1_4FGL_J1221.5+2814_daily_bin1350.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/532418/ft2_4FGL_J1221.5+2814_daily_bin1350.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/532418/ft1_4FGL_J1221.5+2814_daily_bin1350.fits outfile=/scratch/kocevski/532418/ft1_filteredMKT_4FGL_J1221.5+2814_daily_bin1350.fits ra=185.378 dec=28.2382 rad=12.0 tmin=589248001.0 tmax=589507201.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.14
user 2.91
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/532418/ft2_4FGL_J1221.5+2814_daily_bin1350.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/532418/ft1_filteredMKT_4FGL_J1221.5+2814_daily_bin1350.fits evtable="EVENTS" outfile="/scratch/kocevski/532418/ft1_filtered_4FGL_J1221.5+2814_daily_bin1350.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.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/532418/ft1_filtered_4FGL_J1221.5+2814_daily_bin1350.fits" evtable="EVENTS" scfile=/scratch/kocevski/532418/ft2_4FGL_J1221.5+2814_daily_bin1350.fits sctable="SC_DATA" outfile=/scratch/kocevski/532418/ltcube_589248001_589507201_4FGL_J1221.5+2814_daily_bin1350.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/532418/ft2_4FGL_J1221.5+2814_daily_bin1350.fits
.....................!
real 12.56
user 12.22
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/532418/ft1_filtered_4FGL_J1221.5+2814_daily_bin1350.fits evtable="EVENTS" scfile=/scratch/kocevski/532418/ft2_4FGL_J1221.5+2814_daily_bin1350.fits sctable="SC_DATA" expcube=/scratch/kocevski/532418/ltcube_589248001_589507201_4FGL_J1221.5+2814_daily_bin1350.fits outfile=/scratch/kocevski/532418/expmap_589248001_589507201_4FGL_J1221.5+2814_daily_bin1350.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/532418/ltcube_589248001_589507201_4FGL_J1221.5+2814_daily_bin1350.fits
.....................!
real 190.35
user 185.01
sys 4.32

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/532418/ft1_filtered_4FGL_J1221.5+2814_daily_bin1350.fits scfile=/scratch/kocevski/532418/ft2_4FGL_J1221.5+2814_daily_bin1350.fits outfile=/scratch/kocevski/532418/cmap_589248001_589507201_4FGL_J1221.5+2814_daily_bin1350.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.55
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/532418/ft1_filtered_4FGL_J1221.5+2814_daily_bin1350.fits scfile=/scratch/kocevski/532418/ft2_4FGL_J1221.5+2814_daily_bin1350.fits outfile=/scratch/kocevski/532418/cmap_HighResolution_589248001_589507201_4FGL_J1221.5+2814_daily_bin1350.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.54
user 0.40
sys 0.13

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/532418/ft1_filtered_4FGL_J1221.5+2814_daily_bin1350.fits', '/scratch/kocevski/532418/ft2_4FGL_J1221.5+2814_daily_bin1350.fits', expMap='/scratch/kocevski/532418/expmap_589248001_589507201_4FGL_J1221.5+2814_daily_bin1350.fits', expCube='/scratch/kocevski/532418/ltcube_589248001_589507201_4FGL_J1221.5+2814_daily_bin1350.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/532418/Model_4FGL_J1221.5+2814_daily_bin1350.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/532418/ft1_filtered_4FGL_J1221.5+2814_daily_bin1350.fits
Spacecraft file(s): /scratch/kocevski/532418/ft2_4FGL_J1221.5+2814_daily_bin1350.fits
Exposure map: /scratch/kocevski/532418/expmap_589248001_589507201_4FGL_J1221.5+2814_daily_bin1350.fits
Exposure cube: /scratch/kocevski/532418/ltcube_589248001_589507201_4FGL_J1221.5+2814_daily_bin1350.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/532418/Model_4FGL_J1221.5+2814_daily_bin1350.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) = 2851.95214508

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    44.804       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10185E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    24.336       1.0000         .10000E-03   10000.    
     4 'Prefactor '    10.702       1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.9505       1.0000         .10000E-03   10000.    
     6 'Prefactor '    73.628       1.0000         .10000E-03   10000.    
     7 'norm      '    .10881E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    7.8189       1.0000         .10000E-03   10000.    
     9 'Prefactor '    49.346       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    6.7946       1.0000         .10000E-03   10000.    
    12 'norm      '    8.8117       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .64854       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10237E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10038E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .15058E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    20.155       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .11373E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    5.0795       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    45.138       1.0000         .10000E-03   10000.    
    26 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    10.227       1.0000         .10000E-03   10000.    
    28 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.0495       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.0788       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   2851.942     FROM MIGRAD    STATUS=CONVERGED    756 CALLS     3959 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     44.779        95.860       -.34979E-04   -.58102E-04
   2  Prefactor     .10000E-03    40.122        .51797E-04** at limit **
   3  Prefactor     24.341        23.579        .10265E-04   -.15289E-04
   4  Prefactor     10.743        75.364        .10539E-03    .37574E-04
   5  Prefactor     5.9488        5.9230       -.43524E-05   -.62719E-04
   6  Prefactor     73.563        89.718       -.68387E-04   -.48453E-05
   7  norm          .10000E-03    2.7568       -.46910E-06** at limit **
   8  Prefactor     7.8148        10.382       -.18844E-05    .12565E-03
   9  Prefactor     49.296        72.889       -.59433E-04    .83271E-05
  10  Prefactor     .10000E-03    2.6654        .82044E-07** at limit **
  11  Prefactor     6.7959        6.6100       -.56534E-06    .17618E-03
  12  norm          8.8088        6.1743        .11799E-05    .42254E-03
  13  Prefactor     .10000E-03    13.104        .71105E-05** at limit **
  14  Prefactor     .10000E-03    1.6532        .32233E-07** at limit **
  15  Prefactor     .64578        4.6502       -.14888E-05   -.17198E-04
  16  Prefactor     .10000E-03    21.591       -.19105E-04** at limit **
  17  norm          .10000E-03    .41779       -.47503E-06** at limit **
  18  norm          .10015E-03    6.0203        .89678E-08** at limit **
  19  Prefactor     20.165        16.875        .27751E-06    .26023E-03
  20  Prefactor     .10000E-03    7.3298        .44105E-06** at limit **
  21  Prefactor     .10000E-03    57.470       -.52198E-04** at limit **
  22  Prefactor     5.0795        14.354       -.66700E-05    .71199E-05
  23  Prefactor     .10000E-03    2.9617        .59026E-06** at limit **
  24  norm          .10000E-03    1.4610       -.32523E-07** at limit **
  25  Prefactor     45.128        32.465       -.93164E-05    .92627E-04
  26  norm          .10000E-03    3.2771       -.26943E-06** at limit **
  27  norm          10.226        5.5304        .19358E-05    .45010E-03
  28  norm          .10000E-03    9.1652       -.28285E-05** at limit **
  29  Normalizat    1.0502        .29271        .14438E-04    .30519E-03
  30  Prefactor     1.0781        .30597        .22324E-07    .62401E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 44.7791
  Prefactor  = 0.000100001
  Prefactor  = 24.3412
  Prefactor  = 10.743
  Prefactor  = 5.94876
  Prefactor  = 73.5627
  norm       = 0.0001
  Prefactor  = 7.81475
  Prefactor  = 49.2961
  Prefactor  = 0.0001
  Prefactor  = 6.79587
  norm       = 8.80882
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.645778
  Prefactor  = 0.0001
  norm       = 0.000100001
  norm       = 0.000100147
  Prefactor  = 20.1649
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.07946
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 45.1285
  norm       = 0.0001
  norm       = 10.2257
  norm       = 0.000100001
  Normalizat = 1.05016
  Prefactor  = 1.0781
 **********
 **   18 **HESSE 
 **********

 FCN=   2851.942     FROM HESSE     STATUS=OK           584 CALLS     4543 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     44.779        95.934        .59897E-04   -1.4369    
   2  Prefactor     .10000E-03    40.163        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     24.341        23.569        .81201E-04   -1.4721    
   4  Prefactor     10.743        75.153        .12247E-03   -1.5052    
   5  Prefactor     5.9488        5.9164        .12058E-03   -1.5220    
   6  Prefactor     73.563        89.964        .23395E-03   -1.3990    
   7  norm          .10000E-03    2.8528        .17247E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     7.8148        10.362        .14340E-03   -1.5149    
   9  Prefactor     49.296        72.893        .28543E-03   -1.4303    
  10  Prefactor     .10000E-03    2.6697        .85120E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     6.7959        6.6016        .13078E-03   -1.5187    
  12  norm          8.8088        6.0755        .10158E-03   -1.5114    
  13  Prefactor     .10000E-03    13.473        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    1.6550        .67004E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .64578        6.7432        .19509E-02   -1.5547    
  16  Prefactor     .10000E-03    22.240        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    .81673        .64896E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10015E-03    49.265        .24601E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     20.165        16.736        .89216E-04   -1.4810    
  20  Prefactor     .10000E-03    7.3308        .14122E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    57.540        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     5.0795        14.390        .17840E-03   -1.5257    
  23  Prefactor     .10000E-03    2.9670        .89754E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    1.4617        .63030E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     45.128        32.535        .59676E-04   -1.4363    
  26  norm          .10000E-03    3.3278        .94336E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          10.226        5.4986        .86555E-04   -1.5068    
  28  norm          .10000E-03    9.2127        .15695E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.0502        .34958        .26368E-03   -.91368    
  30  Prefactor     1.0781        .36698        .29560E-03   -.90169    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.49242e-08
Minuit parameter uncertainties:
  1  96.2676
  2  0.000287661
  3  23.5777
  4  56.9305
  5  5.91703
  6  90.1313
  7  1.80086e-05
  8  10.3645
  9  73.025
  10  8.45061e-06
  11  6.60227
  12  6.07591
  13  0.000169374
  14  8.34346e-06
  15  4.17381
  16  9.40798e-06
  17  4.66819e-05
  18  0.00538662
  19  16.7396
  20  5.59948e-06
  21  9.37384e-05
  22  14.4002
  23  2.52978e-06
  24  1.8494e-07
  25  32.5476
  26  3.7519e-05
  27  5.49892
  28  0.000225911
  29  0.350347
  30  0.367838
Done.

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

Extracting fit parameters...

4FGL J1221.5+2814
   Spectrum: PowerLaw
324    Prefactor:  6.458e-01  4.174e+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.078e+00  3.678e-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:  1.050e+00  3.503e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.03
Ra Dec: 185.378 28.238
Photon Flux Upper Limit: 1.60e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.21e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/532418/likelihoodResults_589248001_589507201_4FGL_J1221.5+2814_daily_bin1350.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2851.63325413
delta logL = 0.30837459867

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2851.61517653
delta logL = 0.326452191473

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .64829       1.0000         .10000E-03   10000.    
     2 'Index     '    3.2648       1.0000          .0000       10.000    
     3 'Normalizat'    .99410       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1093       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=   2851.615     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      223 TOTAL
                     EDM=   .31E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .64907        22.602        .11862E-01    .52741E-03
   2  Index         3.2642        6.5780        .11909        .67151E-04
   3  Normalizat    .99408        .66290E-01    .46093E-01    .51803E-05
   4  Prefactor     1.1093        .75757E-01    .65906E-01    .34824E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.649068
  Index      = 3.26423
  Normalizat = 0.994082
  Prefactor  = 1.1093
 **********
 **   18 **HESSE 
 **********

 FCN=   2851.615     FROM HESSE     STATUS=OK            35 CALLS      258 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .64907        16.040        .56912E-03   -1.5547    
   2  Index         3.2642        6.5977        .60302E-02   -.35454    
   3  Normalizat    .99408        .32541        .26959E-03   -.93229    
   4  Prefactor     1.1093        .36615        .29153E-03   -.89170    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.36597e-08
Minuit parameter uncertainties:
  1  6.45469
  2  4.92406
  3  0.326063
  4  0.366987
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/532418': 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) = 2851.61517643
delta logL = 0.326452298084

Extracting fit parameters...

4FGL J1221.5+2814
   Spectrum: PowerLaw
324    Prefactor:  6.491e-01  6.455e+00  1.000e-04  1.000e+04 ( 1.000e-12)
325        Index:  3.264e+00  4.924e+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.109e+00  3.670e-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:  9.941e-01  3.261e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.03
Ra Dec: 185.378 28.238

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/532418/cmap_HighResolution_589248001_589507201_4FGL_J1221.5+2814_daily_bin1350.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.21e-02', job_status='DONE', photon_flux_upper_limit='1.60e-07', time_completed='2021-09-05 10:13:36.809984', job_id='532418', GAL2='1.11', fit_tolerance='1e-08', EG2='0.99', EG='1.05', time_epoch_completed='1630862016.81', return_code2='0', ts='0.03', comment='SUCCESS', return_code='0', GAL='1.08', dlogl='3.26e-01', ts2='0.71', photon_index_error='0.00', photon_index='2.15' WHERE bin_id='1350' AND source_name='4FGL J1221.5+2814' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 10:13:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0065>
Subject: Job 532418: <4FGL_J1221.5+2814_daily_bin1350> in cluster <slac> Done

Job <4FGL_J1221.5+2814_daily_bin1350> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Sun Sep  5 10:00:57 2021
Job was executed on host(s) <bullet0065>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 10:00:59 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep  5 10:00:59 2021
Terminated at Sun Sep  5 10:13:39 2021
Results reported at Sun Sep  5 10:13:39 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1221.5+2814_daily_bin1350 185.378 28.2382 589248001 589507201 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 :                                   578.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             307.46 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   758 sec.
    Turnaround time :                            762 sec.

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

