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


Performing analysis on: 4FGL_J1257.2+3646_daily_bin118
RA = 194.31, Dec = 36.7706
tmin = 269913601, tmax = 270172801
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='31829', job_status='RUN', time_executed='2021-09-06 11:28:11.944001', time_epoch_executed='1630952891.94' WHERE source_name='4FGL J1257.2+3646' and cadence='daily' and bin_id='118'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/31829

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/31829/ft1_4FGL_J1257.2+3646_daily_bin118.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/31829/ft2_4FGL_J1257.2+3646_daily_bin118.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/31829/ft1_4FGL_J1257.2+3646_daily_bin118.fits outfile=/scratch/kocevski/31829/ft1_filteredMKT_4FGL_J1257.2+3646_daily_bin118.fits ra=194.31 dec=36.7706 rad=12.0 tmin=269913601.0 tmax=270172801.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.75
user 1.46
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/31829/ft1_filtered_4FGL_J1257.2+3646_daily_bin118.fits" evtable="EVENTS" scfile=/scratch/kocevski/31829/ft2_4FGL_J1257.2+3646_daily_bin118.fits sctable="SC_DATA" outfile=/scratch/kocevski/31829/ltcube_269913601_270172801_4FGL_J1257.2+3646_daily_bin118.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/31829/ft2_4FGL_J1257.2+3646_daily_bin118.fits
.....................!
real 12.57
user 12.10
sys 0.44

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/31829/ft1_filtered_4FGL_J1257.2+3646_daily_bin118.fits evtable="EVENTS" scfile=/scratch/kocevski/31829/ft2_4FGL_J1257.2+3646_daily_bin118.fits sctable="SC_DATA" expcube=/scratch/kocevski/31829/ltcube_269913601_270172801_4FGL_J1257.2+3646_daily_bin118.fits outfile=/scratch/kocevski/31829/expmap_269913601_270172801_4FGL_J1257.2+3646_daily_bin118.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/31829/ltcube_269913601_270172801_4FGL_J1257.2+3646_daily_bin118.fits
.....................!
real 193.10
user 187.69
sys 5.00

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/31829/ft1_filtered_4FGL_J1257.2+3646_daily_bin118.fits scfile=/scratch/kocevski/31829/ft2_4FGL_J1257.2+3646_daily_bin118.fits outfile=/scratch/kocevski/31829/cmap_269913601_270172801_4FGL_J1257.2+3646_daily_bin118.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.87
user 0.36
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/31829/ft1_filtered_4FGL_J1257.2+3646_daily_bin118.fits scfile=/scratch/kocevski/31829/ft2_4FGL_J1257.2+3646_daily_bin118.fits outfile=/scratch/kocevski/31829/cmap_HighResolution_269913601_270172801_4FGL_J1257.2+3646_daily_bin118.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.69
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 'norm      '    3.3866       1.0000         .10000E-03   10000.    
     3 'Prefactor '    10.699       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.4932       1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.3025       1.0000         .10000E-03   10000.    
     6 'Prefactor '    18.732       1.0000         .10000E-03   10000.    
     7 'Prefactor '    9.3789       1.0000         .10000E-03   10000.    
     8 'Prefactor '    8.4906       1.0000         .10000E-03   10000.    
     9 'Prefactor '    85.288       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    38.674       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    3.9671       1.0000         .10000E-03   10000.    
    16 'norm      '    6.6823       1.0000         .10000E-03   10000.    
    17 'norm      '    8.1747       1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    58.279       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .89064       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.1664       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=   7757.247     FROM MIGRAD    STATUS=CONVERGED     69 CALLS     2465 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  9.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10007E-03    2.8315        .85398E-06** at limit **
   2  norm          3.3866        2.0151        .44209E-06    .71982E-03
   3  Prefactor     10.700        1.0012       -.23898E-07   -.12898E-03
   4  Prefactor     1.4932        1.5563        .45208E-06    .65028E-03
   5  Prefactor     5.3025        2.4597       -.19301E-05    .21039E-03
   6  Prefactor     18.732        1.0030       -.40158E-07   -.53613E-04
   7  Prefactor     9.3789        1.0015       -.43648E-07    .29088E-04
   8  Prefactor     8.4909        1.0051        .26416E-06   -.24214E-03
   9  Prefactor     85.289        1.0059        .12044E-06   -.16905E-02
  10  Prefactor     .10000E-03    2.2431        .53870E-06** at limit **
  11  norm          .10000E-03    1.3492        .19600E-06** at limit **
  12  Prefactor     .10003E-03    26.923       -.46475E-04** at limit **
  13  Prefactor     38.673        1.0252       -.34807E-06    .22299E-02
  14  Prefactor     .10004E-03    4.3220       -.28668E-04** at limit **
  15  norm          3.9677        1.1237        .28892E-05    .41025E-02
  16  norm          6.6822        1.0029       -.21226E-07   -.18385E-04
  17  norm          8.1746        1.0102        .19003E-06    .11197E-02
  18  norm          .10017E-03    4.6263       -.14062E-04** at limit **
  19  Prefactor     .10000E-03    1.0006       -.67020E-06** at limit **
  20  Prefactor     .10000E-03    4.8980       -.60110E-05** at limit **
  21  Prefactor     .10007E-03    12.439        .53371E-04** at limit **
  22  Prefactor     .10005E-03    4.1149        .25263E-04** at limit **
  23  Prefactor     58.278        1.0012       -.65244E-07    .59264E-03
  24  Normalizat    .89079        .18356       -.18755E-05   -.28391E-04
  25  Prefactor     1.1662        .23137       -.14096E-06    .11815E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010007
  norm       = 3.38663
  Prefactor  = 10.6995
  Prefactor  = 1.4932
  Prefactor  = 5.3025
  Prefactor  = 18.7322
  Prefactor  = 9.37894
  Prefactor  = 8.49091
  Prefactor  = 85.2888
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100027
  Prefactor  = 38.6726
  Prefactor  = 0.000100044
  norm       = 3.9677
  norm       = 6.68222
  norm       = 8.1746
  norm       = 0.000100168
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100066
  Prefactor  = 0.000100053
  Prefactor  = 58.2784
  Normalizat = 0.890786
  Prefactor  = 1.16624
 **********
 **   18 **HESSE 
 **********

 FCN=   7757.247     FROM HESSE     STATUS=OK           481 CALLS     2946 TOTAL
                     EDM=   .86E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10007E-03    6.5882        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          3.3866        2.0057        .54966E-02   -1.5340    
   3  Prefactor     10.700        8.5845        .30622E-02   -1.5054    
   4  Prefactor     1.4932        1.5749        .87682E-02   -1.5464    
   5  Prefactor     5.3025        2.4861        .43635E-02   -1.5247    
   6  Prefactor     18.732        9.5258        .23135E-02   -1.4842    
   7  Prefactor     9.3789        23.574        .32715E-02   -1.5095    
   8  Prefactor     8.4909        16.939        .34393E-02   -1.5125    
   9  Prefactor     85.289        68.794        .10875E-02   -1.3858    
  10  Prefactor     .10000E-03    2.2353        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    1.3455        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10003E-03    27.212        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     38.673        22.581        .16113E-02   -1.4463    
  14  Prefactor     .10004E-03    8.0095        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          3.9677        4.2510        .50628E-02   -1.5310    
  16  norm          6.6822        6.6798        .38807E-02   -1.5191    
  17  norm          8.1746        3.8261        .35056E-02   -1.5136    
  18  norm          .10017E-03    9.1334        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    .99125        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    4.8996        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10007E-03    13.669        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10005E-03    6.0294        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     58.278        60.046        .13138E-02   -1.4180    
  24  Normalizat    .89079        .15834        .44782E-01   -.96785    
  25  Prefactor     1.1662        .19517        .64617E-01   -.87377    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.621e-08
