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


Performing analysis on: 4FGL_J1257.2+3646_daily_bin591
RA = 194.31, Dec = 36.7706
tmin = 392515201, tmax = 392774401
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='34693', job_status='RUN', time_executed='2021-09-06 11:39:39.152918', time_epoch_executed='1630953579.15' WHERE source_name='4FGL J1257.2+3646' and cadence='daily' and bin_id='591'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/34693

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/34693/ft1_4FGL_J1257.2+3646_daily_bin591.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/34693/ft2_4FGL_J1257.2+3646_daily_bin591.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/34693/ft1_4FGL_J1257.2+3646_daily_bin591.fits outfile=/scratch/kocevski/34693/ft1_filteredMKT_4FGL_J1257.2+3646_daily_bin591.fits ra=194.31 dec=36.7706 rad=12.0 tmin=392515201.0 tmax=392774401.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.35
user 3.15
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/34693/ft2_4FGL_J1257.2+3646_daily_bin591.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/34693/ft1_filteredMKT_4FGL_J1257.2+3646_daily_bin591.fits evtable="EVENTS" outfile="/scratch/kocevski/34693/ft1_filtered_4FGL_J1257.2+3646_daily_bin591.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/34693/ft1_filtered_4FGL_J1257.2+3646_daily_bin591.fits" evtable="EVENTS" scfile=/scratch/kocevski/34693/ft2_4FGL_J1257.2+3646_daily_bin591.fits sctable="SC_DATA" outfile=/scratch/kocevski/34693/ltcube_392515201_392774401_4FGL_J1257.2+3646_daily_bin591.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/34693/ft2_4FGL_J1257.2+3646_daily_bin591.fits
.....................!
real 11.85
user 11.50
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/34693/ft1_filtered_4FGL_J1257.2+3646_daily_bin591.fits evtable="EVENTS" scfile=/scratch/kocevski/34693/ft2_4FGL_J1257.2+3646_daily_bin591.fits sctable="SC_DATA" expcube=/scratch/kocevski/34693/ltcube_392515201_392774401_4FGL_J1257.2+3646_daily_bin591.fits outfile=/scratch/kocevski/34693/expmap_392515201_392774401_4FGL_J1257.2+3646_daily_bin591.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/34693/ltcube_392515201_392774401_4FGL_J1257.2+3646_daily_bin591.fits
.....................!
real 189.65
user 184.72
sys 4.53

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/34693/ft1_filtered_4FGL_J1257.2+3646_daily_bin591.fits scfile=/scratch/kocevski/34693/ft2_4FGL_J1257.2+3646_daily_bin591.fits outfile=/scratch/kocevski/34693/cmap_392515201_392774401_4FGL_J1257.2+3646_daily_bin591.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.54
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/34693/ft1_filtered_4FGL_J1257.2+3646_daily_bin591.fits scfile=/scratch/kocevski/34693/ft2_4FGL_J1257.2+3646_daily_bin591.fits outfile=/scratch/kocevski/34693/cmap_HighResolution_392515201_392774401_4FGL_J1257.2+3646_daily_bin591.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.56
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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      '    2.7599       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.6510       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    19.048       1.0000         .10000E-03   10000.    
     8 'Prefactor '    9.8891       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10060E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10434E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    5.6675       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    12.217       1.0000         .10000E-03   10000.    
    15 'norm      '    .10359E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    2.2026       1.0000         .10000E-03   10000.    
    17 'norm      '    5.5719       1.0000         .10000E-03   10000.    
    18 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .17900E-02   1.0000         .10000E-03   10000.    
    20 'Prefactor '    19.888       1.0000         .10000E-03   10000.    
    21 'Prefactor '    105.60       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .21748E-02   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .36001E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0212       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .93392       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=   6067.743     FROM MIGRAD    STATUS=CONVERGED    575 CALLS     2902 TOTAL
                     EDM=   .86E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8.1383       -.17993E-06** at limit **
   2  norm          2.7598        1.9617        .23073E-07    .14768E-04
   3  Prefactor     .10000E-03    2.2102       -.44248E-07** at limit **
   4  Prefactor     .10000E-03    .51892       -.12284E-07** at limit **
   5  Prefactor     3.6509        2.4263        .12537E-06   -.48795E-04
   6  Prefactor     .10000E-03    3.8627       -.17260E-06** at limit **
   7  Prefactor     19.070        37.800        .31257E-05   -.92425E-06
   8  Prefactor     9.8856        20.107        .46655E-06   -.26233E-04
   9  Prefactor     .10000E-03    15.360       -.43161E-06** at limit **
  10  Prefactor     .10000E-03    3.8046        .10203E-06** at limit **
  11  norm          5.6671        3.7687        .13790E-07   -.17923E-03
  12  Prefactor     .10000E-03    13.998       -.79040E-08** at limit **
  13  Prefactor     .10000E-03    12.675        .51105E-06** at limit **
  14  Prefactor     12.238        16.727       -.19618E-05   -.15309E-03
  15  norm          .10000E-03    4.2154        .10016E-06** at limit **
  16  norm          2.1975        22.092        .15951E-05   -.16614E-04
  17  norm          5.5737        3.5967       -.43176E-06   -.65761E-03
  18  norm          .10000E-03    6.6965        .33650E-06** at limit **
  19  Prefactor     .10004E-03    1.8717        .21105E-05** at limit **
  20  Prefactor     19.912        14.043       -.36212E-05   -.47618E-03
  21  Prefactor     105.72        66.215       -.51360E-06   -.97342E-04
  22  Prefactor     .10053E-03    9.5650        .30423E-05** at limit **
  23  Prefactor     .10000E-03    160.82       -.46389E-05** at limit **
  24  Normalizat    1.0213        .16885       -.33558E-05   -.35591E-03
  25  Prefactor     .93390        .20515        .19058E-05   -.47847E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 2.75978
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.65087
  Prefactor  = 0.0001
  Prefactor  = 19.0702
  Prefactor  = 9.88561
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.66709
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.2378
  norm       = 0.0001
  norm       = 2.19746
  norm       = 5.57375
  norm       = 0.0001
  Prefactor  = 0.000100035
  Prefactor  = 19.9115
  Prefactor  = 105.72
  Prefactor  = 0.000100526
  Prefactor  = 0.0001
  Normalizat = 1.0213
  Prefactor  = 0.9339
 **********
 **   18 **HESSE 
 **********

 FCN=   6067.743     FROM HESSE     STATUS=OK           423 CALLS     3325 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8.1410        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          2.7598        1.9620        .88923E-04   -1.5376    
   3  Prefactor     .10000E-03    2.2157        .11309E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    .52010        .54771E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     3.6509        2.4204        .94863E-04   -1.5326    
   6  Prefactor     .10000E-03    3.8774        .14946E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     19.070        37.844        .91770E-04   -1.4834    
   8  Prefactor     9.8856        20.089        .12743E-03   -1.5079    
   9  Prefactor     .10000E-03    15.360        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    3.8224        .14811E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          5.6671        3.7660        .11859E-03   -1.5232    
  12  Prefactor     .10000E-03    14.001        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    12.714        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     12.238        16.721        .11460E-03   -1.5008    
  15  norm          .10000E-03    4.2659        .15587E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          2.1975        22.187        .27722E-03   -1.5411    
  17  norm          5.5737        3.5613        .11042E-03   -1.5236    
  18  norm          .10000E-03    6.7843        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10004E-03    19.682        .18596E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     19.912        14.144        .89812E-04   -1.4815    
  21  Prefactor     105.72        66.402        .19566E-03   -1.3648    
  22  Prefactor     .10053E-03    65.617        .45103E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    162.53        .21311E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.0213        .19707        .22350E-03   -.92320    
  25  Prefactor     .93390        .24151        .29300E-03   -.94966    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.01491e-08
