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


Performing analysis on: 4FGL_J1257.2+3646_daily_bin336
RA = 194.31, Dec = 36.7706
tmin = 326419201, tmax = 326678401
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='32925', job_status='RUN', time_executed='2021-09-06 11:33:12.033356', time_epoch_executed='1630953192.03' WHERE source_name='4FGL J1257.2+3646' and cadence='daily' and bin_id='336'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/32925

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/32925/ft1_4FGL_J1257.2+3646_daily_bin336.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/32925/ft2_4FGL_J1257.2+3646_daily_bin336.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/32925/ft1_4FGL_J1257.2+3646_daily_bin336.fits outfile=/scratch/kocevski/32925/ft1_filteredMKT_4FGL_J1257.2+3646_daily_bin336.fits ra=194.31 dec=36.7706 rad=12.0 tmin=326419201.0 tmax=326678401.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.38
user 3.15
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/32925/ft1_filtered_4FGL_J1257.2+3646_daily_bin336.fits" evtable="EVENTS" scfile=/scratch/kocevski/32925/ft2_4FGL_J1257.2+3646_daily_bin336.fits sctable="SC_DATA" outfile=/scratch/kocevski/32925/ltcube_326419201_326678401_4FGL_J1257.2+3646_daily_bin336.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/32925/ft2_4FGL_J1257.2+3646_daily_bin336.fits
.....................!
real 11.64
user 11.28
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/32925/ft1_filtered_4FGL_J1257.2+3646_daily_bin336.fits evtable="EVENTS" scfile=/scratch/kocevski/32925/ft2_4FGL_J1257.2+3646_daily_bin336.fits sctable="SC_DATA" expcube=/scratch/kocevski/32925/ltcube_326419201_326678401_4FGL_J1257.2+3646_daily_bin336.fits outfile=/scratch/kocevski/32925/expmap_326419201_326678401_4FGL_J1257.2+3646_daily_bin336.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/32925/ltcube_326419201_326678401_4FGL_J1257.2+3646_daily_bin336.fits
.....................!
real 191.52
user 186.91
sys 4.30

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/32925/ft1_filtered_4FGL_J1257.2+3646_daily_bin336.fits scfile=/scratch/kocevski/32925/ft2_4FGL_J1257.2+3646_daily_bin336.fits outfile=/scratch/kocevski/32925/cmap_326419201_326678401_4FGL_J1257.2+3646_daily_bin336.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.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/32925/ft1_filtered_4FGL_J1257.2+3646_daily_bin336.fits scfile=/scratch/kocevski/32925/ft2_4FGL_J1257.2+3646_daily_bin336.fits outfile=/scratch/kocevski/32925/cmap_HighResolution_326419201_326678401_4FGL_J1257.2+3646_daily_bin336.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.53
user 0.38
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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      '    5.9773       1.0000         .10000E-03   10000.    
     3 'Prefactor '    17.042       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.6747       1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.3475       1.0000         .10000E-03   10000.    
     7 'Prefactor '    13.797       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    58.475       1.0000         .10000E-03   10000.    
    13 'Prefactor '    8.7166       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    10.829       1.0000         .10000E-03   10000.    
    16 'norm      '    11.153       1.0000         .10000E-03   10000.    
    17 'norm      '    5.0119       1.0000         .10000E-03   10000.    
    18 'norm      '    .10122E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .78383       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10448E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    4.9131       1.0000         .10000E-03   10000.    
    22 'Prefactor '    5.3590       1.0000         .10000E-03   10000.    
    23 'Prefactor '    103.88       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0950       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .81276       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=   5943.511     FROM MIGRAD    STATUS=CONVERGED    587 CALLS     2919 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    22.864       -.16444E-07** at limit **
   2  norm          5.9756        3.3282        .52434E-07    .80508E-05
   3  Prefactor     17.043        9.7075        .24138E-06   -.68735E-04
   4  Prefactor     .10000E-03    1.8893       -.68704E-08** at limit **
   5  Prefactor     3.6744        2.6136       -.88894E-08   -.12523E-04
   6  Prefactor     3.3470        8.6249        .22801E-05   -.40157E-04
   7  Prefactor     13.794        34.732        .66980E-06   -.68520E-04
   8  Prefactor     .10000E-03    6.9074        .23471E-07** at limit **
   9  Prefactor     .10000E-03    39.091        .10898E-06** at limit **
  10  Prefactor     .10000E-03    2.7077       -.36674E-07** at limit **
  11  norm          .10000E-03    2.8844        .10784E-06** at limit **
  12  Prefactor     58.475        47.882        .49162E-06   -.40289E-04
  13  Prefactor     8.7257        20.589       -.57815E-06   -.25537E-03
  14  Prefactor     .10000E-03    12.082        .77454E-06** at limit **
  15  norm          10.830        6.0099        .29052E-08   -.10972E-03
  16  norm          11.152        11.996        .12702E-06   -.18090E-04
  17  norm          5.0058        3.2665       -.62579E-06   -.22673E-02
  18  norm          .10000E-03    5.2066        .56159E-06** at limit **
  19  Prefactor     .78044        2.3512        .24167E-05   -.19165E-02
  20  Prefactor     .10007E-03    9.9956        .99817E-06** at limit **
  21  Prefactor     4.9566        163.16       -.71376E-05   -.19598E-04
  22  Prefactor     5.3585        11.049       -.54170E-06   -.28639E-03
  23  Prefactor     103.87        72.774        .19129E-06   -.15500E-03
  24  Normalizat    1.0951        .17413       -.28265E-05   -.13515E-02
  25  Prefactor     .81270        .20708        .11317E-05   -.79032E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 5.97561
  Prefactor  = 17.0431
  Prefactor  = 0.0001
  Prefactor  = 3.67443
  Prefactor  = 3.34696
  Prefactor  = 13.7938
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 58.4748
  Prefactor  = 8.72572
  Prefactor  = 0.000100001
  norm       = 10.8296
  norm       = 11.1519
  norm       = 5.00584
  norm       = 0.0001
  Prefactor  = 0.780438
  Prefactor  = 0.000100066
  Prefactor  = 4.95663
  Prefactor  = 5.35851
  Prefactor  = 103.872
  Normalizat = 1.09506
  Prefactor  = 0.8127
 **********
 **   18 **HESSE 
 **********

 FCN=   5943.511     FROM HESSE     STATUS=OK           429 CALLS     3348 TOTAL
                     EDM=   .51E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    22.917        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          5.9756        3.3082        .99113E-04   -1.5219    
   3  Prefactor     17.043        9.7200        .97018E-04   -1.4882    
   4  Prefactor     .10000E-03    1.9558        .20549E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     3.6744        2.6070        .98783E-04   -1.5325    
   6  Prefactor     3.3470        8.5578        .11060E-02   -1.5342    
   7  Prefactor     13.794        34.799        .10784E-03   -1.4965    
   8  Prefactor     .10000E-03    6.9150        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    39.122        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    2.7267        .12386E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    2.9184        .12743E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     58.475        47.931        .52464E-04   -1.4177    
  13  Prefactor     8.7257        20.505        .13577E-03   -1.5117    
  14  Prefactor     .10000E-03    12.214        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          10.830        6.0214        .12175E-03   -1.5050    
  16  norm          11.152        11.998        .11996E-03   -1.5040    
  17  norm          5.0058        3.2952        .10694E-03   -1.5260    
  18  norm          .10000E-03    5.3279        .17162E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .78044        2.5040        .10085E-02   -1.5531    
  20  Prefactor     .10007E-03    80.130        .43970E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     4.9566        167.73        .18146E-03   -1.5263    
  22  Prefactor     5.3585        11.057        .17360E-03   -1.5245    
  23  Prefactor     103.87        73.126        .39453E-04   -1.3666    
  24  Normalizat    1.0951        .20222        .21898E-03   -.89911    
  25  Prefactor     .81270        .23883        .31028E-03   -.99262    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.11303e-09
