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


Performing analysis on: 4FGL_J1257.2+3646_daily_bin411
RA = 194.31, Dec = 36.7706
tmin = 345859201, tmax = 346118401
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='33033', job_status='RUN', time_executed='2021-09-06 11:34:38.420364', time_epoch_executed='1630953278.42' WHERE source_name='4FGL J1257.2+3646' and cadence='daily' and bin_id='411'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/33033

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/33033/ft1_4FGL_J1257.2+3646_daily_bin411.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/33033/ft2_4FGL_J1257.2+3646_daily_bin411.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/33033/ft1_4FGL_J1257.2+3646_daily_bin411.fits outfile=/scratch/kocevski/33033/ft1_filteredMKT_4FGL_J1257.2+3646_daily_bin411.fits ra=194.31 dec=36.7706 rad=12.0 tmin=345859201.0 tmax=346118401.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.37
user 3.16
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/33033/ft1_filtered_4FGL_J1257.2+3646_daily_bin411.fits evtable="EVENTS" scfile=/scratch/kocevski/33033/ft2_4FGL_J1257.2+3646_daily_bin411.fits sctable="SC_DATA" expcube=/scratch/kocevski/33033/ltcube_345859201_346118401_4FGL_J1257.2+3646_daily_bin411.fits outfile=/scratch/kocevski/33033/expmap_345859201_346118401_4FGL_J1257.2+3646_daily_bin411.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/33033/ltcube_345859201_346118401_4FGL_J1257.2+3646_daily_bin411.fits
.....................!
real 194.51
user 187.00
sys 5.32

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/33033/ft1_filtered_4FGL_J1257.2+3646_daily_bin411.fits scfile=/scratch/kocevski/33033/ft2_4FGL_J1257.2+3646_daily_bin411.fits outfile=/scratch/kocevski/33033/cmap_345859201_346118401_4FGL_J1257.2+3646_daily_bin411.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.85
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/33033/ft1_filtered_4FGL_J1257.2+3646_daily_bin411.fits scfile=/scratch/kocevski/33033/ft2_4FGL_J1257.2+3646_daily_bin411.fits outfile=/scratch/kocevski/33033/cmap_HighResolution_345859201_346118401_4FGL_J1257.2+3646_daily_bin411.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.73
user 0.36
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    28.299       1.0000         .10000E-03   10000.    
     2 'norm      '    2.4808       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .78949       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.0281       1.0000         .10000E-03   10000.    
     6 'Prefactor '    15.615       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10245E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .16222E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .65254E-01   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10780E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    2.1491       1.0000         .10000E-03   10000.    
    12 'Prefactor '    7.9707       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .60464E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .14790E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10363E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    16.738       1.0000         .10000E-03   10000.    
    17 'norm      '    .10053E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    2.6222       1.0000         .10000E-03   10000.    
    19 'Prefactor '    4.5218       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10705E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .39876E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    13.229       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .27630       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.2619       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .54417       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=   5246.037     FROM MIGRAD    STATUS=CONVERGED    609 CALLS     2585 TOTAL
                     EDM=   .55E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     28.436        26.578       -.13951E-06    .43940E-04
   2  norm          2.4811        1.9831       -.20335E-07   -.47240E-04
   3  Prefactor     .75566        7.7073        .37172E-05   -.29068E-04
   4  Prefactor     .10000E-03    1.0188       -.14349E-07** at limit **
   5  Prefactor     1.0269        1.8170        .29059E-06    .14418E-04
   6  Prefactor     15.612        8.5997       -.45470E-07   -.11156E-04
   7  Prefactor     .10000E-03    22.477       -.13818E-06** at limit **
   8  Prefactor     .10000E-03    11.013       -.32572E-07** at limit **
   9  Prefactor     .10000E-03    50.052       -.75573E-06** at limit **
  10  Prefactor     .10000E-03    2.0769       -.75750E-08** at limit **
  11  norm          2.1285        3.4884        .25232E-06   -.84746E-05
  12  Prefactor     7.9270        34.682       -.17097E-06   -.38680E-04
  13  Prefactor     .10000E-03    17.946       -.24716E-07** at limit **
  14  Prefactor     .10000E-03    8.9928       -.16941E-07** at limit **
  15  norm          .10000E-03    2.4373       -.10806E-07** at limit **
  16  norm          16.568        14.742        .68577E-08   -.30398E-04
  17  norm          .10000E-03    1.7524        .15370E-07** at limit **
  18  norm          2.6567        3.1980       -.16147E-07   -.97914E-05
  19  Prefactor     4.5073        3.0087        .93664E-07   -.24996E-04
  20  Prefactor     .10000E-03    4.9642        .30680E-07** at limit **
  21  Prefactor     .10000E-03    16.082        .13825E-06** at limit **
  22  Prefactor     13.017        13.139        .33694E-06    .16623E-03
  23  Prefactor     .10000E-03    82.267        .41769E-06** at limit **
  24  Normalizat    1.2625        .17258       -.79165E-06   -.58712E-04
  25  Prefactor     .54406        .20734        .51851E-06   -.58652E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 28.4363
  norm       = 2.48108
  Prefactor  = 0.755662
  Prefactor  = 0.0001
  Prefactor  = 1.02692
  Prefactor  = 15.6122
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 2.12847
  Prefactor  = 7.927
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 16.5682
  norm       = 0.0001
  norm       = 2.65672
  Prefactor  = 4.50731
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.0165
  Prefactor  = 0.0001
  Normalizat = 1.26246
  Prefactor  = 0.544065
 **********
 **   18 **HESSE 
 **********

 FCN=   5246.037     FROM HESSE     STATUS=OK           423 CALLS     3008 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     28.436        26.572        .75311E-04   -1.4641    
   2  norm          2.4811        1.9596        .87340E-04   -1.5393    
   3  Prefactor     .75566        7.6960        .38469E-03   -1.5534    
   4  Prefactor     .10000E-03    1.0331        .14162E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     1.0269        1.7719        .12431E-03   -1.5505    
   6  Prefactor     15.612        8.5910        .10136E-03   -1.4918    
   7  Prefactor     .10000E-03    22.518        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    11.031        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    50.120        .18688E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    2.0828        .10193E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          2.1285        3.4645        .16655E-03   -1.5416    
  12  Prefactor     7.9270        34.637        .14202E-03   -1.5145    
  13  Prefactor     .10000E-03    18.127        .21060E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    9.0847        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    2.4706        .11037E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          16.568        14.737        .97896E-04   -1.4894    
  17  norm          .10000E-03    1.7872        .18432E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          2.6567        3.1492        .13616E-03   -1.5382    
  19  Prefactor     4.5073        3.0056        .98260E-04   -1.5283    
  20  Prefactor     .10000E-03    4.9777        .15751E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    16.086        .21265E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     13.017        13.133        .11013E-03   -1.4986    
  23  Prefactor     .10000E-03    82.537        .20641E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.2625        .19215        .19497E-03   -.84694    
  25  Prefactor     .54406        .22989        .34644E-03   -1.1000    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.07231e-10
