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


Performing analysis on: 4FGL_J1220.1+3432_daily_bin1226
RA = 185.046, Dec = 34.5383
tmin = 557107201, tmax = 557366401
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='497204', job_status='RUN', time_executed='2021-09-05 08:20:11.748860', time_epoch_executed='1630855211.75' WHERE source_name='4FGL J1220.1+3432' and cadence='daily' and bin_id='1226'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/497204

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/497204/ft1_4FGL_J1220.1+3432_daily_bin1226.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/497204/ft2_4FGL_J1220.1+3432_daily_bin1226.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/497204/ft1_4FGL_J1220.1+3432_daily_bin1226.fits outfile=/scratch/kocevski/497204/ft1_filteredMKT_4FGL_J1220.1+3432_daily_bin1226.fits ra=185.046 dec=34.5383 rad=12.0 tmin=557107201.0 tmax=557366401.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.70
user 3.46
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/497204/ft2_4FGL_J1220.1+3432_daily_bin1226.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/497204/ft1_filteredMKT_4FGL_J1220.1+3432_daily_bin1226.fits evtable="EVENTS" outfile="/scratch/kocevski/497204/ft1_filtered_4FGL_J1220.1+3432_daily_bin1226.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.50
user 0.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/497204/ft1_filtered_4FGL_J1220.1+3432_daily_bin1226.fits" evtable="EVENTS" scfile=/scratch/kocevski/497204/ft2_4FGL_J1220.1+3432_daily_bin1226.fits sctable="SC_DATA" outfile=/scratch/kocevski/497204/ltcube_557107201_557366401_4FGL_J1220.1+3432_daily_bin1226.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/497204/ft2_4FGL_J1220.1+3432_daily_bin1226.fits
.....................!
real 12.52
user 12.12
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/497204/ft1_filtered_4FGL_J1220.1+3432_daily_bin1226.fits evtable="EVENTS" scfile=/scratch/kocevski/497204/ft2_4FGL_J1220.1+3432_daily_bin1226.fits sctable="SC_DATA" expcube=/scratch/kocevski/497204/ltcube_557107201_557366401_4FGL_J1220.1+3432_daily_bin1226.fits outfile=/scratch/kocevski/497204/expmap_557107201_557366401_4FGL_J1220.1+3432_daily_bin1226.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/497204/ltcube_557107201_557366401_4FGL_J1220.1+3432_daily_bin1226.fits
.....................!
real 189.63
user 185.20
sys 4.07

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/497204/ft1_filtered_4FGL_J1220.1+3432_daily_bin1226.fits scfile=/scratch/kocevski/497204/ft2_4FGL_J1220.1+3432_daily_bin1226.fits outfile=/scratch/kocevski/497204/cmap_557107201_557366401_4FGL_J1220.1+3432_daily_bin1226.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.62
user 0.37
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .90749E-01   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .20055E-01   1.0000         .10000E-03   10000.    
     3 'Prefactor '    61.304       1.0000         .10000E-03   10000.    
     4 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.3896       1.0000         .10000E-03   10000.    
     6 'Prefactor '    92.994       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .36768E-02   1.0000         .10000E-03   10000.    
     8 'norm      '    3.5347       1.0000         .10000E-03   10000.    
     9 'Prefactor '    35.148       1.0000         .10000E-03   10000.    
    10 'norm      '    .45530E-02   1.0000         .10000E-03   10000.    
    11 'Prefactor '    108.81       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .57538E-02   1.0000         .10000E-03   10000.    
    13 'norm      '    8.0452       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .26119E-02   1.0000         .10000E-03   10000.    
    15 'norm      '    4.5262       1.0000         .10000E-03   10000.    
    16 'Prefactor '    10.862       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .13074E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10282E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    38.985       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .98534E-02   1.0000         .10000E-03   10000.    
    23 'Prefactor '    29.248       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10354E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    10.257       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .33746E-02   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .11449E-02   1.0000         .10000E-03   10000.    
    28 'norm      '    31.704       1.0000         .10000E-03   10000.    
    29 'norm      '    .76429       1.0000         .10000E-03   10000.    
    30 'norm      '    .13657E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    .25146E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    .31134       1.0000         .10000E-01   10.000    
    33 'Prefactor '    1.6089       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=   2469.991     FROM MIGRAD    STATUS=CONVERGED   1054 CALLS     5108 TOTAL
                     EDM=   .37E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    192.07        .77310E-06** at limit **
   2  Prefactor     .10000E-03    186.01       -.33947E-06** at limit **
   3  Prefactor     78.204        147.91       -.45710E-06   -.56987E-05
   4  norm          .10000E-03    5.9964        .16646E-07** at limit **
   5  Prefactor     .10000E-03    266.53        .49127E-05** at limit **
   6  Prefactor     94.127        48.442       -.41578E-06   -.20158E-04
   7  Prefactor     .10000E-03    42.327       -.24010E-06** at limit **
   8  norm          3.5324        2.5962       -.53595E-07    .28856E-04
   9  Prefactor     37.862        75.321       -.89620E-05   -.53961E-05
  10  norm          .10000E-03    16.926        .66658E-07** at limit **
  11  Prefactor     108.29        93.215       -.32653E-07   -.69375E-05
  12  Prefactor     .10000E-03    59.687        .92970E-07** at limit **
  13  norm          8.0223        3.8891        .55376E-07   -.24237E-04
  14  Prefactor     .10000E-03    31.996        .14100E-06** at limit **
  15  norm          4.5306        5.8875       -.33851E-06   -.12974E-03
  16  Prefactor     10.725        15.076       -.39164E-06   -.23513E-04
  17  Prefactor     .10000E-03    7.8966        .55208E-07** at limit **
  18  Prefactor     .10000E-03    3.5721       -.66049E-08** at limit **
  19  Prefactor     .10000E-03    3.4529        .27703E-07** at limit **
  20  norm          .10000E-03    4.4925        .29379E-07** at limit **
  21  Prefactor     39.345        24.052        .65525E-07   -.83617E-05
  22  Prefactor     .10000E-03    65.833        .14626E-06** at limit **
  23  Prefactor     27.728        79.840       -.40093E-04    .13226E-05
  24  Prefactor     .10000E-03    4.2909       -.68126E-07** at limit **
  25  norm          10.287        7.5262        .52914E-06   -.10623E-02
  26  Prefactor     .10000E-03    64.234        .38458E-06** at limit **
  27  Prefactor     .10000E-03    18.382       -.33768E-07** at limit **
  28  norm          31.695        10.532       -.10691E-06    .57573E-04
  29  norm          .77285        4.8420       -.71821E-06   -.22604E-03
  30  norm          .10000E-03    5.5806        .63538E-07** at limit **
  31  Prefactor     .10000E-03    6.0907        .69121E-08** at limit **
  32  Normalizat    .31090        .31412        .52573E-05    .34628E-04
  33  Prefactor     1.6075        .38211        .38337E-06    .31733E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 78.2038
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 94.1274
  Prefactor  = 0.0001
  norm       = 3.53236
  Prefactor  = 37.8623
  norm       = 0.0001
  Prefactor  = 108.286
  Prefactor  = 0.0001
  norm       = 8.02233
  Prefactor  = 0.0001
  norm       = 4.53058
  Prefactor  = 10.7248
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 39.3447
  Prefactor  = 0.0001
  Prefactor  = 27.7281
  Prefactor  = 0.0001
  norm       = 10.2869
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 31.6955
  norm       = 0.77285
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.310897
  Prefactor  = 1.60745
 **********
 **   18 **HESSE 
 **********

 FCN=   2469.991     FROM HESSE     STATUS=OK           683 CALLS     5791 TOTAL
                     EDM=   .71E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    195.82        .37868E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    186.01        .18246E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     78.204        147.85        .51247E-04   -1.3937    
   4  norm          .10000E-03    6.0005        .11886E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    266.63        .96115E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     94.127        47.983        .41674E-04   -1.3765    
   7  Prefactor     .10000E-03    42.328        .19597E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          3.5324        2.5983        .66684E-04   -1.5332    
   9  Prefactor     37.862        75.325        .67595E-04   -1.4477    
  10  norm          .10000E-03    16.953        .19329E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     108.29        93.083        .38558E-04   -1.3623    
  12  Prefactor     .10000E-03    59.704        .19002E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          8.0223        3.8859        .65288E-04   -1.5141    
  14  Prefactor     .10000E-03    32.008        .19974E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          4.5306        5.8291        .12946E-03   -1.5282    
  16  Prefactor     10.725        15.038        .12156E-03   -1.5053    
  17  Prefactor     .10000E-03    8.0816        .27038E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    3.6285        .91445E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    3.4546        .90198E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    4.5163        .10286E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     39.345        23.932        .64194E-04   -1.4453    
  22  Prefactor     .10000E-03    66.836        .18145E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     27.728        78.549        .74082E-04   -1.4654    
  24  Prefactor     .10000E-03    4.3044        .10052E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          10.287        7.4119        .52275E-03   -1.5066    
  26  Prefactor     .10000E-03    64.478        .19697E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    18.496        .20671E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          31.695        10.434        .71161E-04   -1.4581    
  29  norm          .77285        6.8492        .19120E-02   -1.5532    
  30  norm          .10000E-03    5.5902        .11423E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .10000E-03    6.2578        .23821E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    .31090        .31894        .41825E-03   -1.2219    
  33  Prefactor     1.6075        .40096        .25147E-03   -.74573    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.09022e-10
