/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 2 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 = 7408
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1220.1+3432_daily_bin450
RA = 185.046, Dec = 34.5383
tmin = 355968001, tmax = 356227201
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='489628', job_status='RUN', time_executed='2021-09-05 07:51:36.156602', time_epoch_executed='1630853496.16' WHERE source_name='4FGL J1220.1+3432' and cadence='daily' and bin_id='450'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/489628

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/489628/ft1_4FGL_J1220.1+3432_daily_bin450.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/489628/ft2_4FGL_J1220.1+3432_daily_bin450.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/489628/ft1_4FGL_J1220.1+3432_daily_bin450.fits outfile=/scratch/kocevski/489628/ft1_filteredMKT_4FGL_J1220.1+3432_daily_bin450.fits ra=185.046 dec=34.5383 rad=12.0 tmin=355968001.0 tmax=356227201.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.41
user 3.19
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/489628/ft1_filtered_4FGL_J1220.1+3432_daily_bin450.fits evtable="EVENTS" scfile=/scratch/kocevski/489628/ft2_4FGL_J1220.1+3432_daily_bin450.fits sctable="SC_DATA" expcube=/scratch/kocevski/489628/ltcube_355968001_356227201_4FGL_J1220.1+3432_daily_bin450.fits outfile=/scratch/kocevski/489628/expmap_355968001_356227201_4FGL_J1220.1+3432_daily_bin450.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/489628/ltcube_355968001_356227201_4FGL_J1220.1+3432_daily_bin450.fits
.....................!
real 190.15
user 185.28
sys 4.21

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/489628/ft1_filtered_4FGL_J1220.1+3432_daily_bin450.fits scfile=/scratch/kocevski/489628/ft2_4FGL_J1220.1+3432_daily_bin450.fits outfile=/scratch/kocevski/489628/cmap_355968001_356227201_4FGL_J1220.1+3432_daily_bin450.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/489628/ft1_filtered_4FGL_J1220.1+3432_daily_bin450.fits scfile=/scratch/kocevski/489628/ft2_4FGL_J1220.1+3432_daily_bin450.fits outfile=/scratch/kocevski/489628/cmap_HighResolution_355968001_356227201_4FGL_J1220.1+3432_daily_bin450.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.57
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10038E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10329E-01   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10114E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    1.8203       1.0000         .10000E-03   10000.    
     9 'Prefactor '    47.524       1.0000         .10000E-03   10000.    
    10 'norm      '    24.597       1.0000         .10000E-03   10000.    
    11 'Prefactor '    11.754       1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.0173       1.0000         .10000E-03   10000.    
    13 'norm      '    2.9919       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    6.2376       1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.6361       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.9732       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.1555       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .12203E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10101E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10115E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    .85978       1.0000         .10000E-03   10000.    
    30 'norm      '    .10048E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    1.1787       1.0000         .10000E-03   10000.    
    32 'Normalizat'    1.2410       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .72116       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=   5959.025     FROM MIGRAD    STATUS=CONVERGED    946 CALLS     4028 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.4805        .35529E-07** at limit **
   2  Prefactor     .10000E-03    42.511        .87060E-06** at limit **
   3  Prefactor     .10000E-03    18.230        .50941E-06** at limit **
   4  norm          .10000E-03    1.3529        .89503E-07** at limit **
   5  Prefactor     .10107E-03    7.6830       -.36839E-06** at limit **
   6  Prefactor     .10000E-03    3.9422        .58724E-07** at limit **
   7  Prefactor     .10000E-03    85.505        .44821E-06** at limit **
   8  norm          1.8206        1.0169        .25805E-08   -.12926E-03
   9  Prefactor     47.525        21.506        .56236E-07    .63657E-05
  10  norm          24.601        13.814       -.26618E-07   -.25072E-04
  11  Prefactor     11.748        20.456        .27106E-06   -.14769E-05
  12  Prefactor     2.9555        109.94        .37898E-05    .66054E-04
  13  norm          2.9918        1.2213        .18525E-07    .67540E-04
  14  Prefactor     .10000E-03    13.733        .86155E-06** at limit **
  15  norm          6.2375        2.7909       -.10850E-07   -.20901E-04
  16  Prefactor     4.6352        6.3065        .28806E-06    .87257E-05
  17  Prefactor     .10000E-03    1.0281       -.65521E-08** at limit **
  18  Prefactor     4.9738        2.2928       -.78316E-07   -.12477E-03
  19  Prefactor     .10000E-03    2.0658       -.87214E-09** at limit **
  20  norm          .10000E-03    2.0206       -.78821E-08** at limit **
  21  Prefactor     1.1445        19.689        .33158E-05   -.13282E-03
  22  Prefactor     .10000E-03    6.5671        .14655E-07** at limit **
  23  Prefactor     .10000E-03    23.268       -.56010E-06** at limit **
  24  Prefactor     .10000E-03    2.8189        .12868E-07** at limit **
  25  norm          .10000E-03    2.2473       -.77665E-07** at limit **
  26  Prefactor     .10000E-03    44.648       -.14321E-05** at limit **
  27  Prefactor     .10001E-03    7.4805        .73352E-06** at limit **
  28  norm          .10000E-03    1.4719       -.40279E-08** at limit **
  29  norm          .86068        3.0417        .12636E-05    .10916E-02
  30  norm          .10002E-03    7.8386       -.27630E-05** at limit **
  31  Prefactor     1.1779        2.7672        .19589E-06    .92278E-04
  32  Normalizat    1.2412        .17967       -.47900E-06    .20995E-03
  33  Prefactor     .72107        .20621       -.13290E-06    .14379E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.000101072
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.82059
  Prefactor  = 47.5252
  norm       = 24.6014
  Prefactor  = 11.7476
  Prefactor  = 2.9555
  norm       = 2.9918
  Prefactor  = 0.000100002
  norm       = 6.23754
  Prefactor  = 4.6352
  Prefactor  = 0.0001
  Prefactor  = 4.97379
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 1.14451
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 0.000100011
  norm       = 0.0001
  norm       = 0.860678
  norm       = 0.000100018
  Prefactor  = 1.1779
  Normalizat = 1.2412
  Prefactor  = 0.721073
 **********
 **   18 **HESSE 
 **********

 FCN=   5959.025     FROM HESSE     STATUS=OK           705 CALLS     4733 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.5328        .18294E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    42.910        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    18.441        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    2.5928        .17302E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10107E-03    11.437        .66854E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    4.0956        .29900E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    87.138        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.8206        1.0120        .53533E-04   -1.5438    
   9  Prefactor     47.525        21.492        .58165E-04   -1.4328    
  10  norm          24.601        13.801        .80769E-04   -1.4716    
  11  Prefactor     11.748        20.521        .11685E-03   -1.5022    
  12  Prefactor     2.9555        111.37        .23364E-03   -1.5364    
  13  norm          2.9918        1.2190        .52245E-04   -1.5362    
  14  Prefactor     .10000E-03    14.027        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          6.2375        2.7790        .82802E-04   -1.5208    
  16  Prefactor     4.6352        6.2865        .18692E-03   -1.5277    
  17  Prefactor     .10000E-03    1.0519        .15223E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     4.9738        2.2811        .74802E-04   -1.5262    
  19  Prefactor     .10000E-03    2.0735        .10835E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    2.0345        .10713E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     1.1445        20.022        .42958E-03   -1.5494    
  22  Prefactor     .10000E-03    6.5700        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    23.412        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    2.8429        .12652E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    11.764        .22084E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    46.411        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10001E-03    30.757        .39980E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .10000E-03    1.4749        .91425E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          .86068        3.1068        .24382E-03   -1.5522    
  30  norm          .10002E-03    14.509        .31915E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     1.1779        2.6726        .18687E-03   -1.5491    
  32  Normalizat    1.2412        .20543        .21371E-03   -.85339    
  33  Prefactor     .72107        .23604        .32574E-03   -1.0271    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.45202e-09
