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


Performing analysis on: 4FGL_J1309.4+4305_daily_bin126
RA = 197.363, Dec = 43.085
tmin = 271987201, tmax = 272246401
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='275328', job_status='RUN', time_executed='2021-09-07 00:48:00.194298', time_epoch_executed='1631000880.19' WHERE source_name='4FGL J1309.4+4305' and cadence='daily' and bin_id='126'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/275328

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/275328/ft1_4FGL_J1309.4+4305_daily_bin126.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/275328/ft2_4FGL_J1309.4+4305_daily_bin126.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/275328/ft1_4FGL_J1309.4+4305_daily_bin126.fits outfile=/scratch/kocevski/275328/ft1_filteredMKT_4FGL_J1309.4+4305_daily_bin126.fits ra=197.363 dec=43.085 rad=12.0 tmin=271987201.0 tmax=272246401.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.34
user 1.16
sys 0.16

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/275328/ft2_4FGL_J1309.4+4305_daily_bin126.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/275328/ft2_4FGL_J1309.4+4305_daily_bin126.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/275328/ft1_filteredMKT_4FGL_J1309.4+4305_daily_bin126.fits evtable="EVENTS" outfile="/scratch/kocevski/275328/ft1_filtered_4FGL_J1309.4+4305_daily_bin126.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.44
user 0.28
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/275328/ft1_filtered_4FGL_J1309.4+4305_daily_bin126.fits" evtable="EVENTS" scfile=/scratch/kocevski/275328/ft2_4FGL_J1309.4+4305_daily_bin126.fits sctable="SC_DATA" outfile=/scratch/kocevski/275328/ltcube_271987201_272246401_4FGL_J1309.4+4305_daily_bin126.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/275328/ft2_4FGL_J1309.4+4305_daily_bin126.fits
.....................!
real 11.99
user 11.65
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/275328/ft1_filtered_4FGL_J1309.4+4305_daily_bin126.fits evtable="EVENTS" scfile=/scratch/kocevski/275328/ft2_4FGL_J1309.4+4305_daily_bin126.fits sctable="SC_DATA" expcube=/scratch/kocevski/275328/ltcube_271987201_272246401_4FGL_J1309.4+4305_daily_bin126.fits outfile=/scratch/kocevski/275328/expmap_271987201_272246401_4FGL_J1309.4+4305_daily_bin126.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/275328/ltcube_271987201_272246401_4FGL_J1309.4+4305_daily_bin126.fits
.....................!
real 156.87
user 153.03
sys 3.32

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 208 point sources and 0 extended sources

Setting source of interest to:
4FGL J1309.4+4305 @ 197.363 43.085

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/275328/ft1_filtered_4FGL_J1309.4+4305_daily_bin126.fits scfile=/scratch/kocevski/275328/ft2_4FGL_J1309.4+4305_daily_bin126.fits outfile=/scratch/kocevski/275328/cmap_271987201_272246401_4FGL_J1309.4+4305_daily_bin126.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=197.363 yref=43.085 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.48
user 0.32
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/275328/ft1_filtered_4FGL_J1309.4+4305_daily_bin126.fits scfile=/scratch/kocevski/275328/ft2_4FGL_J1309.4+4305_daily_bin126.fits outfile=/scratch/kocevski/275328/cmap_HighResolution_271987201_272246401_4FGL_J1309.4+4305_daily_bin126.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=197.363 yref=43.085 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.48
user 0.35
sys 0.12

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/275328/ft1_filtered_4FGL_J1309.4+4305_daily_bin126.fits evtable="EVENTS" scfile=/scratch/kocevski/275328/ft2_4FGL_J1309.4+4305_daily_bin126.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/275328/Model_4FGL_J1309.4+4305_daily_bin126.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/275328/ft1_filtered_4FGL_J1309.4+4305_daily_bin126.fits.....................!
real 39.10
user 36.72
sys 1.04

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/275328/ft1_filtered_4FGL_J1309.4+4305_daily_bin126.fits', '/scratch/kocevski/275328/ft2_4FGL_J1309.4+4305_daily_bin126.fits', expMap='/scratch/kocevski/275328/expmap_271987201_272246401_4FGL_J1309.4+4305_daily_bin126.fits', expCube='/scratch/kocevski/275328/ltcube_271987201_272246401_4FGL_J1309.4+4305_daily_bin126.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/275328/Model_4FGL_J1309.4+4305_daily_bin126.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1309.4+4305'

4FGL J1309.4+4305
   Spectrum: LogParabola
