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


Performing analysis on: 4FGL_J1257.2+3646_daily_bin96
RA = 194.31, Dec = 36.7706
tmin = 264211201, tmax = 264470401
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='31795', job_status='RUN', time_executed='2021-09-06 11:27:21.051235', time_epoch_executed='1630952841.05' WHERE source_name='4FGL J1257.2+3646' and cadence='daily' and bin_id='96'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/31795

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/31795/ft1_4FGL_J1257.2+3646_daily_bin96.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/31795/ft2_4FGL_J1257.2+3646_daily_bin96.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/31795/ft1_4FGL_J1257.2+3646_daily_bin96.fits outfile=/scratch/kocevski/31795/ft1_filteredMKT_4FGL_J1257.2+3646_daily_bin96.fits ra=194.31 dec=36.7706 rad=12.0 tmin=264211201.0 tmax=264470401.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.68
user 1.49
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/31795/ft1_filtered_4FGL_J1257.2+3646_daily_bin96.fits" evtable="EVENTS" scfile=/scratch/kocevski/31795/ft2_4FGL_J1257.2+3646_daily_bin96.fits sctable="SC_DATA" outfile=/scratch/kocevski/31795/ltcube_264211201_264470401_4FGL_J1257.2+3646_daily_bin96.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/31795/ft2_4FGL_J1257.2+3646_daily_bin96.fits
.....................!
real 12.60
user 12.25
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/31795/ft1_filtered_4FGL_J1257.2+3646_daily_bin96.fits evtable="EVENTS" scfile=/scratch/kocevski/31795/ft2_4FGL_J1257.2+3646_daily_bin96.fits sctable="SC_DATA" expcube=/scratch/kocevski/31795/ltcube_264211201_264470401_4FGL_J1257.2+3646_daily_bin96.fits outfile=/scratch/kocevski/31795/expmap_264211201_264470401_4FGL_J1257.2+3646_daily_bin96.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/31795/ltcube_264211201_264470401_4FGL_J1257.2+3646_daily_bin96.fits
.....................!
real 190.28
user 185.46
sys 4.40

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/31795/ft1_filtered_4FGL_J1257.2+3646_daily_bin96.fits scfile=/scratch/kocevski/31795/ft2_4FGL_J1257.2+3646_daily_bin96.fits outfile=/scratch/kocevski/31795/cmap_264211201_264470401_4FGL_J1257.2+3646_daily_bin96.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.55
user 0.37
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    1.6566       1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.3364       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.3880       1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.0973       1.0000         .10000E-03   10000.    
     6 'Prefactor '    16.334       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10292E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    13.393       1.0000         .10000E-03   10000.    
     9 'Prefactor '    105.52       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .91853       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10453E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    57.970       1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.8662       1.0000         .10000E-03   10000.    
    15 'norm      '    .23308E-01   1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10226E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    9.4986       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .71376E-01   1.0000         .10000E-03   10000.    
    20 'Prefactor '    9.5285       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10337E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .17845E-01   1.0000         .10000E-03   10000.    
    23 'Prefactor '    62.703       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .75723       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0149       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.

 FCN=   6217.594     FROM MIGRAD    STATUS=CONVERGED   1086 CALLS     3463 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.7138        .18142E-02** at limit **
   2  norm          1.6565        1.9344        .10539E-03   -.60839E-04
   3  Prefactor     4.3373        5.0150        .18410E-03   -.39892E-04
   4  Prefactor     1.3879        1.9406        .11515E-03   -.50452E-04
   5  Prefactor     5.0973        2.4171        .80278E-04   -.47441E-04
   6  Prefactor     16.337        10.082        .99099E-04   -.62752E-04
   7  Prefactor     .10000E-03    17.385        .18142E-02** at limit **
   8  Prefactor     13.394        13.023        .10945E-03   -.39367E-04
   9  Prefactor     105.55        84.947        .19574E-03   -.91071E-04
  10  Prefactor     .10000E-03    4.3147        .15823E-02** at limit **
  11  norm          .91704        3.8863        .28181E-03   -.16242E-03
  12  Prefactor     .10000E-03    28.354        .18142E-02** at limit **
  13  Prefactor     57.960        27.428        .52691E-04   -.35911E-03
  14  Prefactor     5.8904        15.022        .16581E-03   -.21063E-03
  15  norm          .19790E-02    6.0992        .41800E-01** at limit **
  16  norm          .10000E-03    11.055        .18142E-02** at limit **
  17  norm          .10000E-03    4.4064        .31613E-03** at limit **
  18  norm          9.5007        6.0946        .13003E-03   -.13158E-03
  19  Prefactor     .10305        22.191        .17607E-02    .27798E-03
  20  Prefactor     9.4798        14.600        .12982E-03    .28942E-03
  21  Prefactor     .10000E-03    35.024        .18142E-02** at limit **
  22  Prefactor     .10004E-03    13.255        .74574E-01** at limit **
  23  Prefactor     62.679        62.328        .50675E-04   -.49311E-04
  24  Normalizat    .75707        .19110        .23781E-03   -.39727E-03
  25  Prefactor     1.0151        .23016        .26307E-03   -.13937E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 1.65649
  Prefactor  = 4.33726
  Prefactor  = 1.38789
  Prefactor  = 5.09728
  Prefactor  = 16.3371
  Prefactor  = 0.0001
  Prefactor  = 13.3939
  Prefactor  = 105.553
  Prefactor  = 0.0001
  norm       = 0.91704
  Prefactor  = 0.0001
  Prefactor  = 57.9602
  Prefactor  = 5.89036
  norm       = 0.00197896
  norm       = 0.0001
  norm       = 0.0001
  norm       = 9.50072
  Prefactor  = 0.103048
  Prefactor  = 9.47981
  Prefactor  = 0.0001
  Prefactor  = 0.000100039
  Prefactor  = 62.6794
  Normalizat = 0.757073
  Prefactor  = 1.01512
 **********
 **   18 **HESSE 
 **********

 FCN=   6217.594     FROM HESSE     STATUS=OK           423 CALLS     3886 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.7138        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.6565        1.9348        .42157E-05   -1.5451    
   3  Prefactor     4.3373        5.0148        .73640E-05   -1.5291    
   4  Prefactor     1.3879        1.9409        .46059E-05   -1.5472    
   5  Prefactor     5.0973        2.4170        .32111E-05   -1.5256    
   6  Prefactor     16.337        10.081        .39639E-05   -1.4899    
   7  Prefactor     .10000E-03    17.390        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     13.394        13.022        .43780E-05   -1.4976    
   9  Prefactor     105.55        84.902        .78295E-05   -1.3650    
  10  Prefactor     .10000E-03    4.3170        .31646E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .91704        3.8791        .11272E-04   -1.5516    
  12  Prefactor     .10000E-03    28.357        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     57.960        27.410        .10538E-04   -1.4184    
  14  Prefactor     5.8904        14.985        .66323E-05   -1.5223    
  15  norm          .19790E-02    4.9045        .48150E-01   -1.5699    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    11.059        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    4.4065        .63225E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          9.5007        6.0926        .52012E-05   -1.5091    
  19  Prefactor     .10305        20.158        .70430E-04   -1.5644    
  20  Prefactor     9.4798        13.960        .51930E-05   -1.5092    
  21  Prefactor     .10000E-03    35.026        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10004E-03    12.310        .78566E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     62.679        62.328        .10135E-04   -1.4123    
  24  Normalizat    .75707        .19119        .47562E-04   -1.0168    
  25  Prefactor     1.0151        .23035        .10523E-04   -.92227    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.07071e-09
