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


Performing analysis on: 4FGL_J1257.2+3646_daily_bin754
RA = 194.31, Dec = 36.7706
tmin = 434764801, tmax = 435024001
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='36303', job_status='RUN', time_executed='2021-09-06 11:41:08.269032', time_epoch_executed='1630953668.27' WHERE source_name='4FGL J1257.2+3646' and cadence='daily' and bin_id='754'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/36303

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/36303/ft1_4FGL_J1257.2+3646_daily_bin754.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/36303/ft2_4FGL_J1257.2+3646_daily_bin754.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/36303/ft1_4FGL_J1257.2+3646_daily_bin754.fits outfile=/scratch/kocevski/36303/ft1_filteredMKT_4FGL_J1257.2+3646_daily_bin754.fits ra=194.31 dec=36.7706 rad=12.0 tmin=434764801.0 tmax=435024001.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 5.80
user 5.51
sys 0.25

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/36303/ft1_filtered_4FGL_J1257.2+3646_daily_bin754.fits evtable="EVENTS" scfile=/scratch/kocevski/36303/ft2_4FGL_J1257.2+3646_daily_bin754.fits sctable="SC_DATA" expcube=/scratch/kocevski/36303/ltcube_434764801_435024001_4FGL_J1257.2+3646_daily_bin754.fits outfile=/scratch/kocevski/36303/expmap_434764801_435024001_4FGL_J1257.2+3646_daily_bin754.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/36303/ltcube_434764801_435024001_4FGL_J1257.2+3646_daily_bin754.fits
.....................!
real 191.30
user 185.67
sys 5.06

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/36303/ft1_filtered_4FGL_J1257.2+3646_daily_bin754.fits scfile=/scratch/kocevski/36303/ft2_4FGL_J1257.2+3646_daily_bin754.fits outfile=/scratch/kocevski/36303/cmap_434764801_435024001_4FGL_J1257.2+3646_daily_bin754.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.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/36303/ft1_filtered_4FGL_J1257.2+3646_daily_bin754.fits scfile=/scratch/kocevski/36303/ft2_4FGL_J1257.2+3646_daily_bin754.fits outfile=/scratch/kocevski/36303/cmap_HighResolution_434764801_435024001_4FGL_J1257.2+3646_daily_bin754.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.61
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    4.3938       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.6025       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    8.3726       1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.9608       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .15322       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .11476E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .23712E-01   1.0000         .10000E-03   10000.    
    11 'norm      '    .77562       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    13.476       1.0000         .10000E-03   10000.    
    14 'Prefactor '    7.9920       1.0000         .10000E-03   10000.    
    15 'norm      '    .10913E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    7.7708       1.0000         .10000E-03   10000.    
    17 'norm      '    8.0073       1.0000         .10000E-03   10000.    
    18 'norm      '    .10300E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10072E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    21.184       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10332E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .11464E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    27.737       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.3495       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .82824       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=   7949.416     FROM MIGRAD    STATUS=CONVERGED   1069 CALLS     3434 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    13.839        .18142E-02** at limit **
   2  norm          4.3945        2.5045        .10177E-03   -.11617E-04
   3  Prefactor     .10000E-03    3.2617        .15682E-02** at limit **
   4  Prefactor     1.6023        1.4263        .95314E-04    .31012E-04
   5  Prefactor     .10000E-03    .75021        .75149E-03** at limit **
   6  Prefactor     8.3741        11.469        .13855E-03    .38239E-04
   7  Prefactor     1.9594        46.678        .29623E-03   -.16848E-04
   8  Prefactor     .21143E-01    12.286        .10277        .37509E-03
   9  Prefactor     .10000E-03    64.911        .18142E-02** at limit **
  10  Prefactor     .10965E-03    7.6269        .55036E-01** at limit **
  11  norm          .77690        4.2612        .33424E-03   -.69422E-04
  12  Prefactor     .10000E-03    12.164        .18142E-02** at limit **
  13  Prefactor     13.469        26.977        .10911E-03   -.37301E-04
  14  Prefactor     7.9961        17.474        .14183E-03    .64054E-03
  15  norm          .10000E-03    4.1997        .35216E-03** at limit **
  16  norm          7.7701        8.0288        .14385E-03    .16834E-04
  17  norm          8.0014        4.1289        .11569E-03    .62579E-03
  18  norm          .10000E-03    5.9314        .18142E-02** at limit **
  19  Prefactor     .10000E-03    1.4749        .10491E-02** at limit **
  20  Prefactor     21.193        14.089        .87024E-04    .21399E-03
  21  Prefactor     .10000E-03    21.738        .18142E-02** at limit **
  22  Prefactor     .10000E-03    31.413        .36285E-03** at limit **
  23  Prefactor     27.819        55.559        .76069E-04    .17360E-03
  24  Normalizat    1.3487        .19865        .22433E-03    .39873E-03
  25  Prefactor     .82912        .22864        .33326E-03    .34819E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 4.39447
  Prefactor  = 0.0001
  Prefactor  = 1.60226
  Prefactor  = 0.0001
  Prefactor  = 8.3741
  Prefactor  = 1.95936
  Prefactor  = 0.0211425
  Prefactor  = 0.000100002
  Prefactor  = 0.000109645
  norm       = 0.7769
  Prefactor  = 0.0001
  Prefactor  = 13.4686
  Prefactor  = 7.9961
  norm       = 0.0001
  norm       = 7.77007
  norm       = 8.00141
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 21.1931
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 27.8189
  Normalizat = 1.34874
  Prefactor  = 0.829123
 **********
 **   18 **HESSE 
 **********

 FCN=   7949.416     FROM HESSE     STATUS=OK           421 CALLS     3855 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    13.839        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          4.3945        2.5046        .20355E-04   -1.5289    
   3  Prefactor     .10000E-03    3.2622        .31364E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.6023        1.4264        .38126E-05   -1.5455    
   5  Prefactor     .10000E-03    .75023        .15030E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     8.3741        11.469        .55418E-05   -1.5129    
   7  Prefactor     1.9594        46.683        .11849E-04   -1.5428    
   8  Prefactor     .21143E-01    12.383        .10202       -1.5679    
   9  Prefactor     .10000E-03    64.916        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10965E-03    7.0344        .57822E-01   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .77690        4.2511        .13370E-04   -1.5532    
  12  Prefactor     .10000E-03    12.164        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     13.469        26.955        .43645E-05   -1.4974    
  14  Prefactor     7.9961        17.395        .56732E-05   -1.5142    
  15  norm          .10000E-03    4.1999        .70433E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          7.7701        8.0290        .57539E-05   -1.5150    
  17  norm          8.0014        4.1275        .46275E-05   -1.5142    
  18  norm          .10000E-03    5.9326        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    1.4751        .20982E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     21.193        14.089        .34810E-05   -1.4787    
  21  Prefactor     .10000E-03    21.740        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    31.414        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     27.819        55.561        .15214E-04   -1.4653    
  24  Normalizat    1.3487        .19882        .44866E-04   -.82123    
  25  Prefactor     .82912        .22883        .13330E-04   -.98664    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.27322e-09