Minuit parameter uncertainties:
  1  8.83029e-06
  2  3.30828
  3  9.72089
  4  1.00311e-06
  5  2.60709
  6  8.5609
  7  34.8504
  8  6.65551e-06
  9  6.73616e-05
  10  4.28038e-06
  11  1.70228e-05
  12  47.9629
  13  20.5216
  14  0.000175741
  15  6.02169
  16  12.0008
  17  3.29533
  18  0.000101371
  19  2.50431
  20  0.00462191
  21  57.8444
  22  11.0615
  23  73.1892
  24  0.202361
  25  0.23914
Done.

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

Extracting fit parameters...

4FGL J1257.2+3646
   Spectrum: PowerLaw
300    Prefactor:  1.000e-04  4.280e-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:  8.127e-01  2.391e-01  0.000e+00  1.000e+01 ( 1.000e+00)
600        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
601        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
598   Normalization:  1.095e+00  2.024e-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.29e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.23e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/32925/likelihoodResults_326419201_326678401_4FGL_J1257.2+3646_daily_bin336.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) = 5943.51304365
delta logL = -0.00173682487821

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5943.51130684
delta logL = -1.85364115168e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10067E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0141       1.0000          .0000       10.000    
     3 'Normalizat'    1.0951       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81270       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=   5943.511     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      235 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10062E-03    40.613        .12474E-02** at limit **
   2  Index         1.9727        7.8992        .50000        .31765E-04
   3  Normalizat    1.0951        .15620E-01    .21898E-03    .47504E-04
   4  Prefactor     .81270        .19426E-01    .31028E-03    .25794E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010062
  Index      = 1.97269
  Normalizat = 1.09506
  Prefactor  = 0.812699
 **********
 **   18 **HESSE 
 **********

 FCN=   5943.511     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      264 TOTAL
                     EDM=   .79E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10062E-03    176.73        .24948E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9727        7.3714        .50000       -.65035    
   3  Normalizat    1.0951        .34741E-01    .87591E-05   -.89910    
   4  Prefactor     .81270        .43173E-01    .12411E-04   -.99262    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.8797e-08
