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


Performing analysis on: 4FGL_J1257.2+3646_daily_bin218
RA = 194.31, Dec = 36.7706
tmin = 295833601, tmax = 296092801
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='32031', job_status='RUN', time_executed='2021-09-06 11:29:38.041775', time_epoch_executed='1630952978.04' WHERE source_name='4FGL J1257.2+3646' and cadence='daily' and bin_id='218'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/32031

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/32031/ft1_4FGL_J1257.2+3646_daily_bin218.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/32031/ft2_4FGL_J1257.2+3646_daily_bin218.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/32031/ft1_4FGL_J1257.2+3646_daily_bin218.fits outfile=/scratch/kocevski/32031/ft1_filteredMKT_4FGL_J1257.2+3646_daily_bin218.fits ra=194.31 dec=36.7706 rad=12.0 tmin=295833601.0 tmax=296092801.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 2.41
user 2.23
sys 0.17

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/32031/ft1_filtered_4FGL_J1257.2+3646_daily_bin218.fits" evtable="EVENTS" scfile=/scratch/kocevski/32031/ft2_4FGL_J1257.2+3646_daily_bin218.fits sctable="SC_DATA" outfile=/scratch/kocevski/32031/ltcube_295833601_296092801_4FGL_J1257.2+3646_daily_bin218.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/32031/ft2_4FGL_J1257.2+3646_daily_bin218.fits
.....................!
real 12.08
user 11.70
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/32031/ft1_filtered_4FGL_J1257.2+3646_daily_bin218.fits evtable="EVENTS" scfile=/scratch/kocevski/32031/ft2_4FGL_J1257.2+3646_daily_bin218.fits sctable="SC_DATA" expcube=/scratch/kocevski/32031/ltcube_295833601_296092801_4FGL_J1257.2+3646_daily_bin218.fits outfile=/scratch/kocevski/32031/expmap_295833601_296092801_4FGL_J1257.2+3646_daily_bin218.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/32031/ltcube_295833601_296092801_4FGL_J1257.2+3646_daily_bin218.fits
.....................!
real 190.13
user 184.78
sys 4.31

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/32031/ft1_filtered_4FGL_J1257.2+3646_daily_bin218.fits scfile=/scratch/kocevski/32031/ft2_4FGL_J1257.2+3646_daily_bin218.fits outfile=/scratch/kocevski/32031/cmap_295833601_296092801_4FGL_J1257.2+3646_daily_bin218.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.56
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/32031/ft1_filtered_4FGL_J1257.2+3646_daily_bin218.fits scfile=/scratch/kocevski/32031/ft2_4FGL_J1257.2+3646_daily_bin218.fits outfile=/scratch/kocevski/32031/cmap_HighResolution_295833601_296092801_4FGL_J1257.2+3646_daily_bin218.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.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    16.664       1.0000         .10000E-03   10000.    
     2 'norm      '    4.2570       1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.1307       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10130E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.2244       1.0000         .10000E-03   10000.    
     6 'Prefactor '    22.003       1.0000         .10000E-03   10000.    
     7 'Prefactor '    18.975       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10292E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.8214       1.0000         .10000E-03   10000.    
    11 'norm      '    5.9961       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .37694       1.0000         .10000E-03   10000.    
    16 'norm      '    22.844       1.0000         .10000E-03   10000.    
    17 'norm      '    .24539E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    7.0101       1.0000         .10000E-03   10000.    
    19 'Prefactor '    5.1710       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    39.978       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.1141       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .76684       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5695.348     FROM MIGRAD    STATUS=CONVERGED    604 CALLS     2942 TOTAL
                     EDM=   .22E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     16.666        30.740         .0000       -.36665E-03
   2  norm          4.2569        2.6352         .0000       -.38576E-03
   3  Prefactor     2.1306        7.0078         .0000        .12238E-01
   4  Prefactor     .10000E-03    1.4360         .0000    ** at limit **
   5  Prefactor     5.2244        2.3711         .0000        .84536E-04
   6  Prefactor     22.003        9.7202         .0000       -.27612E-03
   7  Prefactor     18.978        32.065         .0000       -.52565E-03
   8  Prefactor     .10002E-03    9.2297         .0000    ** at limit **
   9  Prefactor     .10002E-03    88.783         .0000    ** at limit **
  10  Prefactor     1.8214        2.7257         .0000        .15848E-03
  11  norm          5.9932        4.5198         .0000        .66353E-02
  12  Prefactor     .10004E-03    21.296         .0000    ** at limit **
  13  Prefactor     .10002E-03    6.7141         .0000    ** at limit **
  14  Prefactor     .10000E-03    4.0452         .0000    ** at limit **
  15  norm          .37706        5.0875         .0000        .44087E-01
  16  norm          22.845        14.570         .0000       -.86005E-05
  17  norm          .10003E-03    2.5032         .0000    ** at limit **
  18  norm          6.9999        6.8244         .0000        .37494E-03
  19  Prefactor     5.1695        3.2559         .0000        .58493E-03
  20  Prefactor     .10003E-03    7.7207         .0000    ** at limit **
  21  Prefactor     .10002E-03    15.038         .0000    ** at limit **
  22  Prefactor     .10000E-03    5.9932         .0000    ** at limit **
  23  Prefactor     39.979        52.804         .0000       -.81948E-03
  24  Normalizat    1.1140        .16946         .0000       -.19656E-03
  25  Prefactor     .76684        .20663         .0000       -.35013E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 16.6658
  norm       = 4.2569
  Prefactor  = 2.13057
  Prefactor  = 0.0001
  Prefactor  = 5.22439
  Prefactor  = 22.003
  Prefactor  = 18.9778
  Prefactor  = 0.000100015
  Prefactor  = 0.000100016
  Prefactor  = 1.82141
  norm       = 5.99322
  Prefactor  = 0.000100042
  Prefactor  = 0.000100016
  Prefactor  = 0.0001
  norm       = 0.377064
  norm       = 22.8451
  norm       = 0.000100026
  norm       = 6.99988
  Prefactor  = 5.16947
  Prefactor  = 0.000100032
  Prefactor  = 0.000100017
  Prefactor  = 0.000100002
  Prefactor  = 39.9793
  Normalizat = 1.11403
  Prefactor  = 0.76684
 **********
 **   18 **HESSE 
 **********

 FCN=   5695.348     FROM HESSE     STATUS=OK           425 CALLS     3367 TOTAL
                     EDM=   .35E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     16.666        30.690        .98114E-04   -1.4891    
   2  norm          4.2569        2.5554        .90038E-04   -1.5295    
   3  Prefactor     2.1306        6.9808        .14123E-02   -1.5416    
   4  Prefactor     .10000E-03    3.4060        .16983E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     5.2244        2.3666        .75360E-04   -1.5251    
   6  Prefactor     22.003        9.7175        .42695E-03   -1.4769    
   7  Prefactor     18.978        32.093        .91946E-04   -1.4836    
   8  Prefactor     .10002E-03    9.2391        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10002E-03    89.021        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     1.8214        2.7029        .14845E-03   -1.5438    
  11  norm          5.9932        4.4888        .13286E-03   -1.5218    
  12  Prefactor     .10004E-03    21.305        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10002E-03    6.7171        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    4.0503        .14821E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .37706        5.2273        .16272E-02   -1.5585    
  16  norm          22.845        14.570        .83806E-04   -1.4752    
  17  norm          .10003E-03    31.279        .20147E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          6.9999        6.2076        .15152E-03   -1.5179    
  19  Prefactor     5.1695        3.2173        .10069E-03   -1.5253    
  20  Prefactor     .10003E-03    7.7468        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10002E-03    15.042        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    6.0089        .18043E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     39.979        52.864        .63395E-04   -1.4443    
  24  Normalizat    1.1140        .19520        .21430E-03   -.89303    
  25  Prefactor     .76684        .23780        .31561E-03   -1.0096    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.48871e-08
