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


Performing analysis on: 4FGL_J1220.1+3432_daily_bin1084
RA = 185.046, Dec = 34.5383
tmin = 520300801, tmax = 520560001
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='496998', job_status='RUN', time_executed='2021-09-05 08:15:54.015895', time_epoch_executed='1630854954.02' WHERE source_name='4FGL J1220.1+3432' and cadence='daily' and bin_id='1084'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/496998

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/496998/ft1_4FGL_J1220.1+3432_daily_bin1084.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/496998/ft2_4FGL_J1220.1+3432_daily_bin1084.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/496998/ft1_4FGL_J1220.1+3432_daily_bin1084.fits outfile=/scratch/kocevski/496998/ft1_filteredMKT_4FGL_J1220.1+3432_daily_bin1084.fits ra=185.046 dec=34.5383 rad=12.0 tmin=520300801.0 tmax=520560001.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 6.21
user 5.80
sys 0.26

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/496998/ft2_4FGL_J1220.1+3432_daily_bin1084.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/496998/ft2_4FGL_J1220.1+3432_daily_bin1084.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/496998/ft1_filteredMKT_4FGL_J1220.1+3432_daily_bin1084.fits evtable="EVENTS" outfile="/scratch/kocevski/496998/ft1_filtered_4FGL_J1220.1+3432_daily_bin1084.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.56
user 0.33
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/496998/ft1_filtered_4FGL_J1220.1+3432_daily_bin1084.fits" evtable="EVENTS" scfile=/scratch/kocevski/496998/ft2_4FGL_J1220.1+3432_daily_bin1084.fits sctable="SC_DATA" outfile=/scratch/kocevski/496998/ltcube_520300801_520560001_4FGL_J1220.1+3432_daily_bin1084.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/496998/ft2_4FGL_J1220.1+3432_daily_bin1084.fits
.....................!
real 13.02
user 12.53
sys 0.39

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/496998/ft1_filtered_4FGL_J1220.1+3432_daily_bin1084.fits evtable="EVENTS" scfile=/scratch/kocevski/496998/ft2_4FGL_J1220.1+3432_daily_bin1084.fits sctable="SC_DATA" expcube=/scratch/kocevski/496998/ltcube_520300801_520560001_4FGL_J1220.1+3432_daily_bin1084.fits outfile=/scratch/kocevski/496998/expmap_520300801_520560001_4FGL_J1220.1+3432_daily_bin1084.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/496998/ltcube_520300801_520560001_4FGL_J1220.1+3432_daily_bin1084.fits
.....................!
real 191.47
user 184.73
sys 5.59

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

Setting source of interest to:
4FGL J1220.1+3432 @ 185.046 34.5383

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/496998/ft1_filtered_4FGL_J1220.1+3432_daily_bin1084.fits scfile=/scratch/kocevski/496998/ft2_4FGL_J1220.1+3432_daily_bin1084.fits outfile=/scratch/kocevski/496998/cmap_520300801_520560001_4FGL_J1220.1+3432_daily_bin1084.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.046 yref=34.5383 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 1.14
user 0.39
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/496998/ft1_filtered_4FGL_J1220.1+3432_daily_bin1084.fits scfile=/scratch/kocevski/496998/ft2_4FGL_J1220.1+3432_daily_bin1084.fits outfile=/scratch/kocevski/496998/cmap_HighResolution_520300801_520560001_4FGL_J1220.1+3432_daily_bin1084.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.046 yref=34.5383 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 1.13
user 0.39
sys 0.18

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/496998/ft1_filtered_4FGL_J1220.1+3432_daily_bin1084.fits evtable="EVENTS" scfile=/scratch/kocevski/496998/ft2_4FGL_J1220.1+3432_daily_bin1084.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/496998/Model_4FGL_J1220.1+3432_daily_bin1084.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/496998/ft1_filtered_4FGL_J1220.1+3432_daily_bin1084.fits......................!
real 40.35
user 35.49
sys 1.29

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/496998/ft1_filtered_4FGL_J1220.1+3432_daily_bin1084.fits', '/scratch/kocevski/496998/ft2_4FGL_J1220.1+3432_daily_bin1084.fits', expMap='/scratch/kocevski/496998/expmap_520300801_520560001_4FGL_J1220.1+3432_daily_bin1084.fits', expCube='/scratch/kocevski/496998/ltcube_520300801_520560001_4FGL_J1220.1+3432_daily_bin1084.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/496998/Model_4FGL_J1220.1+3432_daily_bin1084.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1220.1+3432'

