/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 184 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 = 7475
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1257.2+3646_daily_bin379
RA = 194.31, Dec = 36.7706
tmin = 337564801, tmax = 337824001
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='32988', job_status='RUN', time_executed='2021-09-06 11:33:48.929091', time_epoch_executed='1630953228.93' WHERE source_name='4FGL J1257.2+3646' and cadence='daily' and bin_id='379'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/32988

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

Retrieving the FT1 file...

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

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

Retrieving 52 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/32988/ft1_4FGL_J1257.2+3646_daily_bin379.fits


Retrieving the FT1 file...

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

Retrieving 52 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/32988/ft2_4FGL_J1257.2+3646_daily_bin379.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/32988/ft1_4FGL_J1257.2+3646_daily_bin379.fits outfile=/scratch/kocevski/32988/ft1_filteredMKT_4FGL_J1257.2+3646_daily_bin379.fits ra=194.31 dec=36.7706 rad=12.0 tmin=337564801.0 tmax=337824001.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 6.22
user 5.97
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/32988/ft1_filtered_4FGL_J1257.2+3646_daily_bin379.fits" evtable="EVENTS" scfile=/scratch/kocevski/32988/ft2_4FGL_J1257.2+3646_daily_bin379.fits sctable="SC_DATA" outfile=/scratch/kocevski/32988/ltcube_337564801_337824001_4FGL_J1257.2+3646_daily_bin379.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/32988/ft2_4FGL_J1257.2+3646_daily_bin379.fits
.....................!
real 12.03
user 11.61
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/32988/ft1_filtered_4FGL_J1257.2+3646_daily_bin379.fits evtable="EVENTS" scfile=/scratch/kocevski/32988/ft2_4FGL_J1257.2+3646_daily_bin379.fits sctable="SC_DATA" expcube=/scratch/kocevski/32988/ltcube_337564801_337824001_4FGL_J1257.2+3646_daily_bin379.fits outfile=/scratch/kocevski/32988/expmap_337564801_337824001_4FGL_J1257.2+3646_daily_bin379.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/32988/ltcube_337564801_337824001_4FGL_J1257.2+3646_daily_bin379.fits
.....................!
real 190.56
user 185.02
sys 5.20

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/32988/ft1_filtered_4FGL_J1257.2+3646_daily_bin379.fits scfile=/scratch/kocevski/32988/ft2_4FGL_J1257.2+3646_daily_bin379.fits outfile=/scratch/kocevski/32988/cmap_337564801_337824001_4FGL_J1257.2+3646_daily_bin379.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/32988/ft1_filtered_4FGL_J1257.2+3646_daily_bin379.fits scfile=/scratch/kocevski/32988/ft2_4FGL_J1257.2+3646_daily_bin379.fits outfile=/scratch/kocevski/32988/cmap_HighResolution_337564801_337824001_4FGL_J1257.2+3646_daily_bin379.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/32988/ft1_filtered_4FGL_J1257.2+3646_daily_bin379.fits evtable="EVENTS" scfile=/scratch/kocevski/32988/ft2_4FGL_J1257.2+3646_daily_bin379.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/32988/Model_4FGL_J1257.2+3646_daily_bin379.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/32988/ft1_filtered_4FGL_J1257.2+3646_daily_bin379.fits....................!
real 47.92
user 46.55
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    41.232       1.0000         .10000E-03   10000.    
     2 'norm      '    4.6715       1.0000         .10000E-03   10000.    
     3 'Prefactor '    9.8554       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.8042       1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.1027       1.0000         .10000E-03   10000.    
     6 'Prefactor '    23.037       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .25672       1.0000         .10000E-03   10000.    
    12 'Prefactor '    27.209       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.0923       1.0000         .10000E-03   10000.    
    15 'norm      '    3.7636       1.0000         .10000E-03   10000.    
    16 'norm      '    7.0717       1.0000         .10000E-03   10000.    
    17 'norm      '    4.9768       1.0000         .10000E-03   10000.    
    18 'norm      '    .10175E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .57214       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    69.374       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .12497E-01   1.0000         .10000E-03   10000.    
    23 'Prefactor '    23.520       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .89812       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0234       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=   5622.702     FROM MIGRAD    STATUS=CONVERGED    592 CALLS     2950 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     41.237        38.689        .36686E-05   -.23228E-04
   2  norm          4.6717        3.7786       -.11863E-05   -.26245E-03
   3  Prefactor     9.8556        7.8114        .34406E-06   -.76518E-04
   4  Prefactor     1.8034        3.3298        .15571E-05   -.56686E-03
   5  Prefactor     4.1027        2.4164        .11968E-06   -.16131E-03
   6  Prefactor     23.037        10.665        .26691E-06   -.43968E-04
   7  Prefactor     .10000E-03    14.563        .15683E-07** at limit **
   8  Prefactor     .10000E-03    5.4569        .44917E-07** at limit **
   9  Prefactor     .10000E-03    23.234       -.49938E-06** at limit **
  10  Prefactor     .10000E-03    2.0902        .19476E-07** at limit **
  11  norm          .25842        2.7024        .10803E-05   -.12319E-02
  12  Prefactor     27.217        36.253        .43927E-05   -.12787E-04
  13  Prefactor     .10000E-03    6.8893        .42987E-07** at limit **
  14  Prefactor     4.0928        9.4715       -.30696E-06   -.16974E-03
  15  norm          3.7645        3.5459        .23250E-06   -.17345E-04
  16  norm          7.0715        7.4765       -.10341E-06    .27243E-04
  17  norm          4.9788        3.1726        .22552E-06   -.28497E-03
  18  norm          .10000E-03    4.4807       -.76310E-07** at limit **
  19  Prefactor     .56872        4.3444       -.30402E-06   -.69945E-03
  20  Prefactor     .10000E-03    30.954        .10507E-05** at limit **
  21  Prefactor     69.370        77.595       -.35780E-05   -.29157E-04
  22  Prefactor     .10004E-03    13.307        .21266E-05** at limit **
  23  Prefactor     23.574        70.724        .82796E-04   -.89374E-05
  24  Normalizat    .89782        .17121       -.57762E-05   -.72344E-04
  25  Prefactor     1.0239        .20723        .17185E-06   -.37038E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 41.2373
  norm       = 4.67175
  Prefactor  = 9.85559
  Prefactor  = 1.80338
  Prefactor  = 4.10272
  Prefactor  = 23.037
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.25842
  Prefactor  = 27.2168
  Prefactor  = 0.0001
  Prefactor  = 4.09281
  norm       = 3.76455
  norm       = 7.07153
  norm       = 4.97876
  norm       = 0.0001
  Prefactor  = 0.568718
  Prefactor  = 0.000100001
  Prefactor  = 69.3697
  Prefactor  = 0.000100044
  Prefactor  = 23.5738
  Normalizat = 0.897821
  Prefactor  = 1.02388
 **********
 **   18 **HESSE 
 **********

 FCN=   5622.702     FROM HESSE     STATUS=OK           445 CALLS     3395 TOTAL
                     EDM=   .46E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     41.237        38.691        .62427E-04   -1.4423    
   2  norm          4.6717        3.7214        .10666E-03   -1.5276    
   3  Prefactor     9.8556        7.8119        .12764E-03   -1.5080    
   4  Prefactor     1.8034        3.2545        .14999E-03   -1.5439    
   5  Prefactor     4.1027        2.4119        .85652E-04   -1.5303    
   6  Prefactor     23.037        10.659        .83454E-04   -1.4748    
   7  Prefactor     .10000E-03    14.582        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    5.4592        .17108E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    23.242        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    2.0962        .10582E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .25842        6.3745        .23554E-02   -1.5606    
  12  Prefactor     27.217        36.248        .76802E-04   -1.4664    
  13  Prefactor     .10000E-03    6.8970        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     4.0928        9.4329        .19929E-03   -1.5303    
  15  norm          3.7645        3.5219        .12964E-03   -1.5320    
  16  norm          7.0715        7.4776        .15085E-03   -1.5176    
  17  norm          4.9788        3.1270        .99740E-04   -1.5262    
  18  norm          .10000E-03    4.5210        .15408E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .56872        7.2118        .22713E-02   -1.5557    
  20  Prefactor     .10000E-03    31.254        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     69.370        74.149        .48193E-04   -1.4040    
  22  Prefactor     .10004E-03    15.220        .82077E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     23.574        70.471        .82594E-04   -1.4737    
  24  Normalizat    .89782        .20177        .23059E-03   -.96537    
  25  Prefactor     1.0239        .24688        .27799E-03   -.91938    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.5983e-09
