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


Performing analysis on: 4FGL_J1309.4+4305_daily_bin121
RA = 197.363, Dec = 43.085
tmin = 270691201, tmax = 270950401
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='275320', job_status='RUN', time_executed='2021-09-07 00:46:13.612637', time_epoch_executed='1631000773.61' WHERE source_name='4FGL J1309.4+4305' and cadence='daily' and bin_id='121'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/275320

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/275320/ft1_4FGL_J1309.4+4305_daily_bin121.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/275320/ft2_4FGL_J1309.4+4305_daily_bin121.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/275320/ft1_4FGL_J1309.4+4305_daily_bin121.fits outfile=/scratch/kocevski/275320/ft1_filteredMKT_4FGL_J1309.4+4305_daily_bin121.fits ra=197.363 dec=43.085 rad=12.0 tmin=270691201.0 tmax=270950401.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.63
user 1.44
sys 0.17

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/275320/ft1_filtered_4FGL_J1309.4+4305_daily_bin121.fits" evtable="EVENTS" scfile=/scratch/kocevski/275320/ft2_4FGL_J1309.4+4305_daily_bin121.fits sctable="SC_DATA" outfile=/scratch/kocevski/275320/ltcube_270691201_270950401_4FGL_J1309.4+4305_daily_bin121.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/275320/ft2_4FGL_J1309.4+4305_daily_bin121.fits
.....................!
real 14.95
user 14.54
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/275320/ft1_filtered_4FGL_J1309.4+4305_daily_bin121.fits evtable="EVENTS" scfile=/scratch/kocevski/275320/ft2_4FGL_J1309.4+4305_daily_bin121.fits sctable="SC_DATA" expcube=/scratch/kocevski/275320/ltcube_270691201_270950401_4FGL_J1309.4+4305_daily_bin121.fits outfile=/scratch/kocevski/275320/expmap_270691201_270950401_4FGL_J1309.4+4305_daily_bin121.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/275320/ltcube_270691201_270950401_4FGL_J1309.4+4305_daily_bin121.fits
.....................!
real 192.14
user 186.89
sys 4.73

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/275320/ft1_filtered_4FGL_J1309.4+4305_daily_bin121.fits scfile=/scratch/kocevski/275320/ft2_4FGL_J1309.4+4305_daily_bin121.fits outfile=/scratch/kocevski/275320/cmap_270691201_270950401_4FGL_J1309.4+4305_daily_bin121.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.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/275320/ft1_filtered_4FGL_J1309.4+4305_daily_bin121.fits scfile=/scratch/kocevski/275320/ft2_4FGL_J1309.4+4305_daily_bin121.fits outfile=/scratch/kocevski/275320/cmap_HighResolution_270691201_270950401_4FGL_J1309.4+4305_daily_bin121.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.54
user 0.38
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/275320/ft1_filtered_4FGL_J1309.4+4305_daily_bin121.fits', '/scratch/kocevski/275320/ft2_4FGL_J1309.4+4305_daily_bin121.fits', expMap='/scratch/kocevski/275320/expmap_270691201_270950401_4FGL_J1309.4+4305_daily_bin121.fits', expCube='/scratch/kocevski/275320/ltcube_270691201_270950401_4FGL_J1309.4+4305_daily_bin121.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/275320/Model_4FGL_J1309.4+4305_daily_bin121.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/275320/ft1_filtered_4FGL_J1309.4+4305_daily_bin121.fits
Spacecraft file(s): /scratch/kocevski/275320/ft2_4FGL_J1309.4+4305_daily_bin121.fits
Exposure map: /scratch/kocevski/275320/expmap_270691201_270950401_4FGL_J1309.4+4305_daily_bin121.fits
Exposure cube: /scratch/kocevski/275320/ltcube_270691201_270950401_4FGL_J1309.4+4305_daily_bin121.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/275320/Model_4FGL_J1309.4+4305_daily_bin121.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) = 6982.98432206

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    37.197       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    4.9635       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .73248E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .52888       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    23.409       1.0000         .10000E-03   10000.    
    10 'Prefactor '    19.665       1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .28862       1.0000         .10000E-03   10000.    
    13 'norm      '    .10794E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .16011E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    12.680       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    100.28       1.0000         .10000E-03   10000.    
    20 'Prefactor '    3.2023       1.0000         .10000E-03   10000.    
    21 'Prefactor '    14.607       1.0000         .10000E-03   10000.    
    22 'norm      '    .11073E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    22.202       1.0000         .10000E-03   10000.    
    24 'norm      '    7.2099       1.0000         .10000E-03   10000.    
    25 'norm      '    9.4947       1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.0928       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .93782       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=   6982.842     FROM MIGRAD    STATUS=CONVERGED    679 CALLS     3428 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    6.9929       -.88522E-07** at limit **
   2  Prefactor     37.198        20.556        .43790E-06    .23363E-04
   3  Prefactor     .10000E-03    7.3159       -.44719E-07** at limit **
   4  Prefactor     .10000E-03    16.915       -.24169E-06** at limit **
   5  norm          4.9635        2.1809        .30859E-07   -.82401E-05
   6  Prefactor     .10012E-03    4.3675       -.29043E-06** at limit **
   7  norm          .52910        3.8999        .29238E-05   -.75566E-04
   8  Prefactor     .10000E-03    81.123        .10687E-05** at limit **
   9  Prefactor     23.439        23.145       -.17502E-05   -.32927E-03
  10  Prefactor     19.693        18.103       -.34243E-06   -.27834E-03
  11  norm          .10000E-03    3.0049        .10279E-06** at limit **
  12  norm          .36459        10.230        .12509E-05   -.24462E-03
  13  norm          .10000E-03    1.4680        .14973E-06** at limit **
  14  norm          .10000E-03    2.3583       -.55282E-07** at limit **
  15  norm          .10000E-03    3.7254       -.20458E-06** at limit **
  16  Prefactor     .10000E-03    2.1618        .22903E-05** at limit **
  17  Prefactor     12.721        13.807       -.21917E-05   -.66849E-03
  18  Prefactor     .10000E-03    20.999        .15622E-06** at limit **
  19  Prefactor     100.34        80.895        .21278E-05   -.10276E-03
  20  Prefactor     3.1956        21.575        .28047E-05    .49123E-04
  21  Prefactor     14.605        21.771        .52412E-06    .10653E-04
  22  norm          .10000E-03    3.0661       -.36666E-06** at limit **
  23  Prefactor     22.231        44.495        .40206E-05    .91841E-04
  24  norm          7.2099        1.9496        .65136E-07   -.11691E-03
  25  norm          9.4971        9.9433        .67311E-06   -.51596E-04
  26  Normalizat    1.0928        .17326       -.26691E-05   -.40562E-03
  27  Prefactor     .93778        .20609        .19056E-05   -.43295E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 37.1977
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.96348
  Prefactor  = 0.000100125
  norm       = 0.5291
  Prefactor  = 0.000100001
  Prefactor  = 23.4389
  Prefactor  = 19.693
  norm       = 0.0001
  norm       = 0.36459
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100005
  Prefactor  = 12.7205
  Prefactor  = 0.0001
  Prefactor  = 100.338
  Prefactor  = 3.19565
  Prefactor  = 14.6049
  norm       = 0.0001
  Prefactor  = 22.2312
  norm       = 7.20993
  norm       = 9.49711
  Normalizat = 1.0928
  Prefactor  = 0.937779
 **********
 **   18 **HESSE 
 **********

 FCN=   6982.842     FROM HESSE     STATUS=OK           498 CALLS     3926 TOTAL
                     EDM=   .44E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    7.1146        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     37.198        20.547        .65713E-04   -1.4487    
   3  Prefactor     .10000E-03    7.3291        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    17.034        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          4.9635        2.1811        .79479E-04   -1.5262    
   6  Prefactor     .10012E-03    4.2968        .54842E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .52910        3.8420        .30265E-03   -1.5562    
   8  Prefactor     .10000E-03    81.661        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     23.439        23.032        .82791E-04   -1.4739    
  10  Prefactor     19.693        18.178        .90319E-04   -1.4820    
  11  norm          .10000E-03    3.0590        .14128E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .36459        102.39        .50863E-02   -1.5587    
  13  norm          .10000E-03    2.6067        .19369E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    2.3749        .12517E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    3.8648        .31454E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    3.3228        .21195E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     12.721        14.015        .11249E-03   -1.4994    
  18  Prefactor     .10000E-03    21.052        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     100.34        80.919        .20074E-03   -1.3701    
  20  Prefactor     3.1956        18.187        .22641E-03   -1.5350    
  21  Prefactor     14.605        21.760        .10480E-03   -1.4943    
  22  norm          .10000E-03    5.4748        .25648E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     22.231        44.863        .85008E-04   -1.4765    
  24  norm          7.2099        1.9516        .57680E-04   -1.5171    
  25  norm          9.4971        9.9398        .65028E-03   -1.5092    
  26  Normalizat    1.0928        .20301        .22682E-03   -.89983    
  27  Prefactor     .93778        .24452        .30321E-03   -.94833    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.36739e-09
