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


Performing analysis on: 4FGL_J1257.2+3646_daily_bin268
RA = 194.31, Dec = 36.7706
tmin = 308793601, tmax = 309052801
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='32824', job_status='RUN', time_executed='2021-09-06 11:32:41.753492', time_epoch_executed='1630953161.75' WHERE source_name='4FGL J1257.2+3646' and cadence='daily' and bin_id='268'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/32824

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/32824/ft1_4FGL_J1257.2+3646_daily_bin268.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/32824/ft2_4FGL_J1257.2+3646_daily_bin268.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/32824/ft1_4FGL_J1257.2+3646_daily_bin268.fits outfile=/scratch/kocevski/32824/ft1_filteredMKT_4FGL_J1257.2+3646_daily_bin268.fits ra=194.31 dec=36.7706 rad=12.0 tmin=308793601.0 tmax=309052801.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.01
user 2.72
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/32824/ft1_filtered_4FGL_J1257.2+3646_daily_bin268.fits evtable="EVENTS" scfile=/scratch/kocevski/32824/ft2_4FGL_J1257.2+3646_daily_bin268.fits sctable="SC_DATA" expcube=/scratch/kocevski/32824/ltcube_308793601_309052801_4FGL_J1257.2+3646_daily_bin268.fits outfile=/scratch/kocevski/32824/expmap_308793601_309052801_4FGL_J1257.2+3646_daily_bin268.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/32824/ltcube_308793601_309052801_4FGL_J1257.2+3646_daily_bin268.fits
.....................!
real 155.74
user 151.17
sys 4.19

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/32824/ft1_filtered_4FGL_J1257.2+3646_daily_bin268.fits scfile=/scratch/kocevski/32824/ft2_4FGL_J1257.2+3646_daily_bin268.fits outfile=/scratch/kocevski/32824/cmap_308793601_309052801_4FGL_J1257.2+3646_daily_bin268.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.46
user 0.31
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/32824/ft1_filtered_4FGL_J1257.2+3646_daily_bin268.fits scfile=/scratch/kocevski/32824/ft2_4FGL_J1257.2+3646_daily_bin268.fits outfile=/scratch/kocevski/32824/cmap_HighResolution_308793601_309052801_4FGL_J1257.2+3646_daily_bin268.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.48
user 0.32
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    20.104       1.0000         .10000E-03   10000.    
     2 'norm      '    .52694E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.4374       1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.2354       1.0000         .10000E-03   10000.    
     6 'Prefactor '    12.752       1.0000         .10000E-03   10000.    
     7 'Prefactor '    6.2666       1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.6627       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .28768E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.3086       1.0000         .10000E-03   10000.    
    11 'norm      '    3.0594       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .18861E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10158E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    11.162       1.0000         .10000E-03   10000.    
    15 'norm      '    .10020E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    4.7814       1.0000         .10000E-03   10000.    
    18 'norm      '    .10058E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.8550       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    63.179       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .79269       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0310       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=   5402.449     FROM MIGRAD    STATUS=CONVERGED    594 CALLS     2916 TOTAL
                     EDM=   .38E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     20.126        33.266       -.91082E-06    .88768E-04
   2  norm          .10001E-03    6.3623       -.43498E-05** at limit **
   3  Prefactor     .10000E-03    7.8026       -.99314E-06** at limit **
   4  Prefactor     6.4394        3.0182        .65236E-06    .15296E-02
   5  Prefactor     3.2362        2.4576        .23808E-06    .76327E-03
   6  Prefactor     12.754        10.121        .93816E-08    .10859E-03
   7  Prefactor     6.2657        20.458       -.25591E-06    .14949E-06
   8  Prefactor     4.6698        20.567       -.75472E-06   -.17752E-04
   9  Prefactor     .10000E-03    168.84       -.52435E-05** at limit **
  10  Prefactor     2.3038        4.9480        .23065E-05    .64480E-03
  11  norm          3.0564        3.3479        .74894E-07   -.58972E-04
  12  Prefactor     .10000E-03    151.61        .19564E-05** at limit **
  13  Prefactor     .10000E-03    23.588        .32396E-05** at limit **
  14  Prefactor     11.174        15.466        .22241E-06   -.52624E-04
  15  norm          .10000E-03    1.7230        .35739E-06** at limit **
  16  norm          .10000E-03    5.3833       -.36753E-06** at limit **
  17  norm          4.7787        3.4305       -.39056E-07    .18423E-03
  18  norm          .10000E-03    4.9019        .93696E-07** at limit **
  19  Prefactor     1.8548        2.7943       -.52782E-06    .41298E-03
  20  Prefactor     .10000E-03    26.817       -.21005E-05** at limit **
  21  Prefactor     .10000E-03    15.311       -.71956E-06** at limit **
  22  Prefactor     .10000E-03    5.5486        .31867E-06** at limit **
  23  Prefactor     63.179        68.712       -.91035E-07    .10095E-04
  24  Normalizat    .79214        .16969        .20162E-06    .24841E-03
  25  Prefactor     1.0315        .20707       -.15820E-06    .23826E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 20.1257
  norm       = 0.000100015
  Prefactor  = 0.0001
  Prefactor  = 6.43935
  Prefactor  = 3.23621
  Prefactor  = 12.7536
  Prefactor  = 6.26566
  Prefactor  = 4.66978
  Prefactor  = 0.000100001
  Prefactor  = 2.30383
  norm       = 3.05642
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.1738
  norm       = 0.0001
  norm       = 0.0001
  norm       = 4.77874
  norm       = 0.0001
  Prefactor  = 1.85479
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 63.1786
  Normalizat = 0.792138
  Prefactor  = 1.03152
 **********
 **   18 **HESSE 
 **********

 FCN=   5402.449     FROM HESSE     STATUS=OK           425 CALLS     3341 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     20.126        33.342        .89329E-04   -1.4810    
   2  norm          .10001E-03    14.138        .17673E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    7.8930        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     6.4394        2.9825        .81605E-04   -1.5200    
   5  Prefactor     3.2362        2.4513        .47161E-03   -1.5348    
   6  Prefactor     12.754        10.122        .11217E-03   -1.4994    
   7  Prefactor     6.2657        20.454        .16035E-03   -1.5207    
   8  Prefactor     4.6698        21.181        .18638E-03   -1.5276    
   9  Prefactor     .10000E-03    170.87        .21407E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     2.3038        5.9174        .12430E-02   -1.5404    
  11  norm          3.0564        3.3386        .13507E-03   -1.5358    
  12  Prefactor     .10000E-03    153.12        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    23.555        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     11.174        15.657        .11991E-03   -1.5039    
  15  norm          .10000E-03    1.7215        .94008E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    5.3903        .16659E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          4.7787        3.4020        .10750E-03   -1.5271    
  18  norm          .10000E-03    4.9340        .15826E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     1.8548        2.7419        .13927E-03   -1.5436    
  20  Prefactor     .10000E-03    26.856        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    15.318        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    5.5712        .16912E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     63.179        69.082        .50485E-04   -1.4117    
  24  Normalizat    .79214        .20098        .22809E-03   -1.0036    
  25  Prefactor     1.0315        .24461        .25846E-03   -.91686    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.30476e-09