Minuit parameter uncertainties:
  1  6.45445e-06
  2  2.50466
  3  1.56669e-06
  4  1.42642
  5  1.39794e-06
  6  11.4715
  7  19.1441
  8  1.02113
  9  0.000744924
  10  0.0164758
  11  3.63483
  12  3.55097e-06
  13  26.9792
  14  17.4062
  15  2.01077e-05
  16  8.03007
  17  4.12768
  18  7.24453e-05
  19  1.24031e-05
  20  14.0912
  21  7.66977e-06
  22  0.00010886
  23  55.6647
  24  0.198935
  25  0.22909
Done.

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

Extracting fit parameters...

4FGL J1257.2+3646
   Spectrum: PowerLaw
300    Prefactor:  1.096e-04  1.648e-02  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:  8.291e-01  2.291e-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.349e+00  1.989e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/36303/likelihoodResults_434764801_435024001_4FGL_J1257.2+3646_daily_bin754.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): 102
logL (Free Index) = 7949.41587404
delta logL = -1.72586796907e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7949.28401706
delta logL = 0.13183971881

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .68714       1.0000         .10000E-03   10000.    
     2 'Index     '    2.9474       1.0000          .0000       10.000    
     3 'Normalizat'    1.3302       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83706       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=   7949.284     FROM MIGRAD    STATUS=CONVERGED     60 CALLS      290 TOTAL
                     EDM=   .69E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .68817        30.243        .12012E-01    .18609E-02
   2  Index         2.9479        3.3102        .14135        .15038E-03
   3  Normalizat    1.3299        .27969E-01    .51033E-01   -.16732E-03
   4  Prefactor     .83732        .33442E-01    .74940E-01   -.47473E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.688169
  Index      = 2.94794
  Normalizat = 1.32986
  Prefactor  = 0.837317
 **********
 **   18 **HESSE 
 **********

 FCN=   7949.284     FROM HESSE     STATUS=OK            31 CALLS      321 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .68817        64.016        .14246E-03   -1.5542    
   2  Index         2.9479        5.9231        .10516E-01   -.42291    
   3  Normalizat    1.3299        .21437        .22562E-03   -.82679    
   4  Prefactor     .83732        .25334        .33167E-03   -.98367    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.11985e-09
Minuit parameter uncertainties:
  1  13.2883
  2  8.31924
  3  0.21451
  4  0.253697
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/36303': 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) = 7949.28401521
delta logL = 0.131841577595

Extracting fit parameters...

4FGL J1257.2+3646
   Spectrum: PowerLaw
300    Prefactor:  6.882e-01  1.329e+01  1.000e-04  1.000e+04 ( 1.000e-13)
301        Index:  2.948e+00  8.319e+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:  8.373e-01  2.537e-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.330e+00  2.145e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 194.310 36.771

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/36303/cmap_HighResolution_434764801_435024001_4FGL_J1257.2+3646_daily_bin754.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.26e-03', job_status='DONE', photon_flux_upper_limit='5.66e-08', time_completed='2021-09-06 11:56:27.361589', job_id='36303', GAL2='0.84', fit_tolerance='1e-08', EG2='1.33', EG='1.35', time_epoch_completed='1630954587.36', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.83', dlogl='1.32e-01', ts2='0.29', photon_index_error='0.00', photon_index='2.03' WHERE bin_id='754' AND source_name='4FGL J1257.2+3646' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 11:56:27 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0091>
Subject: Job 36303: <4FGL_J1257.2+3646_daily_bin754> in cluster <slac> Done

Job <4FGL_J1257.2+3646_daily_bin754> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Mon Sep  6 11:40:50 2021
Job was executed on host(s) <bullet0091>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 11:40:52 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:40:52 2021
Terminated at Mon Sep  6 11:56:28 2021
Results reported at Mon Sep  6 11:56:28 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1257.2+3646_daily_bin754 194.31 36.7706 434764801 435024001 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 :                                   904.01 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             330.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   935 sec.
    Turnaround time :                            938 sec.

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

