/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 4 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 = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1220.1+3432_daily_bin78
RA = 185.046, Dec = 34.5383
tmin = 259545601, tmax = 259804801
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='488139', job_status='RUN', time_executed='2021-09-05 07:46:53.476069', time_epoch_executed='1630853213.48' WHERE source_name='4FGL J1220.1+3432' and cadence='daily' and bin_id='78'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/488139

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/488139/ft1_4FGL_J1220.1+3432_daily_bin78.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/488139/ft2_4FGL_J1220.1+3432_daily_bin78.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/488139/ft1_4FGL_J1220.1+3432_daily_bin78.fits outfile=/scratch/kocevski/488139/ft1_filteredMKT_4FGL_J1220.1+3432_daily_bin78.fits ra=185.046 dec=34.5383 rad=12.0 tmin=259545601.0 tmax=259804801.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.81
user 1.49
sys 0.19

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/488139/ft1_filtered_4FGL_J1220.1+3432_daily_bin78.fits evtable="EVENTS" scfile=/scratch/kocevski/488139/ft2_4FGL_J1220.1+3432_daily_bin78.fits sctable="SC_DATA" expcube=/scratch/kocevski/488139/ltcube_259545601_259804801_4FGL_J1220.1+3432_daily_bin78.fits outfile=/scratch/kocevski/488139/expmap_259545601_259804801_4FGL_J1220.1+3432_daily_bin78.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/488139/ltcube_259545601_259804801_4FGL_J1220.1+3432_daily_bin78.fits
.....................!
real 194.01
user 187.96
sys 4.29

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/488139/ft1_filtered_4FGL_J1220.1+3432_daily_bin78.fits scfile=/scratch/kocevski/488139/ft2_4FGL_J1220.1+3432_daily_bin78.fits outfile=/scratch/kocevski/488139/cmap_259545601_259804801_4FGL_J1220.1+3432_daily_bin78.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.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/488139/ft1_filtered_4FGL_J1220.1+3432_daily_bin78.fits scfile=/scratch/kocevski/488139/ft2_4FGL_J1220.1+3432_daily_bin78.fits outfile=/scratch/kocevski/488139/cmap_HighResolution_259545601_259804801_4FGL_J1220.1+3432_daily_bin78.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=185.046 yref=34.5383 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.55
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.4842       1.0000         .10000E-03   10000.    
     2 'Prefactor '    89.648       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10605E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .79019       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.9044       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .27643       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .12330E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .28914       1.0000         .10000E-03   10000.    
     9 'Prefactor '    11.573       1.0000         .10000E-03   10000.    
    10 'norm      '    12.657       1.0000         .10000E-03   10000.    
    11 'Prefactor '    11.595       1.0000         .10000E-03   10000.    
    12 'Prefactor '    10.372       1.0000         .10000E-03   10000.    
    13 'norm      '    5.3262       1.0000         .10000E-03   10000.    
    14 'Prefactor '    37.681       1.0000         .10000E-03   10000.    
    15 'norm      '    1.2414       1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.5088       1.0000         .10000E-03   10000.    
    17 'Prefactor '    5.6363       1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.5542       1.0000         .10000E-03   10000.    
    19 'Prefactor '    5.6773       1.0000         .10000E-03   10000.    
    20 'norm      '    .99341       1.0000         .10000E-03   10000.    
    21 'Prefactor '    3.0433       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .14363E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    67.294       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10151E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    39.429       1.0000         .10000E-03   10000.    
    27 'Prefactor '    36.327       1.0000         .10000E-03   10000.    
    28 'norm      '    .10377E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    3.2133       1.0000         .10000E-03   10000.    
    30 'norm      '    6.8443       1.0000         .10000E-03   10000.    
    31 'Prefactor '    4.0559       1.0000         .10000E-03   10000.    
    32 'Normalizat'    .77168       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .88167       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6130E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6154.879     FROM MIGRAD    STATUS=CONVERGED    235 CALLS     3454 TOTAL
                     EDM=   .68E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.3828        5.2631        .12921E-05    .13465E-04
   2  Prefactor     91.844        96.476       -.16743E-04   -.78749E-05
   3  Prefactor     .10000E-03    3.7778       -.72082E-06** at limit **
   4  norm          .77968        1.6185        .21785E-06   -.25259E-05
   5  Prefactor     1.8591        5.7142        .63832E-07    .42185E-05
   6  Prefactor     .27058        6.6742       -.27326E-06   -.10986E-04
   7  Prefactor     .10000E-03    19.569       -.29020E-05** at limit **
   8  norm          .29452        .66083        .69919E-06   -.20561E-04
   9  Prefactor     11.852        13.921       -.80089E-06    .36410E-06
  10  norm          12.761        9.2296        .31061E-06    .36421E-05
  11  Prefactor     11.985        22.935       -.66801E-05   -.25485E-06
  12  Prefactor     8.9362        64.644        .26798E-04   -.15422E-04
  13  norm          5.3214        1.4219        .13574E-07    .82523E-05
  14  Prefactor     38.004        31.563       -.86128E-06    .17226E-04
  15  norm          1.2413        2.0265        .80143E-07   -.89335E-05
  16  Prefactor     2.4415        6.4662        .99545E-06   -.12526E-04
  17  Prefactor     5.6371        2.8393        .14663E-06   -.17684E-04
  18  Prefactor     3.5567        2.2802        .27913E-07    .83848E-05
  19  Prefactor     5.6470        5.2560       -.12154E-05   -.99387E-05
  20  norm          1.0000        3.0134        .11635E-05   -.43093E-05
  21  Prefactor     3.0086        10.174       -.48701E-06   -.55597E-05
  22  Prefactor     .10000E-03    9.9357       -.28066E-05** at limit **
  23  Prefactor     70.255        61.500       -.29299E-04   -.57169E-05
  24  Prefactor     .10000E-03    1.9645       -.20636E-06** at limit **
  25  norm          .10000E-03    2.9724       -.14197E-05** at limit **
  26  Prefactor     39.196        28.520        .13777E-04    .10128E-04
  27  Prefactor     36.312        17.854       -.32223E-05    .81644E-05
  28  norm          .10000E-03    2.8417       -.77814E-06** at limit **
  29  norm          3.2161        5.5251       -.16412E-05    .50729E-04
  30  norm          6.8496        9.2028        .38964E-05    .34003E-04
  31  Prefactor     4.0568        3.6368        .28668E-06    .78204E-05
  32  Normalizat    .77123        .19777       -.20672E-05   -.15562E-04
  33  Prefactor     .88150        .22968        .19169E-05   -.11146E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.38283
  Prefactor  = 91.844
  Prefactor  = 0.0001
  norm       = 0.779675
  Prefactor  = 1.85906
  Prefactor  = 0.270579
  Prefactor  = 0.0001
  norm       = 0.294519
  Prefactor  = 11.8523
  norm       = 12.7608
  Prefactor  = 11.9852
  Prefactor  = 8.93618
  norm       = 5.32143
  Prefactor  = 38.0042
  norm       = 1.24134
  Prefactor  = 2.44151
  Prefactor  = 5.6371
  Prefactor  = 3.55666
  Prefactor  = 5.64705
  norm       = 1.00003
  Prefactor  = 3.00859
  Prefactor  = 0.0001
  Prefactor  = 70.2547
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 39.1959
  Prefactor  = 36.3119
  norm       = 0.0001
  norm       = 3.21614
  norm       = 6.84964
  Prefactor  = 4.05677
  Normalizat = 0.771228
  Prefactor  = 0.881504
 **********
 **   18 **HESSE 
 **********

 FCN=   6154.879     FROM HESSE     STATUS=OK           785 CALLS     4239 TOTAL
                     EDM=   .37E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.3828        8.9384        .88039E-02   -1.5473    
   2  Prefactor     91.844        129.33        .10609E-02   -1.3788    
   3  Prefactor     .10000E-03    3.7774        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .77968        2.0946        .31025E-01   -1.5531    
   5  Prefactor     1.8591        5.7489        .75332E-02   -1.5435    
   6  Prefactor     .27058        2.9885        .40920E-01   -1.5604    
   7  Prefactor     .10000E-03    19.554        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .29452        .73142        .20842E-01   -1.5599    
   9  Prefactor     11.852        13.918        .29440E-02   -1.5019    
  10  norm          12.761        9.2442        .28148E-02   -1.4993    
  11  Prefactor     11.985        23.101        .29412E-02   -1.5015    
  12  Prefactor     8.9362        69.102        .31103E-02   -1.5110    
  13  norm          5.3214        1.4222        .43536E-02   -1.5247    
  14  Prefactor     38.004        31.604        .16323E-02   -1.4474    
  15  norm          1.2413        2.0790        .10059E-01   -1.5485    
  16  Prefactor     2.4415        6.4966        .64493E-02   -1.5395    
  17  Prefactor     5.6371        2.8509        .42302E-02   -1.5233    
  18  Prefactor     3.5567        2.2999        .53597E-02   -1.5331    
  19  Prefactor     5.6470        5.3180        .42146E-02   -1.5233    
  20  norm          1.0000        3.1126        .13142E-01   -1.5508    
  21  Prefactor     3.0086        10.227        .58145E-02   -1.5361    
  22  Prefactor     .10000E-03    9.9176        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     70.255        61.539        .12232E-02   -1.4030    
  24  Prefactor     .10000E-03    1.9651        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    2.9307        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     39.196        28.702        .15958E-02   -1.4455    
  27  Prefactor     36.312        17.864        .16623E-02   -1.4502    
  28  norm          .10000E-03    2.8190        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          3.2161        5.4441        .56502E-02   -1.5349    
  30  norm          6.8496        9.0076        .38340E-02   -1.5184    
  31  Prefactor     4.0568        3.6499        .50052E-02   -1.5305    
  32  Normalizat    .77123        .17149        .43240E-01   -1.0114    
  33  Prefactor     .88150        .19824        .44771E-01   -.96790    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.69004e-07
