/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 215 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 = 7557
number of fields = 29
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1257.2+3646_daily_bin490
RA = 194.31, Dec = 36.7706
tmin = 366336001, tmax = 366595201
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='34535', job_status='RUN', time_executed='2021-09-06 11:39:20.384539', time_epoch_executed='1630953560.38' WHERE source_name='4FGL J1257.2+3646' and cadence='daily' and bin_id='490'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/34535

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

Retrieving the FT1 file...

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

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

Retrieving 50 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/34535/ft1_4FGL_J1257.2+3646_daily_bin490.fits


Retrieving the FT1 file...

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

Retrieving 50 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/34535/ft2_4FGL_J1257.2+3646_daily_bin490.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/34535/ft1_4FGL_J1257.2+3646_daily_bin490.fits outfile=/scratch/kocevski/34535/ft1_filteredMKT_4FGL_J1257.2+3646_daily_bin490.fits ra=194.31 dec=36.7706 rad=12.0 tmin=366336001.0 tmax=366595201.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 5.58
user 5.21
sys 0.34

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/34535/ft2_4FGL_J1257.2+3646_daily_bin490.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/34535/ft1_filteredMKT_4FGL_J1257.2+3646_daily_bin490.fits evtable="EVENTS" outfile="/scratch/kocevski/34535/ft1_filtered_4FGL_J1257.2+3646_daily_bin490.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.35
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/34535/ft1_filtered_4FGL_J1257.2+3646_daily_bin490.fits" evtable="EVENTS" scfile=/scratch/kocevski/34535/ft2_4FGL_J1257.2+3646_daily_bin490.fits sctable="SC_DATA" outfile=/scratch/kocevski/34535/ltcube_366336001_366595201_4FGL_J1257.2+3646_daily_bin490.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/34535/ft2_4FGL_J1257.2+3646_daily_bin490.fits
.....................!
real 13.44
user 13.04
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/34535/ft1_filtered_4FGL_J1257.2+3646_daily_bin490.fits evtable="EVENTS" scfile=/scratch/kocevski/34535/ft2_4FGL_J1257.2+3646_daily_bin490.fits sctable="SC_DATA" expcube=/scratch/kocevski/34535/ltcube_366336001_366595201_4FGL_J1257.2+3646_daily_bin490.fits outfile=/scratch/kocevski/34535/expmap_366336001_366595201_4FGL_J1257.2+3646_daily_bin490.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/34535/ltcube_366336001_366595201_4FGL_J1257.2+3646_daily_bin490.fits
.....................!
real 190.33
user 184.85
sys 5.09

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/34535/ft1_filtered_4FGL_J1257.2+3646_daily_bin490.fits scfile=/scratch/kocevski/34535/ft2_4FGL_J1257.2+3646_daily_bin490.fits outfile=/scratch/kocevski/34535/cmap_366336001_366595201_4FGL_J1257.2+3646_daily_bin490.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.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/34535/ft1_filtered_4FGL_J1257.2+3646_daily_bin490.fits scfile=/scratch/kocevski/34535/ft2_4FGL_J1257.2+3646_daily_bin490.fits outfile=/scratch/kocevski/34535/cmap_HighResolution_366336001_366595201_4FGL_J1257.2+3646_daily_bin490.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.54
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    20.682       1.0000         .10000E-03   10000.    
     2 'norm      '    4.2458       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.7642       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.9970       1.0000         .10000E-03   10000.    
     6 'Prefactor '    10.280       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    1.9537       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10089E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .12481E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    8.2849       1.0000         .10000E-03   10000.    
    17 'norm      '    .10114E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .12338E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .11803E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    76.361       1.0000         .10000E-03   10000.    
    22 'Prefactor '    11.270       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .11603E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.5107       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .38937       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=   5140.465     FROM MIGRAD    STATUS=CONVERGED    578 CALLS     2875 TOTAL
                     EDM=   .11E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     20.679        33.430        .49379E-06   -.12240E-05
   2  norm          4.2456        4.2672        .47571E-07    .18439E-05
   3  Prefactor     .10000E-03    2.8656        .28876E-07** at limit **
   4  Prefactor     1.7647        3.0896        .52654E-07    .17492E-04
   5  Prefactor     1.9969        2.0568        .31689E-07    .61000E-05
   6  Prefactor     10.279        8.6903        .72563E-07   -.80517E-07
   7  Prefactor     .10000E-03    15.228       -.30291E-06** at limit **
   8  Prefactor     .10000E-03    6.6147       -.94514E-07** at limit **
   9  Prefactor     .10000E-03    82.341       -.38498E-05** at limit **
  10  Prefactor     .10000E-03    1.8540        .34251E-07** at limit **
  11  norm          1.9553        4.9643        .30973E-05   -.83329E-04
  12  Prefactor     .10000E-03    19.676       -.26689E-07** at limit **
  13  Prefactor     .10000E-03    17.502        .17187E-05** at limit **
  14  Prefactor     .10000E-03    8.8996        .51357E-06** at limit **
  15  norm          .10000E-03    2.8534       -.11948E-05** at limit **
  16  norm          8.2857        9.5551        .82472E-07    .20549E-06
  17  norm          .10000E-03    3.6710        .58719E-06** at limit **
  18  norm          .10000E-03    2.3528        .12503E-06** at limit **
  19  Prefactor     .10000E-03    1.5503       -.71881E-06** at limit **
  20  Prefactor     .10000E-03    9.4993       -.11481E-05** at limit **
  21  Prefactor     76.219        72.989        .10904E-04    .18302E-04
  22  Prefactor     11.270        16.003        .16451E-06   -.55289E-05
  23  Prefactor     .10000E-03    96.833        .48036E-05** at limit **
  24  Normalizat    1.5113        .19970       -.56409E-07    .95595E-04
  25  Prefactor     .38866        .23444       -.30050E-05   -.15839E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 20.6794
  norm       = 4.24562
  Prefactor  = 0.0001
  Prefactor  = 1.76466
  Prefactor  = 1.9969
  Prefactor  = 10.279
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.9553
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100001
  norm       = 8.28565
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 76.2191
  Prefactor  = 11.2701
  Prefactor  = 0.0001
  Normalizat = 1.51134
  Prefactor  = 0.388662
 **********
 **   18 **HESSE 
 **********

 FCN=   5140.465     FROM HESSE     STATUS=OK           423 CALLS     3298 TOTAL
                     EDM=   .25E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     20.679        33.394        .88074E-04   -1.4798    
   2  norm          4.2456        4.3442        .11253E-03   -1.5296    
   3  Prefactor     .10000E-03    2.8706        .11852E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.7647        3.1235        .12770E-03   -1.5442    
   5  Prefactor     1.9969        2.0510        .99287E-04   -1.5425    
   6  Prefactor     10.279        8.6824        .12497E-03   -1.5067    
   7  Prefactor     .10000E-03    15.240        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    6.6172        .18010E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    82.490        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    1.8559        .95335E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.9553        5.0079        .12237E-02   -1.5428    
  12  Prefactor     .10000E-03    19.682        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    17.568        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    8.9191        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    5.6866        .23156E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          8.2857        9.5521        .13928E-03   -1.5132    
  17  norm          .10000E-03    3.8324        .26817E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    2.3620        .10740E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    1.5745        .87468E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    9.5682        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     76.219        73.234        .22976E-03   -1.3960    
  22  Prefactor     11.270        15.990        .59667E-03   -1.5036    
  23  Prefactor     .10000E-03    96.884        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.5113        .21630        .19561E-03   -.77460    
  25  Prefactor     .38866        .25081        .42250E-03   -1.1739    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.4995e-10