Minuit parameter uncertainties:
  1  38.7143
  2  3.72163
  3  7.8127
  4  3.25478
  5  2.41191
  6  10.6601
  7  3.65841e-05
  8  7.06231e-06
  9  2.63313e-05
  10  7.70671e-06
  11  2.56676
  12  36.2773
  13  8.35786e-06
  14  9.43631
  15  3.52211
  16  7.47859
  17  3.12711
  18  1.65266e-06
  19  4.05067
  20  0.000378478
  21  74.2477
  22  0.00163946
  23  70.7213
  24  0.20194
  25  0.247157
Done.

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

Extracting fit parameters...

4FGL J1257.2+3646
   Spectrum: PowerLaw
300    Prefactor:  1.000e-04  7.707e-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.024e+00  2.472e-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.978e-01  2.019e-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.86e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.90e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/32988/likelihoodResults_337564801_337824001_4FGL_J1257.2+3646_daily_bin379.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) = 5622.70424744
delta logL = -0.00225016029799

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5622.70199748
delta logL = -1.97801455215e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10269E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0057       1.0000          .0000       10.000    
     3 'Normalizat'    .89781       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0239       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=   5622.702     FROM MIGRAD    STATUS=FAILED        89 CALLS      238 TOTAL
                     EDM=   .51E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10134E-03    32.191        .10783E-02** at limit **
   2  Index         1.9479        5.1087        .50000        .68031E-04
   3  Normalizat    .89782        .15390E-01    .23059E-03    .62268E-04
   4  Prefactor     1.0239        .19776E-01    .27799E-03    .29608E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5622.702     FROM SIMPLEX   STATUS=UNCHANGED    123 CALLS      361 TOTAL
                     EDM=   .14E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10134E-03    32.191        .29126E-03** at limit **
   2  Index         1.9479        5.1087        .23136E-03    .68031E-04
   3  Normalizat    .89782        .15390E-01    .16085E-05    .62268E-04
   4  Prefactor     1.0239        .19776E-01    .19932E-05    .29608E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5622.702     FROM MIGRAD    STATUS=CONVERGED     46 CALLS      407 TOTAL
                     EDM=   .53E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    32.884        .21566E-02** at limit **
   2  Index         1.6066        8.2308        .50000        .34383E-06
   3  Normalizat    .89782        .14523E-01    .92237E-05   -.72104E-03
   4  Prefactor     1.0239        .18661E-01    .11120E-04   -.59278E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.60665
  Normalizat = 0.897816
  Prefactor  = 1.02389
 **********
 **   18 **HESSE 
 **********

 FCN=   5622.702     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      436 TOTAL
                     EDM=   .25E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    152.71        .43132E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.6066        5.0690        .50000       -.74595    
   3  Normalizat    .89782        .33231E-01    .18447E-05   -.96537    
   4  Prefactor     1.0239        .42697E-01    .22239E-05   -.91937    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.46401e-10
