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


Performing analysis on: 4FGL_J1220.1+3432_daily_bin1184
RA = 185.046, Dec = 34.5383
tmin = 546220801, tmax = 546480001
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='497145', job_status='RUN', time_executed='2021-09-05 08:18:29.422034', time_epoch_executed='1630855109.42' WHERE source_name='4FGL J1220.1+3432' and cadence='daily' and bin_id='1184'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/497145

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/497145/ft1_4FGL_J1220.1+3432_daily_bin1184.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/497145/ft2_4FGL_J1220.1+3432_daily_bin1184.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/497145/ft1_4FGL_J1220.1+3432_daily_bin1184.fits outfile=/scratch/kocevski/497145/ft1_filteredMKT_4FGL_J1220.1+3432_daily_bin1184.fits ra=185.046 dec=34.5383 rad=12.0 tmin=546220801.0 tmax=546480001.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 4.31
user 3.69
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/497145/ft2_4FGL_J1220.1+3432_daily_bin1184.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/497145/ft1_filteredMKT_4FGL_J1220.1+3432_daily_bin1184.fits evtable="EVENTS" outfile="/scratch/kocevski/497145/ft1_filtered_4FGL_J1220.1+3432_daily_bin1184.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 1.45
user 0.32
sys 0.18

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/497145/ft1_filtered_4FGL_J1220.1+3432_daily_bin1184.fits" evtable="EVENTS" scfile=/scratch/kocevski/497145/ft2_4FGL_J1220.1+3432_daily_bin1184.fits sctable="SC_DATA" outfile=/scratch/kocevski/497145/ltcube_546220801_546480001_4FGL_J1220.1+3432_daily_bin1184.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/497145/ft2_4FGL_J1220.1+3432_daily_bin1184.fits
.....................!
real 12.36
user 11.29
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/497145/ft1_filtered_4FGL_J1220.1+3432_daily_bin1184.fits evtable="EVENTS" scfile=/scratch/kocevski/497145/ft2_4FGL_J1220.1+3432_daily_bin1184.fits sctable="SC_DATA" expcube=/scratch/kocevski/497145/ltcube_546220801_546480001_4FGL_J1220.1+3432_daily_bin1184.fits outfile=/scratch/kocevski/497145/expmap_546220801_546480001_4FGL_J1220.1+3432_daily_bin1184.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/497145/ltcube_546220801_546480001_4FGL_J1220.1+3432_daily_bin1184.fits
.....................!
real 196.66
user 188.60
sys 4.27

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/497145/ft1_filtered_4FGL_J1220.1+3432_daily_bin1184.fits scfile=/scratch/kocevski/497145/ft2_4FGL_J1220.1+3432_daily_bin1184.fits outfile=/scratch/kocevski/497145/cmap_546220801_546480001_4FGL_J1220.1+3432_daily_bin1184.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.52
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/497145/ft1_filtered_4FGL_J1220.1+3432_daily_bin1184.fits scfile=/scratch/kocevski/497145/ft2_4FGL_J1220.1+3432_daily_bin1184.fits outfile=/scratch/kocevski/497145/cmap_HighResolution_546220801_546480001_4FGL_J1220.1+3432_daily_bin1184.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.55
user 0.37
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.0336       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10422E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .42473E-01   1.0000         .10000E-03   10000.    
     4 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    44.693       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    1.5771       1.0000         .10000E-03   10000.    
     9 'Prefactor '    9.1840       1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    20.957       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    8.2744       1.0000         .10000E-03   10000.    
    16 'Prefactor '    11.137       1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.4775       1.0000         .10000E-03   10000.    
    18 'Prefactor '    10.851       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.3969       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    164.14       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10161E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .11134E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    41.717       1.0000         .10000E-03   10000.    
    28 'norm      '    14.505       1.0000         .10000E-03   10000.    
    29 'norm      '    .10957E-03   1.0000         .10000E-03   10000.    
    30 'norm      '    32.748       1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10063E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    .79181       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .39175       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=   1699.236     FROM MIGRAD    STATUS=CONVERGED   1625 CALLS     6229 TOTAL
                     EDM=   .32E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.0338        5.5205        .12453E-03    .18600E-04
   2  Prefactor     .10000E-03    441.18        .18142E-02** at limit **
   3  Prefactor     .16610        165.73        .91265E-01    .41989E-04
   4  norm          .10000E-03    4.2188        .82458E-03** at limit **
   5  Prefactor     44.634        47.124        .59971E-04   -.22275E-05
   6  Prefactor     .10000E-03    12.421        .14122E-02** at limit **
   7  Prefactor     .10000E-03    108.27        .18142E-02** at limit **
   8  norm          1.5765        3.1083        .99522E-04   -.14422E-04
   9  Prefactor     9.1892        52.997        .13225E-03   -.93701E-05
  10  norm          .10000E-03    25.071        .18142E-02** at limit **
  11  Prefactor     .10000E-03    93.909        .18142E-02** at limit **
  12  Prefactor     .10000E-03    135.83        .18142E-02** at limit **
  13  norm          20.962        4.6311        .37141E-04    .94891E-05
  14  Prefactor     .10000E-03    28.239        .18142E-02** at limit **
  15  norm          8.2751        7.3369        .85930E-04    .31819E-04
  16  Prefactor     11.137        13.354        .12005E-03   -.31251E-05
  17  Prefactor     3.4765        5.2296        .95379E-04   -.96667E-04
  18  Prefactor     10.849        6.0380        .66929E-04   -.11950E-03
  19  Prefactor     .10000E-03    6.4356        .10197E-02** at limit **
  20  norm          .10000E-03    4.7323        .87354E-03** at limit **
  21  Prefactor     1.3841        51.160        .36732E-03   -.43470E-04
  22  Prefactor     .10000E-03    62.189        .18142E-02** at limit **
  23  Prefactor     164.17        168.45        .15741E-03   -.23553E-04
  24  Prefactor     .10000E-03    46.282        .18142E-02** at limit **
  25  norm          .10000E-03    8.8123        .11948E-02** at limit **
  26  Prefactor     .10000E-03    128.45        .18142E-02** at limit **
  27  Prefactor     41.653        418.45        .62065E-04    .10597E-04
  28  norm          14.563        52.066        .10517E-03    .20890E-04
  29  norm          .10000E-03    67.550        .36285E-03** at limit **
  30  norm          32.737        29.221        .70022E-04    .20571E-04
  31  Prefactor     .10000E-03    20.971        .18142E-02** at limit **
  32  Normalizat    .79123        .50998        .32383E-03    .26980E-04
  33  Prefactor     .39209        .49168        .46204E-03   -.15692E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.03377
  Prefactor  = 0.0001
  Prefactor  = 0.166103
  norm       = 0.0001
  Prefactor  = 44.6343
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.57649
  Prefactor  = 9.18916
  norm       = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.000100001
  norm       = 20.9618
  Prefactor  = 0.0001
  norm       = 8.2751
  Prefactor  = 11.1369
  Prefactor  = 3.47646
  Prefactor  = 10.8491
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 1.38407
  Prefactor  = 0.0001
  Prefactor  = 164.172
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 41.6535
  norm       = 14.5627
  norm       = 0.0001
  norm       = 32.7374
  Prefactor  = 0.0001
  Normalizat = 0.791228
  Prefactor  = 0.392086
 **********
 **   18 **HESSE 
 **********

 FCN=   1699.236     FROM HESSE     STATUS=OK           671 CALLS     6900 TOTAL
                     EDM=   .29E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.0338        5.5194        .49813E-05   -1.5360    
   2  Prefactor     .10000E-03    441.19        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .16610        146.89        .96864E-01   -1.5626    
   4  norm          .10000E-03    4.2189        .16492E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     44.634        46.592        .23988E-05   -1.4371    
   6  Prefactor     .10000E-03    12.423        .28244E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    108.27        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.5765        3.1083        .39809E-05   -1.5457    
   9  Prefactor     9.1892        52.972        .52900E-05   -1.5102    
  10  norm          .10000E-03    25.071        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    93.918        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    135.83        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          20.962        4.6306        .14856E-05   -1.4792    
  14  Prefactor     .10000E-03    28.239        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          8.2751        7.3391        .34372E-05   -1.5133    
  16  Prefactor     11.137        13.354        .48019E-05   -1.5040    
  17  Prefactor     3.4765        5.2311        .38152E-05   -1.5335    
  18  Prefactor     10.849        6.0364        .26772E-05   -1.5049    
  19  Prefactor     .10000E-03    6.4358        .20393E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    4.7325        .17471E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     1.3841        51.080        .14693E-04   -1.5473    
  22  Prefactor     .10000E-03    62.189        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     164.17        168.45        .31481E-04   -1.3138    
  24  Prefactor     .10000E-03    46.282        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    8.8124        .23896E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    128.45        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     41.653        418.53        .12413E-04   -1.4416    
  28  norm          14.563        52.073        .42067E-05   -1.4945    
  29  norm          .10000E-03    67.550        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  norm          32.737        29.220        .14004E-04   -1.4563    
  31  Prefactor     .10000E-03    20.971        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    .79123        .51022        .12953E-04   -1.0039    
  33  Prefactor     .39209        .49184        .18482E-04   -1.1721    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.88469e-10
