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


Performing analysis on: 4FGL_J1257.2+3646_daily_bin295
RA = 194.31, Dec = 36.7706
tmin = 315792001, tmax = 316051201
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='32862', job_status='RUN', time_executed='2021-09-06 11:34:32.233638', time_epoch_executed='1630953272.23' WHERE source_name='4FGL J1257.2+3646' and cadence='daily' and bin_id='295'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/32862

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/32862/ft1_4FGL_J1257.2+3646_daily_bin295.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/32862/ft2_4FGL_J1257.2+3646_daily_bin295.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/32862/ft1_4FGL_J1257.2+3646_daily_bin295.fits outfile=/scratch/kocevski/32862/ft1_filteredMKT_4FGL_J1257.2+3646_daily_bin295.fits ra=194.31 dec=36.7706 rad=12.0 tmin=315792001.0 tmax=316051201.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.57
user 3.38
sys 0.18

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/32862/ft1_filtered_4FGL_J1257.2+3646_daily_bin295.fits evtable="EVENTS" scfile=/scratch/kocevski/32862/ft2_4FGL_J1257.2+3646_daily_bin295.fits sctable="SC_DATA" expcube=/scratch/kocevski/32862/ltcube_315792001_316051201_4FGL_J1257.2+3646_daily_bin295.fits outfile=/scratch/kocevski/32862/expmap_315792001_316051201_4FGL_J1257.2+3646_daily_bin295.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/32862/ltcube_315792001_316051201_4FGL_J1257.2+3646_daily_bin295.fits
.....................!
real 191.43
user 186.20
sys 4.83

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/32862/ft1_filtered_4FGL_J1257.2+3646_daily_bin295.fits scfile=/scratch/kocevski/32862/ft2_4FGL_J1257.2+3646_daily_bin295.fits outfile=/scratch/kocevski/32862/cmap_315792001_316051201_4FGL_J1257.2+3646_daily_bin295.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.54
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/32862/ft1_filtered_4FGL_J1257.2+3646_daily_bin295.fits scfile=/scratch/kocevski/32862/ft2_4FGL_J1257.2+3646_daily_bin295.fits outfile=/scratch/kocevski/32862/cmap_HighResolution_315792001_316051201_4FGL_J1257.2+3646_daily_bin295.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.54
user 0.41
sys 0.12

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    54.035       1.0000         .10000E-03   10000.    
     2 'norm      '    11.666       1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.3032       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .12744       1.0000         .10000E-03   10000.    
     6 'Prefactor '    13.988       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    7.8221       1.0000         .10000E-03   10000.    
    11 'norm      '    2.5818       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .15739E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    32.509       1.0000         .10000E-03   10000.    
    15 'norm      '    .16746       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    6.1322       1.0000         .10000E-03   10000.    
    18 'norm      '    .10042E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .35122       1.0000         .10000E-03   10000.    
    20 'Prefactor '    27.726       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.5095       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .67883E-05   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=   4491.902     FROM MIGRAD    STATUS=CONVERGED    102 CALLS     2455 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     54.044        1.7108        .18193E-06   -.27534E-02
   2  norm          11.664        4.2392        .31780E-06    .42595E-02
   3  Prefactor     2.3028        1.0741       -.11471E-06   -.25072E-03
   4  Prefactor     .10000E-03    1.5638        .23582E-06** at limit **
   5  Prefactor     .13664        5.3369        .98743E-06   -.20371E-02
   6  Prefactor     13.986        1.5554        .43452E-07   -.20633E-02
   7  Prefactor     .10009E-03    6.8142       -.38457E-05** at limit **
   8  Prefactor     .10011E-03    6.7267       -.48376E-05** at limit **
   9  Prefactor     .10001E-03    6.3106       -.43057E-05** at limit **
  10  Prefactor     7.8208        3.1023       -.89628E-06    .17088E-02
  11  norm          2.5798        3.9751        .76351E-06   -.47539E-03
  12  Prefactor     .10042E-03    8.2878       -.30128E-05** at limit **
  13  Prefactor     .10210E-03    97.023       -.14274E-04** at limit **
  14  Prefactor     32.553        12.069        .18022E-05   -.11064E-01
  15  norm          .11685        25.867       -.11908E-05   -.44153E-03
  16  norm          .10010E-03    6.6991       -.26319E-06** at limit **
  17  norm          6.1313        4.3503        .87932E-06    .16575E-02
  18  norm          .10000E-03    6.0204       -.14044E-05** at limit **
  19  Prefactor     .35145        5.2094       -.68828E-06    .54417E-04
  20  Prefactor     27.727        1.0713        .23737E-07    .59824E-03
  21  Prefactor     .10002E-03    14.169       -.91056E-06** at limit **
  22  Prefactor     .10001E-03    6.2992       -.43000E-05** at limit **
  23  Prefactor     .10051E-03    11.141       -.28926E-05** at limit **
  24  Normalizat    1.5097        .10584       -.51370E-05   -.25156E-03
  25  Prefactor     .92648E-12    .94700       -.10983E-04** at limit **
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 54.0436
  norm       = 11.6641
  Prefactor  = 2.30282
  Prefactor  = 0.0001
  Prefactor  = 0.136638
  Prefactor  = 13.9856
  Prefactor  = 0.000100086
  Prefactor  = 0.000100112
  Prefactor  = 0.000100013
  Prefactor  = 7.82084
  norm       = 2.5798
  Prefactor  = 0.000100419
  Prefactor  = 0.000102102
  Prefactor  = 32.5528
  norm       = 0.116849
  norm       = 0.000100104
  norm       = 6.1313
  norm       = 0.0001
  Prefactor  = 0.351448
  Prefactor  = 27.7272
  Prefactor  = 0.000100023
  Prefactor  = 0.000100012
  Prefactor  = 0.000100513
  Normalizat = 1.50974
  Prefactor  = 9.26481e-13
 **********
 **   18 **HESSE 
 **********

 FCN=   4491.902     FROM HESSE     STATUS=OK           501 CALLS     2956 TOTAL
                     EDM=   .73E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     54.044        39.282        .13641E-02   -1.4236    
   2  norm          11.664        4.6968        .29322E-02   -1.5025    
   3  Prefactor     2.3028        6.4546        .67599E-02   -1.5404    
   4  Prefactor     .10000E-03    1.5544        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .13664        1.9143        .57787E-01   -1.5634    
   6  Prefactor     13.986        10.910        .26774E-02   -1.4960    
   7  Prefactor     .10009E-03    26.613        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10011E-03    7.6750        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10001E-03    25.188        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     7.8208        7.6582        .35843E-02   -1.5149    
  11  norm          2.5798        4.0073        .63496E-02   -1.5387    
  12  Prefactor     .10042E-03    21.258        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10210E-03    108.93        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     32.553        28.857        .17569E-02   -1.4566    
  15  norm          .11685        4.8600        .74220E-01   -1.5640    
  16  norm          .10010E-03    7.5459        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          6.1313        4.5391        .40531E-02   -1.5213    
  18  norm          .10000E-03    5.9188        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .35145        3.6329        .38563E-01   -1.5589    
  20  Prefactor     27.727        22.244        .19021E-02   -1.4654    
  21  Prefactor     .10002E-03    19.158        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10001E-03    24.949        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10051E-03    28.397        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.5097        .16582        .29831E-01   -.77505    
  25  Prefactor     .92648E-12    .23669        .22159       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.27804e-07