Minuit parameter uncertainties:
  1  33.424
  2  4.34454
  3  2.12491e-06
  4  3.12375
  5  2.05111
  6  8.68346
  7  8.46718e-06
  8  2.03534e-06
  9  7.05382e-05
  10  4.39448e-07
  11  5.00895
  12  7.08275e-06
  13  5.50611e-06
  14  2.98362e-06
  15  0.000107074
  16  9.55384
  17  1.78469e-05
  18  2.40535e-06
  19  2.79739e-05
  20  6.54111e-05
  21  73.3207
  22  15.9963
  23  0.000110748
  24  0.216434
  25  0.251516
Done.

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

Extracting fit parameters...

4FGL J1257.2+3646
   Spectrum: PowerLaw
300    Prefactor:  1.000e-04  4.394e-07  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:  3.887e-01  2.515e-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.511e+00  2.164e-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: 3.89e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.92e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/34535/likelihoodResults_366336001_366595201_4FGL_J1257.2+3646_daily_bin490.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) = 5140.46741392
delta logL = -0.00234847506454

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5140.46506525
delta logL = 1.97842382477e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10098E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0078       1.0000          .0000       10.000    
     3 'Normalizat'    1.5113       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .38867       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5140.465     FROM MIGRAD    STATUS=FAILED        86 CALLS      243 TOTAL
                     EDM=   .51E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10142E-03    31.849        .97035E-03** at limit **
   2  Index         1.9487        5.4460        .50000        .77989E-04
   3  Normalizat    1.5113        .18176E-01    .19561E-03   -.33676E-03
   4  Prefactor     .38866        .21189E-01    .42251E-03   -.17229E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5140.465     FROM SIMPLEX   STATUS=PROGRESS     131 CALLS      374 TOTAL
                     EDM=   .86E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10112E-03    31.849        .20043E-03** at limit **
   2  Index         1.9479        5.4460        .28011E-03    .77989E-04
   3  Normalizat    1.5113        .18176E-01    .19431E-05   -.33676E-03
   4  Prefactor     .38866        .21189E-01    .27332E-05   -.17229E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5140.465     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      425 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    36.987        .19407E-02** at limit **
   2  Index         1.5582        5.4545        .50000        .51202E-06
   3  Normalizat    1.5113        .18100E-01    .39121E-04   -.15187E-03
   4  Prefactor     .38866        .21101E-01    .16900E-04   -.76687E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Index      = 1.55823
  Normalizat = 1.51134
  Prefactor  = 0.388663
 **********
 **   18 **HESSE 
 **********

 FCN=   5140.465     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      454 TOTAL
                     EDM=   .80E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    164.58        .38814E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.5582        5.1197        .50000       -.75922    
   3  Normalizat    1.5113        .41085E-01    .78243E-05   -.77460    
   4  Prefactor     .38866        .47899E-01    .33800E-05   -1.1739    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.97032e-08
