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


Performing analysis on: 4FGL_J1257.2+3646_daily_bin314
RA = 194.31, Dec = 36.7706
tmin = 320716801, tmax = 320976001
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='32890', job_status='RUN', time_executed='2021-09-06 11:33:26.679081', time_epoch_executed='1630953206.68' WHERE source_name='4FGL J1257.2+3646' and cadence='daily' and bin_id='314'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/32890

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

Retrieving the FT1 file...

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

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

Retrieving 44 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/32890/ft1_4FGL_J1257.2+3646_daily_bin314.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/32890/ft2_4FGL_J1257.2+3646_daily_bin314.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/32890/ft1_4FGL_J1257.2+3646_daily_bin314.fits outfile=/scratch/kocevski/32890/ft1_filteredMKT_4FGL_J1257.2+3646_daily_bin314.fits ra=194.31 dec=36.7706 rad=12.0 tmin=320716801.0 tmax=320976001.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.38
user 3.18
sys 0.19

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/32890/ft1_filtered_4FGL_J1257.2+3646_daily_bin314.fits evtable="EVENTS" scfile=/scratch/kocevski/32890/ft2_4FGL_J1257.2+3646_daily_bin314.fits sctable="SC_DATA" expcube=/scratch/kocevski/32890/ltcube_320716801_320976001_4FGL_J1257.2+3646_daily_bin314.fits outfile=/scratch/kocevski/32890/expmap_320716801_320976001_4FGL_J1257.2+3646_daily_bin314.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/32890/ltcube_320716801_320976001_4FGL_J1257.2+3646_daily_bin314.fits
.....................!
real 189.55
user 184.69
sys 4.55

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/32890/ft1_filtered_4FGL_J1257.2+3646_daily_bin314.fits scfile=/scratch/kocevski/32890/ft2_4FGL_J1257.2+3646_daily_bin314.fits outfile=/scratch/kocevski/32890/cmap_320716801_320976001_4FGL_J1257.2+3646_daily_bin314.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.14

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

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/32890/ft1_filtered_4FGL_J1257.2+3646_daily_bin314.fits', '/scratch/kocevski/32890/ft2_4FGL_J1257.2+3646_daily_bin314.fits', expMap='/scratch/kocevski/32890/expmap_320716801_320976001_4FGL_J1257.2+3646_daily_bin314.fits', expCube='/scratch/kocevski/32890/ltcube_320716801_320976001_4FGL_J1257.2+3646_daily_bin314.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/32890/Model_4FGL_J1257.2+3646_daily_bin314.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/32890/ft1_filtered_4FGL_J1257.2+3646_daily_bin314.fits
Spacecraft file(s): /scratch/kocevski/32890/ft2_4FGL_J1257.2+3646_daily_bin314.fits
Exposure map: /scratch/kocevski/32890/expmap_320716801_320976001_4FGL_J1257.2+3646_daily_bin314.fits
Exposure cube: /scratch/kocevski/32890/ltcube_320716801_320976001_4FGL_J1257.2+3646_daily_bin314.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/32890/Model_4FGL_J1257.2+3646_daily_bin314.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 5343.70426497

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    70.824       1.0000         .10000E-03   10000.    
     2 'norm      '    5.7230       1.0000         .10000E-03   10000.    
     3 'Prefactor '    9.3943       1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.1190       1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.8783       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.7507       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .20297       1.0000         .10000E-03   10000.    
    11 'norm      '    9.0632       1.0000         .10000E-03   10000.    
    12 'Prefactor '    14.913       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .42337E-01   1.0000         .10000E-03   10000.    
    14 'Prefactor '    42.614       1.0000         .10000E-03   10000.    
    15 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    5.9474       1.0000         .10000E-03   10000.    
    17 'norm      '    2.7282       1.0000         .10000E-03   10000.    
    18 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.5677       1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.1996       1.0000         .10000E-03   10000.    
    21 'Prefactor '    78.831       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10098E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.1408       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .72089       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=   5343.692     FROM MIGRAD    STATUS=CONVERGED    624 CALLS     2979 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     70.828        42.534        .13233E-06    .39756E-04
   2  norm          5.7230        3.0409        .35831E-08   -.90875E-04
   3  Prefactor     9.3956        8.0214       -.33399E-06    .45929E-03
   4  Prefactor     6.1192        2.7809       -.32296E-07   -.15117E-03
   5  Prefactor     2.8809        3.5638       -.43671E-06   -.43814E-03
   6  Prefactor     1.7404        31.716        .38866E-05    .26631E-04
   7  Prefactor     .10000E-03    28.767        .18510E-06** at limit **
   8  Prefactor     .10000E-03    12.323        .71314E-07** at limit **
   9  Prefactor     .10004E-03    160.19       -.35029E-05** at limit **
  10  Prefactor     .24127        10.069        .33044E-05   -.53301E-03
  11  norm          9.0649        5.7779        .85813E-06    .13221E-02
  12  Prefactor     14.920        79.812       -.56804E-06   -.70577E-05
  13  Prefactor     .10323E-03    28.041       -.67416E-05** at limit **
  14  Prefactor     42.565        22.617        .17220E-05    .38359E-03
  15  norm          .10000E-03    1.6925       -.25235E-06** at limit **
  16  norm          5.9479        14.901        .89370E-06   -.11679E-03
  17  norm          2.7274        4.2176       -.74631E-06    .46102E-04
  18  norm          .10000E-03    4.9833        .36358E-06** at limit **
  19  Prefactor     2.5606        5.0692        .53380E-05    .28455E-03
  20  Prefactor     1.2343        101.39       -.14521E-04    .52333E-04
  21  Prefactor     78.819        72.318       -.37079E-05   -.11207E-03
  22  Prefactor     .10000E-03    6.1679       -.33426E-07** at limit **
  23  Prefactor     .10001E-03    145.58        .16045E-05** at limit **
  24  Normalizat    1.1405        .19992        .24424E-06    .37165E-03
  25  Prefactor     .72123        .22718       -.11914E-05    .14370E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 70.8278
  norm       = 5.72297
  Prefactor  = 9.39558
  Prefactor  = 6.11916
  Prefactor  = 2.88088
  Prefactor  = 1.74038
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100042
  Prefactor  = 0.241266
  norm       = 9.06488
  Prefactor  = 14.9204
  Prefactor  = 0.000103225
  Prefactor  = 42.5646
  norm       = 0.0001
  norm       = 5.94794
  norm       = 2.72745
  norm       = 0.0001
  Prefactor  = 2.56061
  Prefactor  = 1.23434
  Prefactor  = 78.8191
  Prefactor  = 0.0001
  Prefactor  = 0.000100005
  Normalizat = 1.1405
  Prefactor  = 0.721225
 **********
 **   18 **HESSE 
 **********

 FCN=   5343.692     FROM HESSE     STATUS=OK           437 CALLS     3416 TOTAL
                     EDM=   .86E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     70.828        42.541        .47701E-04   -1.4023    
   2  norm          5.7230        3.0427        .87622E-04   -1.5229    
   3  Prefactor     9.3956        8.0115        .13075E-03   -1.5095    
   4  Prefactor     6.1192        2.7817        .77219E-04   -1.5213    
   5  Prefactor     2.8809        3.4641        .13093E-03   -1.5368    
   6  Prefactor     1.7404        30.198        .31688E-03   -1.5444    
   7  Prefactor     .10000E-03    28.864        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    12.342        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10004E-03    160.47        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .24127        60.778        .36225E-02   -1.5610    
  11  norm          9.0649        5.8361        .65116E-03   -1.5106    
  12  Prefactor     14.920        80.258        .10372E-03   -1.4935    
  13  Prefactor     .10323E-03    31.182        .10007       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     42.565        24.030        .61410E-04   -1.4402    
  15  norm          .10000E-03    1.6963        .92919E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          5.9479        14.867        .16466E-03   -1.5220    
  17  norm          2.7274        4.1081        .16410E-03   -1.5378    
  18  norm          .10000E-03    5.0020        .15856E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     2.5606        5.1685        .82002E-03   -1.5388    
  20  Prefactor     1.2343        100.48        .41457E-03   -1.5486    
  21  Prefactor     78.819        71.613        .45231E-04   -1.3930    
  22  Prefactor     .10000E-03    6.1767        .17731E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10001E-03    146.23        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.1405        .23481        .22677E-03   -.88462    
  25  Prefactor     .72123        .26539        .33010E-03   -1.0270    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.60882e-09
