/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 3 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 = 7473
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1220.1+3432_daily_bin39
RA = 185.046, Dec = 34.5383
tmin = 249436801, tmax = 249696001
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='488076', job_status='RUN', time_executed='2021-09-05 07:46:50.324369', time_epoch_executed='1630853210.32' WHERE source_name='4FGL J1220.1+3432' and cadence='daily' and bin_id='39'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/488076

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/488076/ft1_4FGL_J1220.1+3432_daily_bin39.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/488076/ft2_4FGL_J1220.1+3432_daily_bin39.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/488076/ft1_4FGL_J1220.1+3432_daily_bin39.fits outfile=/scratch/kocevski/488076/ft1_filteredMKT_4FGL_J1220.1+3432_daily_bin39.fits ra=185.046 dec=34.5383 rad=12.0 tmin=249436801.0 tmax=249696001.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 1.74
user 1.27
sys 0.18

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/488076/ft1_filtered_4FGL_J1220.1+3432_daily_bin39.fits evtable="EVENTS" scfile=/scratch/kocevski/488076/ft2_4FGL_J1220.1+3432_daily_bin39.fits sctable="SC_DATA" expcube=/scratch/kocevski/488076/ltcube_249436801_249696001_4FGL_J1220.1+3432_daily_bin39.fits outfile=/scratch/kocevski/488076/expmap_249436801_249696001_4FGL_J1220.1+3432_daily_bin39.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/488076/ltcube_249436801_249696001_4FGL_J1220.1+3432_daily_bin39.fits
.....................!
real 191.15
user 185.74
sys 4.48

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/488076/ft1_filtered_4FGL_J1220.1+3432_daily_bin39.fits scfile=/scratch/kocevski/488076/ft2_4FGL_J1220.1+3432_daily_bin39.fits outfile=/scratch/kocevski/488076/cmap_249436801_249696001_4FGL_J1220.1+3432_daily_bin39.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.69
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/488076/ft1_filtered_4FGL_J1220.1+3432_daily_bin39.fits scfile=/scratch/kocevski/488076/ft2_4FGL_J1220.1+3432_daily_bin39.fits outfile=/scratch/kocevski/488076/cmap_HighResolution_249436801_249696001_4FGL_J1220.1+3432_daily_bin39.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.73
user 0.39
sys 0.13

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11387E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .30820E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    33.262       1.0000         .10000E-03   10000.    
     4 'norm      '    .10083E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .11580E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10292E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .33879       1.0000         .10000E-03   10000.    
     9 'Prefactor '    8.5493       1.0000         .10000E-03   10000.    
    10 'norm      '    .33141E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    30.326       1.0000         .10000E-03   10000.    
    13 'norm      '    4.1187       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    1.4432       1.0000         .10000E-03   10000.    
    16 'Prefactor '    5.2666       1.0000         .10000E-03   10000.    
    17 'Prefactor '    5.3022       1.0000         .10000E-03   10000.    
    18 'Prefactor '    7.0298       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    1.4497       1.0000         .10000E-03   10000.    
    21 'Prefactor '    9.7985       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      '    3.0522       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    11.880       1.0000         .10000E-03   10000.    
    30 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    .94012       1.0000         .10000E-01   10.000    
    33 'Prefactor '    1.0216       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=   5087.200     FROM MIGRAD    STATUS=CONVERGED    890 CALLS     3922 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.6910        .15414E-06** at limit **
   2  Prefactor     .10003E-03    156.22       -.11702E-04** at limit **
   3  Prefactor     33.265        19.304        .57966E-07   -.45081E-04
   4  norm          .10000E-03    1.6460        .42451E-08** at limit **
   5  Prefactor     .10000E-03    3.6665        .14545E-05** at limit **
   6  Prefactor     .10000E-03    3.7063        .78999E-07** at limit **
   7  Prefactor     .10000E-03    80.844       -.27323E-05** at limit **
   8  norm          .33989        .86362        .25109E-06   -.11351E-03
   9  Prefactor     8.5503        19.546        .20413E-05   -.19980E-03
  10  norm          .10001E-03    5.8532       -.11558E-05** at limit **
  11  Prefactor     .10000E-03    7.1705        .64022E-06** at limit **
  12  Prefactor     30.328        30.741        .30515E-06    .65963E-04
  13  norm          4.1188        1.5242       -.26012E-07   -.11082E-03
  14  Prefactor     .10000E-03    18.982        .13974E-05** at limit **
  15  norm          1.4436        3.3299        .39388E-06   -.19083E-03
  16  Prefactor     5.2676        7.7677        .30805E-05   -.10631E-02
  17  Prefactor     5.3022        2.8684       -.88342E-07   -.51608E-04
  18  Prefactor     7.0298        2.9007       -.21363E-07   -.69408E-04
  19  Prefactor     .10000E-03    2.4236       -.26441E-07** at limit **
  20  norm          1.4506        3.4966        .19310E-06   -.25376E-03
  21  Prefactor     9.7994        10.288        .69681E-07   -.20891E-04
  22  Prefactor     .10000E-03    7.1053       -.44350E-06** at limit **
  23  Prefactor     .10001E-03    26.497       -.61591E-05** at limit **
  24  Prefactor     .10000E-03    2.1076        .12783E-07** at limit **
  25  norm          3.0503        4.2697        .15492E-06   -.15669E-03
  26  Prefactor     .10001E-03    34.038        .60050E-05** at limit **
  27  Prefactor     .10000E-03    13.327        .84793E-07** at limit **
  28  norm          .10000E-03    2.2532        .15824E-07** at limit **
  29  norm          11.878        5.3031        .31474E-08   -.13933E-03
  30  norm          .10000E-03    3.5262       -.37812E-06** at limit **
  31  Prefactor     .10000E-03    3.7261       -.10205E-05** at limit **
  32  Normalizat    .94004        .18428       -.71632E-06    .35638E-05
  33  Prefactor     1.0215        .21814       -.61095E-06    .19773E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100032
  Prefactor  = 33.265
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  norm       = 0.339886
  Prefactor  = 8.55025
  norm       = 0.000100008
  Prefactor  = 0.0001
  Prefactor  = 30.3281
  norm       = 4.11883
  Prefactor  = 0.000100001
  norm       = 1.44362
  Prefactor  = 5.26761
  Prefactor  = 5.30219
  Prefactor  = 7.02981
  Prefactor  = 0.0001
  norm       = 1.45059
  Prefactor  = 9.7994
  Prefactor  = 0.0001
  Prefactor  = 0.000100012
  Prefactor  = 0.0001
  norm       = 3.0503
  Prefactor  = 0.000100011
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 11.8778
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.940043
  Prefactor  = 1.0215
 **********
 **   18 **HESSE 
 **********

 FCN=   5087.200     FROM HESSE     STATUS=OK           693 CALLS     4615 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.8169        .17850E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10003E-03    164.43        .42757E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     33.265        19.274        .69479E-04   -1.4554    
   4  norm          .10000E-03    1.6986        .17838E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    3.7536        .13488E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    8.4901        .26406E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    81.817        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .33989        .83614        .99992E-04   -1.5591    
   9  Prefactor     8.5503        19.827        .68549E-03   -1.5123    
  10  norm          .10001E-03    15.217        .33104E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    7.1910        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     30.328        30.662        .72756E-04   -1.4606    
  13  norm          4.1188        1.5234        .50696E-04   -1.5302    
  14  Prefactor     .10000E-03    19.108        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.4436        3.2896        .17416E-03   -1.5468    
  16  Prefactor     5.2676        8.6589        .87573E-03   -1.5249    
  17  Prefactor     5.3022        2.8538        .79950E-04   -1.5247    
  18  Prefactor     7.0298        2.8899        .72613E-04   -1.5178    
  19  Prefactor     .10000E-03    2.4395        .10840E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          1.4506        3.4728        .20060E-03   -1.5467    
  21  Prefactor     9.7994        10.280        .12802E-03   -1.5082    
  22  Prefactor     .10000E-03    7.1164        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10001E-03    28.018        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    2.1111        .10112E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          3.0503        4.2506        .16502E-03   -1.5359    
  26  Prefactor     .10001E-03    35.668        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    13.415        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .10000E-03    2.2649        .10454E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          11.878        5.2923        .10294E-03   -1.5019    
  30  norm          .10000E-03    3.5378        .13072E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .10000E-03    3.8317        .13483E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    .94004        .21823        .24113E-03   -.95067    
  33  Prefactor     1.0215        .25832        .28150E-03   -.92016    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.80048e-09