Minuit parameter uncertainties:
  1  30.7189
  2  2.55546
  3  6.98343
  4  1.04663e-05
  5  2.36665
  6  9.71822
  7  32.1219
  8  0.000748993
  9  0.00236231
  10  2.70308
  11  4.48907
  12  0.00189186
  13  0.000654046
  14  2.00914e-05
  15  2.80778
  16  14.5724
  17  0.00179871
  18  6.20815
  19  3.21742
  20  0.000995932
  21  0.00101954
  22  0.000194395
  23  52.9264
  24  0.195323
  25  0.238117
Done.

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

Extracting fit parameters...

4FGL J1257.2+3646
   Spectrum: PowerLaw
300    Prefactor:  1.821e+00  2.703e+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:  7.668e-01  2.381e-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.114e+00  1.953e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.88
Ra Dec: 194.310 36.771
Photon Flux Upper Limit: 4.40e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.31e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/32031/likelihoodResults_295833601_296092801_4FGL_J1257.2+3646_daily_bin218.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) = 5695.26640114
delta logL = 0.0818522486898

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5695.26318999
delta logL = 0.0850633996761

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.5528       1.0000         .10000E-03   10000.    
     2 'Index     '    1.6366       1.0000          .0000       10.000    
     3 'Normalizat'    1.1172       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .76400       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=   5695.263     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      227 TOTAL
                     EDM=   .50E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.5528        181.81        .63886E-02    .34461E-04
   2  Index         1.6365        5.8933        .28417        .15325E-04
   3  Normalizat    1.1172        .80537E-01    .37339E-01    .42625E-05
   4  Prefactor     .76400        .78592E-01    .71428E-01    .19849E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.55281
  Index      = 1.63649
  Normalizat = 1.11724
  Prefactor  = 0.763998
 **********
 **   18 **HESSE 
 **********

 FCN=   5695.263     FROM HESSE     STATUS=OK            33 CALLS      260 TOTAL
                     EDM=   .61E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.5528        3.7481        .16627E-03   -1.5388    
   2  Index         1.6365        .86469        .12772E-01   -.73785    
   3  Normalizat    1.1172        .18892        .21401E-03   -.89200    
   4  Prefactor     .76400        .23579        .31609E-03   -1.0107    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.14118e-13