4FGL J1220.1+3432
   Spectrum: PowerLaw
299    Prefactor:  1.941e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
300        Index:  2.107e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
301        Scale:  1.673e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/496998/ft1_filtered_4FGL_J1220.1+3432_daily_bin1084.fits
Spacecraft file(s): /scratch/kocevski/496998/ft2_4FGL_J1220.1+3432_daily_bin1084.fits
Exposure map: /scratch/kocevski/496998/expmap_520300801_520560001_4FGL_J1220.1+3432_daily_bin1084.fits
Exposure cube: /scratch/kocevski/496998/ltcube_520300801_520560001_4FGL_J1220.1+3432_daily_bin1084.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/496998/Model_4FGL_J1220.1+3432_daily_bin1084.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) = 3580.15235879

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .81872       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.8613       1.0000         .10000E-03   10000.    
     4 'norm      '    .81515       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    4.2170       1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.7229       1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.9192       1.0000         .10000E-03   10000.    
    12 'Prefactor '    56.080       1.0000         .10000E-03   10000.    
    13 'norm      '    6.0727       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    6.6235       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .16194E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    9.1557       1.0000         .10000E-03   10000.    
    20 'norm      '    3.4558       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    2.2953       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    4.4861       1.0000         .10000E-03   10000.    
    26 'Prefactor '    42.779       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    .10838E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    .10057E-03   1.0000         .10000E-03   10000.    
    30 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    1.1674       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .60644       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6130E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   3579.963     FROM MIGRAD    STATUS=CONVERGED    898 CALLS     4001 TOTAL
                     EDM=   .21E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .81911        2.7323        .49674E-06    .19253E-03
   2  Prefactor     .10000E-03    36.144       -.15189E-05** at limit **
   3  Prefactor     3.8613        16.308        .33703E-05   -.11292E-04
   4  norm          .81462        2.3870        .10486E-06   -.24410E-05
   5  Prefactor     .10000E-03    7.9847       -.82547E-07** at limit **
   6  Prefactor     .10000E-03    6.7994       -.10076E-06** at limit **
   7  Prefactor     .10000E-03    97.436        .60107E-06** at limit **
   8  norm          4.2171        1.5550       -.81253E-08   -.16349E-03
   9  Prefactor     2.7191        16.534        .60147E-05   -.25131E-04
  10  norm          .10000E-03    5.2135       -.12225E-06** at limit **
  11  Prefactor     2.9196        41.519       -.14319E-06   -.48866E-05
  12  Prefactor     56.080        44.334        .10590E-07    .94756E-06
  13  norm          6.0731        1.9084       -.51779E-07    .14098E-03
  14  Prefactor     .10000E-03    27.584        .83759E-06** at limit **
  15  norm          6.6252        3.9073        .27618E-06    .11366E-03
  16  Prefactor     .10000E-03    3.0137       -.98031E-07** at limit **
  17  Prefactor     .10000E-03    2.2546       -.41832E-06** at limit **
  18  Prefactor     .10000E-03    1.6946       -.63510E-06** at limit **
  19  Prefactor     9.1574        8.6945       -.46304E-08    .74236E-04
  20  norm          3.4555        7.8728        .33414E-06    .79771E-04
  21  Prefactor     .10000E-03    6.0058        .12477E-06** at limit **
  22  Prefactor     2.2912        62.809        .53124E-06   -.13939E-04
  23  Prefactor     .10000E-03    31.434        .38397E-06** at limit **
  24  Prefactor     .10000E-03    4.0771        .52636E-07** at limit **
  25  norm          4.4863        4.3261        .16986E-07    .17531E-04
  26  Prefactor     42.777        28.400        .32831E-06   -.13875E-04
  27  Prefactor     .10000E-03    12.599        .69838E-06** at limit **
  28  norm          .10000E-03    9.6292        .48309E-05** at limit **
  29  norm          .10000E-03    3.7842       -.71461E-07** at limit **
  30  norm          .10000E-03    3.1713        .83608E-07** at limit **
  31  Prefactor     .10000E-03    4.0458        .13590E-06** at limit **
  32  Normalizat    1.1673        .21642       -.41856E-06    .10036E-03
  33  Prefactor     .60661        .24732       -.32569E-07    .66218E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.819109
  Prefactor  = 0.000100003
  Prefactor  = 3.86129
  norm       = 0.814624
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 4.2171
  Prefactor  = 2.7191
  norm       = 0.0001
  Prefactor  = 2.9196
  Prefactor  = 56.08
  norm       = 6.07313
  Prefactor  = 0.000100002
  norm       = 6.62518
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.15737
  norm       = 3.45546
  Prefactor  = 0.0001
  Prefactor  = 2.29121
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.48626
  Prefactor  = 42.7767
  Prefactor  = 0.000100001
  norm       = 0.000100001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.1673
  Prefactor  = 0.606613
 **********
 **   18 **HESSE 
 **********

 FCN=   3579.963     FROM HESSE     STATUS=OK           691 CALLS     4692 TOTAL
                     EDM=   .46E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .81911        2.6539        .16391E-03   -1.5527    
   2  Prefactor     .10000E-03    36.480        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     3.8613        17.207        .10268E-02   -1.5315    
   4  norm          .81462        2.2663        .14459E-03   -1.5527    
   5  Prefactor     .10000E-03    8.0040        .16507E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    6.9569        .30347E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    97.900        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          4.2171        1.5528        .42428E-04   -1.5297    
   9  Prefactor     2.7191        19.695        .12340E-02   -1.5378    
  10  norm          .10000E-03    5.2209        .13345E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     2.9196        41.315        .23778E-03   -1.5366    
  12  Prefactor     56.080        44.374        .53567E-04   -1.4209    
  13  norm          6.0731        1.9088        .44072E-04   -1.5215    
  14  Prefactor     .10000E-03    27.743        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          6.6252        3.8616        .86460E-04   -1.5193    
  16  Prefactor     .10000E-03    3.0209        .10146E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    2.3353        .17558E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    6.5925        .14438E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     9.1574        8.6325        .13245E-03   -1.5103    
  20  norm          3.4555        7.7947        .21755E-03   -1.5336    
  21  Prefactor     .10000E-03    6.0257        .14321E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     2.2912        62.792        .27091E-03   -1.5405    
  23  Prefactor     .10000E-03    31.455        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    4.0840        .11775E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          4.4863        4.3299        .11795E-03   -1.5284    
  26  Prefactor     42.777        28.346        .61292E-04   -1.4399    
  27  Prefactor     .10000E-03    12.665        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .10000E-03    14.493        .29196E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          .10000E-03    3.8891        .22714E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  norm          .10000E-03    3.1766        .10407E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .10000E-03    4.0855        .11745E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    1.1673        .24532        .21058E-03   -.87619    
  33  Prefactor     .60661        .27839        .32997E-03   -1.0731    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.55884e-10