Minuit parameter uncertainties:
  1  1.29385e-06
  2  20.5509
  3  7.88038e-06
  4  1.92327e-05
  5  2.18113
  6  0.00146368
  7  2.8515
  8  0.000446544
  9  23.0411
  10  18.1827
  11  1.82799e-06
  12  12.2389
  13  8.76441e-06
  14  9.20683e-08
  15  1.13803e-05
  16  0.000257182
  17  14.0189
  18  4.31364e-05
  19  81.0082
  20  15.2542
  21  21.7714
  22  2.51006e-05
  23  44.9315
  24  1.95163
  25  9.94152
  26  0.203159
  27  0.244807
Done.

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

Extracting fit parameters...

4FGL J1309.4+4305
   Spectrum: LogParabola
349         norm:  3.646e-01  1.224e+01  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:  9.378e-01  2.448e-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.093e+00  2.032e-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: 3.92e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.31e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/275320/likelihoodResults_270691201_270950401_4FGL_J1309.4+4305_daily_bin121.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) = 6982.57877699
delta logL = 0.262901261534

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6982.53827818
delta logL = 0.303400078274

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.4156       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.1207       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0654       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94805       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.

 FCN=   6982.538     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      240 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.4323        85.730        .65844E-02    .68953E-03
   2  alpha         3.1176        4.0588        .30558        .63455E-04
   3  Normalizat    1.0649        .40038E-01    .39627E-01   -.47752E-05
   4  Prefactor     .94866        .48574E-01    .68199E-01    .78579E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 2.43225
  alpha      = 3.11761
  Normalizat = 1.06491
  Prefactor  = 0.948662
 **********
 **   18 **HESSE 
 **********

 FCN=   6982.538     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      273 TOTAL
                     EDM=   .12E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.4323        208.75        .16838E-03   -1.5396    
   2  alpha         3.1176        2.8032        .16428E-01    .24963    
   3  Normalizat    1.0649        .24795        .22951E-03   -.90887    
   4  Prefactor     .94866        .30998        .30168E-03   -.94461    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.24687e-06