Minuit parameter uncertainties:
  1  2.55366e-05
  2  0.00461841
  3  19.2781
  4  4.64957e-06
  5  0.000100152
  6  2.76894e-05
  7  0.000833624
  8  0.836165
  9  19.8418
  10  0.000709627
  11  6.06224e-05
  12  30.6783
  13  1.52346
  14  0.000213958
  15  3.29003
  16  8.66091
  17  2.85386
  18  2.88991
  19  1.09143e-07
  20  3.4733
  21  10.2816
  22  4.23495e-05
  23  0.00116231
  24  4.71766e-07
  25  4.25102
  26  0.00126237
  27  1.12136e-05
  28  1.30023e-06
  29  5.2925
  30  2.23984e-05
  31  6.37481e-05
  32  0.218438
  33  0.258631
Done.

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

Extracting fit parameters...

4FGL J1220.1+3432
   Spectrum: PowerLaw
299    Prefactor:  5.268e+00  8.661e+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:  1.022e+00  2.586e-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:  9.400e-01  2.184e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/488076/likelihoodResults_249436801_249696001_4FGL_J1220.1+3432_daily_bin39.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) = 5086.66786372
delta logL = 0.531755147695

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5086.62990099
delta logL = 0.569717876407

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.1371       1.0000         .10000E-03   10000.    
     2 'Index     '    3.3128       1.0000          .0000       10.000    
     3 'Normalizat'    .88597       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0630       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=   5086.630     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      297 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.1384        19.920        .10917E-01    .77362E-03
   2  Index         3.3137        2.7820        .94035E-01    .16724E-03
   3  Normalizat    .88596        .48579E-01    .44722E-01   -.18902E-04
   4  Prefactor     1.0629        .58253E-01    .62533E-01   -.23083E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.1384
  Index      = 3.31367
  Normalizat = 0.885963
  Prefactor  = 1.06288
 **********
 **   18 **HESSE 
 **********

 FCN=   5086.630     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      330 TOTAL
                     EDM=   .71E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.1384        44.087        .66047E-04   -1.5495    
   2  Index         3.3137        6.6500        .46737E-02   -.34401    
   3  Normalizat    .88596        .21644        .24749E-03   -.96955    
   4  Prefactor     1.0629        .25870        .27657E-03   -.90662    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.07544e-10
