/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 200 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 = 7392
number of fields = 29
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1257.2+3646_daily_bin570
RA = 194.31, Dec = 36.7706
tmin = 387072001, tmax = 387331201
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='34659', job_status='RUN', time_executed='2021-09-06 11:39:16.824305', time_epoch_executed='1630953556.82' WHERE source_name='4FGL J1257.2+3646' and cadence='daily' and bin_id='570'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/34659

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/34659/ft1_4FGL_J1257.2+3646_daily_bin570.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/34659/ft2_4FGL_J1257.2+3646_daily_bin570.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/34659/ft1_4FGL_J1257.2+3646_daily_bin570.fits outfile=/scratch/kocevski/34659/ft1_filteredMKT_4FGL_J1257.2+3646_daily_bin570.fits ra=194.31 dec=36.7706 rad=12.0 tmin=387072001.0 tmax=387331201.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.42
user 3.20
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/34659/ft1_filtered_4FGL_J1257.2+3646_daily_bin570.fits" evtable="EVENTS" scfile=/scratch/kocevski/34659/ft2_4FGL_J1257.2+3646_daily_bin570.fits sctable="SC_DATA" outfile=/scratch/kocevski/34659/ltcube_387072001_387331201_4FGL_J1257.2+3646_daily_bin570.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/34659/ft2_4FGL_J1257.2+3646_daily_bin570.fits
.....................!
real 12.23
user 11.88
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/34659/ft1_filtered_4FGL_J1257.2+3646_daily_bin570.fits evtable="EVENTS" scfile=/scratch/kocevski/34659/ft2_4FGL_J1257.2+3646_daily_bin570.fits sctable="SC_DATA" expcube=/scratch/kocevski/34659/ltcube_387072001_387331201_4FGL_J1257.2+3646_daily_bin570.fits outfile=/scratch/kocevski/34659/expmap_387072001_387331201_4FGL_J1257.2+3646_daily_bin570.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/34659/ltcube_387072001_387331201_4FGL_J1257.2+3646_daily_bin570.fits
.....................!
real 189.73
user 185.46
sys 3.89

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/34659/ft1_filtered_4FGL_J1257.2+3646_daily_bin570.fits scfile=/scratch/kocevski/34659/ft2_4FGL_J1257.2+3646_daily_bin570.fits outfile=/scratch/kocevski/34659/cmap_387072001_387331201_4FGL_J1257.2+3646_daily_bin570.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/34659/ft1_filtered_4FGL_J1257.2+3646_daily_bin570.fits scfile=/scratch/kocevski/34659/ft2_4FGL_J1257.2+3646_daily_bin570.fits outfile=/scratch/kocevski/34659/cmap_HighResolution_387072001_387331201_4FGL_J1257.2+3646_daily_bin570.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.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    7.8236       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .11289E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .25358       1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.4854       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    19.712       1.0000         .10000E-03   10000.    
     8 'Prefactor '    10.649       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.2424       1.0000         .10000E-03   10000.    
    11 'norm      '    1.3337       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .13291E-02   1.0000         .10000E-03   10000.    
    13 'Prefactor '    21.843       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    3.4627       1.0000         .10000E-03   10000.    
    16 'norm      '    19.821       1.0000         .10000E-03   10000.    
    17 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10311E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    49.383       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .84320       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.1240       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=   5597.185     FROM MIGRAD    STATUS=CONVERGED   1031 CALLS     3783 TOTAL
                     EDM=   .55E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    40.281        .18142E-02** at limit **
   2  norm          7.8260        3.4228        .84080E-04   -.15725E-03
   3  Prefactor     .10030E-03    54.171        .32870E-02** at limit **
   4  Prefactor     .25268        2.0806        .20097E-03   -.64149E-04
   5  Prefactor     3.4859        2.3677        .90853E-04   -.98855E-04
   6  Prefactor     .10000E-03    5.1923        .16553E-02** at limit **
   7  Prefactor     19.688        36.816        .90213E-04   -.20793E-04
   8  Prefactor     10.650        12.094        .12277E-03    .18334E-04
   9  Prefactor     .10000E-03    65.792        .18142E-02** at limit **
  10  Prefactor     4.2425        4.3247        .15196E-03    .95460E-04
  11  norm          1.3331        2.5647        .16061E-03   -.70783E-05
  12  Prefactor     .10016E-03    37.155        .14164    ** at limit **
  13  Prefactor     21.842        18.036        .85703E-04    .20826E-04
  14  Prefactor     .10000E-03    27.536        .36285E-03** at limit **
  15  norm          3.4632        3.9142        .15256E-03    .12259E-03
  16  norm          19.818        15.507        .89965E-04   -.17692E-04
  17  norm          .10000E-03    1.4151        .16963E-02** at limit **
  18  norm          .10000E-03    2.3423        .11103E-02** at limit **
  19  Prefactor     .10000E-03    .77950        .64272E-03** at limit **
  20  Prefactor     .10000E-03    3.0824        .12813E-02** at limit **
  21  Prefactor     .10000E-03    20.325        .18142E-02** at limit **
  22  Prefactor     .10000E-03    6.1408        .18076E-02** at limit **
  23  Prefactor     49.395        66.837        .57065E-04    .54587E-05
  24  Normalizat    .84319        .19251        .23388E-03    .65525E-04
  25  Prefactor     1.1241        .24210        .26480E-03    .20264E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 7.82601
  Prefactor  = 0.000100303
  Prefactor  = 0.252678
  Prefactor  = 3.48593
  Prefactor  = 0.0001
  Prefactor  = 19.6883
  Prefactor  = 10.6495
  Prefactor  = 0.0001
  Prefactor  = 4.24251
  norm       = 1.3331
  Prefactor  = 0.000100159
  Prefactor  = 21.8421
  Prefactor  = 0.0001
  norm       = 3.4632
  norm       = 19.8177
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 49.3952
  Normalizat = 0.843194
  Prefactor  = 1.12412
 **********
 **   18 **HESSE 
 **********

 FCN=   5597.185     FROM HESSE     STATUS=OK           411 CALLS     4194 TOTAL
                     EDM=   .55E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    40.293        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          7.8260        3.4210        .33632E-05   -1.5148    
   3  Prefactor     .10030E-03    55.034        .65740E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .25268        2.0781        .80388E-05   -1.5607    
   5  Prefactor     3.4859        2.3677        .36341E-05   -1.5335    
   6  Prefactor     .10000E-03    5.1943        .33106E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     19.688        36.805        .36085E-05   -1.4820    
   8  Prefactor     10.650        12.094        .49110E-05   -1.5055    
   9  Prefactor     .10000E-03    65.799        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     4.2425        4.3246        .60785E-05   -1.5296    
  11  norm          1.3331        2.5644        .64245E-05   -1.5477    
  12  Prefactor     .10016E-03    36.736        .14301       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     21.842        18.032        .34281E-05   -1.4773    
  14  Prefactor     .10000E-03    27.538        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          3.4632        3.9141        .61024E-05   -1.5336    
  16  norm          19.818        15.507        .35986E-05   -1.4817    
  17  norm          .10000E-03    1.4176        .33926E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    2.3428        .22206E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    .77953        .12854E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    3.0825        .25626E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    20.325        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    6.1416        .36152E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     49.395        66.838        .11413E-04   -1.4301    
  24  Normalizat    .84319        .19264        .93552E-05   -.98486    
  25  Prefactor     1.1241        .24235        .10592E-04   -.88699    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.54583e-09