Minuit parameter uncertainties:
  1  45.2286
  2  9.45482
  3  0.24822
  4  0.31056
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/275320': 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) = 6982.5382716
delta logL = 0.303406656207

Extracting fit parameters...

4FGL J1309.4+4305
   Spectrum: LogParabola
349         norm:  2.432e+00  4.523e+01  1.000e-04  1.000e+04 ( 1.000e-13)
350        alpha:  3.118e+00  9.455e+00  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:  9.487e-01  3.106e-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.065e+00  2.482e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/275320/cmap_HighResolution_270691201_270950401_4FGL_J1309.4+4305_daily_bin121.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.31e-05', job_status='DONE', photon_flux_upper_limit='3.92e-08', time_completed='2021-09-07 01:01:28.060827', job_id='275320', GAL2='0.95', fit_tolerance='1e-08', EG2='1.06', EG='1.09', time_epoch_completed='1631001688.06', return_code2='102', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.94', dlogl='3.03e-01', ts2='0.62', photon_index_error='0.00', photon_index='1.77' WHERE bin_id='121' AND source_name='4FGL J1309.4+4305' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 01:01:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0070>
Subject: Job 275320: <4FGL_J1309.4+4305_daily_bin121> in cluster <slac> Done

Job <4FGL_J1309.4+4305_daily_bin121> 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) <bullet0070>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 00:45:57 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:45:57 2021
Terminated at Tue Sep  7 01:01:28 2021
Results reported at Tue Sep  7 01:01:28 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1309.4+4305_daily_bin121 197.363 43.085 270691201 270950401 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 :                                   911.32 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             327.94 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   931 sec.
    Turnaround time :                            967 sec.

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

