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


Performing analysis on: 4FGL_J1220.1+3432_daily_bin1401
RA = 185.046, Dec = 34.5383
tmin = 602467201, tmax = 602726401
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='497406', job_status='RUN', time_executed='2021-09-05 08:16:22.632227', time_epoch_executed='1630854982.63' WHERE source_name='4FGL J1220.1+3432' and cadence='daily' and bin_id='1401'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/497406

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/497406/ft1_4FGL_J1220.1+3432_daily_bin1401.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/497406/ft2_4FGL_J1220.1+3432_daily_bin1401.fits


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

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

Done.
real 3.24
user 2.94
sys 0.19

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/497406/ft1_filtered_4FGL_J1220.1+3432_daily_bin1401.fits evtable="EVENTS" scfile=/scratch/kocevski/497406/ft2_4FGL_J1220.1+3432_daily_bin1401.fits sctable="SC_DATA" expcube=/scratch/kocevski/497406/ltcube_602467201_602726401_4FGL_J1220.1+3432_daily_bin1401.fits outfile=/scratch/kocevski/497406/expmap_602467201_602726401_4FGL_J1220.1+3432_daily_bin1401.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/497406/ltcube_602467201_602726401_4FGL_J1220.1+3432_daily_bin1401.fits
.....................!
real 191.37
user 185.45
sys 5.36

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/497406/ft1_filtered_4FGL_J1220.1+3432_daily_bin1401.fits scfile=/scratch/kocevski/497406/ft2_4FGL_J1220.1+3432_daily_bin1401.fits outfile=/scratch/kocevski/497406/cmap_602467201_602726401_4FGL_J1220.1+3432_daily_bin1401.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 2.90
user 0.36
sys 0.19

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/497406/ft1_filtered_4FGL_J1220.1+3432_daily_bin1401.fits scfile=/scratch/kocevski/497406/ft2_4FGL_J1220.1+3432_daily_bin1401.fits outfile=/scratch/kocevski/497406/cmap_HighResolution_602467201_602726401_4FGL_J1220.1+3432_daily_bin1401.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.74
user 0.37
sys 0.18

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/497406/ft1_filtered_4FGL_J1220.1+3432_daily_bin1401.fits', '/scratch/kocevski/497406/ft2_4FGL_J1220.1+3432_daily_bin1401.fits', expMap='/scratch/kocevski/497406/expmap_602467201_602726401_4FGL_J1220.1+3432_daily_bin1401.fits', expCube='/scratch/kocevski/497406/ltcube_602467201_602726401_4FGL_J1220.1+3432_daily_bin1401.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/497406/Model_4FGL_J1220.1+3432_daily_bin1401.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/497406/ft1_filtered_4FGL_J1220.1+3432_daily_bin1401.fits
Spacecraft file(s): /scratch/kocevski/497406/ft2_4FGL_J1220.1+3432_daily_bin1401.fits
Exposure map: /scratch/kocevski/497406/expmap_602467201_602726401_4FGL_J1220.1+3432_daily_bin1401.fits
Exposure cube: /scratch/kocevski/497406/ltcube_602467201_602726401_4FGL_J1220.1+3432_daily_bin1401.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/497406/Model_4FGL_J1220.1+3432_daily_bin1401.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 1566.75437994

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .63985E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    123.97       1.0000         .10000E-03   10000.    
     4 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    29.889       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    148.61       1.0000         .10000E-03   10000.    
     8 'norm      '    16.942       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    43.878       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .17923E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    295.71       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    8.8892       1.0000         .10000E-03   10000.    
    18 'Prefactor '    18.841       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10252E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    147.66       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    17.182       1.0000         .10000E-03   10000.    
    27 'Prefactor '    8.1544       1.0000         .10000E-03   10000.    
    28 'norm      '    .16172E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    30 'norm      '    20.812       1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    .75692       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .95714       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=   1566.707     FROM MIGRAD    STATUS=CONVERGED    873 CALLS     5262 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    24.388        .17674E-05** at limit **
   2  Prefactor     .10000E-03    315.71        .85514E-06** at limit **
   3  Prefactor     125.63        829.26        .82128E-05   -.12344E-03
   4  norm          .10000E-03    23.555       -.80642E-06** at limit **
   5  Prefactor     29.086        869.79       -.27616E-04   -.12501E-03
   6  Prefactor     .10000E-03    25.116        .38486E-05** at limit **
   7  Prefactor     148.10        1115.3       -.19297E-04   -.15261E-04
   8  norm          16.951        17.292        .84683E-06   -.87493E-04
   9  Prefactor     .10000E-03    31.705        .65384E-06** at limit **
  10  norm          43.884        77.536       -.23839E-05   -.23521E-04
  11  Prefactor     .10000E-03    54.930        .13784E-05** at limit **
  12  Prefactor     .10001E-03    419.30       -.11349E-05** at limit **
  13  norm          .10000E-03    1.6722       -.12872E-06** at limit **
  14  Prefactor     295.73        158.39        .75427E-08   -.12168E-04
  15  norm          .10000E-03    8.7630        .10368E-06** at limit **
  16  Prefactor     .10000E-03    8.7026        .86196E-07** at limit **
  17  Prefactor     8.8884        7.2031       -.19332E-06    .23071E-04
  18  Prefactor     18.841        7.2832        .59514E-08   -.44663E-05
  19  Prefactor     .10000E-03    4.1060        .23827E-07** at limit **
  20  norm          .10000E-03    7.8666        .24018E-06** at limit **
  21  Prefactor     .10000E-03    6.5698       -.31965E-07** at limit **
  22  Prefactor     .10000E-03    241.65        .30088E-05** at limit **
  23  Prefactor     147.63        160.90        .17472E-06    .15081E-04
  24  Prefactor     .10000E-03    7.4144        .93084E-07** at limit **
  25  norm          .10000E-03    5.8125       -.41795E-06** at limit **
  26  Prefactor     17.185        38.176        .90756E-06    .33434E-04
  27  Prefactor     8.1520        19.958        .88841E-06   -.46308E-04
  28  norm          .10011E-03    9.6646        .18251E-05** at limit **
  29  norm          .10000E-03    11.078       -.73458E-06** at limit **
  30  norm          20.806        14.736        .15059E-06    .31817E-03
  31  Prefactor     .10000E-03    3.9150        .31779E-08** at limit **
  32  Normalizat    .75658        .40493       -.16457E-04    .13506E-03
  33  Prefactor     .95756        .48700        .21101E-04   -.58974E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 125.625
  norm       = 0.0001
  Prefactor  = 29.0858
  Prefactor  = 0.000100002
  Prefactor  = 148.095
  norm       = 16.9514
  Prefactor  = 0.0001
  norm       = 43.8839
  Prefactor  = 0.0001
  Prefactor  = 0.000100005
  norm       = 0.0001
  Prefactor  = 295.73
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.88845
  Prefactor  = 18.841
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 147.633
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 17.185
  Prefactor  = 8.152
  norm       = 0.000100109
  norm       = 0.000100001
  norm       = 20.8063
  Prefactor  = 0.0001
  Normalizat = 0.756582
  Prefactor  = 0.957565
 **********
 **   18 **HESSE 
 **********

 FCN=   1566.707     FROM HESSE     STATUS=OK           679 CALLS     5941 TOTAL
                     EDM=   .52E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    24.453        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    315.71        .21029E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     125.63        819.58        .18075E-03   -1.3462    
   4  norm          .10000E-03    23.556        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     29.086        873.52        .73285E-04   -1.4629    
   6  Prefactor     .10000E-03    25.360        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     148.10        1164.7        .16530E-03   -1.3268    
   8  norm          16.951        17.615        .97305E-04   -1.4884    
   9  Prefactor     .10000E-03    31.712        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          43.884        77.652        .60523E-04   -1.4382    
  11  Prefactor     .10000E-03    54.952        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10001E-03    419.68        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    1.6830        .49971E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     295.73        158.40        .11806E-03   -1.2251    
  15  norm          .10000E-03    8.8714        .22720E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    8.7050        .11406E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     8.8884        7.1589        .89495E-04   -1.5112    
  18  Prefactor     18.841        7.2871        .62504E-04   -1.4840    
  19  Prefactor     .10000E-03    4.1104        .78340E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    8.0957        .21670E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    6.5711        .99100E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    244.51        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     147.63        160.89        .16582E-03   -1.3272    
  24  Prefactor     .10000E-03    7.4450        .10520E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    5.8310        .93034E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     17.185        37.895        .96624E-04   -1.4879    
  27  Prefactor     8.1520        19.009        .14040E-03   -1.5137    
  28  norm          .10011E-03    28.711        .21211E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          .10000E-03    15.729        .21889E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  norm          20.806        12.889        .87798E-04   -1.4795    
  31  Prefactor     .10000E-03    3.9490        .76349E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    .75658        .42471        .28350E-03   -1.0170    
  33  Prefactor     .95756        .50712        .30704E-03   -.94158    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.21751e-09
