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


Performing analysis on: 4FGL_J1220.1+3432_daily_bin709
RA = 185.046, Dec = 34.5383
tmin = 423100801, tmax = 423360001
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='491958', job_status='RUN', time_executed='2021-09-05 07:58:06.475213', time_epoch_executed='1630853886.48' WHERE source_name='4FGL J1220.1+3432' and cadence='daily' and bin_id='709'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/491958

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/491958/ft1_4FGL_J1220.1+3432_daily_bin709.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/491958/ft2_4FGL_J1220.1+3432_daily_bin709.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/491958/ft1_4FGL_J1220.1+3432_daily_bin709.fits outfile=/scratch/kocevski/491958/ft1_filteredMKT_4FGL_J1220.1+3432_daily_bin709.fits ra=185.046 dec=34.5383 rad=12.0 tmin=423100801.0 tmax=423360001.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.97
user 4.73
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/491958/ft1_filtered_4FGL_J1220.1+3432_daily_bin709.fits" evtable="EVENTS" scfile=/scratch/kocevski/491958/ft2_4FGL_J1220.1+3432_daily_bin709.fits sctable="SC_DATA" outfile=/scratch/kocevski/491958/ltcube_423100801_423360001_4FGL_J1220.1+3432_daily_bin709.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/491958/ft2_4FGL_J1220.1+3432_daily_bin709.fits
.....................!
real 14.70
user 14.33
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/491958/ft1_filtered_4FGL_J1220.1+3432_daily_bin709.fits evtable="EVENTS" scfile=/scratch/kocevski/491958/ft2_4FGL_J1220.1+3432_daily_bin709.fits sctable="SC_DATA" expcube=/scratch/kocevski/491958/ltcube_423100801_423360001_4FGL_J1220.1+3432_daily_bin709.fits outfile=/scratch/kocevski/491958/expmap_423100801_423360001_4FGL_J1220.1+3432_daily_bin709.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/491958/ltcube_423100801_423360001_4FGL_J1220.1+3432_daily_bin709.fits
.....................!
real 190.06
user 185.07
sys 4.61

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/491958/ft1_filtered_4FGL_J1220.1+3432_daily_bin709.fits scfile=/scratch/kocevski/491958/ft2_4FGL_J1220.1+3432_daily_bin709.fits outfile=/scratch/kocevski/491958/cmap_423100801_423360001_4FGL_J1220.1+3432_daily_bin709.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.55
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/491958/ft1_filtered_4FGL_J1220.1+3432_daily_bin709.fits scfile=/scratch/kocevski/491958/ft2_4FGL_J1220.1+3432_daily_bin709.fits outfile=/scratch/kocevski/491958/cmap_HighResolution_423100801_423360001_4FGL_J1220.1+3432_daily_bin709.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.40
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.7103       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    8.2161       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    7.2174       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    17.380       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10429E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    29.990       1.0000         .10000E-03   10000.    
    13 'norm      '    3.5675       1.0000         .10000E-03   10000.    
    14 'Prefactor '    22.436       1.0000         .10000E-03   10000.    
    15 'norm      '    5.6215       1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.9246       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.0815       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10027E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    4.9652       1.0000         .10000E-03   10000.    
    23 'Prefactor '    90.503       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .11824E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10273E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    10.967       1.0000         .10000E-03   10000.    
    30 'norm      '    17.390       1.0000         .10000E-03   10000.    
    31 'Prefactor '    5.5941       1.0000         .10000E-03   10000.    
    32 'Normalizat'    1.3705       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .72980       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=   4757.514     FROM MIGRAD    STATUS=CONVERGED    864 CALLS     4481 TOTAL
                     EDM=   .12E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.7088        3.5345        .18344E-06   -.26306E-04
   2  Prefactor     .10000E-03    35.107        .52936E-06** at limit **
   3  Prefactor     .10000E-03    8.8867       -.18213E-06** at limit **
   4  norm          8.2155        3.7916        .77579E-07   -.20758E-04
   5  Prefactor     .10000E-03    5.3936       -.51731E-06** at limit **
   6  Prefactor     .10000E-03    1.4585       -.28818E-08** at limit **
   7  Prefactor     .10000E-03    26.080       -.14650E-05** at limit **
   8  norm          7.2168        2.2060       -.14949E-06    .22371E-03
   9  Prefactor     .10000E-03    11.035       -.49934E-06** at limit **
  10  norm          17.383        17.647       -.46758E-06   -.13441E-04
  11  Prefactor     .10000E-03    22.278       -.74630E-06** at limit **
  12  Prefactor     29.940        108.21        .10248E-04   -.56601E-05
  13  norm          3.5671        1.8357        .37902E-07   -.74929E-04
  14  Prefactor     22.407        34.416        .39812E-05   -.10240E-04
  15  norm          5.6215        3.5248       -.34176E-07   -.55484E-04
  16  Prefactor     1.9207        8.7169        .95252E-05   -.32295E-04
  17  Prefactor     .10000E-03    .90936       -.17170E-07** at limit **
  18  Prefactor     2.0814        2.1171       -.39757E-08   -.51203E-04
  19  Prefactor     .10000E-03    2.3458        .17109E-07** at limit **
  20  norm          .10000E-03    3.6276        .10640E-06** at limit **
  21  Prefactor     .10000E-03    6.9068        .53255E-06** at limit **
  22  Prefactor     4.9594        17.400        .81428E-06   -.63562E-05
  23  Prefactor     90.431        109.54        .89611E-05   -.12600E-04
  24  Prefactor     .10000E-03    2.4129        .69241E-08** at limit **
  25  norm          .10000E-03    4.8541       -.75694E-06** at limit **
  26  Prefactor     .10000E-03    19.584        .55774E-06** at limit **
  27  Prefactor     .10000E-03    13.431        .76491E-06** at limit **
  28  norm          .10000E-03    2.4062        .96840E-08** at limit **
  29  norm          10.962        8.9938       -.10784E-06   -.57098E-04
  30  norm          17.396        14.290       -.32550E-07   -.16543E-04
  31  Prefactor     5.5934        4.9282        .13594E-08   -.32419E-04
  32  Normalizat    1.3710        .22946        .79190E-06    .31932E-04
  33  Prefactor     .72921        .26183       -.49854E-05   -.74898E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.70884
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 8.21555
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.2168
  Prefactor  = 0.0001
  norm       = 17.383
  Prefactor  = 0.0001
  Prefactor  = 29.9398
  norm       = 3.56713
  Prefactor  = 22.4071
  norm       = 5.62148
  Prefactor  = 1.92073
  Prefactor  = 0.0001
  Prefactor  = 2.08141
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.95944
  Prefactor  = 90.4312
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 10.9616
  norm       = 17.3956
  Prefactor  = 5.59344
  Normalizat = 1.37104
  Prefactor  = 0.729213
 **********
 **   18 **HESSE 
 **********

 FCN=   4757.514     FROM HESSE     STATUS=OK           693 CALLS     5174 TOTAL
                     EDM=   .25E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.7088        3.5259        .11765E-03   -1.5323    
   2  Prefactor     .10000E-03    35.112        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    8.8986        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          8.2155        3.7888        .84933E-04   -1.5135    
   5  Prefactor     .10000E-03    5.4011        .15643E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    1.4599        .81345E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    26.098        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          7.2168        2.2180        .47154E-04   -1.5171    
   9  Prefactor     .10000E-03    11.059        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          17.383        17.640        .96071E-04   -1.4874    
  11  Prefactor     .10000E-03    22.412        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     29.940        108.79        .73162E-04   -1.4613    
  13  norm          3.5671        1.8342        .63776E-04   -1.5330    
  14  Prefactor     22.407        34.459        .84564E-04   -1.4761    
  15  norm          5.6215        3.5225        .98646E-04   -1.5234    
  16  Prefactor     1.9207        8.8612        .14973E-02   -1.5431    
  17  Prefactor     .10000E-03    .91105        .64209E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     2.0814        2.1203        .97482E-04   -1.5419    
  19  Prefactor     .10000E-03    2.3473        .10317E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    3.6749        .12828E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    6.9268        .17702E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     4.9594        17.387        .18049E-03   -1.5263    
  23  Prefactor     90.431        109.60        .21119E-03   -1.3803    
  24  Prefactor     .10000E-03    2.4148        .10463E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    4.9110        .14831E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    19.607        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    13.579        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .10000E-03    2.4163        .10448E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          10.962        9.1209        .12098E-03   -1.5046    
  30  norm          17.396        14.481        .96045E-04   -1.4874    
  31  Prefactor     5.5934        4.9276        .13785E-03   -1.5235    
  32  Normalizat    1.3710        .27388        .23884E-03   -.81470    
  33  Prefactor     .72921        .30800        .36972E-03   -1.0239    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.50773e-10
