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


Performing analysis on: 4FGL_J1309.4+4305_daily_bin90
RA = 197.363, Dec = 43.085
tmin = 262656001, tmax = 262915201
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='275273', job_status='RUN', time_executed='2021-09-07 00:45:36.426015', time_epoch_executed='1631000736.43' WHERE source_name='4FGL J1309.4+4305' and cadence='daily' and bin_id='90'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/275273

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/275273/ft1_4FGL_J1309.4+4305_daily_bin90.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/275273/ft2_4FGL_J1309.4+4305_daily_bin90.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/275273/ft1_4FGL_J1309.4+4305_daily_bin90.fits outfile=/scratch/kocevski/275273/ft1_filteredMKT_4FGL_J1309.4+4305_daily_bin90.fits ra=197.363 dec=43.085 rad=12.0 tmin=262656001.0 tmax=262915201.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.44
user 1.27
sys 0.15

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/275273/ft1_filtered_4FGL_J1309.4+4305_daily_bin90.fits" evtable="EVENTS" scfile=/scratch/kocevski/275273/ft2_4FGL_J1309.4+4305_daily_bin90.fits sctable="SC_DATA" outfile=/scratch/kocevski/275273/ltcube_262656001_262915201_4FGL_J1309.4+4305_daily_bin90.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/275273/ft2_4FGL_J1309.4+4305_daily_bin90.fits
.....................!
real 18.69
user 18.27
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/275273/ft1_filtered_4FGL_J1309.4+4305_daily_bin90.fits evtable="EVENTS" scfile=/scratch/kocevski/275273/ft2_4FGL_J1309.4+4305_daily_bin90.fits sctable="SC_DATA" expcube=/scratch/kocevski/275273/ltcube_262656001_262915201_4FGL_J1309.4+4305_daily_bin90.fits outfile=/scratch/kocevski/275273/expmap_262656001_262915201_4FGL_J1309.4+4305_daily_bin90.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/275273/ltcube_262656001_262915201_4FGL_J1309.4+4305_daily_bin90.fits
.....................!
real 193.05
user 187.65
sys 4.83

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/275273/ft1_filtered_4FGL_J1309.4+4305_daily_bin90.fits scfile=/scratch/kocevski/275273/ft2_4FGL_J1309.4+4305_daily_bin90.fits outfile=/scratch/kocevski/275273/cmap_262656001_262915201_4FGL_J1309.4+4305_daily_bin90.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.55
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/275273/ft1_filtered_4FGL_J1309.4+4305_daily_bin90.fits scfile=/scratch/kocevski/275273/ft2_4FGL_J1309.4+4305_daily_bin90.fits outfile=/scratch/kocevski/275273/cmap_HighResolution_262656001_262915201_4FGL_J1309.4+4305_daily_bin90.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.55
user 0.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    12.097       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    3.4214       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .11646E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    4.2080       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    18.163       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    11.893       1.0000         .10000E-03   10000.    
    12 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    15.703       1.0000         .10000E-03   10000.    
    14 'norm      '    .11661E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    17.009       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.4678       1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.2491       1.0000         .10000E-03   10000.    
    19 'Prefactor '    35.545       1.0000         .10000E-03   10000.    
    20 'Prefactor '    7.2026       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10981E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10043E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    18.489       1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.6601       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .76193E-01   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=   4533.257     FROM MIGRAD    STATUS=CONVERGED   1160 CALLS     4306 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          12.098        7.8444        .11518E-03   -.62185E-05
   2  Prefactor     .10000E-03    13.719        .18142E-02** at limit **
   3  Prefactor     .10000E-03    11.482        .18142E-02** at limit **
   4  Prefactor     .10000E-03    9.8016        .18142E-02** at limit **
   5  norm          3.4214        2.3661        .83687E-04    .39532E-04
   6  Prefactor     .10000E-03    37.147        .28319E-02** at limit **
   7  norm          4.2061        5.8688        .16708E-03    .13044E-03
   8  Prefactor     .10000E-03    34.280        .18142E-02** at limit **
   9  Prefactor     18.178        37.483        .93977E-04    .39195E-04
  10  Prefactor     .10000E-03    16.952        .18142E-02** at limit **
  11  norm          11.892        6.9040        .11616E-03    .68704E-04
  12  norm          .10000E-03    6.2401        .16421E-02** at limit **
  13  norm          15.704        6.3393        .94911E-04    .93550E-04
  14  norm          .10000E-03    55.521        .35276E-02** at limit **
  15  norm          17.009        6.4899        .97115E-04    .39802E-05
  16  Prefactor     .10000E-03    2.2901        .98709E-03** at limit **
  17  Prefactor     3.4656        16.389        .21716E-03    .10942E-04
  18  Prefactor     3.2526        61.308        .22470E-03    .35417E-05
  19  Prefactor     35.543        66.206        .67219E-04    .37209E-05
  20  Prefactor     7.2089        11.569        .14946E-03   -.47845E-04
  21  Prefactor     .10000E-03    13.216        .18142E-02** at limit **
  22  norm          .10000E-03    5.2811        .21553E-02** at limit **
  23  Prefactor     .10000E-03    23.277        .18142E-02** at limit **
  24  norm          .10000E-03    2.9667        .14733E-02** at limit **
  25  norm          18.491        16.954        .93145E-04    .91540E-05
  26  Normalizat    1.6601        .24305        .18264E-03    .22097E-04
  27  Prefactor     .76235E-01    .27263        .82196E-02    .30629E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 12.0978
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.42143
  Prefactor  = 0.0001
  norm       = 4.20612
  Prefactor  = 0.0001
  Prefactor  = 18.1776
  Prefactor  = 0.0001
  norm       = 11.8918
  norm       = 0.0001
  norm       = 15.704
  norm       = 0.0001
  norm       = 17.0091
  Prefactor  = 0.0001
  Prefactor  = 3.46563
  Prefactor  = 3.25259
  Prefactor  = 35.5429
  Prefactor  = 7.2089
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 18.4907
  Normalizat = 1.6601
  Prefactor  = 0.0762351
 **********
 **   18 **HESSE 
 **********

 FCN=   4533.257     FROM HESSE     STATUS=OK           462 CALLS     4768 TOTAL
                     EDM=   .68E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          12.098        7.8438        .46071E-05   -1.5012    
   2  Prefactor     .10000E-03    13.720        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    11.484        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    9.8020        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          3.4214        2.3658        .33475E-05   -1.5338    
   6  Prefactor     .10000E-03    38.733        .11328E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          4.2061        5.8645        .66830E-05   -1.5298    
   8  Prefactor     .10000E-03    34.282        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     18.178        37.457        .37591E-05   -1.4855    
  10  Prefactor     .10000E-03    16.958        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          11.892        6.9019        .46465E-05   -1.5018    
  12  norm          .10000E-03    6.2403        .32841E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          15.704        6.2862        .37964E-05   -1.4915    
  14  norm          .10000E-03    56.068        .14111E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          17.009        6.4889        .38846E-05   -1.4883    
  16  Prefactor     .10000E-03    2.2903        .19742E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     3.4656        16.369        .86863E-05   -1.5336    
  18  Prefactor     3.2526        61.193        .89878E-05   -1.5347    
  19  Prefactor     35.543        66.222        .26887E-05   -1.4515    
  20  Prefactor     7.2089        11.566        .59784E-05   -1.5171    
  21  Prefactor     .10000E-03    13.217        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    5.2967        .43105E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    23.277        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    2.9834        .29465E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          18.491        16.955        .37258E-05   -1.4848    
  26  Normalizat    1.6601        .22664        .73056E-05   -.73374    
  27  Prefactor     .76235E-01    .25391        .32879E-03   -1.3959    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.82536e-11