Minuit parameter uncertainties:
  1  0.00135722
  2  2.00574
  3  8.58551
  4  1.57498
  5  2.48612
  6  9.52658
  7  23.5974
  8  16.9482
  9  68.8579
  10  2.59136e-06
  11  4.89758e-06
  12  0.00170862
  13  22.5858
  14  0.00119015
  15  4.2513
  16  6.68058
  17  3.82621
  18  0.0024772
  19  9.13798e-06
  20  4.18507e-06
  21  0.00190407
  22  0.00113552
  23  60.1086
  24  0.158426
  25  0.195287
Done.

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

Extracting fit parameters...

4FGL J1257.2+3646
   Spectrum: PowerLaw
300    Prefactor:  1.000e-04  2.591e-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.166e+00  1.953e-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:  8.908e-01  1.584e-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.90e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.93e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/31829/likelihoodResults_269913601_270172801_4FGL_J1257.2+3646_daily_bin118.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) = 7757.24868013
delta logL = -0.00211281730481

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7757.24656761
delta logL = -2.91275682684e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10297E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0066       1.0000          .0000       10.000    
     3 'Normalizat'    .89080       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1663       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=   7757.247     FROM MIGRAD    STATUS=FAILED        86 CALLS      234 TOTAL
                     EDM=   .37E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10131E-03    30.705        .13073E-02** at limit **
   2  Index         1.9497        7.2640        .50000        .60052E-04
   3  Normalizat    .89079        .13737E-01    .25682E-03    .10527E-03
   4  Prefactor     1.1662        .17316E-01    .28583E-03    .12243E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   7757.247     FROM SIMPLEX   STATUS=UNCHANGED    131 CALLS      365 TOTAL
                     EDM=   .15E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10131E-03    30.705        .31019E-03** at limit **
   2  Index         1.9497        7.2640        .39394E-03    .60052E-04
   3  Normalizat    .89079        .13737E-01    .18847E-05    .10527E-03
   4  Prefactor     1.1662        .17316E-01    .81183E-06    .12243E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7757.247     FROM MIGRAD    STATUS=CONVERGED     46 CALLS      411 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    28.796        .26145E-02** at limit **
   2  Index         1.6575        8.1171        .50000        .71441E-07
   3  Normalizat    .89079        .12571E-01    .10273E-04   -.16073E-02
   4  Prefactor     1.1662        .15847E-01    .11433E-04   -.14412E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.65751
  Normalizat = 0.890786
  Prefactor  = 1.16624
 **********
 **   18 **HESSE 
 **********

 FCN=   7757.247     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      440 TOTAL
                     EDM=   .48E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    136.97        .52290E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.6575        6.5648        .50000       -.73219    
   3  Normalizat    .89079        .28836E-01    .20546E-05   -.96785    
   4  Prefactor     1.1662        .36341E-01    .22866E-05   -.87377    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.84044e-10