Minuit parameter uncertainties:
  1  5.52033
  2  0.000821305
  3  9.90033
  4  9.4337e-07
  5  46.6298
  6  2.38534e-05
  7  0.000445674
  8  3.10857
  9  44.185
  10  2.00466e-05
  11  0.000760101
  12  0.000754799
  13  4.63064
  14  2.16787e-05
  15  7.33992
  16  13.3573
  17  5.23177
  18  6.03672
  19  9.02608e-06
  20  5.13922e-06
  21  16.8313
  22  0.000126273
  23  168.944
  24  0.000472149
  25  9.30839e-06
  26  8.08872e-06
  27  266.521
  28  52.2363
  29  0.000345209
  30  29.2331
  31  7.32974e-05
  32  0.513348
  33  0.497265
Done.

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

Extracting fit parameters...

4FGL J1220.1+3432
   Spectrum: PowerLaw
299    Prefactor:  1.114e+01  1.336e+01  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:  3.921e-01  4.973e-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:  7.912e-01  5.133e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.88
Ra Dec: 185.046 34.538
Photon Index (Fixed Index): 2.11 +/- 0.00
Photon Flux (Fixed Index): 3.81e-08 +/- 4.56e-08
Energy Flux (Fixed Index): 2.06e-05 +/- 2.47e-05