Minuit parameter uncertainties:
  1  0.000231357
  2  0.000715417
  3  655.277
  4  6.11286e-05
  5  324.127
  6  0.000495289
  7  854.672
  8  17.6205
  9  8.19507e-05
  10  77.8319
  11  0.00024402
  12  0.00292284
  13  1.85723e-06
  14  158.627
  15  2.71192e-07
  16  5.01959e-06
  17  7.15956
  18  7.28747
  19  1.31692e-06
  20  2.05776e-05
  21  8.4173e-07
  22  0.00130387
  23  161.37
  24  1.9275e-05
  25  3.48855e-05
  26  37.9478
  27  19.0231
  28  0.00354728
  29  0.000299135
  30  12.8911
  31  1.90598e-05
  32  0.426581
  33  0.509669
Done.

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

Extracting fit parameters...

4FGL J1220.1+3432
   Spectrum: PowerLaw
299    Prefactor:  1.000e-04  5.020e-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:  9.576e-01  5.097e-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.566e-01  4.266e-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: 1.58e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.20e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/497406/likelihoodResults_602467201_602726401_4FGL_J1220.1+3432_daily_bin1401.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) = 1566.70742376
delta logL = -0.000522863307879

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1566.70690091
delta logL = -1.29039108288e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0893       1.0000          .0000       10.000    
     3 'Normalizat'    .75673       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95738       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=   1566.707     FROM MIGRAD    STATUS=CONVERGED     97 CALLS      234 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    487.68        .11562E-01** at limit **
   2  Index         1.5432        5.5329        .10120       -.28648E-08
   3  Normalizat    .75657        .60035E-01    .28352E-03   -.86492E-04
   4  Prefactor     .95757        .72830E-01    .30702E-03   -.76307E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.54317
  Normalizat = 0.756572
  Prefactor  = 0.957574
 **********
 **   18 **HESSE 
 **********

 FCN=   1566.707     FROM HESSE     STATUS=OK            23 CALLS      257 TOTAL
                     EDM=   .44E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    11.246        .12951E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.5432        5.1624        .40478E-02   -.76338    
   3  Normalizat    .75657        .40763        .11341E-04   -1.0170    
   4  Prefactor     .95757        .49416        .61403E-04   -.94157    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.40002e-11
