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


Performing analysis on: 4FGL_J1257.2+3646_daily_bin207
RA = 194.31, Dec = 36.7706
tmin = 292982401, tmax = 293241601
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='32007', job_status='RUN', time_executed='2021-09-06 11:29:11.659963', time_epoch_executed='1630952951.66' WHERE source_name='4FGL J1257.2+3646' and cadence='daily' and bin_id='207'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/32007

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/32007/ft1_4FGL_J1257.2+3646_daily_bin207.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/32007/ft2_4FGL_J1257.2+3646_daily_bin207.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/32007/ft1_4FGL_J1257.2+3646_daily_bin207.fits outfile=/scratch/kocevski/32007/ft1_filteredMKT_4FGL_J1257.2+3646_daily_bin207.fits ra=194.31 dec=36.7706 rad=12.0 tmin=292982401.0 tmax=293241601.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 3.70
user 3.48
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/32007/ft1_filtered_4FGL_J1257.2+3646_daily_bin207.fits evtable="EVENTS" scfile=/scratch/kocevski/32007/ft2_4FGL_J1257.2+3646_daily_bin207.fits sctable="SC_DATA" expcube=/scratch/kocevski/32007/ltcube_292982401_293241601_4FGL_J1257.2+3646_daily_bin207.fits outfile=/scratch/kocevski/32007/expmap_292982401_293241601_4FGL_J1257.2+3646_daily_bin207.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/32007/ltcube_292982401_293241601_4FGL_J1257.2+3646_daily_bin207.fits
.....................!
real 191.09
user 186.08
sys 4.45

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/32007/ft1_filtered_4FGL_J1257.2+3646_daily_bin207.fits scfile=/scratch/kocevski/32007/ft2_4FGL_J1257.2+3646_daily_bin207.fits outfile=/scratch/kocevski/32007/cmap_292982401_293241601_4FGL_J1257.2+3646_daily_bin207.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.63
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/32007/ft1_filtered_4FGL_J1257.2+3646_daily_bin207.fits scfile=/scratch/kocevski/32007/ft2_4FGL_J1257.2+3646_daily_bin207.fits outfile=/scratch/kocevski/32007/cmap_HighResolution_292982401_293241601_4FGL_J1257.2+3646_daily_bin207.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.57
user 0.39
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/32007/ft1_filtered_4FGL_J1257.2+3646_daily_bin207.fits', '/scratch/kocevski/32007/ft2_4FGL_J1257.2+3646_daily_bin207.fits', expMap='/scratch/kocevski/32007/expmap_292982401_293241601_4FGL_J1257.2+3646_daily_bin207.fits', expCube='/scratch/kocevski/32007/ltcube_292982401_293241601_4FGL_J1257.2+3646_daily_bin207.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/32007/Model_4FGL_J1257.2+3646_daily_bin207.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/32007/ft1_filtered_4FGL_J1257.2+3646_daily_bin207.fits
Spacecraft file(s): /scratch/kocevski/32007/ft2_4FGL_J1257.2+3646_daily_bin207.fits
Exposure map: /scratch/kocevski/32007/expmap_292982401_293241601_4FGL_J1257.2+3646_daily_bin207.fits
Exposure cube: /scratch/kocevski/32007/ltcube_292982401_293241601_4FGL_J1257.2+3646_daily_bin207.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/32007/Model_4FGL_J1257.2+3646_daily_bin207.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) = 6194.75215163

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    7.8082       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.5301       1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.4482       1.0000         .10000E-03   10000.    
     6 'Prefactor '    27.055       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 '    .10699E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .35096E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10966E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .69739E-02   1.0000         .10000E-03   10000.    
    14 'Prefactor '    19.745       1.0000         .10000E-03   10000.    
    15 'norm      '    .15439E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    2.7806       1.0000         .10000E-03   10000.    
    17 'norm      '    .61715E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    6.7350       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10066E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    46.378       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.5852       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .61054       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=   6194.719     FROM MIGRAD    STATUS=CONVERGED    642 CALLS     3398 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    10.339        .21236E-07** at limit **
   2  norm          7.8087        3.7082        .17448E-07    .49993E-04
   3  Prefactor     .10000E-03    3.7194       -.44665E-08** at limit **
   4  Prefactor     3.5301        2.4175        .20541E-08    .30051E-04
   5  Prefactor     3.4485        2.4051        .67398E-07    .20147E-03
   6  Prefactor     27.061        13.183        .27470E-07    .31818E-04
   7  Prefactor     .10000E-03    16.506        .22534E-06** at limit **
   8  Prefactor     .10000E-03    5.9876       -.53125E-08** at limit **
   9  Prefactor     .10000E-03    38.058        .16386E-06** at limit **
  10  Prefactor     .10000E-03    7.2796       -.48474E-07** at limit **
  11  norm          .10000E-03    6.4813       -.11318E-07** at limit **
  12  Prefactor     .10000E-03    98.591       -.24424E-06** at limit **
  13  Prefactor     .10094E-03    55.258        .86877E-05** at limit **
  14  Prefactor     19.754        25.652        .11330E-05    .21846E-03
  15  norm          .10000E-03    5.2284       -.77143E-06** at limit **
  16  norm          2.7763        9.8771        .17614E-05    .24713E-03
  17  norm          .10002E-03    10.773       -.62374E-05** at limit **
  18  norm          6.7383        5.4742       -.15592E-05   -.12282E-02
  19  Prefactor     .10000E-03    2.7524        .17550E-07** at limit **
  20  Prefactor     .10000E-03    8.2700        .10587E-06** at limit **
  21  Prefactor     .10000E-03    17.671       -.15933E-06** at limit **
  22  Prefactor     .10000E-03    44.316       -.58215E-06** at limit **
  23  Prefactor     46.403        67.384        .10650E-05    .25182E-03
  24  Normalizat    1.5850        .19925       -.19150E-05   -.16736E-03
  25  Prefactor     .61049        .22946        .23693E-05   -.64050E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 7.80866
  Prefactor  = 0.0001
  Prefactor  = 3.53014
  Prefactor  = 3.44851
  Prefactor  = 27.0608
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100941
  Prefactor  = 19.7542
  norm       = 0.0001
  norm       = 2.77627
  norm       = 0.000100023
  norm       = 6.73834
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100002
  Prefactor  = 46.4025
  Normalizat = 1.58502
  Prefactor  = 0.610489
 **********
 **   18 **HESSE 
 **********

 FCN=   6194.719     FROM HESSE     STATUS=OK           431 CALLS     3829 TOTAL
                     EDM=   .46E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    10.344        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          7.8087        3.7173        .96138E-04   -1.5149    
   3  Prefactor     .10000E-03    3.7365        .14823E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     3.5301        2.4236        .93661E-04   -1.5332    
   5  Prefactor     3.4485        2.4017        .97766E-04   -1.5337    
   6  Prefactor     27.061        13.175        .77019E-04   -1.4667    
   7  Prefactor     .10000E-03    16.565        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    5.9886        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    38.100        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    23.143        .36431E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    6.6055        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    99.106        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10094E-03    42.959        .11698       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     19.754        22.386        .90136E-04   -1.4819    
  15  norm          .10000E-03    13.237        .32084E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          2.7763        9.9952        .24403E-03   -1.5375    
  17  norm          .10002E-03    11.285        .22656E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          6.7383        5.3082        .15461E-03   -1.5189    
  19  Prefactor     .10000E-03    2.8082        .25436E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    8.3097        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    17.707        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    45.379        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     46.403        68.308        .58876E-04   -1.4345    
  24  Normalizat    1.5850        .23699        .21826E-03   -.75417    
  25  Prefactor     .61049        .26680        .39130E-03   -1.0715    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.64514e-09
