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


Performing analysis on: 4FGL_J1257.2+3646_daily_bin204
RA = 194.31, Dec = 36.7706
tmin = 292204801, tmax = 292464001
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='32000', job_status='RUN', time_executed='2021-09-06 11:26:08.429293', time_epoch_executed='1630952768.43' WHERE source_name='4FGL J1257.2+3646' and cadence='daily' and bin_id='204'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/32000

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/32000/ft1_4FGL_J1257.2+3646_daily_bin204.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/32000/ft2_4FGL_J1257.2+3646_daily_bin204.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/32000/ft1_4FGL_J1257.2+3646_daily_bin204.fits outfile=/scratch/kocevski/32000/ft1_filteredMKT_4FGL_J1257.2+3646_daily_bin204.fits ra=194.31 dec=36.7706 rad=12.0 tmin=292204801.0 tmax=292464001.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 9.44
user 9.15
sys 0.26

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/32000/ft2_4FGL_J1257.2+3646_daily_bin204.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/32000/ft1_filteredMKT_4FGL_J1257.2+3646_daily_bin204.fits evtable="EVENTS" outfile="/scratch/kocevski/32000/ft1_filtered_4FGL_J1257.2+3646_daily_bin204.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.50
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/32000/ft1_filtered_4FGL_J1257.2+3646_daily_bin204.fits" evtable="EVENTS" scfile=/scratch/kocevski/32000/ft2_4FGL_J1257.2+3646_daily_bin204.fits sctable="SC_DATA" outfile=/scratch/kocevski/32000/ltcube_292204801_292464001_4FGL_J1257.2+3646_daily_bin204.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/32000/ft2_4FGL_J1257.2+3646_daily_bin204.fits
.....................!
real 11.30
user 10.95
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/32000/ft1_filtered_4FGL_J1257.2+3646_daily_bin204.fits evtable="EVENTS" scfile=/scratch/kocevski/32000/ft2_4FGL_J1257.2+3646_daily_bin204.fits sctable="SC_DATA" expcube=/scratch/kocevski/32000/ltcube_292204801_292464001_4FGL_J1257.2+3646_daily_bin204.fits outfile=/scratch/kocevski/32000/expmap_292204801_292464001_4FGL_J1257.2+3646_daily_bin204.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/32000/ltcube_292204801_292464001_4FGL_J1257.2+3646_daily_bin204.fits
.....................!
real 190.81
user 185.64
sys 4.85

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/32000/ft1_filtered_4FGL_J1257.2+3646_daily_bin204.fits scfile=/scratch/kocevski/32000/ft2_4FGL_J1257.2+3646_daily_bin204.fits outfile=/scratch/kocevski/32000/cmap_292204801_292464001_4FGL_J1257.2+3646_daily_bin204.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.57
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/32000/ft1_filtered_4FGL_J1257.2+3646_daily_bin204.fits scfile=/scratch/kocevski/32000/ft2_4FGL_J1257.2+3646_daily_bin204.fits outfile=/scratch/kocevski/32000/cmap_HighResolution_292204801_292464001_4FGL_J1257.2+3646_daily_bin204.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.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    10.199       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    6.3624       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .11445E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    16.115       1.0000         .10000E-03   10000.    
     8 'Prefactor '    36.113       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.8565       1.0000         .10000E-03   10000.    
    11 'norm      '    11.747       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    18.465       1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.9457       1.0000         .10000E-03   10000.    
    15 'norm      '    2.3355       1.0000         .10000E-03   10000.    
    16 'norm      '    8.7867       1.0000         .10000E-03   10000.    
    17 'norm      '    2.0135       1.0000         .10000E-03   10000.    
    18 'norm      '    1.3122       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    4.7174       1.0000         .10000E-03   10000.    
    21 'Prefactor '    96.795       1.0000         .10000E-03   10000.    
    22 'Prefactor '    20.287       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .12798E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.1510       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .62940       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=   4388.981     FROM MIGRAD    STATUS=CONVERGED    587 CALLS     2948 TOTAL
                     EDM=   .31E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    20.424       -.76730E-06** at limit **
   2  norm          10.199        4.4847        .70802E-07    .82546E-04
   3  Prefactor     .10000E-03    6.1344       -.42107E-06** at limit **
   4  Prefactor     .10000E-03    1.0739       -.17271E-06** at limit **
   5  Prefactor     6.3651        3.7448        .63433E-06    .19108E-03
   6  Prefactor     .10001E-03    47.759        .13622E-05** at limit **
   7  Prefactor     16.117        34.878       -.49490E-06    .62673E-06
   8  Prefactor     36.115        25.712       -.14534E-06   -.18206E-05
   9  Prefactor     .10000E-03    58.103       -.18790E-05** at limit **
  10  Prefactor     5.8563        5.9306       -.13277E-06   -.18517E-04
  11  norm          11.748        8.3556       -.96614E-07   -.87622E-04
  12  Prefactor     .10000E-03    19.376        .21599E-06** at limit **
  13  Prefactor     18.459        44.214        .74308E-06   -.44248E-04
  14  Prefactor     1.9467        19.439        .24397E-05   -.23131E-04
  15  norm          2.3354        4.3049       -.69214E-07    .23804E-05
  16  norm          8.7868        8.7802       -.19595E-07    .24712E-05
  17  norm          2.0245        8.5802       -.51746E-05   -.75633E-04
  18  norm          1.2981        18.917        .10412E-04   -.65387E-04
  19  Prefactor     .10000E-03    2.1003        .48930E-06** at limit **
  20  Prefactor     4.7185        17.479        .13415E-05   -.11362E-03
  21  Prefactor     96.761        87.043       -.71951E-06   -.65801E-05
  22  Prefactor     20.284        21.171       -.22751E-06   -.35565E-04
  23  Prefactor     .10000E-03    169.09        .24419E-05** at limit **
  24  Normalizat    1.1510        .19863        .14509E-05    .16340E-03
  25  Prefactor     .62938        .23221       -.48073E-06    .24042E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  norm       = 10.1994
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.36511
  Prefactor  = 0.000100008
  Prefactor  = 16.1172
  Prefactor  = 36.115
  Prefactor  = 0.000100005
  Prefactor  = 5.85632
  norm       = 11.7479
  Prefactor  = 0.0001
  Prefactor  = 18.4586
  Prefactor  = 1.94674
  norm       = 2.33542
  norm       = 8.78684
  norm       = 2.02448
  norm       = 1.29814
  Prefactor  = 0.0001
  Prefactor  = 4.71851
  Prefactor  = 96.7615
  Prefactor  = 20.2841
  Prefactor  = 0.000100001
  Normalizat = 1.15101
  Prefactor  = 0.629379
 **********
 **   18 **HESSE 
 **********

 FCN=   4388.981     FROM HESSE     STATUS=OK           431 CALLS     3379 TOTAL
                     EDM=   .59E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    20.495        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          10.199        4.4832        .88788E-04   -1.5069    
   3  Prefactor     .10000E-03    6.2004        .16045E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    1.0801        .67120E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     6.3651        3.7294        .93473E-04   -1.5203    
   6  Prefactor     .10001E-03    47.813        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     16.117        34.952        .99771E-04   -1.4905    
   8  Prefactor     36.115        25.701        .66689E-04   -1.4505    
   9  Prefactor     .10000E-03    58.599        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     5.8563        5.9143        .15321E-03   -1.5224    
  11  norm          11.748        8.3451        .11688E-03   -1.5022    
  12  Prefactor     .10000E-03    19.392        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     18.459        43.696        .93207E-04   -1.4848    
  14  Prefactor     1.9467        18.742        .14879E-02   -1.5429    
  15  norm          2.3354        4.2700        .17708E-03   -1.5402    
  16  norm          8.7868        8.7834        .13522E-03   -1.5115    
  17  norm          2.0245        8.8831        .20414E-03   -1.5423    
  18  norm          1.2981        20.333        .17164E-02   -1.5480    
  19  Prefactor     .10000E-03    2.1050        .93242E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     4.7185        17.331        .92633E-03   -1.5273    
  21  Prefactor     96.761        86.887        .20428E-03   -1.3737    
  22  Prefactor     20.284        21.193        .88926E-04   -1.4807    
  23  Prefactor     .10000E-03    170.47        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.1510        .22650        .21408E-03   -.88130    
  25  Prefactor     .62938        .26019        .33472E-03   -1.0636    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.87179e-10