349         norm:  8.179e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
350        alpha:  1.769e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
351         beta:  8.354e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
352           Eb:  1.387e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/275328/ft1_filtered_4FGL_J1309.4+4305_daily_bin126.fits
Spacecraft file(s): /scratch/kocevski/275328/ft2_4FGL_J1309.4+4305_daily_bin126.fits
Exposure map: /scratch/kocevski/275328/expmap_271987201_272246401_4FGL_J1309.4+4305_daily_bin126.fits
Exposure cube: /scratch/kocevski/275328/ltcube_271987201_272246401_4FGL_J1309.4+4305_daily_bin126.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/275328/Model_4FGL_J1309.4+4305_daily_bin126.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) = 5223.46740644

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.5134       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .41718       1.0000         .10000E-03   10000.    
     4 'Prefactor '    12.085       1.0000         .10000E-03   10000.    
     5 'norm      '    .86266       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    59.515       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    6.0209       1.0000         .10000E-03   10000.    
    12 'norm      '    .10023E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .44218E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    23.066       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.5226       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10163E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    75.181       1.0000         .10000E-03   10000.    
    24 'norm      '    9.3055       1.0000         .10000E-03   10000.    
    25 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.4057       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .68102       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6660E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5223.435     FROM MIGRAD    STATUS=CONVERGED    668 CALLS     3328 TOTAL
                     EDM=   .29E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.5144        5.4951        .39512E-05   -.26851E-03
   2  Prefactor     .10000E-03    17.720        .73410E-06** at limit **
   3  Prefactor     .25054        16.444       -.44624E-06    .43834E-05
   4  Prefactor     12.076        24.619        .12112E-05    .27171E-04
   5  norm          .86310        1.9233        .19606E-06    .16945E-03
   6  Prefactor     .10000E-03    4.3363       -.38055E-07** at limit **
   7  norm          .10000E-03    1.5108        .21531E-07** at limit **
   8  Prefactor     59.500        52.650        .14084E-05    .45179E-04
   9  Prefactor     .10000E-03    21.577       -.38795E-06** at limit **
  10  Prefactor     .10000E-03    9.1793       -.17466E-07** at limit **
  11  norm          6.0185        6.9657        .15558E-06   -.30961E-04
  12  norm          .10000E-03    4.6078       -.49580E-07** at limit **
  13  norm          .10019E-03    3.2641        .72416E-06** at limit **
  14  norm          23.066        10.172        .14217E-06   -.17105E-03
  15  norm          .10000E-03    1.5834        .35069E-07** at limit **
  16  Prefactor     1.5221        3.2597        .84533E-07   -.11388E-03
  17  Prefactor     .10000E-03    4.7502        .24656E-08** at limit **
  18  Prefactor     .10000E-03    10.634       -.29097E-07** at limit **
  19  Prefactor     .10000E-03    32.440        .74741E-07** at limit **
  20  Prefactor     .10000E-03    21.015       -.28589E-06** at limit **
  21  Prefactor     .10000E-03    24.348        .86210E-06** at limit **
  22  norm          .10000E-03    2.3308        .10531E-06** at limit **
  23  Prefactor     75.140        72.793        .60834E-05    .15798E-03
  24  norm          9.3042        2.5463       -.41002E-08   -.13628E-03
  25  norm          .10000E-03    6.4506       -.11161E-06** at limit **
  26  Normalizat    1.4062        .18496        .37139E-06   -.82495E-05
  27  Prefactor     .68062        .21952       -.26326E-05   -.97609E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.51439
  Prefactor  = 0.0001
  Prefactor  = 0.250539
  Prefactor  = 12.0762
  norm       = 0.863105
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 59.5
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.01849
  norm       = 0.0001
  norm       = 0.000100192
  norm       = 23.0657
  norm       = 0.0001
  Prefactor  = 1.5221
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 75.1403
  norm       = 9.30418
  norm       = 0.0001
  Normalizat = 1.40617
  Prefactor  = 0.680624
 **********
 **   18 **HESSE 
 **********

 FCN=   5223.435     FROM HESSE     STATUS=OK           496 CALLS     3824 TOTAL
                     EDM=   .42E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.5144        5.5421        .12254E-02   -1.5391    
   2  Prefactor     .10000E-03    17.813        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .25054        20.961        .90917E-01   -1.5608    
   4  Prefactor     12.076        24.623        .11523E-03   -1.5013    
   5  norm          .86310        1.6133        .14485E-02   -1.5522    
   6  Prefactor     .10000E-03    4.3664        .14690E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    1.5132        .86750E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     59.500        52.689        .52007E-04   -1.4164    
   9  Prefactor     .10000E-03    21.633        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    9.1999        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          6.0185        6.9076        .16364E-03   -1.5217    
  12  norm          .10000E-03    4.6091        .15152E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10019E-03    52.692        .20905E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          23.066        8.7867        .83403E-04   -1.4747    
  15  norm          .10000E-03    1.5917        .88807E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     1.5221        3.1841        .17592E-03   -1.5461    
  17  Prefactor     .10000E-03    4.7530        .15381E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    10.636        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    32.466        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    21.179        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    24.407        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    2.3455        .10775E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     75.140        73.373        .23154E-03   -1.3972    
  24  norm          9.3042        2.5525        .57557E-04   -1.5098    
  25  norm          .10000E-03    6.4632        .17929E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.4062        .21283        .21058E-03   -.80450    
  27  Prefactor     .68062        .25037        .35146E-03   -1.0429    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.19806e-09
