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


Performing analysis on: 4FGL_J1257.2+3646_daily_bin441
RA = 194.31, Dec = 36.7706
tmin = 353635201, tmax = 353894401
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='34461', job_status='RUN', time_executed='2021-09-06 11:38:51.892181', time_epoch_executed='1630953531.89' WHERE source_name='4FGL J1257.2+3646' and cadence='daily' and bin_id='441'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/34461

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/34461/ft1_4FGL_J1257.2+3646_daily_bin441.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/34461/ft2_4FGL_J1257.2+3646_daily_bin441.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/34461/ft1_4FGL_J1257.2+3646_daily_bin441.fits outfile=/scratch/kocevski/34461/ft1_filteredMKT_4FGL_J1257.2+3646_daily_bin441.fits ra=194.31 dec=36.7706 rad=12.0 tmin=353635201.0 tmax=353894401.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.64
user 3.37
sys 0.18

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

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

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/34461/ft1_filtered_4FGL_J1257.2+3646_daily_bin441.fits evtable="EVENTS" scfile=/scratch/kocevski/34461/ft2_4FGL_J1257.2+3646_daily_bin441.fits sctable="SC_DATA" expcube=/scratch/kocevski/34461/ltcube_353635201_353894401_4FGL_J1257.2+3646_daily_bin441.fits outfile=/scratch/kocevski/34461/expmap_353635201_353894401_4FGL_J1257.2+3646_daily_bin441.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/34461/ltcube_353635201_353894401_4FGL_J1257.2+3646_daily_bin441.fits
.....................!
real 191.84
user 186.88
sys 4.58

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/34461/ft1_filtered_4FGL_J1257.2+3646_daily_bin441.fits scfile=/scratch/kocevski/34461/ft2_4FGL_J1257.2+3646_daily_bin441.fits outfile=/scratch/kocevski/34461/cmap_353635201_353894401_4FGL_J1257.2+3646_daily_bin441.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/34461/ft1_filtered_4FGL_J1257.2+3646_daily_bin441.fits scfile=/scratch/kocevski/34461/ft2_4FGL_J1257.2+3646_daily_bin441.fits outfile=/scratch/kocevski/34461/cmap_HighResolution_353635201_353894401_4FGL_J1257.2+3646_daily_bin441.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.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    7.9296       1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.7131       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.1428       1.0000         .10000E-03   10000.    
     5 'Prefactor '    6.1618       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    17.172       1.0000         .10000E-03   10000.    
     8 'Prefactor '    22.171       1.0000         .10000E-03   10000.    
     9 'Prefactor '    72.897       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10789E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    5.2293       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .88815E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.7503       1.0000         .10000E-03   10000.    
    15 'norm      '    .10088E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    13.059       1.0000         .10000E-03   10000.    
    17 'norm      '    .10075E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    10.119       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10761E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0567       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .91095       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=   5858.138     FROM MIGRAD    STATUS=CONVERGED    578 CALLS     2900 TOTAL
                     EDM=   .61E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    16.388       -.41502E-06** at limit **
   2  norm          7.9295        3.6382        .11464E-07    .10954E-03
   3  Prefactor     3.7128        6.4266       -.56022E-06    .33835E-03
   4  Prefactor     1.1429        1.6274       -.87251E-07    .22479E-03
   5  Prefactor     6.1616        2.9691       -.14042E-07    .71252E-04
   6  Prefactor     .10000E-03    4.1845       -.99727E-07** at limit **
   7  Prefactor     17.172        26.899       -.20561E-06    .14431E-04
   8  Prefactor     22.153        22.816        .16320E-05    .55329E-04
   9  Prefactor     72.929        81.949       -.13192E-05   -.16625E-04
  10  Prefactor     .10001E-03    16.105       -.57039E-05** at limit **
  11  norm          5.2289        4.7506        .35856E-06    .24856E-03
  12  Prefactor     .10000E-03    16.557       -.29452E-06** at limit **
  13  Prefactor     .10014E-03    37.194       -.64820E-05** at limit **
  14  Prefactor     2.7474        25.154        .35823E-05    .10160E-03
  15  norm          .10000E-03    2.9614       -.52054E-06** at limit **
  16  norm          13.059        12.126       -.67731E-07    .12954E-04
  17  norm          .10000E-03    2.7339       -.28668E-06** at limit **
  18  norm          10.122        6.2405        .22986E-06    .14886E-03
  19  Prefactor     .10000E-03    1.8146       -.45608E-06** at limit **
  20  Prefactor     .10000E-03    6.3967       -.62248E-07** at limit **
  21  Prefactor     .10000E-03    25.839        .16808E-07** at limit **
  22  Prefactor     .10000E-03    8.0445       -.18592E-07** at limit **
  23  Prefactor     .10000E-03    27.669       -.77087E-06** at limit **
  24  Normalizat    1.0569        .17566        .75863E-06    .71447E-04
  25  Prefactor     .91080        .21369       -.15667E-06    .21059E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 7.9295
  Prefactor  = 3.71276
  Prefactor  = 1.14288
  Prefactor  = 6.16162
  Prefactor  = 0.0001
  Prefactor  = 17.1721
  Prefactor  = 22.1532
  Prefactor  = 72.9291
  Prefactor  = 0.000100006
  norm       = 5.22889
  Prefactor  = 0.0001
  Prefactor  = 0.000100136
  Prefactor  = 2.74745
  norm       = 0.0001
  norm       = 13.0588
  norm       = 0.0001
  norm       = 10.1225
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.05688
  Prefactor  = 0.910797
 **********
 **   18 **HESSE 
 **********

 FCN=   5858.138     FROM HESSE     STATUS=OK           431 CALLS     3331 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    16.424        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          7.9295        3.6245        .91403E-04   -1.5145    
   3  Prefactor     3.7128        6.3985        .20957E-03   -1.5323    
   4  Prefactor     1.1429        1.5821        .10947E-03   -1.5494    
   5  Prefactor     6.1616        2.9669        .87099E-04   -1.5211    
   6  Prefactor     .10000E-03    4.1937        .15289E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     17.172        26.904        .96650E-04   -1.4879    
   8  Prefactor     22.153        22.407        .85067E-04   -1.4766    
   9  Prefactor     72.929        82.023        .47022E-04   -1.3998    
  10  Prefactor     .10001E-03    18.849        .33718E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          5.2289        4.6069        .14395E-03   -1.5251    
  12  Prefactor     .10000E-03    16.565        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10014E-03    93.378        .62556E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     2.7474        24.729        .24547E-03   -1.5376    
  15  norm          .10000E-03    3.0138        .12852E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          13.059        12.128        .11084E-03   -1.4985    
  17  norm          .10000E-03    2.7902        .24533E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          10.122        6.1724        .12597E-03   -1.5072    
  19  Prefactor     .10000E-03    3.4320        .19705E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    6.4319        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    25.854        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    8.0762        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    27.675        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.0569        .20706        .22712E-03   -.91149    
  25  Prefactor     .91080        .25379        .30088E-03   -.95765    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.47886e-09