Minuit parameter uncertainties:
  1  2.86644e-05
  2  3.71737
  3  4.56333e-07
  4  2.42368
  5  2.40175
  6  13.1769
  7  0.00034688
  8  5.41397e-07
  9  0.000422146
  10  6.91633e-05
  11  2.02826e-05
  12  0.000196241
  13  0.0127276
  14  22.3958
  15  3.0808e-05
  16  10.0012
  17  0.00101087
  18  5.30853
  19  2.22041e-05
  20  0.000147044
  21  0.00029916
  22  0.000606424
  23  68.4235
  24  0.237157
  25  0.267357
Done.

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

Extracting fit parameters...

4FGL J1257.2+3646
   Spectrum: PowerLaw
300    Prefactor:  1.000e-04  6.916e-05  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:  6.105e-01  2.674e-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.585e+00  2.372e-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: 6.80e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.12e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/32007/likelihoodResults_292982401_293241601_4FGL_J1257.2+3646_daily_bin207.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) = 6194.71963452
delta logL = -0.000204826495974

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6194.71936737
delta logL = 6.23222449576e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .18304E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2100       1.0000          .0000       10.000    
     3 'Normalizat'    1.5844       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .61125       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=   6194.371     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      263 TOTAL
                     EDM=   .29E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .75274        19.410        .10153E-01    .13845E-02
   2  Index         3.2147        2.8587        .11899        .16077E-03
   3  Normalizat    1.5410        .40372E-01    .49907E-01   -.20206E-03
   4  Prefactor     .63536        .47062E-01    .86642E-01   -.37125E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.752742
  Index      = 3.21471
  Normalizat = 1.54103
  Prefactor  = 0.635361
 **********
 **   18 **HESSE 
 **********

 FCN=   6194.371     FROM HESSE     STATUS=OK            31 CALLS      294 TOTAL
                     EDM=   .50E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .75274        26.438        .84915E-04   -1.5534    
   2  Index         3.2147        6.5846        .63429E-02   -.36512    
   3  Normalizat    1.5410        .24138        .22062E-03   -.76632    
   4  Prefactor     .63536        .27782        .38382E-03   -1.0612    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.99875e-10