Minuit parameter uncertainties:
  1  6.66836e-05
  2  2.51591e-06
  3  148.555
  4  1.14036e-06
  5  0.000334862
  6  48.0023
  7  5.64822e-06
  8  2.59842
  9  75.5147
  10  8.53445e-06
  11  93.2085
  12  2.3543e-05
  13  3.88607
  14  6.91305e-06
  15  5.82984
  16  15.0437
  17  4.9001e-06
  18  2.51641e-06
  19  1.24508e-06
  20  6.67431e-06
  21  23.9375
  22  0.000167247
  23  78.8436
  24  5.44472e-06
  25  7.4126
  26  0.000222369
  27  3.41566e-05
  28  10.4347
  29  4.60189
  30  1.1571e-05
  31  3.6569e-07
  32  0.320823
  33  0.401756
Done.

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

Extracting fit parameters...

4FGL J1220.1+3432
   Spectrum: PowerLaw
299    Prefactor:  1.072e+01  1.504e+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:  1.607e+00  4.018e-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:  3.109e-01  3.208e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/497204/likelihoodResults_557107201_557366401_4FGL_J1220.1+3432_daily_bin1226.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) = 2469.87947732
delta logL = 0.111181471824

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2469.87394082
delta logL = 0.11671796989

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.8434       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6272       1.0000          .0000       10.000    
     3 'Normalizat'    .28442       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.6267       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=   2469.874     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      283 TOTAL
                     EDM=   .71E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.8480        16.212        .13893E-03   -.10662E-03
   2  Index         2.6278        1.3870        .54710E-02    .22787E-03
   3  Normalizat    .28527        .31577        .43628E-03   -.51570E-04
   4  Prefactor     1.6261        .40354        .25021E-03    .64129E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.84805
  Index      = 2.62777
  Normalizat = 0.285271
  Prefactor  = 1.62615
 **********
 **   18 **HESSE 
 **********

 FCN=   2469.874     FROM HESSE     STATUS=OK            25 CALLS      308 TOTAL
                     EDM=   .30E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.8480        13.551        .55574E-05   -1.5224    
   2  Index         2.6278        1.1636        .10942E-02   -.49433    
   3  Normalizat    .28527        .31418        .17451E-04   -1.2373    
   4  Prefactor     1.6261        .40201        .50042E-04   -.74065    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.0311e-10