Minuit parameter uncertainties:
  1  3.52611
  2  3.36342e-05
  3  8.67854e-06
  4  3.78892
  5  6.6213e-06
  6  2.34728e-07
  7  1.93592e-06
  8  2.21807
  9  1.5527e-05
  10  17.6451
  11  8.61479e-05
  12  109.524
  13  1.83423
  14  34.4893
  15  3.52259
  16  8.25284
  17  1.33858e-06
  18  2.12041
  19  2.59483e-06
  20  1.11858e-05
  21  3.06522e-06
  22  17.4043
  23  109.849
  24  6.71165e-07
  25  9.63685e-05
  26  5.62875e-05
  27  1.0869e-05
  28  1.37192e-06
  29  9.12202
  30  14.4837
  31  4.92793
  32  0.274175
  33  0.308721
Done.

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

Extracting fit parameters...

4FGL J1220.1+3432
   Spectrum: PowerLaw
299    Prefactor:  1.921e+00  8.253e+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:  7.292e-01  3.087e-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.371e+00  2.742e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/491958/likelihoodResults_423100801_423360001_4FGL_J1220.1+3432_daily_bin709.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) = 4757.29575772
delta logL = 0.218291072254

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4757.22418015
delta logL = 0.289868645676

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .54870       1.0000         .10000E-03   10000.    
     2 'Index     '    3.5000       1.0000          .0000       10.000    
     3 'Normalizat'    1.3216       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .76471       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=   4757.224     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      238 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .54827        12.316        .11468E-01    .13234E-02
   2  Index         3.5007        2.4642        .14338        .11245E-03
   3  Normalizat    1.3217        .40528E-01    .54844E-01   -.18257E-04
   4  Prefactor     .76457        .47535E-01    .81711E-01   -.38058E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.548273
  Index      = 3.50074
  Normalizat = 1.3217
  Prefactor  = 0.764573
 **********
 **   18 **HESSE 
 **********

 FCN=   4757.224     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      273 TOTAL
                     EDM=   .35E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .54827        47.783        .67253E-03   -1.5560    
   2  Index         3.5007        6.5316        .52000E-02   -.30454    
   3  Normalizat    1.3217        .19299        .24250E-03   -.82921    
   4  Prefactor     .76457        .22354        .36181E-03   -1.0105    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.52548e-11