Minuit parameter uncertainties:
  1  39.3008
  2  4.69698
  3  6.45654
  4  1.20954e-07
  5  1.02253
  6  10.912
  7  0.00301879
  8  0.00185787
  9  0.00116067
  10  7.65916
  11  4.00769
  12  0.00597082
  13  0.0303162
  14  28.8695
  15  1.50665
  16  0.00177198
  17  4.53939
  18  4.39162e-05
  19  2.25975
  20  22.251
  21  0.00133074
  22  0.00109283
  23  0.00763795
  24  0.16588
  25  9.40175e-07
Done.

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

Extracting fit parameters...

4FGL J1257.2+3646
   Spectrum: PowerLaw
300    Prefactor:  7.821e+00  7.659e+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

GAL_V02
   Spectrum: PowerLaw
599    Prefactor:  9.265e-13  9.402e-07  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.510e+00  1.659e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.32
Ra Dec: 194.310 36.771
Photon Index (Fixed Index): 2.03 +/- 0.00
Photon Flux (Fixed Index): 2.97e-08 +/- 2.91e-08
Energy Flux (Fixed Index): 1.92e-05 +/- 1.88e-05

TS (Fixed Index): 3.32
Ra Dec: 194.310 36.771
Photon Flux Upper Limit: 1.01e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.60e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/32862/likelihoodResults_315792001_316051201_4FGL_J1257.2+3646_daily_bin295.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) = 4491.49301433
delta logL = 0.408969408193

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4491.48913993
delta logL = 0.412843815908

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.4545       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6968       1.0000          .0000       10.000    
     3 'Normalizat'    1.4880       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .49683E-06   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=   4491.489     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      314 TOTAL
                     EDM=   .75E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.4545        72.832        .47697E-02    .43047E-03
   2  Index         2.6968        3.2550        .93094E-01    .11906E-03
   3  Normalizat    1.4880        .83441E-01    .30082E-01   -.53431E-05
   4  Prefactor     .49919E-06    .47000E-01    .21990    ** at limit **
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.4545
  Index      = 2.69678
  Normalizat = 1.48801
  Prefactor  = 4.99193e-07
 **********
 **   18 **HESSE 
 **********

 FCN=   4491.489     FROM HESSE     STATUS=OK            41 CALLS      355 TOTAL
                     EDM=   .80E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.4545        6.8413        .95898E-04   -1.5286    
   2  Index         2.6968        .83482        .45927E-02   -.47872    
   3  Normalizat    1.4880        .21649        .18290E-03   -.78116    
   4  Prefactor     .49919E-06    .95094        .15060       -1.5703    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.00187e-09