Minuit parameter uncertainties:
  1  3.74847
  2  0.872763
  3  0.189036
  4  0.236096
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/32031': 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) = 5695.26318998
delta logL = 0.0850634059734

Extracting fit parameters...

4FGL J1257.2+3646
   Spectrum: PowerLaw
300    Prefactor:  2.553e+00  3.748e+00  1.000e-04  1.000e+04 ( 1.000e-13)
301        Index:  1.636e+00  8.728e-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:  7.640e-01  2.361e-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.117e+00  1.890e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.05
Ra Dec: 194.310 36.771
Photon Index (Free Index): 1.64 +/- 0.87
Photon Flux (Free Index): 4.89e-09 +/- 8.06e-09
Energy Flux (Free Index): 9.81e-06 +/- 2.41e-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/32031/cmap_HighResolution_295833601_296092801_4FGL_J1257.2+3646_daily_bin218.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.31e-03', comment='SUCCESS', energy_flux2='9.81e-06', dlogl='8.51e-02', photon_flux2='4.89e-09', job_status='DONE', time_completed='2021-09-06 11:41:11.440471', photon_index_error2='0.87', photon_index2='1.64', ts='0.88', fit_tolerance='1e-08', GAL='0.77', photon_index_error='0.00', photon_flux_upper_limit='4.40e-08', energy_flux_error2='2.41e-05', EG='1.11', time_epoch_completed='1630953671.44', return_code='0', job_id='32031', GAL2='0.76', EG2='1.12', return_code2='0', photon_flux_error2='8.06e-09', ts2='1.05', photon_index='2.03' WHERE bin_id='218' AND source_name='4FGL J1257.2+3646' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 11:41:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0270>
Subject: Job 32031: <4FGL_J1257.2+3646_daily_bin218> in cluster <slac> Done

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

Your job looked like:

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

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