Minuit parameter uncertainties:
  1  2.65424
  2  0.000653282
  3  16.31
  4  2.26654
  5  1.49415e-05
  6  4.74188e-06
  7  0.00061476
  8  1.55279
  9  14.6426
  10  2.10171e-05
  11  21.9838
  12  44.4004
  13  1.90883
  14  0.000418058
  15  3.86173
  16  9.13027e-06
  17  3.23021e-05
  18  0.000105808
  19  8.63368
  20  7.79698
  21  3.85738e-05
  22  24.0165
  23  0.000169537
  24  1.51241e-05
  25  4.3302
  26  28.3551
  27  0.000186076
  28  0.000184466
  29  1.27225e-05
  30  1.04235e-05
  31  1.50142e-05
  32  0.245558
  33  0.279029
Done.

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

Extracting fit parameters...

4FGL J1220.1+3432
   Spectrum: PowerLaw
299    Prefactor:  1.000e-04  9.130e-06  1.000e-04  1.000e+04 ( 1.000e-13)
300        Index:  2.107e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
301        Scale:  1.673e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
610    Prefactor:  6.066e-01  2.790e-01  0.000e+00  1.000e+01 ( 1.000e+00)
611        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
612        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
609   Normalization:  1.167e+00  2.456e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 185.046 34.538
Photon Flux Upper Limit: 5.21e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.94e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/496998/likelihoodResults_520300801_520560001_4FGL_J1220.1+3432_daily_bin1084.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) = 3579.96463976
delta logL = -0.00151960803987

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3579.9631199
delta logL = 2.50251559919e-07

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   3579.963     FROM MIGRAD    STATUS=FAILED        84 CALLS      233 TOTAL
                     EDM=   .30E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10173E-03    42.151        .10435E-02** at limit **
   2  Index         2.0182        5.9992        .50000        .60227E-04
   3  Normalizat    1.1673        .18614E-01    .21058E-03    .17986E-03
   4  Prefactor     .60662        .21728E-01    .32997E-03    .28994E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   3579.963     FROM SIMPLEX   STATUS=UNCHANGED    126 CALLS      359 TOTAL
                     EDM=   .13E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10173E-03    42.151        .33388E-03** at limit **
   2  Index         2.0182        5.9992        .55852E-03    .60227E-04
   3  Normalizat    1.1673        .18614E-01    .45406E-05    .17986E-03
   4  Prefactor     .60662        .21728E-01    .62579E-05    .28994E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3579.963     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      414 TOTAL
                     EDM=   .36E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    62.521        .20870E-02** at limit **
   2  Index         1.5271        5.0949        .50000        .25784E-07
   3  Normalizat    1.1673        .19969E-01    .42116E-04    .10530E-03
   4  Prefactor     .60661        .23310E-01    .13199E-04   -.75797E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.52713
  Normalizat = 1.16731
  Prefactor  = 0.606609
 **********
 **   18 **HESSE 
 **********

 FCN=   3579.963     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      443 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    279.33        .41740E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.5271        6.7928        .50000       -.76783    
   3  Normalizat    1.1673        .45161E-01    .84233E-05   -.87619    
   4  Prefactor     .60661        .52715E-01    .26398E-05   -1.0731    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.63058e-09