Minuit parameter uncertainties:
  1  1.92366e-07
  2  1.93487
  3  5.01531
  4  1.94099
  5  2.41701
  6  10.0823
  7  4.43637e-06
  8  13.0251
  9  85.0003
  10  2.72858e-06
  11  3.77237
  12  0.000211269
  13  27.4162
  14  14.9942
  15  0.192008
  16  4.40655e-06
  17  4.19502e-05
  18  6.09298
  19  2.88213
  20  13.9652
  21  0.000232589
  22  0.0013919
  23  62.3926
  24  0.191362
  25  0.23057
Done.

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

Extracting fit parameters...

4FGL J1257.2+3646
   Spectrum: PowerLaw
300    Prefactor:  1.000e-04  2.729e-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:  1.015e+00  2.306e-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:  7.571e-01  1.914e-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: 4.60e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.46e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/31795/likelihoodResults_264211201_264470401_4FGL_J1257.2+3646_daily_bin96.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) = 6217.595481
delta logL = -0.00110483413573

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6217.59437559
delta logL = 5.73549186811e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0629       1.0000          .0000       10.000    
     3 'Normalizat'    .75708       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0151       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=   6217.594     FROM MIGRAD    STATUS=FAILED        90 CALLS      240 TOTAL
                     EDM=   .33E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10003E-03    613.39        .33472E-03** at limit **
   2  Index         2.1032        7.8927        .50000       -.79069E-04
   3  Normalizat    .75708        .50004E-01    .23781E-03    .24639E-03
   4  Prefactor     1.0151        .63571E-01    .26307E-03    .23554E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6217.594     FROM SIMPLEX   STATUS=UNCHANGED    167 CALLS      407 TOTAL
                     EDM=   .11E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10003E-03    613.39        .37774E-03** at limit **
   2  Index         2.1032        7.8927        .16421E-04   -.79069E-04
   3  Normalizat    .75708        .50004E-01    .41661E-06    .24639E-03
   4  Prefactor     1.0151        .63571E-01    .31234E-06    .23554E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6217.594     FROM MIGRAD    STATUS=CONVERGED     34 CALLS      441 TOTAL
                     EDM=   .76E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10003E-03    8.6305        .66944E-04** at limit **
   2  Index         2.1039        5.8768        .50000       -.79187E-04
   3  Normalizat    .75708        .17694        .95125E-05    .23759E-03
   4  Prefactor     1.0151        .22495        .52613E-04    .22749E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100031
  Index      = 2.10387
  Normalizat = 0.757076
  Prefactor  = 1.01511
 **********
 **   18 **HESSE 
 **********

 FCN=   6217.594     FROM HESSE     STATUS=OK            29 CALLS      470 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10003E-03    5.0497        .13389E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1039        6.0468        .50000       -.61778    
   3  Normalizat    .75708        .17701        .19025E-05   -1.0168    
   4  Prefactor     1.0151        .22503        .10523E-04   -.92227    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.06981e-08
