/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 32 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_J1257.2+3646_daily_bin24
RA = 194.31, Dec = 36.7706
tmin = 245548801, tmax = 245808001
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='31685', job_status='RUN', time_executed='2021-09-06 11:26:13.573120', time_epoch_executed='1630952773.57' WHERE source_name='4FGL J1257.2+3646' and cadence='daily' and bin_id='24'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/31685

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/31685/ft1_4FGL_J1257.2+3646_daily_bin24.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/31685/ft2_4FGL_J1257.2+3646_daily_bin24.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/31685/ft1_4FGL_J1257.2+3646_daily_bin24.fits outfile=/scratch/kocevski/31685/ft1_filteredMKT_4FGL_J1257.2+3646_daily_bin24.fits ra=194.31 dec=36.7706 rad=12.0 tmin=245548801.0 tmax=245808001.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.43
user 1.26
sys 0.15

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/31685/ft2_4FGL_J1257.2+3646_daily_bin24.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/31685/ft2_4FGL_J1257.2+3646_daily_bin24.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/31685/ft1_filteredMKT_4FGL_J1257.2+3646_daily_bin24.fits evtable="EVENTS" outfile="/scratch/kocevski/31685/ft1_filtered_4FGL_J1257.2+3646_daily_bin24.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.49
user 0.33
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/31685/ft1_filtered_4FGL_J1257.2+3646_daily_bin24.fits" evtable="EVENTS" scfile=/scratch/kocevski/31685/ft2_4FGL_J1257.2+3646_daily_bin24.fits sctable="SC_DATA" outfile=/scratch/kocevski/31685/ltcube_245548801_245808001_4FGL_J1257.2+3646_daily_bin24.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/31685/ft2_4FGL_J1257.2+3646_daily_bin24.fits
.....................!
real 13.14
user 12.58
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/31685/ft1_filtered_4FGL_J1257.2+3646_daily_bin24.fits evtable="EVENTS" scfile=/scratch/kocevski/31685/ft2_4FGL_J1257.2+3646_daily_bin24.fits sctable="SC_DATA" expcube=/scratch/kocevski/31685/ltcube_245548801_245808001_4FGL_J1257.2+3646_daily_bin24.fits outfile=/scratch/kocevski/31685/expmap_245548801_245808001_4FGL_J1257.2+3646_daily_bin24.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/31685/ltcube_245548801_245808001_4FGL_J1257.2+3646_daily_bin24.fits
.....................!
real 190.78
user 185.65
sys 4.70

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

Setting source of interest to:
4FGL J1257.2+3646 @ 194.31 36.7706

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/31685/ft1_filtered_4FGL_J1257.2+3646_daily_bin24.fits scfile=/scratch/kocevski/31685/ft2_4FGL_J1257.2+3646_daily_bin24.fits outfile=/scratch/kocevski/31685/cmap_245548801_245808001_4FGL_J1257.2+3646_daily_bin24.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=194.31 yref=36.7706 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.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/31685/ft1_filtered_4FGL_J1257.2+3646_daily_bin24.fits scfile=/scratch/kocevski/31685/ft2_4FGL_J1257.2+3646_daily_bin24.fits outfile=/scratch/kocevski/31685/cmap_HighResolution_245548801_245808001_4FGL_J1257.2+3646_daily_bin24.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=194.31 yref=36.7706 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.39
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/31685/ft1_filtered_4FGL_J1257.2+3646_daily_bin24.fits evtable="EVENTS" scfile=/scratch/kocevski/31685/ft2_4FGL_J1257.2+3646_daily_bin24.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/31685/Model_4FGL_J1257.2+3646_daily_bin24.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/31685/ft1_filtered_4FGL_J1257.2+3646_daily_bin24.fits.....................!
real 51.41
user 50.07
sys 1.25

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/31685/ft1_filtered_4FGL_J1257.2+3646_daily_bin24.fits', '/scratch/kocevski/31685/ft2_4FGL_J1257.2+3646_daily_bin24.fits', expMap='/scratch/kocevski/31685/expmap_245548801_245808001_4FGL_J1257.2+3646_daily_bin24.fits', expCube='/scratch/kocevski/31685/ltcube_245548801_245808001_4FGL_J1257.2+3646_daily_bin24.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/31685/Model_4FGL_J1257.2+3646_daily_bin24.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1257.2+3646'

4FGL J1257.2+3646
   Spectrum: PowerLaw