Minuit parameter uncertainties:
  1  9.0346e-08
  2  0.000533118
  3  0.00021793
  4  6.34092e-06
  5  0.00700459
  6  3.11718e-06
  7  0.000238474
  8  1.01197
  9  21.4956
  10  13.8033
  11  20.5336
  12  36.3569
  13  1.21896
  14  0.000310133
  15  2.77905
  16  6.28736
  17  3.57411e-07
  18  2.28119
  19  5.47533e-07
  20  3.01687e-07
  21  9.57726
  22  1.17603e-06
  23  0.000271122
  24  1.62032e-06
  25  9.74475e-05
  26  0.000803754
  27  0.00116944
  28  7.28522e-07
  29  3.10736
  30  0.00103394
  31  2.67285
  32  0.205565
  33  0.236373
Done.

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

Extracting fit parameters...

4FGL J1220.1+3432
   Spectrum: PowerLaw
299    Prefactor:  4.635e+00  6.287e+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.211e-01  2.364e-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.241e+00  2.056e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/489628/likelihoodResults_355968001_356227201_4FGL_J1220.1+3432_daily_bin450.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) = 5958.86334027
delta logL = 0.161335299167

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5958.85838412
delta logL = 0.16629145316

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.6895       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5816       1.0000          .0000       10.000    
     3 'Normalizat'    1.2310       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .72773       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=   5958.858     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      280 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.6892        6.4305        .13804E-03   -.69509E-04
   2  Index         2.5817        1.0847        .71208E-02    .51204E-03
   3  Normalizat    1.2310        .19711        .21442E-03   -.13407E-03
   4  Prefactor     .72774        .23453        .32431E-03   -.93141E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.68918
  Index      = 2.58166
  Normalizat = 1.23102
  Prefactor  = 0.727738
 **********
 **   18 **HESSE 
 **********

 FCN=   5958.858     FROM HESSE     STATUS=OK            25 CALLS      305 TOTAL
                     EDM=   .18E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.6892        5.2751        .55217E-05   -1.5380    
   2  Index         2.5817        .89278        .14242E-02   -.50484    
   3  Normalizat    1.2310        .19714        .42885E-04   -.85649    
   4  Prefactor     .72774        .23452        .12972E-04   -1.0245    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.78552e-11
