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


Performing analysis on: 4FGL_J1257.2+3646_daily_bin465
RA = 194.31, Dec = 36.7706
tmin = 359856001, tmax = 360115201
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='34497', job_status='RUN', time_executed='2021-09-06 11:39:00.730813', time_epoch_executed='1630953540.73' WHERE source_name='4FGL J1257.2+3646' and cadence='daily' and bin_id='465'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/34497

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

Retrieving the FT1 file...

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

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

Retrieving 45 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/34497/ft1_4FGL_J1257.2+3646_daily_bin465.fits


Retrieving the FT1 file...

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

Retrieving 45 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/34497/ft2_4FGL_J1257.2+3646_daily_bin465.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/34497/ft1_4FGL_J1257.2+3646_daily_bin465.fits outfile=/scratch/kocevski/34497/ft1_filteredMKT_4FGL_J1257.2+3646_daily_bin465.fits ra=194.31 dec=36.7706 rad=12.0 tmin=359856001.0 tmax=360115201.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.54
user 3.01
sys 0.39

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/34497/ft1_filtered_4FGL_J1257.2+3646_daily_bin465.fits" evtable="EVENTS" scfile=/scratch/kocevski/34497/ft2_4FGL_J1257.2+3646_daily_bin465.fits sctable="SC_DATA" outfile=/scratch/kocevski/34497/ltcube_359856001_360115201_4FGL_J1257.2+3646_daily_bin465.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/34497/ft2_4FGL_J1257.2+3646_daily_bin465.fits
.....................!
real 11.91
user 11.55
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/34497/ft1_filtered_4FGL_J1257.2+3646_daily_bin465.fits evtable="EVENTS" scfile=/scratch/kocevski/34497/ft2_4FGL_J1257.2+3646_daily_bin465.fits sctable="SC_DATA" expcube=/scratch/kocevski/34497/ltcube_359856001_360115201_4FGL_J1257.2+3646_daily_bin465.fits outfile=/scratch/kocevski/34497/expmap_359856001_360115201_4FGL_J1257.2+3646_daily_bin465.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/34497/ltcube_359856001_360115201_4FGL_J1257.2+3646_daily_bin465.fits
.....................!
real 192.20
user 186.29
sys 5.15

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/34497/ft1_filtered_4FGL_J1257.2+3646_daily_bin465.fits scfile=/scratch/kocevski/34497/ft2_4FGL_J1257.2+3646_daily_bin465.fits outfile=/scratch/kocevski/34497/cmap_359856001_360115201_4FGL_J1257.2+3646_daily_bin465.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/34497/ft1_filtered_4FGL_J1257.2+3646_daily_bin465.fits scfile=/scratch/kocevski/34497/ft2_4FGL_J1257.2+3646_daily_bin465.fits outfile=/scratch/kocevski/34497/cmap_HighResolution_359856001_360115201_4FGL_J1257.2+3646_daily_bin465.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.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    47.785       1.0000         .10000E-03   10000.    
     2 'norm      '    5.0772       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.6505       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.9442       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .19261E-02   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10193E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    6.9885       1.0000         .10000E-03   10000.    
    12 'Prefactor '    29.050       1.0000         .10000E-03   10000.    
    13 'Prefactor '    8.2422       1.0000         .10000E-03   10000.    
    14 'Prefactor '    13.801       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    8.0516       1.0000         .10000E-03   10000.    
    17 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .45939E-01   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .95193       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.1692       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6020E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5634.529     FROM MIGRAD    STATUS=CONVERGED    111 CALLS     2838 TOTAL
                     EDM=   .12E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     47.768        2.0176        .19056E-07   -.26983E-02
   2  norm          5.0773        1.2043       -.11874E-06   -.57486E-03
   3  Prefactor     .10000E-03    3.5787       -.84114E-07** at limit **
   4  Prefactor     3.6506        2.0438        .10404E-06    .14538E-03
   5  Prefactor     1.9439        1.8617       -.12070E-06   -.83968E-04
   6  Prefactor     .10000E-03    7.1114       -.32419E-05** at limit **
   7  Prefactor     .12551E-03    24.824       -.39540E-05** at limit **
   8  Prefactor     .10000E-03    6.6373        .23289E-05** at limit **
   9  Prefactor     .10000E-03    59.667        .42357E-06** at limit **
  10  Prefactor     .10000E-03    3.0371        .23786E-06** at limit **
  11  norm          6.9876        4.9122        .62961E-05    .55983E-03
  12  Prefactor     29.047        1.0846       -.12446E-06    .68681E-03
  13  Prefactor     8.2340        1.6218        .13126E-05   -.18801E-02
  14  Prefactor     13.803        1.2480        .40722E-06   -.13835E-02
  15  norm          .10000E-03    2.3108       -.11744E-06** at limit **
  16  norm          8.0516        1.0287        .75187E-07   -.16294E-03
  17  norm          .10000E-03    1.7072        .14033E-06** at limit **
  18  norm          .10000E-03    2.2146       -.85916E-07** at limit **
  19  Prefactor     .10000E-03    1.4427        .14862E-06** at limit **
  20  Prefactor     .10237E-03    460.93       -.26123E-04** at limit **
  21  Prefactor     .10000E-03    20.519        .74348E-05** at limit **
  22  Prefactor     .10000E-03    4.8167       -.60856E-06** at limit **
  23  Prefactor     .10000E-03    20.996       -.51971E-05** at limit **
  24  Normalizat    .95204        .20049        .25620E-06    .39501E-05
  25  Prefactor     1.1692        .26002       -.42663E-06   -.35117E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 47.7681
  norm       = 5.07726
  Prefactor  = 0.0001
  Prefactor  = 3.65056
  Prefactor  = 1.94387
  Prefactor  = 0.0001
  Prefactor  = 0.000125505
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  norm       = 6.98762
  Prefactor  = 29.0466
  Prefactor  = 8.23397
  Prefactor  = 13.8031
  norm       = 0.0001
  norm       = 8.05165
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000102367
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Normalizat = 0.952044
  Prefactor  = 1.16917
 **********
 **   18 **HESSE 
 **********

 FCN=   5634.529     FROM HESSE     STATUS=OK           481 CALLS     3319 TOTAL
                     EDM=   .49E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     47.768        30.844        .14502E-02   -1.4325    
   2  norm          5.0773        3.1999        .44611E-02   -1.5257    
   3  Prefactor     .10000E-03    3.5685        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     3.6506        2.3281        .52857E-02   -1.5326    
   5  Prefactor     1.9439        1.8831        .74426E-02   -1.5429    
   6  Prefactor     .10000E-03    7.0506        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .12551E-03    14.454        .15948       -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    6.6412        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    60.240        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    3.0281        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          6.9876        5.5628        .37939E-02   -1.5179    
  12  Prefactor     29.047        42.427        .18583E-02   -1.4630    
  13  Prefactor     8.2340        23.988        .34911E-02   -1.5134    
  14  Prefactor     13.803        14.745        .26955E-02   -1.4965    
  15  norm          .10000E-03    2.2930        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          8.0516        10.929        .35325E-02   -1.5140    
  17  norm          .10000E-03    1.6926        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    2.2118        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    1.4264        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10237E-03    7.4577        .92502E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    20.547        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    4.8104        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    21.046        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .95204        .17031        .45562E-01   -.94655    
  25  Prefactor     1.1692        .21770        .62539E-01   -.87285    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.89346e-08
