/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 98 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 = 7381
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1220.1+3432_daily_bin1404
RA = 185.046, Dec = 34.5383
tmin = 603244801, tmax = 603504001
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='497410', job_status='RUN', time_executed='2021-09-05 08:18:13.106405', time_epoch_executed='1630855093.11' WHERE source_name='4FGL J1220.1+3432' and cadence='daily' and bin_id='1404'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/497410

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/497410/ft1_4FGL_J1220.1+3432_daily_bin1404.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/497410/ft2_4FGL_J1220.1+3432_daily_bin1404.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/497410/ft1_4FGL_J1220.1+3432_daily_bin1404.fits outfile=/scratch/kocevski/497410/ft1_filteredMKT_4FGL_J1220.1+3432_daily_bin1404.fits ra=185.046 dec=34.5383 rad=12.0 tmin=603244801.0 tmax=603504001.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 2.90
user 2.67
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/497410/ft1_filtered_4FGL_J1220.1+3432_daily_bin1404.fits" evtable="EVENTS" scfile=/scratch/kocevski/497410/ft2_4FGL_J1220.1+3432_daily_bin1404.fits sctable="SC_DATA" outfile=/scratch/kocevski/497410/ltcube_603244801_603504001_4FGL_J1220.1+3432_daily_bin1404.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/497410/ft2_4FGL_J1220.1+3432_daily_bin1404.fits
.....................!
real 14.93
user 14.58
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/497410/ft1_filtered_4FGL_J1220.1+3432_daily_bin1404.fits evtable="EVENTS" scfile=/scratch/kocevski/497410/ft2_4FGL_J1220.1+3432_daily_bin1404.fits sctable="SC_DATA" expcube=/scratch/kocevski/497410/ltcube_603244801_603504001_4FGL_J1220.1+3432_daily_bin1404.fits outfile=/scratch/kocevski/497410/expmap_603244801_603504001_4FGL_J1220.1+3432_daily_bin1404.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/497410/ltcube_603244801_603504001_4FGL_J1220.1+3432_daily_bin1404.fits
.....................!
real 191.38
user 186.05
sys 5.02

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/497410/ft1_filtered_4FGL_J1220.1+3432_daily_bin1404.fits scfile=/scratch/kocevski/497410/ft2_4FGL_J1220.1+3432_daily_bin1404.fits outfile=/scratch/kocevski/497410/cmap_603244801_603504001_4FGL_J1220.1+3432_daily_bin1404.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 0.59
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/497410/ft1_filtered_4FGL_J1220.1+3432_daily_bin1404.fits scfile=/scratch/kocevski/497410/ft2_4FGL_J1220.1+3432_daily_bin1404.fits outfile=/scratch/kocevski/497410/cmap_HighResolution_603244801_603504001_4FGL_J1220.1+3432_daily_bin1404.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 0.58
user 0.36
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/497410/ft1_filtered_4FGL_J1220.1+3432_daily_bin1404.fits', '/scratch/kocevski/497410/ft2_4FGL_J1220.1+3432_daily_bin1404.fits', expMap='/scratch/kocevski/497410/expmap_603244801_603504001_4FGL_J1220.1+3432_daily_bin1404.fits', expCube='/scratch/kocevski/497410/ltcube_603244801_603504001_4FGL_J1220.1+3432_daily_bin1404.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/497410/Model_4FGL_J1220.1+3432_daily_bin1404.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/497410/ft1_filtered_4FGL_J1220.1+3432_daily_bin1404.fits
Spacecraft file(s): /scratch/kocevski/497410/ft2_4FGL_J1220.1+3432_daily_bin1404.fits
Exposure map: /scratch/kocevski/497410/expmap_603244801_603504001_4FGL_J1220.1+3432_daily_bin1404.fits
Exposure cube: /scratch/kocevski/497410/ltcube_603244801_603504001_4FGL_J1220.1+3432_daily_bin1404.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/497410/Model_4FGL_J1220.1+3432_daily_bin1404.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) = 3910.08217129

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .21282E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .17569E-02   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .24257E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10734E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .22720E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.8299       1.0000         .10000E-03   10000.    
     7 'Prefactor '    227.65       1.0000         .10000E-03   10000.    
     8 'norm      '    .94472       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .18754E-02   1.0000         .10000E-03   10000.    
    10 'norm      '    .13709E-02   1.0000         .10000E-03   10000.    
    11 'Prefactor '    39.662       1.0000         .10000E-03   10000.    
    12 'Prefactor '    131.30       1.0000         .10000E-03   10000.    
    13 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .27263       1.0000         .10000E-03   10000.    
    15 'norm      '    3.1562       1.0000         .10000E-03   10000.    
    16 'Prefactor '    9.9258       1.0000         .10000E-03   10000.    
    17 'Prefactor '    13.368       1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.8171       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    3.5432       1.0000         .10000E-03   10000.    
    21 'Prefactor '    9.0263       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .68758E-02   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .16076E-02   1.0000         .10000E-03   10000.    
    24 'Prefactor '    9.9878       1.0000         .10000E-03   10000.    
    25 'norm      '    .57022E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    58.980       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .13874E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    20.216       1.0000         .10000E-03   10000.    
    30 'norm      '    13.553       1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    1.3959       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .83367       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6130E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   3909.929     FROM MIGRAD    STATUS=CONVERGED    293 CALLS     3503 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.4909        .38809E-06** at limit **
   2  Prefactor     .10004E-03    10.254       -.16007E-06** at limit **
   3  Prefactor     .10000E-03    31.721       -.11182E-06** at limit **
   4  norm          .10000E-03    4.6489       -.19633E-08** at limit **
   5  Prefactor     .10001E-03    46.324       -.16073E-05** at limit **
   6  Prefactor     3.0049        18.018        .11744E-05    .11947E-02
   7  Prefactor     244.49        159.20        .25752E-05   -.41341E-02
   8  norm          .11005        45.691       -.52481E-05    .64960E-04
   9  Prefactor     .10250E-03    33.239        .17463E-05** at limit **
  10  norm          .10000E-03    8.2011       -.25739E-06** at limit **
  11  Prefactor     40.367        16.781        .69225E-06   -.21080E-01
  12  Prefactor     171.46        175.37        .10807E-04    .21435E-02
  13  norm          .10000E-03    1.5331        .25866E-06** at limit **
  14  Prefactor     .10000E-03    177.69        .89509E-06** at limit **
  15  norm          3.1398        5.8523       -.47366E-06   -.11241E-03
  16  Prefactor     9.7382        9.5621       -.16661E-06    .28166E-04
  17  Prefactor     13.426        6.9552       -.56064E-07    .18824E-03
  18  Prefactor     1.8230        3.6510        .28549E-06    .10493E-03
  19  Prefactor     .10000E-03    3.3458        .51384E-06** at limit **
  20  norm          3.5692        5.4257       -.29084E-06    .90575E-05
  21  Prefactor     9.0179        12.454        .48765E-06   -.38982E-02
  22  Prefactor     .10002E-03    43.226       -.54198E-06** at limit **
  23  Prefactor     .10001E-03    44.453       -.81665E-06** at limit **
  24  Prefactor     10.034        8.2920        .11391E-06   -.57124E-05
  25  norm          .10000E-03    30.780       -.76639E-06** at limit **
  26  Prefactor     57.114        46.545        .14677E-05   -.75938E-03
  27  Prefactor     .10000E-03    6.8349       -.30112E-06** at limit **
  28  norm          .10000E-03    2.8932        .37755E-06** at limit **
  29  norm          20.575        11.227        .11588E-07    .18820E-02
  30  norm          13.387        14.469       -.46007E-06   -.25876E-02
  31  Prefactor     .10000E-03    1.8134       -.29534E-07** at limit **
  32  Normalizat    1.3881        .31884       -.18477E-05    .12661E-03
  33  Prefactor     .83796        .35427        .32014E-05    .10266E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100043
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.000100007
  Prefactor  = 3.00494
  Prefactor  = 244.493
  norm       = 0.110052
  Prefactor  = 0.000102496
  norm       = 0.0001
  Prefactor  = 40.3665
  Prefactor  = 171.464
  norm       = 0.0001
  Prefactor  = 0.000100001
  norm       = 3.13979
  Prefactor  = 9.73815
  Prefactor  = 13.4264
  Prefactor  = 1.82302
  Prefactor  = 0.0001
  norm       = 3.5692
  Prefactor  = 9.01794
  Prefactor  = 0.000100018
  Prefactor  = 0.000100008
  Prefactor  = 10.0335
  norm       = 0.0001
  Prefactor  = 57.1136
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 20.5747
  norm       = 13.3873
  Prefactor  = 0.0001
  Normalizat = 1.38812
  Prefactor  = 0.83796
 **********
 **   18 **HESSE 
 **********

 FCN=   3909.929     FROM HESSE     STATUS=OK           773 CALLS     4276 TOTAL
                     EDM=   .67E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.3700        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10004E-03    67.110        .10171E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    31.764        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    4.5713        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10001E-03    51.989        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     3.0049        20.359        .60437E-02   -1.5361    
   7  Prefactor     244.49        157.74        .67045E-03   -1.2568    
   8  norm          .11005        2.9855        .57848E-01   -1.5642    
   9  Prefactor     .10250E-03    52.200        .10143E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    8.1720        .10270E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     40.367        75.370        .15911E-02   -1.4436    
  12  Prefactor     171.46        159.69        .87850E-03   -1.3082    
  13  norm          .10000E-03    1.4979        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    178.66        .10304E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          3.1398        5.8302        .57037E-02   -1.5354    
  16  Prefactor     9.7382        9.5732        .31797E-02   -1.5084    
  17  Prefactor     13.426        6.9057        .27389E-02   -1.4975    
  18  Prefactor     1.8230        3.7026        .77458E-02   -1.5438    
  19  Prefactor     .10000E-03    3.3414        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          3.5692        5.4673        .53684E-02   -1.5330    
  21  Prefactor     9.0179        13.946        .33351E-02   -1.5107    
  22  Prefactor     .10002E-03    56.778        .93642E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10001E-03    44.418        .10208E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     10.034        8.2863        .31698E-02   -1.5074    
  25  norm          .10000E-03    4.3787        .67744E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     57.114        49.089        .13060E-02   -1.4195    
  27  Prefactor     .10000E-03    6.8408        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .10000E-03    2.8809        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          20.575        11.521        .22270E-02   -1.4800    
  30  norm          13.387        15.280        .27200E-02   -1.4976    
  31  Prefactor     .10000E-03    1.8141        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    1.3881        .27077        .59154E-01   -.80973    
  33  Prefactor     .83796        .30003        .84458E-01   -.98344    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.74946e-06