Minuit parameter uncertainties:
  1  26.5835
  2  1.95967
  3  4.8236
  4  9.17259e-07
  5  1.77197
  6  8.5917
  7  2.72923e-05
  8  4.02069e-06
  9  0.00047104
  10  7.22352e-07
  11  3.46482
  12  33.1725
  13  6.68622e-06
  14  4.32889e-06
  15  5.12728e-07
  16  14.7403
  17  8.127e-08
  18  3.14941
  19  3.00572
  20  8.4159e-07
  21  5.25434e-05
  22  13.1363
  23  0.000383299
  24  0.192262
  25  0.230285
Done.

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

Extracting fit parameters...

4FGL J1257.2+3646
   Spectrum: PowerLaw
300    Prefactor:  1.000e-04  7.224e-07  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:  5.441e-01  2.303e-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.262e+00  1.923e-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: 3.95e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.97e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/33033/likelihoodResults_345859201_346118401_4FGL_J1257.2+3646_daily_bin411.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) = 5246.03925382
delta logL = -0.00223549141083

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5246.03701825
delta logL = 7.75580701884e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0140       1.0000          .0000       10.000    
     3 'Normalizat'    1.2625       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .54405       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=   5246.037     FROM MIGRAD    STATUS=FAILED        85 CALLS      236 TOTAL
                     EDM=   .31E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10077E-03    38.454        .10270E-02** at limit **
   2  Index         1.9685        5.4656        .50000        .45549E-04
   3  Normalizat    1.2625        .17573E-01    .19497E-03    .14403E-04
   4  Prefactor     .54407        .21354E-01    .34644E-03   -.33144E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5246.037     FROM SIMPLEX   STATUS=UNCHANGED    130 CALLS      366 TOTAL
                     EDM=   .79E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10077E-03    38.454        .21744E-03** at limit **
   2  Index         1.9685        5.4656        .28620E-03    .45549E-04
   3  Normalizat    1.2625        .17573E-01    .40423E-05    .14403E-04
   4  Prefactor     .54407        .21354E-01    .40428E-05   -.33144E-05
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5246.037     FROM MIGRAD    STATUS=CONVERGED     46 CALLS      412 TOTAL
                     EDM=   .28E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    39.793        .20539E-02** at limit **
   2  Index         1.6396        5.2816        .50000       -.14961E-07
   3  Normalizat    1.2625        .17130E-01    .77987E-05    .41401E-04
   4  Prefactor     .54407        .20816E-01    .13858E-04    .29862E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.63957
  Normalizat = 1.26246
  Prefactor  = 0.544066
 **********
 **   18 **HESSE 
 **********

 FCN=   5246.037     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      441 TOTAL
                     EDM=   .13E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    178.78        .41079E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.6396        6.2552        .50000       -.73702    
   3  Normalizat    1.2625        .39378E-01    .15597E-05   -.84694    
   4  Prefactor     .54407        .47840E-01    .27715E-05   -1.1000    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.26696e-11
Minuit parameter uncertainties:
  1  2.84884e-06
  2  706.15
  3  0.0393792
  4  0.047844
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/33033': 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) = 5246.03701573
delta logL = 2.59197622654e-06

Extracting fit parameters...

4FGL J1257.2+3646
   Spectrum: PowerLaw
300    Prefactor:  1.000e-04  2.849e-06  1.000e-04  1.000e+04 ( 1.000e-13)
301        Index:  1.640e+00  7.062e+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:  5.441e-01  4.784e-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:  1.262e+00  3.938e-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/33033/cmap_HighResolution_345859201_346118401_4FGL_J1257.2+3646_daily_bin411.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.97e-03', job_status='DONE', photon_flux_upper_limit='3.95e-08', time_completed='2021-09-06 11:45:56.685796', job_id='33033', GAL2='0.54', fit_tolerance='1e-08', EG2='1.26', EG='1.26', time_epoch_completed='1630953956.69', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.54', dlogl='2.59e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.03' WHERE bin_id='411' AND source_name='4FGL J1257.2+3646' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 11:45:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0235>
Subject: Job 33033: <4FGL_J1257.2+3646_daily_bin411> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1257.2+3646_daily_bin411 194.31 36.7706 345859201 346118401 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 :                                   669.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             257.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   920 sec.
    Turnaround time :                            922 sec.

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