Minuit parameter uncertainties:
  1  6.39196e-06
  2  1.962
  3  6.09032e-06
  4  6.55047e-07
  5  2.42049
  6  6.61375e-06
  7  37.8914
  8  20.1027
  9  4.42974e-06
  10  3.67452e-05
  11  3.76616
  12  2.23278e-06
  13  6.38445e-05
  14  16.7278
  15  3.22309e-05
  16  13.9714
  17  3.56144
  18  9.29859e-05
  19  0.00166455
  20  14.146
  21  66.4488
  22  0.011758
  23  0.000523891
  24  0.197206
  25  0.241784
Done.

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

Extracting fit parameters...

4FGL J1257.2+3646
   Spectrum: PowerLaw
300    Prefactor:  1.000e-04  3.675e-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:  9.339e-01  2.418e-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.021e+00  1.972e-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.18e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.89e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/34693/likelihoodResults_392515201_392774401_4FGL_J1257.2+3646_daily_bin591.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): 0
logL (Free Index) = 6067.74445623
delta logL = -0.00124588156177

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6067.74321037
delta logL = -1.44364094012e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0323       1.0000          .0000       10.000    
     3 'Normalizat'    1.0213       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93391       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=   6067.743     FROM MIGRAD    STATUS=FAILED        86 CALLS      236 TOTAL
                     EDM=   .29E-03    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10031E-03    531.74        .14823E-02** at limit **
   2  Index         2.0705        6.4389        .20000       -.97541E-05
   3  Normalizat    1.0213        .59067E-01    .22351E-03   -.19837E-04
   4  Prefactor     .93390        .74498E-01    .29300E-03   -.72946E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6067.743     FROM SIMPLEX   STATUS=UNCHANGED    156 CALLS      392 TOTAL
                     EDM=   .13E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10031E-03    531.74        .32452E-03** at limit **
   2  Index         2.0705        6.4389        .19973E-04   -.97541E-05
   3  Normalizat    1.0213        .59067E-01    .64583E-06   -.19837E-04
   4  Prefactor     .93390        .74498E-01    .41358E-06   -.72946E-05
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6067.743     FROM MIGRAD    STATUS=CONVERGED     65 CALLS      457 TOTAL
                     EDM=   .40E-12    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .58873E-02    .23213E-01** at limit **
   2  Index         3.4142        1.4931        .50000        .15728E-05
   3  Normalizat    1.0213        .68813E-03    .89403E-05    .66888E-04
   4  Prefactor     .93391        .87026E-03    .11720E-04   -.18566E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 3.41419
  Normalizat = 1.02129
  Prefactor  = 0.933907
 **********
 **   18 **HESSE 
 **********

 FCN=   6067.743     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      490 TOTAL
                     EDM=   .44E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.1320        .67076E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         3.4142        6.4696        .50000       -.32273    
   3  Normalizat    1.0213        .36277E-02    .17881E-05   -.92321    
   4  Prefactor     .93391        .45878E-02    .23440E-05   -.94966    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.36957e-11