Minuit parameter uncertainties:
  1  0.000300956
  2  731.86
  3  0.0451624
  4  0.0527197
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/496998': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3579.96311525
delta logL = 4.89486637889e-06

Extracting fit parameters...

4FGL J1220.1+3432
   Spectrum: PowerLaw
299    Prefactor:  1.000e-04  3.010e-04  1.000e-04  1.000e+04 ( 1.000e-13)
300        Index:  1.527e+00  7.319e+02  0.000e+00  1.000e+01 (-1.000e+00)
301        Scale:  1.673e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
610    Prefactor:  6.066e-01  5.272e-02  0.000e+00  1.000e+01 ( 1.000e+00)
611        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
612        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
609   Normalization:  1.167e+00  4.516e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 185.046 34.538

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/496998/cmap_HighResolution_520300801_520560001_4FGL_J1220.1+3432_daily_bin1084.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.94e-03', job_status='DONE', photon_flux_upper_limit='5.21e-08', time_completed='2021-09-05 08:28:07.076189', job_id='496998', GAL2='0.61', fit_tolerance='1e-08', EG2='1.17', EG='1.17', time_epoch_completed='1630855687.08', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.61', dlogl='4.89e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.11' WHERE bin_id='1084' AND source_name='4FGL J1220.1+3432' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 08:28:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0076>
Subject: Job 496998: <4FGL_J1220.1+3432_daily_bin1084> in cluster <slac> Done

Job <4FGL_J1220.1+3432_daily_bin1084> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sun Sep  5 08:15:34 2021
Job was executed on host(s) <bullet0076>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 08:15:35 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:15:35 2021
Terminated at Sun Sep  5 08:28:07 2021
Results reported at Sun Sep  5 08:28:07 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1220.1+3432_daily_bin1084 185.046 34.5383 520300801 520560001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1220.1+3432 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   705.07 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             302.36 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   752 sec.
    Turnaround time :                            753 sec.

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

