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


Performing analysis on: 4FGL_J1257.2+3646_daily_bin367
RA = 194.31, Dec = 36.7706
tmin = 334454401, tmax = 334713601
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='32971', job_status='RUN', time_executed='2021-09-06 11:33:22.826979', time_epoch_executed='1630953202.83' WHERE source_name='4FGL J1257.2+3646' and cadence='daily' and bin_id='367'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/32971

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/32971/ft1_4FGL_J1257.2+3646_daily_bin367.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/32971/ft2_4FGL_J1257.2+3646_daily_bin367.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/32971/ft1_4FGL_J1257.2+3646_daily_bin367.fits outfile=/scratch/kocevski/32971/ft1_filteredMKT_4FGL_J1257.2+3646_daily_bin367.fits ra=194.31 dec=36.7706 rad=12.0 tmin=334454401.0 tmax=334713601.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.48
user 3.26
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/32971/ft1_filtered_4FGL_J1257.2+3646_daily_bin367.fits" evtable="EVENTS" scfile=/scratch/kocevski/32971/ft2_4FGL_J1257.2+3646_daily_bin367.fits sctable="SC_DATA" outfile=/scratch/kocevski/32971/ltcube_334454401_334713601_4FGL_J1257.2+3646_daily_bin367.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/32971/ft2_4FGL_J1257.2+3646_daily_bin367.fits
.....................!
real 11.89
user 11.52
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/32971/ft1_filtered_4FGL_J1257.2+3646_daily_bin367.fits evtable="EVENTS" scfile=/scratch/kocevski/32971/ft2_4FGL_J1257.2+3646_daily_bin367.fits sctable="SC_DATA" expcube=/scratch/kocevski/32971/ltcube_334454401_334713601_4FGL_J1257.2+3646_daily_bin367.fits outfile=/scratch/kocevski/32971/expmap_334454401_334713601_4FGL_J1257.2+3646_daily_bin367.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/32971/ltcube_334454401_334713601_4FGL_J1257.2+3646_daily_bin367.fits
.....................!
real 191.97
user 185.42
sys 6.08

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/32971/ft1_filtered_4FGL_J1257.2+3646_daily_bin367.fits scfile=/scratch/kocevski/32971/ft2_4FGL_J1257.2+3646_daily_bin367.fits outfile=/scratch/kocevski/32971/cmap_334454401_334713601_4FGL_J1257.2+3646_daily_bin367.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.61
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/32971/ft1_filtered_4FGL_J1257.2+3646_daily_bin367.fits scfile=/scratch/kocevski/32971/ft2_4FGL_J1257.2+3646_daily_bin367.fits outfile=/scratch/kocevski/32971/cmap_HighResolution_334454401_334713601_4FGL_J1257.2+3646_daily_bin367.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.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    1.7571       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10176E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.6443       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    14.810       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .20560E-01   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .80013E-01   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10099E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    7.3521       1.0000         .10000E-03   10000.    
    15 'norm      '    .10022E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10119E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    9.6991       1.0000         .10000E-03   10000.    
    18 'norm      '    7.9778       1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.3707       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10150E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    64.644       1.0000         .10000E-03   10000.    
    22 'Prefactor '    2.0202       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10229E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .85933       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.2095       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=   5711.701     FROM MIGRAD    STATUS=CONVERGED    675 CALLS     3459 TOTAL
                     EDM=   .62E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    11.886        .15121E-08** at limit **
   2  norm          1.7570        2.1684       -.15867E-07   -.54042E-04
   3  Prefactor     .10000E-03    5.6433       -.87706E-07** at limit **
   4  Prefactor     3.6443        2.1869       -.18270E-07    .95701E-05
   5  Prefactor     .10000E-03    .61796       -.48582E-08** at limit **
   6  Prefactor     14.805        10.862        .42984E-06    .37398E-04
   7  Prefactor     .10001E-03    31.418       -.26597E-06** at limit **
   8  Prefactor     .10000E-03    6.9276        .37228E-07** at limit **
   9  Prefactor     .63100        78.548       -.45787E-06   -.15859E-05
  10  Prefactor     .10000E-03    2.8027        .14888E-06** at limit **
  11  norm          .10000E-03    1.5652        .13343E-07** at limit **
  12  Prefactor     .10000E-03    13.762        .62753E-08** at limit **
  13  Prefactor     .10000E-03    15.051        .91212E-07** at limit **
  14  Prefactor     7.3711        16.736       -.95465E-05   -.14117E-03
  15  norm          .10000E-03    6.7742        .56048E-06** at limit **
  16  norm          .10000E-03    7.9805        .94384E-08** at limit **
  17  norm          9.6947        7.0886       -.15327E-06    .60198E-05
  18  norm          7.9805        10.619        .35645E-06   -.53396E-05
  19  Prefactor     3.3724        4.3383        .25860E-06   -.23524E-04
  20  Prefactor     .10000E-03    26.467       -.15464E-06** at limit **
  21  Prefactor     64.670        75.859        .13307E-05    .96945E-05
  22  Prefactor     2.0139        6.1311        .17263E-05   -.69230E-03
  23  Prefactor     .10000E-03    56.520       -.20111E-05** at limit **
  24  Normalizat    .85938        .17525        .85137E-06    .22733E-04
  25  Prefactor     1.2096        .21250       -.17678E-07    .51899E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 1.757
  Prefactor  = 0.0001
  Prefactor  = 3.64431
  Prefactor  = 0.0001
  Prefactor  = 14.8054
  Prefactor  = 0.000100006
  Prefactor  = 0.0001
  Prefactor  = 0.631003
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.37112
  norm       = 0.000100002
  norm       = 0.0001
  norm       = 9.6947
  norm       = 7.98047
  Prefactor  = 3.37242
  Prefactor  = 0.0001
  Prefactor  = 64.67
  Prefactor  = 2.01387
  Prefactor  = 0.0001
  Normalizat = 0.859385
  Prefactor  = 1.20961
 **********
 **   18 **HESSE 
 **********

 FCN=   5711.701     FROM HESSE     STATUS=OK           451 CALLS     3910 TOTAL
                     EDM=   .47E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    11.899        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.7570        2.1658        .11515E-03   -1.5443    
   3  Prefactor     .10000E-03    6.7259        .56184E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     3.6443        2.1987        .80644E-04   -1.5326    
   5  Prefactor     .10000E-03    .61958        .58005E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     14.805        10.859        .10408E-03   -1.4938    
   7  Prefactor     .10001E-03    33.705        .11989       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    6.9327        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .63100        67.995        .18546       -1.5549    
  10  Prefactor     .10000E-03    2.8198        .12367E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    1.5693        .92292E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    13.766        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    15.079        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     7.3711        16.893        .14792E-03   -1.5165    
  15  norm          .10000E-03    7.1463        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    7.9989        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          9.6947        7.2238        .11592E-03   -1.5085    
  18  norm          7.9805        10.837        .14196E-03   -1.5143    
  19  Prefactor     3.3724        4.2908        .15451E-03   -1.5341    
  20  Prefactor     .10000E-03    26.727        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     64.670        75.545        .49913E-04   -1.4098    
  22  Prefactor     2.0139        21.972        .14558E-02   -1.5424    
  23  Prefactor     .10000E-03    56.610        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .85938        .20757        .25428E-03   -.97902    
  25  Prefactor     1.2096        .25201        .27071E-03   -.86036    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.66106e-09