Minuit parameter uncertainties:
  1  6.05448e-05
  2  8.00178
  3  0.00362774
  4  0.00458775
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/34693': 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) = 6067.74320377
delta logL = 6.58037424728e-06

Extracting fit parameters...

4FGL J1257.2+3646
   Spectrum: PowerLaw
300    Prefactor:  1.000e-04  6.054e-05  1.000e-04  1.000e+04 ( 1.000e-13)
301        Index:  3.414e+00  8.002e+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:  9.339e-01  4.588e-03  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.021e+00  3.628e-03  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/34693/cmap_HighResolution_392515201_392774401_4FGL_J1257.2+3646_daily_bin591.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.89e-03', job_status='DONE', photon_flux_upper_limit='5.18e-08', time_completed='2021-09-06 11:51:52.297670', job_id='34693', GAL2='0.93', fit_tolerance='1e-08', EG2='1.02', EG='1.02', time_epoch_completed='1630954312.3', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.93', dlogl='6.58e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.03' WHERE bin_id='591' AND source_name='4FGL J1257.2+3646' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 11:51:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0283>
Subject: Job 34693: <4FGL_J1257.2+3646_daily_bin591> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1257.2+3646_daily_bin591 194.31 36.7706 392515201 392774401 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 :                                   730.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             240.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   966 sec.
    Turnaround time :                            966 sec.

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