Minuit parameter uncertainties:
  1  0.000789948
  2  4.14504
  3  0.177143
  4  0.225235
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/31795': 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) = 6217.5943748
delta logL = 1.35871960083e-06

Extracting fit parameters...

4FGL J1257.2+3646
   Spectrum: PowerLaw
300    Prefactor:  1.000e-04  7.899e-04  1.000e-04  1.000e+04 ( 1.000e-13)
301        Index:  2.104e+00  4.145e+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:  1.015e+00  2.252e-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:  7.571e-01  1.771e-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/31795/cmap_HighResolution_264211201_264470401_4FGL_J1257.2+3646_daily_bin96.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.46e-03', job_status='DONE', photon_flux_upper_limit='4.60e-08', time_completed='2021-09-06 11:40:16.058512', job_id='31795', GAL2='1.02', fit_tolerance='1e-08', EG2='0.76', EG='0.76', time_epoch_completed='1630953616.06', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.02', dlogl='1.36e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.03' WHERE bin_id='96' AND source_name='4FGL J1257.2+3646' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 11:40:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0220>
Subject: Job 31795: <4FGL_J1257.2+3646_daily_bin96> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1257.2+3646_daily_bin96 194.31 36.7706 264211201 264470401 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 :                                   770.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             294.44 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   877 sec.
    Turnaround time :                            878 sec.

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