Minuit parameter uncertainties:
  1  6.41554e-05
  2  499.455
  3  0.0288361
  4  0.0363416
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/31829': 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) = 7757.24656383
delta logL = 3.48402136296e-06

Extracting fit parameters...

4FGL J1257.2+3646
   Spectrum: PowerLaw
300    Prefactor:  1.000e-04  6.416e-05  1.000e-04  1.000e+04 ( 1.000e-13)
301        Index:  1.658e+00  4.995e+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:  1.166e+00  3.634e-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:  8.908e-01  2.884e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/31829/cmap_HighResolution_269913601_270172801_4FGL_J1257.2+3646_daily_bin118.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.93e-03', job_status='DONE', photon_flux_upper_limit='3.90e-08', time_completed='2021-09-06 11:41:26.772434', job_id='31829', GAL2='1.17', fit_tolerance='1e-08', EG2='0.89', EG='0.89', time_epoch_completed='1630953686.77', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.17', dlogl='3.48e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.03' WHERE bin_id='118' AND source_name='4FGL J1257.2+3646' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 11:41:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0077>
Subject: Job 31829: <4FGL_J1257.2+3646_daily_bin118> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1257.2+3646_daily_bin118 194.31 36.7706 269913601 270172801 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 :                                   789.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             298.57 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   945 sec.
    Turnaround time :                            946 sec.

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