Minuit parameter uncertainties:
  1  7.8445
  2  4.70198e-05
  3  2.10725e-05
  4  8.60546e-06
  5  2.36588
  6  0.000172997
  7  5.86535
  8  0.000107827
  9  37.5057
  10  7.39698e-06
  11  6.90232
  12  2.37693e-06
  13  6.28647
  14  0.000270648
  15  6.48916
  16  8.8669e-06
  17  15.0704
  18  28.2491
  19  66.3595
  20  11.5695
  21  2.22553e-05
  22  2.54632e-05
  23  0.000104941
  24  1.38677e-05
  25  16.9594
  26  0.226784
  27  0.257657
Done.

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

Extracting fit parameters...

4FGL J1309.4+4305
   Spectrum: LogParabola
349         norm:  1.000e-04  2.377e-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:  7.624e-02  2.577e-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.660e+00  2.268e-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.37e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.70e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/275273/likelihoodResults_262656001_262915201_4FGL_J1309.4+4305_daily_bin90.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) = 4533.25805629
delta logL = -0.000732765553039

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4533.25732357
delta logL = -4.27371560363e-08

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 'alpha     '    1.7723       1.0000          .0000       5.0000    
     3 'Normalizat'    1.6600       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .76311E-01   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=   4533.257     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      247 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10021E-03    638.14        .16428E-02** at limit **
   2  alpha         1.8280        2.5756        .50000       -.15157E-05
   3  Normalizat    1.6601        .54208E-01    .18264E-03   -.51664E-04
   4  Prefactor     .76235E-01    .62480E-01    .82195E-02    .37890E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100208
  alpha      = 1.82802
  Normalizat = 1.6601
  Prefactor  = 0.0762346
 **********
 **   18 **HESSE 
 **********

 FCN=   4533.257     FROM HESSE     STATUS=OK            31 CALLS      278 TOTAL
                     EDM=   .37E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10021E-03    13.366        .32857E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.8280        3.0779        .50000       -.27214    
   3  Normalizat    1.6601        .22244        .73056E-05   -.73374    
   4  Prefactor     .76235E-01    .25307        .16439E-02   -1.3959    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.65917e-08