Minuit parameter uncertainties:
  1  8.9258
  2  5.00065
  3  0.241565
  4  0.278421
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/32007': 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) = 6194.37139537
delta logL = 0.348034324459

Extracting fit parameters...

4FGL J1257.2+3646
   Spectrum: PowerLaw
300    Prefactor:  7.527e-01  8.926e+00  1.000e-04  1.000e+04 ( 1.000e-13)
301        Index:  3.215e+00  5.001e+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:  6.354e-01  2.784e-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.541e+00  2.416e-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/32007/cmap_HighResolution_292982401_293241601_4FGL_J1257.2+3646_daily_bin207.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.12e-03', job_status='DONE', photon_flux_upper_limit='6.80e-08', time_completed='2021-09-06 11:41:56.019445', job_id='32007', GAL2='0.64', fit_tolerance='1e-08', EG2='1.54', EG='1.59', time_epoch_completed='1630953716.02', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.61', dlogl='3.48e-01', ts2='0.71', photon_index_error='0.00', photon_index='2.03' WHERE bin_id='207' AND source_name='4FGL J1257.2+3646' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 11:41:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0064>
Subject: Job 32007: <4FGL_J1257.2+3646_daily_bin207> in cluster <slac> Done

Job <4FGL_J1257.2+3646_daily_bin207> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Mon Sep  6 11:25:52 2021
Job was executed on host(s) <bullet0064>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 11:25:55 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:55 2021
Terminated at Mon Sep  6 11:41:56 2021
Results reported at Mon Sep  6 11:41:56 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1257.2+3646_daily_bin207 194.31 36.7706 292982401 293241601 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 :                                   759.35 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             272.27 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   961 sec.
    Turnaround time :                            964 sec.

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