Minuit parameter uncertainties:
  1  1.31918e-05
  2  0.00339202
  3  0.000327021
  4  9.79687e-08
  5  0.00121081
  6  15.6508
  7  158.015
  8  1.14595
  9  0.0228507
  10  1.10724e-05
  11  75.5486
  12  160.099
  13  4.21807e-06
  14  0.000992145
  15  5.83126
  16  9.57471
  17  6.9061
  18  3.70305
  19  1.19023e-05
  20  5.46805
  21  13.9508
  22  0.00201977
  23  0.001189
  24  8.28725
  25  8.22594e-06
  26  49.1241
  27  1.35594e-05
  28  8.86219e-06
  29  11.522
  30  15.2841
  31  6.10805e-07
  32  0.271055
  33  0.30062
Done.

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

Extracting fit parameters...

4FGL J1220.1+3432
   Spectrum: PowerLaw
299    Prefactor:  9.738e+00  9.575e+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

GAL_V02
   Spectrum: PowerLaw
610    Prefactor:  8.380e-01  3.006e-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.388e+00  2.711e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.89
Ra Dec: 185.046 34.538
Photon Index (Fixed Index): 2.11 +/- 0.00
Photon Flux (Fixed Index): 3.33e-08 +/- 3.27e-08
Energy Flux (Fixed Index): 1.80e-05 +/- 1.77e-05