Minuit parameter uncertainties:
  1  0.000121856
  2  3.42112
  3  0.00818061
  4  1.44906
  5  2.36773
  6  1.08607e-05
  7  36.8476
  8  12.0967
  9  6.22191e-05
  10  4.32492
  11  2.56464
  12  0.00483506
  13  18.0366
  14  2.10369e-05
  15  3.91438
  16  15.5098
  17  2.7723e-07
  18  1.26889e-08
  19  2.26071e-07
  20  2.41866e-07
  21  1.04733e-05
  22  2.32769e-06
  23  66.9394
  24  0.192801
  25  0.242588
Done.

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

Extracting fit parameters...

4FGL J1257.2+3646
   Spectrum: PowerLaw
300    Prefactor:  4.243e+00  4.325e+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:  1.124e+00  2.426e-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.432e-01  1.928e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.32
Ra Dec: 194.310 36.771
Photon Index (Fixed Index): 2.03 +/- 0.00
Photon Flux (Fixed Index): 1.61e-08 +/- 1.64e-08
Energy Flux (Fixed Index): 1.04e-05 +/- 1.06e-05

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

Saving results to:
/scratch/kocevski/34659/likelihoodResults_387072001_387331201_4FGL_J1257.2+3646_daily_bin570.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) = 5597.14282287
delta logL = 0.0425256552153

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5597.13925089
delta logL = 0.0460976318

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.0773       1.0000         .10000E-03   10000.    
     2 'Index     '    1.8340       1.0000          .0000       10.000    
     3 'Normalizat'    .84591       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1224       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=   5597.139     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      273 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.0763        5.6961        .16734E-03    .67053E-04
   2  Index         1.8343        .63110        .90906E-02    .21539E-03
   3  Normalizat    .84594        .18490        .23353E-03    .65038E-04
   4  Prefactor     1.1224        .23921        .26498E-03    .38185E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.07634
  Index      = 1.83432
  Normalizat = 0.845943
  Prefactor  = 1.12242
 **********
 **   18 **HESSE 
 **********

 FCN=   5597.139     FROM HESSE     STATUS=OK            25 CALLS      298 TOTAL
                     EDM=   .89E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.0763        5.6014        .66938E-05   -1.5257    
   2  Index         1.8343        .62085        .18181E-02   -.68560    
   3  Normalizat    .84594        .18507        .93413E-05   -.98387    
   4  Prefactor     1.1224        .23945        .10599E-04   -.88753    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.88173e-12