Minuit parameter uncertainties:
  1  42.5597
  2  3.04281
  3  8.01239
  4  2.78174
  5  3.46434
  6  14.5074
  7  4.56557e-05
  8  1.6698e-05
  9  0.0052214
  10  7.66492
  11  5.83644
  12  69.3543
  13  0.020067
  14  24.0355
  15  2.02599e-05
  16  14.8761
  17  4.10851
  18  5.5972e-05
  19  5.16943
  20  22.3115
  21  71.6917
  22  4.30082e-06
  23  0.00174697
  24  0.235023
  25  0.265855
Done.

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

Extracting fit parameters...

4FGL J1257.2+3646
   Spectrum: PowerLaw
300    Prefactor:  2.413e-01  7.665e+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:  7.212e-01  2.659e-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.141e+00  2.350e-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: 7.13e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.36e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/32890/likelihoodResults_320716801_320976001_4FGL_J1257.2+3646_daily_bin314.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) = 5343.65561317
delta logL = 0.0366303420215

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5343.63230955
delta logL = 0.0599339601104

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .86593       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6820       1.0000          .0000       10.000    
     3 'Normalizat'    1.1306       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .72456       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=   5343.632     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      221 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .87107        52.986        .12683E-01    .10823E-02
   2  Index         2.6800        2.5969        .22943        .33813E-04
   3  Normalizat    1.1306        .24768E-01    .36872E-01   -.21290E-04
   4  Prefactor     .72458        .29389E-01    .74379E-01    .13011E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.871072
  Index      = 2.67995
  Normalizat = 1.13058
  Prefactor  = 0.724576
 **********
 **   18 **HESSE 
 **********

 FCN=   5343.632     FROM HESSE     STATUS=OK            33 CALLS      254 TOTAL
                     EDM=   .50E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .87107        5.7609        .19510E-03   -1.5521    
   2  Index         2.6800        1.9086        .83875E-02   -.48252    
   3  Normalizat    1.1306        .22249        .22755E-03   -.88776    
   4  Prefactor     .72458        .26156        .32923E-03   -1.0257    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.04501e-09