Minuit parameter uncertainties:
  1  10.2444
  2  8.05026
  3  0.193093
  4  0.223807
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/491958': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4757.22417971
delta logL = 0.289869082132

Extracting fit parameters...

4FGL J1220.1+3432
   Spectrum: PowerLaw
299    Prefactor:  5.483e-01  1.024e+01  1.000e-04  1.000e+04 ( 1.000e-13)
300        Index:  3.501e+00  8.050e+00  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:  7.646e-01  2.238e-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.322e+00  1.931e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.06
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/491958/cmap_HighResolution_423100801_423360001_4FGL_J1220.1+3432_daily_bin709.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.60e-03', job_status='DONE', photon_flux_upper_limit='8.72e-08', time_completed='2021-09-05 08:12:07.212453', job_id='491958', GAL2='0.76', fit_tolerance='1e-08', EG2='1.32', EG='1.37', time_epoch_completed='1630854727.21', return_code2='102', ts='0.06', comment='SUCCESS', return_code='0', GAL='0.73', dlogl='2.90e-01', ts2='0.67', photon_index_error='0.00', photon_index='2.11' WHERE bin_id='709' AND source_name='4FGL J1220.1+3432' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 08:12:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0254>
Subject: Job 491958: <4FGL_J1220.1+3432_daily_bin709> in cluster <slac> Done

Job <4FGL_J1220.1+3432_daily_bin709> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Sun Sep  5 07:57:53 2021
Job was executed on host(s) <bullet0254>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 07:57:55 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep  5 07:57:55 2021
Terminated at Sun Sep  5 08:12:09 2021
Results reported at Sun Sep  5 08:12:09 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1220.1+3432_daily_bin709 185.046 34.5383 423100801 423360001 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 :                                   836.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             330.30 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   853 sec.
    Turnaround time :                            856 sec.

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