Minuit parameter uncertainties:
  1  3.77138e-05
  2  323.92
  3  0.409286
  4  0.49651
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/497406': 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) = 1566.70689961
delta logL = 1.28764690999e-06

Extracting fit parameters...

4FGL J1220.1+3432
   Spectrum: PowerLaw
299    Prefactor:  1.000e-04  3.771e-05  1.000e-04  1.000e+04 ( 1.000e-13)
300        Index:  1.543e+00  3.239e+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:  9.576e-01  4.965e-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.566e-01  4.093e-01  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/497406/cmap_HighResolution_602467201_602726401_4FGL_J1220.1+3432_daily_bin1401.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.20e-02', job_status='DONE', photon_flux_upper_limit='1.58e-07', time_completed='2021-09-05 08:24:49.423567', job_id='497406', GAL2='0.96', fit_tolerance='1e-08', EG2='0.76', EG='0.76', time_epoch_completed='1630855489.42', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.96', dlogl='1.29e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.11' WHERE bin_id='1401' AND source_name='4FGL J1220.1+3432' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 08:24:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0263>
Subject: Job 497406: <4FGL_J1220.1+3432_daily_bin1401> in cluster <slac> Done

Job <4FGL_J1220.1+3432_daily_bin1401> 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) <bullet0263>, 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:24:50 2021
Results reported at Sun Sep  5 08:24:50 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1220.1+3432_daily_bin1401 185.046 34.5383 602467201 602726401 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 :                                   491.23 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             323.22 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   524 sec.
    Turnaround time :                            526 sec.

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

