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


Performing analysis on: 4FGL_J1257.2+3646_daily_bin321
RA = 194.31, Dec = 36.7706
tmin = 322531201, tmax = 322790401
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='32903', job_status='RUN', time_executed='2021-09-06 11:34:10.798371', time_epoch_executed='1630953250.8' WHERE source_name='4FGL J1257.2+3646' and cadence='daily' and bin_id='321'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/32903

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/32903/ft1_4FGL_J1257.2+3646_daily_bin321.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/32903/ft2_4FGL_J1257.2+3646_daily_bin321.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/32903/ft1_4FGL_J1257.2+3646_daily_bin321.fits outfile=/scratch/kocevski/32903/ft1_filteredMKT_4FGL_J1257.2+3646_daily_bin321.fits ra=194.31 dec=36.7706 rad=12.0 tmin=322531201.0 tmax=322790401.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 8.25
user 7.93
sys 0.29

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/32903/ft1_filtered_4FGL_J1257.2+3646_daily_bin321.fits" evtable="EVENTS" scfile=/scratch/kocevski/32903/ft2_4FGL_J1257.2+3646_daily_bin321.fits sctable="SC_DATA" outfile=/scratch/kocevski/32903/ltcube_322531201_322790401_4FGL_J1257.2+3646_daily_bin321.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/32903/ft2_4FGL_J1257.2+3646_daily_bin321.fits
.....................!
real 12.41
user 12.03
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/32903/ft1_filtered_4FGL_J1257.2+3646_daily_bin321.fits evtable="EVENTS" scfile=/scratch/kocevski/32903/ft2_4FGL_J1257.2+3646_daily_bin321.fits sctable="SC_DATA" expcube=/scratch/kocevski/32903/ltcube_322531201_322790401_4FGL_J1257.2+3646_daily_bin321.fits outfile=/scratch/kocevski/32903/expmap_322531201_322790401_4FGL_J1257.2+3646_daily_bin321.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/32903/ltcube_322531201_322790401_4FGL_J1257.2+3646_daily_bin321.fits
.....................!
real 195.55
user 189.81
sys 5.25

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/32903/ft1_filtered_4FGL_J1257.2+3646_daily_bin321.fits scfile=/scratch/kocevski/32903/ft2_4FGL_J1257.2+3646_daily_bin321.fits outfile=/scratch/kocevski/32903/cmap_322531201_322790401_4FGL_J1257.2+3646_daily_bin321.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.80
user 0.37
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    33.764       1.0000         .10000E-03   10000.    
     2 'norm      '    1.9808       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .25767       1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.3732       1.0000         .10000E-03   10000.    
     5 'Prefactor '    6.3276       1.0000         .10000E-03   10000.    
     6 'Prefactor '    7.8263       1.0000         .10000E-03   10000.    
     7 'Prefactor '    14.716       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    41.434       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .48723       1.0000         .10000E-03   10000.    
    11 'norm      '    1.7291       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    2.0959       1.0000         .10000E-03   10000.    
    17 'norm      '    .11623E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    5.1167       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10084E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    24.765       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .57836       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.2351       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=   5187.722     FROM MIGRAD    STATUS=CONVERGED    592 CALLS     2913 TOTAL
                     EDM=   .18E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     33.770        32.317       -.10249E-05   -.65256E-04
   2  norm          1.9807        1.7752        .17830E-07   -.41559E-04
   3  Prefactor     .22942        7.8496        .23550E-05   -.32514E-03
   4  Prefactor     2.3733        1.6951        .54459E-08   -.62443E-04
   5  Prefactor     6.3275        2.7585        .24347E-07   -.75445E-04
   6  Prefactor     7.8257        8.6969        .10708E-06   -.19774E-04
   7  Prefactor     14.686        24.887        .33793E-05   -.13558E-04
   8  Prefactor     .10000E-03    5.4144        .26972E-08** at limit **
   9  Prefactor     41.438        44.444       -.36770E-06   -.64838E-05
  10  Prefactor     .49175        4.4300        .93255E-07   -.11085E-03
  11  norm          1.7281        2.6936        .10359E-06   -.30732E-05
  12  Prefactor     .10000E-03    25.921       -.16061E-05** at limit **
  13  Prefactor     .10000E-03    7.4961       -.21550E-06** at limit **
  14  Prefactor     .10000E-03    9.1850       -.20263E-07** at limit **
  15  norm          .10000E-03    1.3274       -.79919E-08** at limit **
  16  norm          2.0959        16.572        .93616E-05    .64241E-04
  17  norm          .10000E-03    2.0533        .90660E-07** at limit **
  18  norm          5.1096        4.9398        .20665E-07   -.36175E-04
  19  Prefactor     .10000E-03    .83855       -.75027E-08** at limit **
  20  Prefactor     .10000E-03    8.4687        .36165E-06** at limit **
  21  Prefactor     .10000E-03    11.902       -.47175E-06** at limit **
  22  Prefactor     24.763        16.463        .20378E-06   -.15842E-04
  23  Prefactor     .10000E-03    21.820        .17097E-05** at limit **
  24  Normalizat    .57847        .15199       -.20919E-06   -.18153E-03
  25  Prefactor     1.2349        .19826       -.88050E-06   -.15437E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 33.7702
  norm       = 1.98075
  Prefactor  = 0.229423
  Prefactor  = 2.37326
  Prefactor  = 6.32746
  Prefactor  = 7.82575
  Prefactor  = 14.6861
  Prefactor  = 0.0001
  Prefactor  = 41.4377
  Prefactor  = 0.491747
  norm       = 1.72807
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 2.0959
  norm       = 0.0001
  norm       = 5.10956
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 24.7632
  Prefactor  = 0.0001
  Normalizat = 0.578475
  Prefactor  = 1.23493
 **********
 **   18 **HESSE 
 **********

 FCN=   5187.722     FROM HESSE     STATUS=OK           431 CALLS     3344 TOTAL
                     EDM=   .30E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     33.770        32.273        .68963E-04   -1.4545    
   2  norm          1.9807        1.7766        .88024E-04   -1.5426    
   3  Prefactor     .22942        44.129        .35624E-02   -1.5612    
   4  Prefactor     2.3733        1.7006        .76743E-04   -1.5400    
   5  Prefactor     6.3275        2.7557        .75844E-04   -1.5205    
   6  Prefactor     7.8257        8.6901        .14333E-03   -1.5148    
   7  Prefactor     14.686        24.904        .10441E-03   -1.4941    
   8  Prefactor     .10000E-03    5.4152        .16367E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     41.438        44.417        .62275E-04   -1.4420    
  10  Prefactor     .49175        9.5655        .28906E-02   -1.5568    
  11  norm          1.7281        2.6628        .14193E-03   -1.5445    
  12  Prefactor     .10000E-03    25.969        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    7.5085        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    9.2150        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    1.3302        .81018E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          2.0959        16.723        .14255E-02   -1.5418    
  17  norm          .10000E-03    2.8243        .18168E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          5.1096        4.4915        .13906E-03   -1.5256    
  19  Prefactor     .10000E-03    .84442        .64376E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    8.5719        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    11.903        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     24.763        16.463        .80494E-04   -1.4712    
  23  Prefactor     .10000E-03    21.829        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .57847        .17526        .25319E-03   -1.0891    
  25  Prefactor     1.2349        .23099        .23611E-03   -.85263    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.02255e-08