Minuit parameter uncertainties:
  1  33.373
  2  0.000920525
  3  6.44411e-05
  4  2.98252
  5  2.45136
  6  10.1236
  7  20.4767
  8  19.9021
  9  0.000598172
  10  5.91886
  11  3.33878
  12  0.000313985
  13  0.000212279
  14  15.6624
  15  1.52179e-05
  16  4.63571e-06
  17  3.40214
  18  1.46435e-05
  19  2.74207
  20  0.000427366
  21  2.88551e-05
  22  3.85444e-06
  23  69.17
  24  0.201169
  25  0.244877
Done.

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

Extracting fit parameters...

4FGL J1257.2+3646
   Spectrum: PowerLaw
300    Prefactor:  2.304e+00  5.919e+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.032e+00  2.449e-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:  7.921e-01  2.012e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/32824/likelihoodResults_308793601_309052801_4FGL_J1257.2+3646_daily_bin268.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) = 5402.35826604
delta logL = 0.0907204855675

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5402.34637772
delta logL = 0.102608805678

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.6480       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4719       1.0000          .0000       10.000    
     3 'Normalizat'    .78476       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0351       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=   5402.346     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      226 TOTAL
                     EDM=   .82E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.6501        94.515        .82238E-02    .67122E-03
   2  Index         2.4740        6.2365        .14789        .96831E-04
   3  Normalizat    .78490        .40043E-01    .43411E-01    .13056E-04
   4  Prefactor     1.0350        .49889E-01    .40874E-01    .70642E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.65012
  Index      = 2.47402
  Normalizat = 0.784899
  Prefactor  = 1.03503
 **********
 **   18 **HESSE 
 **********

 FCN=   5402.346     FROM HESSE     STATUS=OK            33 CALLS      259 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.6501        4.6985        .15325E-03   -1.5451    
   2  Index         2.4740        1.1716        .83415E-02   -.52961    
   3  Normalizat    .78490        .18932        .22901E-03   -1.0063    
   4  Prefactor     1.0350        .24185        .25801E-03   -.91571    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.14036e-08
Minuit parameter uncertainties:
  1  4.69959
  2  1.18649
  3  0.189476
  4  0.242107
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/32824': 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) = 5402.3463697
delta logL = 0.102616822856

Extracting fit parameters...

4FGL J1257.2+3646
   Spectrum: PowerLaw
300    Prefactor:  1.650e+00  4.700e+00  1.000e-04  1.000e+04 ( 1.000e-13)
301        Index:  2.474e+00  1.186e+00  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.035e+00  2.421e-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:  7.849e-01  1.895e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.23
Ra Dec: 194.310 36.771

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/32824/cmap_HighResolution_308793601_309052801_4FGL_J1257.2+3646_daily_bin268.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.63e-03', job_status='DONE', photon_flux_upper_limit='6.16e-08', time_completed='2021-09-06 11:41:57.271571', job_id='32824', GAL2='1.04', fit_tolerance='1e-08', EG2='0.78', EG='0.79', time_epoch_completed='1630953717.27', return_code2='0', ts='0.23', comment='SUCCESS', return_code='0', GAL='1.03', dlogl='1.03e-01', ts2='0.44', photon_index_error='0.00', photon_index='2.03' WHERE bin_id='268' AND source_name='4FGL J1257.2+3646' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 11:41:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0033>
Subject: Job 32824: <4FGL_J1257.2+3646_daily_bin268> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1257.2+3646_daily_bin268 194.31 36.7706 308793601 309052801 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 :                                   551.15 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             294.55 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   698 sec.
    Turnaround time :                            702 sec.

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