Minuit parameter uncertainties:
  1  7.03269
  2  129.728
  3  1.93966e-06
  4  2.09483
  5  5.75058
  6  1.79824
  7  1.76792e-05
  8  0.731446
  9  13.9215
  10  9.24528
  11  23.118
  12  49.7787
  13  1.42222
  14  31.6182
  15  2.07916
  16  6.49849
  17  2.851
  18  2.30001
  19  5.31842
  20  3.1131
  21  10.2325
  22  4.06257e-06
  23  61.5945
  24  2.96181e-07
  25  1.13346e-06
  26  28.7123
  27  17.8667
  28  1.18396e-06
  29  5.44491
  30  9.00935
  31  3.65006
  32  0.171611
  33  0.198406
Done.

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

Extracting fit parameters...

4FGL J1220.1+3432
   Spectrum: PowerLaw
299    Prefactor:  2.442e+00  6.498e+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:  8.815e-01  1.984e-01  0.000e+00  1.000e+01 ( 1.000e+00)
611        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
612        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
609   Normalization:  7.712e-01  1.716e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/488139/likelihoodResults_259545601_259804801_4FGL_J1220.1+3432_daily_bin78.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) = 6154.79487863
delta logL = 0.0839623696529

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6154.78612589
delta logL = 0.0927151084707

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.8041       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6255       1.0000          .0000       10.000    
     3 'Normalizat'    .75939       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88861       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=   6154.786     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      230 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.8026        103.95        .77791E-02    .78858E-03
   2  Index         2.6258        6.3118        .15229        .10094E-03
   3  Normalizat    .75943        .37435E-01    .43078E-01    .21816E-04
   4  Prefactor     .88856        .44733E-01    .44860E-01    .11053E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.80255
  Index      = 2.6258
  Normalizat = 0.759426
  Prefactor  = 0.888556
 **********
 **   18 **HESSE 
 **********

 FCN=   6154.786     FROM HESSE     STATUS=OK            33 CALLS      263 TOTAL
                     EDM=   .22E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.8026        6.2820        .17983E-03   -1.5439    
   2  Index         2.6258        1.5356        .92108E-02   -.49478    
   3  Normalizat    .75943        .18904        .24781E-03   -1.0159    
   4  Prefactor     .88856        .22820        .28030E-03   -.96542    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.23655e-08