TS (Fixed Index): 3.89
Ra Dec: 185.046 34.538
Photon Flux Upper Limit: 1.30e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.84e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/497410/likelihoodResults_603244801_603504001_4FGL_J1220.1+3432_daily_bin1404.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) = 3909.7517695
delta logL = 0.177681453767

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3909.74074817
delta logL = 0.188702783246

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    12.059       1.0000         .10000E-03   10000.    
     2 'Index     '    1.6918       1.0000          .0000       10.000    
     3 'Normalizat'    1.3987       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83337       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.

 FCN=   3909.741     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      277 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.059        12.152        .11536E-03   -.17582E-03
   2  Index         1.6917        .65500        .83569E-02   -.52707E-04
   3  Normalizat    1.3988        .30174        .26077E-03    .25220E-04
   4  Prefactor     .83333        .34569        .37494E-03    .18602E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.0594
  Index      = 1.69173
  Normalizat = 1.39876
  Prefactor  = 0.833331
 **********
 **   18 **HESSE 
 **********

 FCN=   3909.741     FROM HESSE     STATUS=OK            23 CALLS      300 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.059        12.146        .46142E-05   -1.5013    
   2  Index         1.6917        .65472        .33427E-03   -.72302    
   3  Normalizat    1.3988        .30198        .10431E-04   -.80665    
   4  Prefactor     .83333        .34598        .14998E-04   -.98511    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.30917e-10