Minuit parameter uncertainties:
  1  5.60199
  2  0.623544
  3  0.185211
  4  0.23968
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/34659': 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) = 5597.13925067
delta logL = 0.046097850457

Extracting fit parameters...

4FGL J1257.2+3646
   Spectrum: PowerLaw
300    Prefactor:  5.076e+00  5.602e+00  1.000e-04  1.000e+04 ( 1.000e-13)
301        Index:  1.834e+00  6.235e-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:  1.122e+00  2.397e-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.459e-01  1.852e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.41
Ra Dec: 194.310 36.771
Photon Index (Free Index): 1.83 +/- 0.62
Photon Flux (Free Index): 1.34e-08 +/- 1.64e-08
Energy Flux (Free Index): 1.45e-05 +/- 2.22e-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/34659/cmap_HighResolution_387072001_387331201_4FGL_J1257.2+3646_daily_bin570.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.67e-03', comment='SUCCESS', photon_flux='1.61e-08', energy_flux2='1.45e-05', photon_flux_error='1.64e-08', dlogl='4.61e-02', energy_flux='1.04e-05', photon_flux2='1.34e-08', job_status='DONE', time_completed='2021-09-06 11:51:53.714661', photon_index_error2='0.62', photon_index2='1.83', ts='2.32', fit_tolerance='1e-08', GAL='1.12', photon_index_error='0.00', photon_flux_upper_limit='6.21e-08', energy_flux_error2='2.22e-05', EG='0.84', time_epoch_completed='1630954313.71', return_code='0', job_id='34659', GAL2='1.12', EG2='0.85', return_code2='0', energy_flux_error='1.06e-05', photon_flux_error2='1.64e-08', ts2='2.41', photon_index='2.03' WHERE bin_id='570' AND source_name='4FGL J1257.2+3646' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 11:51:53 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0235>
Subject: Job 34659: <4FGL_J1257.2+3646_daily_bin570> in cluster <slac> Done

Job <4FGL_J1257.2+3646_daily_bin570> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Mon Sep  6 11:35:46 2021
Job was executed on host(s) <bullet0235>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 11:35:47 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:35:47 2021
Terminated at Mon Sep  6 11:51:55 2021
Results reported at Mon Sep  6 11:51:55 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1257.2+3646_daily_bin570 194.31 36.7706 387072001 387331201 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 :                                   752.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             294.94 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   967 sec.
    Turnaround time :                            969 sec.

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