Minuit parameter uncertainties:
  1  0.000313485
  2  536.878
  3  0.0332319
  4  0.0426985
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/32988': 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) = 5622.70199296
delta logL = 4.32498745795e-06

Extracting fit parameters...

4FGL J1257.2+3646
   Spectrum: PowerLaw
300    Prefactor:  1.000e-04  3.135e-04  1.000e-04  1.000e+04 ( 1.000e-13)
301        Index:  1.607e+00  5.369e+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.024e+00  4.270e-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.978e-01  3.323e-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/32988/cmap_HighResolution_337564801_337824001_4FGL_J1257.2+3646_daily_bin379.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.90e-03', job_status='DONE', photon_flux_upper_limit='3.86e-08', time_completed='2021-09-06 11:45:52.044046', job_id='32988', GAL2='1.02', fit_tolerance='1e-08', EG2='0.90', EG='0.90', time_epoch_completed='1630953952.04', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.02', dlogl='4.32e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.03' WHERE bin_id='379' AND source_name='4FGL J1257.2+3646' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 11:45:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0104>
Subject: Job 32988: <4FGL_J1257.2+3646_daily_bin379> in cluster <slac> Done

Job <4FGL_J1257.2+3646_daily_bin379> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Mon Sep  6 11:30:31 2021
Job was executed on host(s) <bullet0104>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 11:30:34 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep  6 11:30:34 2021
Terminated at Mon Sep  6 11:45:52 2021
Results reported at Mon Sep  6 11:45:52 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1257.2+3646_daily_bin379 194.31 36.7706 337564801 337824001 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 :                                   719.31 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             295.06 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   918 sec.
    Turnaround time :                            921 sec.

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