Minuit parameter uncertainties:
  1  4.48064
  2  1.97324
  3  0.222672
  4  0.262005
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/32890': 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) = 5343.63230843
delta logL = 0.0599350789653

Extracting fit parameters...

4FGL J1257.2+3646
   Spectrum: PowerLaw
300    Prefactor:  8.711e-01  4.481e+00  1.000e-04  1.000e+04 ( 1.000e-13)
301        Index:  2.680e+00  1.973e+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:  7.246e-01  2.620e-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.131e+00  2.227e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/32890/cmap_HighResolution_320716801_320976001_4FGL_J1257.2+3646_daily_bin314.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.36e-03', job_status='DONE', photon_flux_upper_limit='7.13e-08', time_completed='2021-09-06 11:44:29.255098', job_id='32890', GAL2='0.72', fit_tolerance='1e-08', EG2='1.13', EG='1.14', time_epoch_completed='1630953869.26', return_code2='0', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.72', dlogl='5.99e-02', ts2='0.13', photon_index_error='0.00', photon_index='2.03' WHERE bin_id='314' AND source_name='4FGL J1257.2+3646' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 11:44:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0303>
Subject: Job 32890: <4FGL_J1257.2+3646_daily_bin314> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1257.2+3646_daily_bin314 194.31 36.7706 320716801 320976001 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 :                                   657.38 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             241.25 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   843 sec.
    Turnaround time :                            845 sec.

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