Minuit parameter uncertainties:
  1  0.000210831
  2  4.48334
  3  5.90481e-05
  4  1.70145e-05
  5  3.72956
  6  0.00127414
  7  34.9964
  8  25.7091
  9  0.00104839
  10  5.91494
  11  8.34595
  12  7.35432e-05
  13  43.7719
  14  12.0853
  15  4.27054
  16  8.7847
  17  8.48335
  18  10.2789
  19  1.99029e-06
  20  17.3499
  21  87.0015
  22  21.2006
  23  0.000797287
  24  0.226689
  25  0.260693
Done.

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

Extracting fit parameters...

4FGL J1257.2+3646
   Spectrum: PowerLaw
300    Prefactor:  5.856e+00  5.915e+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:  6.294e-01  2.607e-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.151e+00  2.267e-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.22e-08 +/- 2.24e-08
Energy Flux (Fixed Index): 1.44e-05 +/- 1.45e-05

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

Saving results to:
/scratch/kocevski/32000/likelihoodResults_292204801_292464001_4FGL_J1257.2+3646_daily_bin204.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) = 4387.9895384
delta logL = 0.991538621502

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4387.95728172
delta logL = 1.02379530598

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.1203       1.0000         .10000E-03   10000.    
     2 'Index     '    1.0129       1.0000          .0000       10.000    
     3 'Normalizat'    1.1626       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .62708       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=   4387.957     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      210 TOTAL
                     EDM=   .47E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.1166        4.3652        .49648E-02   -.12640E-03
   2  Index         1.0126        .48416        .23343       -.33934E-04
   3  Normalizat    1.1626        .19070        .35882E-01    .38094E-05
   4  Prefactor     .62709        .22773        .75771E-01    .15652E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.11658
  Index      = 1.0126
  Normalizat = 1.16258
  Prefactor  = 0.627087
 **********
 **   18 **HESSE 
 **********

 FCN=   4387.957     FROM HESSE     STATUS=OK            33 CALLS      243 TOTAL
                     EDM=   .16E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.1166        5.9801        .13412E-03   -1.5302    
   2  Index         1.0126        .67806        .10044E-01   -.92311    
   3  Normalizat    1.1626        .21530        .21320E-03   -.87767    
   4  Prefactor     .62709        .25650        .33547E-03   -1.0646    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.60868e-12