Minuit parameter uncertainties:
  1  14.1794
  2  5.42644
  3  0.21665
  4  0.259003
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/488076': 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) = 5086.62989495
delta logL = 0.569723918355

Extracting fit parameters...

4FGL J1220.1+3432
   Spectrum: PowerLaw
299    Prefactor:  1.138e+00  1.418e+01  1.000e-04  1.000e+04 ( 1.000e-13)
300        Index:  3.314e+00  5.426e+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.063e+00  2.590e-01  0.000e+00  1.000e+01 ( 1.000e+00)
611        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
612        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
609   Normalization:  8.860e-01  2.166e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.71
Ra Dec: 185.046 34.538
Photon Index (Free Index): 3.31 +/- 5.43
Photon Flux (Free Index): 5.59e-08 +/- 5.79e-08
Energy Flux (Free Index): 9.83e-06 +/- 1.52e-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/488076/cmap_HighResolution_249436801_249696001_4FGL_J1220.1+3432_daily_bin39.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.74e-03', comment='SUCCESS', energy_flux2='9.83e-06', dlogl='5.70e-01', photon_flux2='5.59e-08', job_status='DONE', time_completed='2021-09-05 08:00:24.151422', photon_index_error2='5.43', photon_index2='3.31', ts='0.48', fit_tolerance='1e-08', GAL='1.02', photon_index_error='0.00', photon_flux_upper_limit='8.90e-08', energy_flux_error2='1.52e-05', EG='0.94', time_epoch_completed='1630854024.15', return_code='0', job_id='488076', GAL2='1.06', EG2='0.89', return_code2='102', photon_flux_error2='5.79e-08', ts2='1.71', photon_index='2.11' WHERE bin_id='39' AND source_name='4FGL J1220.1+3432' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 08:00:24 PDT 2021


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

Job <4FGL_J1220.1+3432_daily_bin39> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sun Sep  5 07:46:32 2021
Job was executed on host(s) <bullet0037>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 07:46:34 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:46:34 2021
Terminated at Sun Sep  5 08:00:24 2021
Results reported at Sun Sep  5 08:00:24 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1220.1+3432_daily_bin39 185.046 34.5383 249436801 249696001 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 :                                   806.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             364.74 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   830 sec.
    Turnaround time :                            832 sec.

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