300    Prefactor:  1.472e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
301        Index:  2.027e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
302        Scale:  1.897e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/31685/ft1_filtered_4FGL_J1257.2+3646_daily_bin24.fits
Spacecraft file(s): /scratch/kocevski/31685/ft2_4FGL_J1257.2+3646_daily_bin24.fits
Exposure map: /scratch/kocevski/31685/expmap_245548801_245808001_4FGL_J1257.2+3646_daily_bin24.fits
Exposure cube: /scratch/kocevski/31685/ltcube_245548801_245808001_4FGL_J1257.2+3646_daily_bin24.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/31685/Model_4FGL_J1257.2+3646_daily_bin24.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) = 6390.47488497

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    27.280       1.0000         .10000E-03   10000.    
     3 'Prefactor '    9.0214       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10997E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.4049       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    4.3358       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10056E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    14.400       1.0000         .10000E-03   10000.    
    17 'norm      '    12.328       1.0000         .10000E-03   10000.    
    18 'norm      '    6.2546       1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.2370       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    8.7095       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .15610E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0529       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .80851       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6020E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6390.405     FROM MIGRAD    STATUS=CONVERGED    586 CALLS     2452 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    32.554       -.79347E-05** at limit **
   2  norm          27.285        5.3029        .70419E-06   -.24604E-03
   3  Prefactor     9.0222        6.1803        .80926E-07   -.56611E-05
   4  Prefactor     .10000E-03    1.2066       -.34441E-06** at limit **
   5  Prefactor     3.4052        2.2371       -.18862E-06    .90790E-04
   6  Prefactor     .10000E-03    7.5589       -.25335E-05** at limit **
   7  Prefactor     .10000E-03    7.0193        .13477E-05** at limit **
   8  Prefactor     .10000E-03    9.3107        .23761E-05** at limit **
   9  Prefactor     .10000E-03    16.793        .89177E-05** at limit **
  10  Prefactor     .10000E-03    4.0817        .18616E-06** at limit **
  11  norm          4.3367        4.1680       -.11409E-05   -.83123E-04
  12  Prefactor     .10000E-03    26.334       -.48645E-05** at limit **
  13  Prefactor     .10000E-03    6.3920        .14784E-06** at limit **
  14  Prefactor     .10000E-03    14.124       -.70343E-05** at limit **
  15  norm          .10000E-03    1.6151        .48561E-08** at limit **
  16  norm          14.401        11.527       -.18054E-07    .16359E-04
  17  norm          12.328        6.5043        .61893E-06   -.37086E-03
  18  norm          6.2545        10.454        .14590E-06   -.25944E-03
  19  Prefactor     2.2375        3.0099       -.47266E-06   -.61225E-03
  20  Prefactor     .10000E-03    4.1472       -.17328E-06** at limit **
  21  Prefactor     .10000E-03    38.833        .12580E-04** at limit **
  22  Prefactor     8.7095        12.709       -.21532E-05   -.10245E-02
  23  Prefactor     .10000E-03    112.19       -.52804E-05** at limit **
  24  Normalizat    1.0528        .16140        .14993E-06    .15405E-03
  25  Prefactor     .80859        .19994        .22638E-06    .83849E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  norm       = 27.2854
  Prefactor  = 9.02221
  Prefactor  = 0.0001
  Prefactor  = 3.40522
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  norm       = 4.33667
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  norm       = 0.0001
  norm       = 14.4005
  norm       = 12.3282
  norm       = 6.25451
  Prefactor  = 2.23752
  Prefactor  = 0.0001
  Prefactor  = 0.000100005
  Prefactor  = 8.70955
  Prefactor  = 0.000100001
  Normalizat = 1.05283
  Prefactor  = 0.808593
 **********
 **   18 **HESSE 
 **********

 FCN=   6390.405     FROM HESSE     STATUS=OK           423 CALLS     2875 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    32.595        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          27.285        5.1868        .75866E-04   -1.4663    
   3  Prefactor     9.0222        6.1796        .13344E-03   -1.5107    
   4  Prefactor     .10000E-03    1.9617        .16728E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     3.4052        2.2329        .92845E-04   -1.5339    
   6  Prefactor     .10000E-03    7.6305        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    7.0126        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    9.2947        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    16.455        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    4.1197        .15767E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          4.3367        4.1839        .15341E-03   -1.5291    
  12  Prefactor     .10000E-03    26.260        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    6.3951        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    14.011        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    1.6206        .99175E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          14.401        11.527        .10555E-03   -1.4949    
  17  norm          12.328        6.7004        .96788E-04   -1.5006    
  18  norm          6.2545        10.728        .16051E-03   -1.5208    
  19  Prefactor     2.2375        3.0086        .15202E-03   -1.5409    
  20  Prefactor     .10000E-03    4.1518        .15892E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    38.230        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     8.7095        13.492        .67912E-03   -1.5118    
  23  Prefactor     .10000E-03    112.69        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.0528        .19207        .22190E-03   -.91281    
  25  Prefactor     .80859        .23686        .31158E-03   -.99412    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.17451e-09