Minuit parameter uncertainties:
  1  0.0210032
  2  496.081
  3  0.0347419
  4  0.0431751
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/32925': 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) = 5943.51130644
delta logL = 3.77424839826e-07

Extracting fit parameters...

4FGL J1257.2+3646
   Spectrum: PowerLaw
300    Prefactor:  1.006e-04  2.100e-02  1.000e-04  1.000e+04 ( 1.000e-13)
301        Index:  1.973e+00  4.961e+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:  8.127e-01  4.318e-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:  1.095e+00  3.474e-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/32925/cmap_HighResolution_326419201_326678401_4FGL_J1257.2+3646_daily_bin336.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.23e-03', job_status='DONE', photon_flux_upper_limit='4.29e-08', time_completed='2021-09-06 11:44:59.055979', job_id='32925', GAL2='0.81', fit_tolerance='1e-08', EG2='1.10', EG='1.10', time_epoch_completed='1630953899.06', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.81', dlogl='3.77e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.03' WHERE bin_id='336' AND source_name='4FGL J1257.2+3646' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 11:44:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0249>
Subject: Job 32925: <4FGL_J1257.2+3646_daily_bin336> in cluster <slac> Done

Job <4FGL_J1257.2+3646_daily_bin336> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Mon Sep  6 11:30:27 2021
Job was executed on host(s) <bullet0249>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 11:30:28 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:28 2021
Terminated at Mon Sep  6 11:44:59 2021
Results reported at Mon Sep  6 11:44:59 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1257.2+3646_daily_bin336 194.31 36.7706 326419201 326678401 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 :                                   701.24 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             283.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   871 sec.
    Turnaround time :                            872 sec.

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