Minuit parameter uncertainties:
  1  30.8546
  2  3.20005
  3  1.43718e-05
  4  2.32812
  5  1.88314
  6  3.01779e-05
  7  0.0384101
  8  3.14092e-05
  9  0.000682246
  10  1.23869e-05
  11  5.56318
  12  42.4713
  13  24.0163
  14  14.749
  15  7.44236e-06
  16  10.932
  17  1.32576e-06
  18  8.97896e-07
  19  5.66311e-06
  20  0.00840338
  21  0.000295158
  22  2.15902e-05
  23  0.000311317
  24  0.170404
  25  0.217866
Done.

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

Extracting fit parameters...

4FGL J1257.2+3646
   Spectrum: PowerLaw
300    Prefactor:  1.000e-04  1.239e-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:  1.169e+00  2.179e-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:  9.520e-01  1.704e-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.61e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.47e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/34497/likelihoodResults_359856001_360115201_4FGL_J1257.2+3646_daily_bin465.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) = 5634.53049867
delta logL = -0.00156255107777

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5634.52893611
delta logL = 3.42060957337e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0346       1.0000          .0000       10.000    
     3 'Normalizat'    .95206       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1692       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=   5634.529     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      202 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    28.754        .90712E-02** at limit **
   2  Index         2.0421        7.8407        .50000       -.21014E-04
   3  Normalizat    .95204        .12992E-01    .45563E-01   -.41366E-05
   4  Prefactor     1.1692        .16864E-01    .62539E-01    .46986E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.04208
  Normalizat = 0.952043
  Prefactor  = 1.16917
 **********
 **   18 **HESSE 
 **********

 FCN=   5634.529     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      235 TOTAL
                     EDM=   .53E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    348.09        .12758E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0421        8.7950        .50000       -.63302    
   3  Normalizat    .95204        .52971E-01    .23448E-03   -.94655    
   4  Prefactor     1.1692        .68721E-01    .27661E-03   -.87285    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.33422e-08
Minuit parameter uncertainties:
  1  3.1176e-05
  2  43.3296
  3  0.0529744
  4  0.0687265
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/34497': 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) = 5634.52893604
delta logL = 7.26759026293e-08

Extracting fit parameters...

4FGL J1257.2+3646
   Spectrum: PowerLaw
300    Prefactor:  1.000e-04  3.118e-05  1.000e-04  1.000e+04 ( 1.000e-13)
301        Index:  2.042e+00  4.333e+01  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.169e+00  6.873e-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:  9.520e-01  5.297e-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/34497/cmap_HighResolution_359856001_360115201_4FGL_J1257.2+3646_daily_bin465.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.47e-03', job_status='DONE', photon_flux_upper_limit='4.61e-08', time_completed='2021-09-06 11:50:40.130580', job_id='34497', GAL2='1.17', fit_tolerance='1e-08', EG2='0.95', EG='0.95', time_epoch_completed='1630954240.13', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.17', dlogl='7.27e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.03' WHERE bin_id='465' AND source_name='4FGL J1257.2+3646' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 11:50:40 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0055>
Subject: Job 34497: <4FGL_J1257.2+3646_daily_bin465> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1257.2+3646_daily_bin465 194.31 36.7706 359856001 360115201 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 :                                   694.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             244.68 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   909 sec.
    Turnaround time :                            911 sec.

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