Minuit parameter uncertainties:
  1  0.000502755
  2  5.18689
  3  6.18006
  4  4.3759e-05
  5  2.23297
  6  7.75468e-05
  7  3.9726e-05
  8  7.89158e-05
  9  0.000392088
  10  2.74425e-06
  11  4.18415
  12  0.000273074
  13  3.15323e-06
  14  0.000315915
  15  1.98003e-06
  16  11.5289
  17  6.70078
  18  10.731
  19  3.00876
  20  5.11354e-06
  21  0.00084357
  22  13.4965
  23  0.000628904
  24  0.192192
  25  0.237162
Done.

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

Extracting fit parameters...

4FGL J1257.2+3646
   Spectrum: PowerLaw
300    Prefactor:  1.000e-04  2.744e-06  1.000e-04  1.000e+04 ( 1.000e-13)
301        Index:  2.027e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
302        Scale:  1.897e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
599    Prefactor:  8.086e-01  2.372e-01  0.000e+00  1.000e+01 ( 1.000e+00)
600        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
601        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
598   Normalization:  1.053e+00  1.922e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 194.310 36.771
Photon Flux Upper Limit: 5.21e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.92e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/31685/likelihoodResults_245548801_245808001_4FGL_J1257.2+3646_daily_bin24.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) = 6390.40619608
delta logL = -0.00115648517385

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6390.40503952
delta logL = 7.25076461094e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0453       1.0000          .0000       10.000    
     3 'Normalizat'    1.0529       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .80858       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6020E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6390.405     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      204 TOTAL
                     EDM=   .92E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    29.353        .90712E-02** at limit **
   2  Index         2.0640        6.8116        .50000       -.37624E-04
   3  Normalizat    1.0528        .10359E-01    .40368E-01    .27422E-04
   4  Prefactor     .80859        .12976E-01    .70416E-01    .50573E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.06397
  Normalizat = 1.05283
  Prefactor  = 0.808593
 **********
 **   18 **HESSE 
 **********

 FCN=   6390.405     FROM HESSE     STATUS=OK            33 CALLS      237 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8.9917        .15971E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0640        5.7073        .50000       -.62760    
   3  Normalizat    1.0528        .18724        .22190E-03   -.91281    
   4  Prefactor     .80859        .23407        .31158E-03   -.99412    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.19151e-09
Minuit parameter uncertainties:
  1  1.82852e-05
  2  5.90309
  3  0.187362
  4  0.234362
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/31685': 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) = 6390.40503927
delta logL = 3.29404429067e-07

Extracting fit parameters...

4FGL J1257.2+3646
   Spectrum: PowerLaw
300    Prefactor:  1.000e-04  1.829e-05  1.000e-04  1.000e+04 ( 1.000e-13)
301        Index:  2.064e+00  5.903e+00  0.000e+00  1.000e+01 (-1.000e+00)
302        Scale:  1.897e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
599    Prefactor:  8.086e-01  2.344e-01  0.000e+00  1.000e+01 ( 1.000e+00)
600        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
601        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
598   Normalization:  1.053e+00  1.874e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 194.310 36.771

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/31685/cmap_HighResolution_245548801_245808001_4FGL_J1257.2+3646_daily_bin24.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.92e-03', job_status='DONE', photon_flux_upper_limit='5.21e-08', time_completed='2021-09-06 11:37:40.565145', job_id='31685', GAL2='0.81', fit_tolerance='1e-08', EG2='1.05', EG='1.05', time_epoch_completed='1630953460.57', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.81', dlogl='3.29e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.03' WHERE bin_id='24' AND source_name='4FGL J1257.2+3646' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 11:37:40 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0238>
Subject: Job 31685: <4FGL_J1257.2+3646_daily_bin24> in cluster <slac> Done

Job <4FGL_J1257.2+3646_daily_bin24> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Mon Sep  6 11:25:28 2021
Job was executed on host(s) <bullet0238>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 11:25:30 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep  6 11:25:30 2021
Terminated at Mon Sep  6 11:37:41 2021
Results reported at Mon Sep  6 11:37:41 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1257.2+3646_daily_bin24 194.31 36.7706 245548801 245808001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1257.2+3646 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   683.33 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             355.43 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   730 sec.
    Turnaround time :                            733 sec.

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