Minuit parameter uncertainties:
  1  32.2899
  2  1.77667
  3  6.36708
  4  1.70066
  5  2.75574
  6  8.69145
  7  24.922
  8  1.22206e-06
  9  44.452
  10  4.33802
  11  2.66302
  12  1.0347e-05
  13  3.43193e-06
  14  5.57838e-06
  15  1.76824e-07
  16  11.8449
  17  5.32896e-06
  18  4.4918
  19  6.88393e-08
  20  5.16878e-06
  21  2.8738e-06
  22  16.4662
  23  1.35906e-05
  24  0.175426
  25  0.231181
Done.

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

Extracting fit parameters...

4FGL J1257.2+3646
   Spectrum: PowerLaw
300    Prefactor:  4.917e-01  4.338e+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.235e+00  2.312e-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:  5.785e-01  1.754e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/32903/likelihoodResults_322531201_322790401_4FGL_J1257.2+3646_daily_bin321.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) = 5187.71696394
delta logL = 0.00512185766456

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5187.71525801
delta logL = 0.00682779192266

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .77292       1.0000         .10000E-03   10000.    
     2 'Index     '    1.7125       1.0000          .0000       10.000    
     3 'Normalizat'    .57956       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2335       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=   5187.715     FROM MIGRAD    STATUS=CONVERGED     98 CALLS      274 TOTAL
                     EDM=   .57E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .77024        7.8511        .38762E-03   -.65786E-04
   2  Index         1.7123        2.1052        .98546E-02   -.60301E-05
   3  Normalizat    .57969        .17267        .25294E-03    .14603E-03
   4  Prefactor     1.2334        .22951        .23624E-03    .12995E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.770237
  Index      = 1.71229
  Normalizat = 0.579691
  Prefactor  = 1.23335
 **********
 **   18 **HESSE 
 **********

 FCN=   5187.715     FROM HESSE     STATUS=OK            23 CALLS      297 TOTAL
                     EDM=   .58E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .77024        7.7917        .15505E-04   -1.5532    
   2  Index         1.7123        2.0984        .39419E-03   -.71755    
   3  Normalizat    .57969        .17278        .10118E-04   -1.0885    
   4  Prefactor     1.2334        .22966        .47247E-04   -.85311    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.8352e-11
Minuit parameter uncertainties:
  1  4.90009
  2  2.22561
  3  0.172945
  4  0.229851
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/32903': 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) = 5187.7152575
delta logL = 0.00682829281322

Extracting fit parameters...

4FGL J1257.2+3646
   Spectrum: PowerLaw
300    Prefactor:  7.702e-01  4.900e+00  1.000e-04  1.000e+04 ( 1.000e-13)
301        Index:  1.712e+00  2.226e+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.233e+00  2.299e-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:  5.797e-01  1.729e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.01
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/32903/cmap_HighResolution_322531201_322790401_4FGL_J1257.2+3646_daily_bin321.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.87e-03', job_status='DONE', photon_flux_upper_limit='5.15e-08', time_completed='2021-09-06 11:45:38.094076', job_id='32903', GAL2='1.23', fit_tolerance='1e-08', EG2='0.58', EG='0.58', time_epoch_completed='1630953938.09', return_code2='0', ts='0.01', comment='SUCCESS', return_code='0', GAL='1.23', dlogl='6.83e-03', ts2='0.03', photon_index_error='0.00', photon_index='2.03' WHERE bin_id='321' AND source_name='4FGL J1257.2+3646' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 11:45:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0154>
Subject: Job 32903: <4FGL_J1257.2+3646_daily_bin321> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1257.2+3646_daily_bin321 194.31 36.7706 322531201 322790401 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 :                                   682.25 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             263.59 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   911 sec.
    Turnaround time :                            913 sec.

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