Minuit parameter uncertainties:
  1  0.000922038
  2  592.264
  3  0.0410855
  4  0.0479035
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/34535': 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) = 5140.46506006
delta logL = 5.38432504982e-06

Extracting fit parameters...

4FGL J1257.2+3646
   Spectrum: PowerLaw
300    Prefactor:  1.000e-04  9.220e-04  1.000e-04  1.000e+04 ( 1.000e-13)
301        Index:  1.558e+00  5.923e+02  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:  3.887e-01  4.790e-02  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.511e+00  4.109e-02  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/34535/cmap_HighResolution_366336001_366595201_4FGL_J1257.2+3646_daily_bin490.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.92e-03', job_status='DONE', photon_flux_upper_limit='3.89e-08', time_completed='2021-09-06 11:50:38.903275', job_id='34535', GAL2='0.39', fit_tolerance='1e-08', EG2='1.51', EG='1.51', time_epoch_completed='1630954238.9', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.39', dlogl='5.38e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.03' WHERE bin_id='490' AND source_name='4FGL J1257.2+3646' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 11:50:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0108>
Subject: Job 34535: <4FGL_J1257.2+3646_daily_bin490> in cluster <slac> Done

Job <4FGL_J1257.2+3646_daily_bin490> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Mon Sep  6 11:35:33 2021
Job was executed on host(s) <bullet0108>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 11:35:34 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:35:34 2021
Terminated at Mon Sep  6 11:50:39 2021
Results reported at Mon Sep  6 11:50:39 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1257.2+3646_daily_bin490 194.31 36.7706 366336001 366595201 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 :                                   675.04 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             276.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   905 sec.
    Turnaround time :                            906 sec.

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