Minuit parameter uncertainties:
  1  6.8425
  2  0.839826
  3  0.216622
  4  0.0014008
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/32862': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4491.48913992
delta logL = 0.412843824357

Extracting fit parameters...

4FGL J1257.2+3646
   Spectrum: PowerLaw
300    Prefactor:  4.454e+00  6.842e+00  1.000e-04  1.000e+04 ( 1.000e-13)
301        Index:  2.697e+00  8.398e-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:  4.992e-07  1.401e-03  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.488e+00  2.166e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.15
Ra Dec: 194.310 36.771
Photon Index (Free Index): 2.70 +/- 0.84
Photon Flux (Free Index): 7.35e-08 +/- 6.95e-08
Energy Flux (Free Index): 1.77e-05 +/- 1.27e-05

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/32862/cmap_HighResolution_315792001_316051201_4FGL_J1257.2+3646_daily_bin295.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.60e-03', comment='SUCCESS', photon_flux='2.97e-08', energy_flux2='1.77e-05', photon_flux_error='2.91e-08', dlogl='4.13e-01', energy_flux='1.92e-05', photon_flux2='7.35e-08', job_status='DONE', time_completed='2021-09-06 11:44:21.775409', photon_index_error2='0.84', photon_index2='2.70', ts='3.32', fit_tolerance='1e-08', GAL='0.00', photon_index_error='0.00', photon_flux_upper_limit='1.01e-07', energy_flux_error2='1.27e-05', EG='1.51', time_epoch_completed='1630953861.78', return_code='0', job_id='32862', GAL2='0.00', EG2='1.49', return_code2='0', energy_flux_error='1.88e-05', photon_flux_error2='6.95e-08', ts2='4.15', photon_index='2.03' WHERE bin_id='295' AND source_name='4FGL J1257.2+3646' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 11:44:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0075>
Subject: Job 32862: <4FGL_J1257.2+3646_daily_bin295> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1257.2+3646_daily_bin295 194.31 36.7706 315792001 316051201 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 :                                   587.19 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             254.85 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   838 sec.
    Turnaround time :                            840 sec.

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