Minuit parameter uncertainties:
  1  13.5578
  2  1.17761
  3  0.316145
  4  0.402807
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/497204': 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) = 2469.87393191
delta logL = 0.116726878947

Extracting fit parameters...

4FGL J1220.1+3432
   Spectrum: PowerLaw
299    Prefactor:  5.848e+00  1.356e+01  1.000e-04  1.000e+04 ( 1.000e-13)
300        Index:  2.628e+00  1.178e+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:  1.626e+00  4.028e-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:  2.853e-01  3.161e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.10
Ra Dec: 185.046 34.538
Photon Index (Free Index): 2.63 +/- 1.18
Photon Flux (Free Index): 5.90e-08 +/- 8.13e-08
Energy Flux (Free Index): 1.51e-05 +/- 1.96e-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/497204/cmap_HighResolution_557107201_557366401_4FGL_J1220.1+3432_daily_bin1226.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.34e-02', comment='SUCCESS', energy_flux2='1.51e-05', dlogl='1.17e-01', photon_flux2='5.90e-08', job_status='DONE', time_completed='2021-09-05 08:30:30.110614', photon_index_error2='1.18', photon_index2='2.63', ts='0.87', fit_tolerance='1e-08', GAL='1.61', photon_index_error='0.00', photon_flux_upper_limit='1.78e-07', energy_flux_error2='1.96e-05', EG='0.31', time_epoch_completed='1630855830.11', return_code='0', job_id='497204', GAL2='1.63', EG2='0.29', return_code2='0', photon_flux_error2='8.13e-08', ts2='1.10', photon_index='2.11' WHERE bin_id='1226' AND source_name='4FGL J1220.1+3432' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 08:30:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0273>
Subject: Job 497204: <4FGL_J1220.1+3432_daily_bin1226> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1220.1+3432_daily_bin1226 185.046 34.5383 557107201 557366401 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 :                                   603.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             269.69 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   881 sec.
    Turnaround time :                            883 sec.

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