Minuit parameter uncertainties:
  1  12.1486
  2  0.658092
  3  0.302365
  4  0.346893
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/497410': 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) = 3909.74074815
delta logL = 0.188702806643

Extracting fit parameters...

4FGL J1220.1+3432
   Spectrum: PowerLaw
299    Prefactor:  1.206e+01  1.215e+01  1.000e-04  1.000e+04 ( 1.000e-13)
300        Index:  1.692e+00  6.581e-01  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:  8.333e-01  3.469e-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.399e+00  3.024e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.27
Ra Dec: 185.046 34.538
Photon Index (Free Index): 1.69 +/- 0.66
Photon Flux (Free Index): 2.03e-08 +/- 2.79e-08
Energy Flux (Free Index): 3.41e-05 +/- 5.27e-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/497410/cmap_HighResolution_603244801_603504001_4FGL_J1220.1+3432_daily_bin1404.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.84e-03', comment='SUCCESS', photon_flux='3.33e-08', energy_flux2='3.41e-05', photon_flux_error='3.27e-08', dlogl='1.89e-01', energy_flux='1.80e-05', photon_flux2='2.03e-08', job_status='DONE', time_completed='2021-09-05 08:32:05.393908', photon_index_error2='0.66', photon_index2='1.69', ts='3.89', fit_tolerance='1e-08', GAL='0.84', photon_index_error='0.00', photon_flux_upper_limit='1.30e-07', energy_flux_error2='5.27e-05', EG='1.39', time_epoch_completed='1630855925.39', return_code='0', job_id='497410', GAL2='0.83', EG2='1.40', return_code2='0', energy_flux_error='1.77e-05', photon_flux_error2='2.79e-08', ts2='4.27', photon_index='2.11' WHERE bin_id='1404' AND source_name='4FGL J1220.1+3432' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 08:32:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0102>
Subject: Job 497410: <4FGL_J1220.1+3432_daily_bin1404> in cluster <slac> Done

Job <4FGL_J1220.1+3432_daily_bin1404> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sun Sep  5 08:16:04 2021
Job was executed on host(s) <bullet0102>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 08:16:05 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:16:05 2021
Terminated at Sun Sep  5 08:32:06 2021
Results reported at Sun Sep  5 08:32:06 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1220.1+3432_daily_bin1404 185.046 34.5383 603244801 603504001 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 :                                   673.02 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             243.37 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   960 sec.
    Turnaround time :                            962 sec.

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