Minuit parameter uncertainties:
  1  0.00333572
  2  400.756
  3  0.222572
  4  0.256784
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/275273': 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) = 4533.25732349
delta logL = 3.59086698154e-08

Extracting fit parameters...

4FGL J1309.4+4305
   Spectrum: LogParabola
349         norm:  1.002e-04  3.336e-03  1.000e-04  1.000e+04 ( 1.000e-13)
350        alpha:  1.828e+00  4.008e+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:  7.623e-02  2.568e-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.660e+00  2.226e-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/275273/cmap_HighResolution_262656001_262915201_4FGL_J1309.4+4305_daily_bin90.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.70e-05', job_status='DONE', photon_flux_upper_limit='3.37e-08', time_completed='2021-09-07 00:58:56.437410', job_id='275273', GAL2='0.08', fit_tolerance='1e-08', EG2='1.66', EG='1.66', time_epoch_completed='1631001536.44', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.08', dlogl='3.59e-08', ts2='-0.00', photon_index_error='0.00', photon_index='1.77' WHERE bin_id='90' AND source_name='4FGL J1309.4+4305' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 00:58:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0022>
Subject: Job 275273: <4FGL_J1309.4+4305_daily_bin90> in cluster <slac> Done

Job <4FGL_J1309.4+4305_daily_bin90> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep  7 00:45:17 2021
Job was executed on host(s) <bullet0022>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 00:45:20 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:20 2021
Terminated at Tue Sep  7 00:58:57 2021
Results reported at Tue Sep  7 00:58:57 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1309.4+4305_daily_bin90 197.363 43.085 262656001 262915201 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 :                                   798.04 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             294.11 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   816 sec.
    Turnaround time :                            820 sec.

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