Minuit parameter uncertainties:
  1  2.77607e-06
  2  2.16592
  3  7.8647e-05
  4  2.19876
  5  5.35177e-07
  6  10.8603
  7  0.000901154
  8  1.09439e-05
  9  13.1147
  10  3.41206e-05
  11  2.17002e-06
  12  8.06123e-09
  13  4.33082e-05
  14  16.9041
  15  0.000208783
  16  4.81874e-07
  17  7.2244
  18  10.8396
  19  4.29121
  20  3.92175e-05
  21  75.6577
  22  13.31
  23  8.0097e-05
  24  0.207765
  25  0.252261
Done.

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

Extracting fit parameters...

4FGL J1257.2+3646
   Spectrum: PowerLaw
300    Prefactor:  1.000e-04  3.412e-05  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.210e+00  2.523e-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:  8.594e-01  2.078e-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: 4.83e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.63e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/32971/likelihoodResults_334454401_334713601_4FGL_J1257.2+3646_daily_bin367.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) = 5711.70288548
delta logL = -0.0016789746569

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5711.70120672
delta logL = -2.21230038733e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0149       1.0000          .0000       10.000    
     3 'Normalizat'    .85952       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2095       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5711.701     FROM MIGRAD    STATUS=FAILED        88 CALLS      236 TOTAL
                     EDM=   .23E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10062E-03    46.152        .12444E-02** at limit **
   2  Index         1.9726        8.8584        .50000        .29398E-04
   3  Normalizat    .85939        .17420E-01    .25428E-03   -.84501E-05
   4  Prefactor     1.2096        .21698E-01    .27071E-03   -.46196E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5711.701     FROM SIMPLEX   STATUS=PROGRESS     131 CALLS      367 TOTAL
                     EDM=   .48E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10005E-03    46.152        .18988E-03** at limit **
   2  Index         1.9706        8.8584        .70764E-03    .29398E-04
   3  Normalizat    .85938        .17420E-01    .35959E-05   -.84501E-05
   4  Prefactor     1.2096        .21698E-01    .44086E-05   -.46196E-05
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5711.701     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      418 TOTAL
                     EDM=   .67E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    37.727        .24888E-02** at limit **
   2  Index         1.7414        9.1039        .50000        .19929E-06
   3  Normalizat    .85939        .15296E-01    .10171E-04   -.32861E-04
   4  Prefactor     1.2096        .19053E-01    .10828E-04   -.28347E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.74139
  Normalizat = 0.859385
  Prefactor  = 1.20961
 **********
 **   18 **HESSE 
 **********

 FCN=   5711.701     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      447 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    182.24        .49776E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.7414        6.5849        .50000       -.70985    
   3  Normalizat    .85939        .35748E-01    .20342E-05   -.97902    
   4  Prefactor     1.2096        .44504E-01    .21657E-05   -.86036    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.23626e-09
Minuit parameter uncertainties:
  1  0.000133681
  2  664.55
  3  0.0357486
  4  0.0445054
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/32971': 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) = 5711.7012052
delta logL = 1.30056105263e-06

Extracting fit parameters...

4FGL J1257.2+3646
   Spectrum: PowerLaw
300    Prefactor:  1.000e-04  1.337e-04  1.000e-04  1.000e+04 ( 1.000e-13)
301        Index:  1.741e+00  6.646e+02  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.210e+00  4.451e-02  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:  8.594e-01  3.575e-02  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/32971/cmap_HighResolution_334454401_334713601_4FGL_J1257.2+3646_daily_bin367.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.63e-03', job_status='DONE', photon_flux_upper_limit='4.83e-08', time_completed='2021-09-06 11:45:41.287868', job_id='32971', GAL2='1.21', fit_tolerance='1e-08', EG2='0.86', EG='0.86', time_epoch_completed='1630953941.29', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.21', dlogl='1.30e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.03' WHERE bin_id='367' AND source_name='4FGL J1257.2+3646' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 11:45:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0215>
Subject: Job 32971: <4FGL_J1257.2+3646_daily_bin367> in cluster <slac> Done

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

Your job looked like:

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

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