Minuit parameter uncertainties:
  1  1.42736e-05
  2  3.6246
  3  6.39969
  4  1.5822
  5  2.96693
  6  1.18729e-05
  7  26.9227
  8  22.4156
  9  82.1508
  10  0.000655579
  11  4.60718
  12  1.66393e-05
  13  0.00714606
  14  16.494
  15  2.75207e-05
  16  12.1306
  17  9.28339e-06
  18  6.17278
  19  0.000118164
  20  6.79073e-06
  21  8.82882e-06
  22  2.33446e-06
  23  4.54178e-05
  24  0.207218
  25  0.254121
Done.

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

Extracting fit parameters...

4FGL J1257.2+3646
   Spectrum: PowerLaw
300    Prefactor:  1.000e-04  6.556e-04  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:  9.108e-01  2.541e-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.057e+00  2.072e-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: 6.49e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.88e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/34461/likelihoodResults_353635201_353894401_4FGL_J1257.2+3646_daily_bin441.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) = 5858.13801661
delta logL = -0.00025228413142

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5858.13776414
delta logL = 1.93223058886e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10580E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1027       1.0000          .0000       10.000    
     3 'Normalizat'    1.0570       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91062       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=   5858.138     FROM MIGRAD    STATUS=CONVERGED     65 CALLS      237 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10004E-03    .54886E-01    .53980E-01** at limit **
   2  Index         2.1919        5.8937        .50000       -.26890E-04
   3  Normalizat    1.0569        .44049E-03    .40109E-01    .30097E-04
   4  Prefactor     .91079        .54871E-03    .68015E-01    .31797E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100043
  Index      = 2.19188
  Normalizat = 1.05688
  Prefactor  = 0.910793
 **********
 **   18 **HESSE 
 **********

 FCN=   5858.138     FROM HESSE     STATUS=NOT POSDEF    37 CALLS      274 TOTAL
                     EDM=   .20E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10004E-03    22.034        .33035E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1919        7.5619        .50000       -.59635    
   3  Normalizat    1.0569        .33462E-02    .22712E-03   -.91148    
   4  Prefactor     .91079        .41633E-02    .30088E-03   -.95765    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.0274e-07
Minuit parameter uncertainties:
  1  0.00193715
  2  73.5208
  3  0.00334622
  4  0.00416333
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/34461': 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): 102
logL (Free Index) = 5858.13776312
delta logL = 1.20915956359e-06

Extracting fit parameters...

4FGL J1257.2+3646
   Spectrum: PowerLaw
300    Prefactor:  1.000e-04  1.937e-03  1.000e-04  1.000e+04 ( 1.000e-13)
301        Index:  2.192e+00  7.352e+01  0.000e+00  1.000e+01 (-1.000e+00)
302        Scale:  1.897e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
599    Prefactor:  9.108e-01  4.163e-03  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.057e+00  3.346e-03  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/34461/cmap_HighResolution_353635201_353894401_4FGL_J1257.2+3646_daily_bin441.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.88e-03', job_status='DONE', photon_flux_upper_limit='6.49e-08', time_completed='2021-09-06 11:50:34.920889', job_id='34461', GAL2='0.91', fit_tolerance='1e-08', EG2='1.06', EG='1.06', time_epoch_completed='1630954234.92', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.91', dlogl='1.21e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.03' WHERE bin_id='441' AND source_name='4FGL J1257.2+3646' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 11:50:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0148>
Subject: Job 34461: <4FGL_J1257.2+3646_daily_bin441> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1257.2+3646_daily_bin441 194.31 36.7706 353635201 353894401 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 :                                   697.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             239.24 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   907 sec.
    Turnaround time :                            909 sec.

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