Minuit parameter uncertainties:
  1  6.2843
  2  1.56859
  3  0.189204
  4  0.228445
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/488139': 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) = 6154.78612581
delta logL = 0.092715191473

Extracting fit parameters...

4FGL J1220.1+3432
   Spectrum: PowerLaw
299    Prefactor:  1.803e+00  6.284e+00  1.000e-04  1.000e+04 ( 1.000e-13)
300        Index:  2.626e+00  1.569e+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:  8.886e-01  2.284e-01  0.000e+00  1.000e+01 ( 1.000e+00)
611        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
612        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
609   Normalization:  7.594e-01  1.892e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.18
Ra Dec: 185.046 34.538

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/488139/cmap_HighResolution_259545601_259804801_4FGL_J1220.1+3432_daily_bin78.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.97e-03', job_status='DONE', photon_flux_upper_limit='6.57e-08', time_completed='2021-09-05 08:01:37.732095', job_id='488139', GAL2='0.89', fit_tolerance='1e-08', EG2='0.76', EG='0.77', time_epoch_completed='1630854097.73', return_code2='0', ts='0.18', comment='SUCCESS', return_code='0', GAL='0.88', dlogl='9.27e-02', ts2='0.38', photon_index_error='0.00', photon_index='2.11' WHERE bin_id='78' AND source_name='4FGL J1220.1+3432' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 08:01:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0243>
Subject: Job 488139: <4FGL_J1220.1+3432_daily_bin78> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1220.1+3432_daily_bin78 185.046 34.5383 259545601 259804801 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 :                                   878.33 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             329.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   898 sec.
    Turnaround time :                            901 sec.

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