Minuit parameter uncertainties:
  1  5.54326
  2  9.19152e-05
  3  4.58395
  4  24.6434
  5  1.61342
  6  5.49681e-06
  7  9.71047e-07
  8  52.7301
  9  3.29279e-05
  10  7.22909e-06
  11  6.9085
  12  5.04345e-06
  13  0.00636928
  14  8.78722
  15  2.59921e-06
  16  3.18449
  17  1.67961e-06
  18  2.01612e-08
  19  5.75284e-06
  20  2.294e-05
  21  9.66409e-05
  22  8.62448e-06
  23  73.4619
  24  2.55251
  25  1.49814e-05
  26  0.212968
  27  0.250787
Done.

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

Extracting fit parameters...

4FGL J1309.4+4305
   Spectrum: LogParabola
349         norm:  1.000e-04  5.043e-06  1.000e-04  1.000e+04 ( 1.000e-13)
350        alpha:  1.769e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
351         beta:  8.354e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
352           Eb:  1.387e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
663    Prefactor:  6.806e-01  2.508e-01  0.000e+00  1.000e+01 ( 1.000e+00)
664        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
665        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
662   Normalization:  1.406e+00  2.130e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 197.363 43.085
Photon Flux Upper Limit: 2.75e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.02e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/275328/likelihoodResults_271987201_272246401_4FGL_J1309.4+4305_daily_bin126.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5223.4363476
delta logL = -0.00094155448096

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5223.43540603
delta logL = 1.58688635565e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.7615       1.0000          .0000       5.0000    
     3 'Normalizat'    1.4062       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .68062       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6660E+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=   5223.435     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      238 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    962.22        .15189E-02** at limit **
   2  alpha         1.5617        3.1982        .17475       -.25892E-07
   3  Normalizat    1.4062        .11070        .21058E-03    .86920E-05
   4  Prefactor     .68063        .13400        .35147E-03    .55960E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.56171
  Normalizat = 1.40617
  Prefactor  = 0.680626
 **********
 **   18 **HESSE 
 **********

 FCN=   5223.435     FROM HESSE     STATUS=OK            23 CALLS      261 TOTAL
                     EDM=   .38E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    4.7723        .30378E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.5617        3.2598        .69902E-02   -.38474    
   3  Normalizat    1.4062        .20570        .84232E-05   -.80450    
   4  Prefactor     .68063        .24881        .14059E-04   -1.0429    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.84734e-11
Minuit parameter uncertainties:
  1  5.35344e-05
  2  235.278
  3  0.205821
  4  0.24922
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/275328': 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) = 5223.43540567
delta logL = 3.69957888324e-07

Extracting fit parameters...

4FGL J1309.4+4305
   Spectrum: LogParabola
349         norm:  1.000e-04  5.353e-05  1.000e-04  1.000e+04 ( 1.000e-13)
350        alpha:  1.562e+00  2.353e+02  0.000e+00  5.000e+00 ( 1.000e+00)
351         beta:  8.354e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
352           Eb:  1.387e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
663    Prefactor:  6.806e-01  2.492e-01  0.000e+00  1.000e+01 ( 1.000e+00)
664        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
665        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
662   Normalization:  1.406e+00  2.058e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 197.363 43.085

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/275328/cmap_HighResolution_271987201_272246401_4FGL_J1309.4+4305_daily_bin126.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.02e-05', job_status='DONE', photon_flux_upper_limit='2.75e-08', time_completed='2021-09-07 00:58:24.726909', job_id='275328', GAL2='0.68', fit_tolerance='1e-08', EG2='1.41', EG='1.41', time_epoch_completed='1631001504.73', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.68', dlogl='3.70e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.77' WHERE bin_id='126' AND source_name='4FGL J1309.4+4305' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 00:58:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0071>
Subject: Job 275328: <4FGL_J1309.4+4305_daily_bin126> in cluster <slac> Done

Job <4FGL_J1309.4+4305_daily_bin126> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep  7 00:45:21 2021
Job was executed on host(s) <bullet0071>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 00:46:00 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep  7 00:46:00 2021
Terminated at Tue Sep  7 00:58:25 2021
Results reported at Tue Sep  7 00:58:25 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1309.4+4305_daily_bin126 197.363 43.085 271987201 272246401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1309.4+4305 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   621.00 sec.
    Max Memory :                                 1169 MB
    Average Memory :                             331.64 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   746 sec.
    Turnaround time :                            784 sec.

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