Minuit parameter uncertainties:
  1  5.98101
  2  0.683899
  3  0.215463
  4  0.256986
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/32000': 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) = 4387.95728152
delta logL = 1.02379549878

Extracting fit parameters...

4FGL J1257.2+3646
   Spectrum: PowerLaw
300    Prefactor:  4.117e+00  5.981e+00  1.000e-04  1.000e+04 ( 1.000e-13)
301        Index:  1.013e+00  6.839e-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:  6.271e-01  2.570e-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.163e+00  2.155e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.36
Ra Dec: 194.310 36.771
Photon Index (Free Index): 1.01 +/- 0.68
Photon Flux (Free Index): 5.36e-09 +/- 6.70e-09
Energy Flux (Free Index): 7.52e-05 +/- 1.07e-04

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/32000/cmap_HighResolution_292204801_292464001_4FGL_J1257.2+3646_daily_bin204.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.40e-03', comment='SUCCESS', photon_flux='2.22e-08', energy_flux2='7.52e-05', photon_flux_error='2.24e-08', dlogl='1.02e+00', energy_flux='1.44e-05', photon_flux2='5.36e-09', job_status='DONE', time_completed='2021-09-06 11:36:41.458667', photon_index_error2='0.68', photon_index2='1.01', ts='3.32', fit_tolerance='1e-08', GAL='0.63', photon_index_error='0.00', photon_flux_upper_limit='8.52e-08', energy_flux_error2='1.07e-04', EG='1.15', time_epoch_completed='1630953401.46', return_code='0', job_id='32000', GAL2='0.63', EG2='1.16', return_code2='0', energy_flux_error='1.45e-05', photon_flux_error2='6.70e-09', ts2='5.36', photon_index='2.03' WHERE bin_id='204' AND source_name='4FGL J1257.2+3646' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 11:36:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0036>
Subject: Job 32000: <4FGL_J1257.2+3646_daily_bin204> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1257.2+3646_daily_bin204 194.31 36.7706 292204801 292464001 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 :                                   625.20 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             334.95 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   648 sec.
    Turnaround time :                            652 sec.

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