TS (Fixed Index): 1.88
Ra Dec: 185.046 34.538
Photon Flux Upper Limit: 2.02e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.53e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/497145/likelihoodResults_546220801_546480001_4FGL_J1220.1+3432_daily_bin1184.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) = 1699.03083906
delta logL = 0.204826545639

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1698.98245038
delta logL = 0.253215220297

Fit tolerance = 1e-08

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

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

 FCN=   1698.982     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      216 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     16.317        24.697        .24801E-02   -.29155E-04
   2  Index         1.5151        .89500        .18989       -.37112E-04
   3  Normalizat    .80372        .43805        .72608E-01   -.48030E-04
   4  Prefactor     .38134        .44950        .10536       -.77424E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 16.3171
  Index      = 1.51506
  Normalizat = 0.803718
  Prefactor  = 0.381342
 **********
 **   18 **HESSE 
 **********

 FCN=   1698.982     FROM HESSE     STATUS=OK            33 CALLS      249 TOTAL
                     EDM=   .29E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     16.317        18.670        .99204E-04   -1.4900    
   2  Index         1.5151        .74499        .76533E-02   -.77119    
   3  Normalizat    .80372        .46261        .32135E-03   -.99931    
   4  Prefactor     .38134        .47346        .46757E-03   -1.1777    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.88834e-10
Minuit parameter uncertainties:
  1  18.6768
  2  0.750453
  3  0.4649
  4  0.478419
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/497145': 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) = 1698.98244789
delta logL = 0.253217711545

Extracting fit parameters...

4FGL J1220.1+3432
   Spectrum: PowerLaw
299    Prefactor:  1.632e+01  1.868e+01  1.000e-04  1.000e+04 ( 1.000e-13)
300        Index:  1.515e+00  7.505e-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:  3.813e-01  4.784e-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:  8.037e-01  4.649e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.39
Ra Dec: 185.046 34.538
Photon Index (Free Index): 1.52 +/- 0.75
Photon Flux (Free Index): 2.20e-08 +/- 3.00e-08
Energy Flux (Free Index): 6.61e-05 +/- 1.39e-04

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/497145/cmap_HighResolution_546220801_546480001_4FGL_J1220.1+3432_daily_bin1184.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.53e-02', comment='SUCCESS', photon_flux='3.81e-08', energy_flux2='6.61e-05', photon_flux_error='4.56e-08', dlogl='2.53e-01', energy_flux='2.06e-05', photon_flux2='2.20e-08', job_status='DONE', time_completed='2021-09-05 08:27:37.814503', photon_index_error2='0.75', photon_index2='1.52', ts='1.88', fit_tolerance='1e-08', GAL='0.39', photon_index_error='0.00', photon_flux_upper_limit='2.02e-07', energy_flux_error2='1.39e-04', EG='0.79', time_epoch_completed='1630855657.81', return_code='0', job_id='497145', GAL2='0.38', EG2='0.80', return_code2='0', energy_flux_error='2.47e-05', photon_flux_error2='3.00e-08', ts2='2.39', photon_index='2.11' WHERE bin_id='1184' AND source_name='4FGL J1220.1+3432' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 08:27:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0037>
Subject: Job 497145: <4FGL_J1220.1+3432_daily_bin1184> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1220.1+3432_daily_bin1184 185.046 34.5383 546220801 546480001 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 :                                   530.17 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             261.92 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   713 sec.
    Turnaround time :                            715 sec.

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