Minuit parameter uncertainties:
  1  5.27597
  2  0.899093
  3  0.197264
  4  0.234842
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/489628': 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) = 5958.85838411
delta logL = 0.166291462674

Extracting fit parameters...

4FGL J1220.1+3432
   Spectrum: PowerLaw
299    Prefactor:  2.689e+00  5.276e+00  1.000e-04  1.000e+04 ( 1.000e-13)
300        Index:  2.582e+00  8.991e-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:  7.277e-01  2.348e-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.231e+00  1.973e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.08
Ra Dec: 185.046 34.538
Photon Index (Free Index): 2.58 +/- 0.90
Photon Flux (Free Index): 2.45e-08 +/- 2.91e-08
Energy Flux (Free Index): 6.54e-06 +/- 8.10e-06

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/489628/cmap_HighResolution_355968001_356227201_4FGL_J1220.1+3432_daily_bin450.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.25e-03', comment='SUCCESS', energy_flux2='6.54e-06', dlogl='1.66e-01', photon_flux2='2.45e-08', job_status='DONE', time_completed='2021-09-05 08:07:13.474969', photon_index_error2='0.90', photon_index2='2.58', ts='0.75', fit_tolerance='1e-08', GAL='0.72', photon_index_error='0.00', photon_flux_upper_limit='6.94e-08', energy_flux_error2='8.10e-06', EG='1.24', time_epoch_completed='1630854433.48', return_code='0', job_id='489628', GAL2='0.73', EG2='1.23', return_code2='0', photon_flux_error2='2.91e-08', ts2='1.08', photon_index='2.11' WHERE bin_id='450' AND source_name='4FGL J1220.1+3432' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 08:07:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0215>
Subject: Job 489628: <4FGL_J1220.1+3432_daily_bin450> in cluster <slac> Done

Job <4FGL_J1220.1+3432_daily_bin450> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Sep  5 07:51:17 2021
Job was executed on host(s) <bullet0215>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 07:51:19 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:51:19 2021
Terminated at Sun Sep  5 08:07:14 2021
Results reported at Sun Sep  5 08:07:14 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1220.1+3432_daily_bin450 185.046 34.5383 355968001 356227201 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 :                                   928.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             330.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   954 sec.
    Turnaround time :                            957 sec.

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

