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


Performing analysis on: 4FGL_J1257.2+3646_daily_bin412
RA = 194.31, Dec = 36.7706
tmin = 346118401, tmax = 346377601
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='33035', job_status='RUN', time_executed='2021-09-06 11:34:35.640830', time_epoch_executed='1630953275.64' WHERE source_name='4FGL J1257.2+3646' and cadence='daily' and bin_id='412'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/33035

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/33035/ft1_4FGL_J1257.2+3646_daily_bin412.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/33035/ft2_4FGL_J1257.2+3646_daily_bin412.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/33035/ft1_4FGL_J1257.2+3646_daily_bin412.fits outfile=/scratch/kocevski/33035/ft1_filteredMKT_4FGL_J1257.2+3646_daily_bin412.fits ra=194.31 dec=36.7706 rad=12.0 tmin=346118401.0 tmax=346377601.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 4.05
user 3.82
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/33035/ft1_filtered_4FGL_J1257.2+3646_daily_bin412.fits" evtable="EVENTS" scfile=/scratch/kocevski/33035/ft2_4FGL_J1257.2+3646_daily_bin412.fits sctable="SC_DATA" outfile=/scratch/kocevski/33035/ltcube_346118401_346377601_4FGL_J1257.2+3646_daily_bin412.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/33035/ft2_4FGL_J1257.2+3646_daily_bin412.fits
.....................!
real 12.15
user 11.82
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/33035/ft1_filtered_4FGL_J1257.2+3646_daily_bin412.fits evtable="EVENTS" scfile=/scratch/kocevski/33035/ft2_4FGL_J1257.2+3646_daily_bin412.fits sctable="SC_DATA" expcube=/scratch/kocevski/33035/ltcube_346118401_346377601_4FGL_J1257.2+3646_daily_bin412.fits outfile=/scratch/kocevski/33035/expmap_346118401_346377601_4FGL_J1257.2+3646_daily_bin412.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/33035/ltcube_346118401_346377601_4FGL_J1257.2+3646_daily_bin412.fits
.....................!
real 191.26
user 186.17
sys 4.70

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/33035/ft1_filtered_4FGL_J1257.2+3646_daily_bin412.fits scfile=/scratch/kocevski/33035/ft2_4FGL_J1257.2+3646_daily_bin412.fits outfile=/scratch/kocevski/33035/cmap_346118401_346377601_4FGL_J1257.2+3646_daily_bin412.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.71
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/33035/ft1_filtered_4FGL_J1257.2+3646_daily_bin412.fits scfile=/scratch/kocevski/33035/ft2_4FGL_J1257.2+3646_daily_bin412.fits outfile=/scratch/kocevski/33035/cmap_HighResolution_346118401_346377601_4FGL_J1257.2+3646_daily_bin412.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=194.31 yref=36.7706 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.86
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    3.5499       1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.7504       1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.1149       1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.4069       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    6.1952       1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.9637       1.0000         .10000E-03   10000.    
     9 'Prefactor '    76.768       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .25034E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    19.463       1.0000         .10000E-03   10000.    
    15 'norm      '    .10090E-02   1.0000         .10000E-03   10000.    
    16 'norm      '    12.604       1.0000         .10000E-03   10000.    
    17 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    1.4856       1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.6143       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .11158E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10107E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.1548       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .64278       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=   5370.875     FROM MIGRAD    STATUS=CONVERGED    597 CALLS     2929 TOTAL
                     EDM=   .76E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    18.224        .17380E-06** at limit **
   2  norm          3.5500        2.6629        .92025E-07    .12498E-03
   3  Prefactor     5.7508        6.7348        .21054E-05   -.10127E-02
   4  Prefactor     4.1149        2.3145       -.33708E-07    .20037E-04
   5  Prefactor     2.4069        1.6891        .79693E-08    .67397E-04
   6  Prefactor     .10000E-03    2.2666        .90955E-07** at limit **
   7  Prefactor     6.1990        41.622        .22850E-05    .38906E-04
   8  Prefactor     3.9638        9.5011        .13766E-06   -.27607E-04
   9  Prefactor     76.748        56.325       -.54324E-05   -.39497E-03
  10  Prefactor     .10000E-03    1.8081        .15494E-07** at limit **
  11  norm          .10000E-03    2.6697        .92305E-07** at limit **
  12  Prefactor     .10000E-03    16.535        .77272E-07** at limit **
  13  Prefactor     .10000E-03    7.7963        .45598E-06** at limit **
  14  Prefactor     19.454        13.688        .20586E-07    .56787E-05
  15  norm          .10000E-03    2.6525       -.28811E-07** at limit **
  16  norm          12.605        13.097        .32504E-06   -.11799E-03
  17  norm          .10000E-03    2.5011       -.90199E-07** at limit **
  18  norm          1.4850        3.3096        .24736E-06   -.87594E-04
  19  Prefactor     1.6094        3.1682        .36994E-06    .64869E-04
  20  Prefactor     .10000E-03    9.1421       -.53934E-06** at limit **
  21  Prefactor     .10000E-03    58.475       -.18992E-06** at limit **
  22  Prefactor     .10000E-03    3.7494       -.84617E-07** at limit **
  23  Prefactor     .10000E-03    36.940       -.58772E-06** at limit **
  24  Normalizat    1.1549        .16936       -.42356E-08    .23093E-04
  25  Prefactor     .64257        .20678       -.25248E-06    .16843E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 3.55005
  Prefactor  = 5.75081
  Prefactor  = 4.11495
  Prefactor  = 2.40687
  Prefactor  = 0.0001
  Prefactor  = 6.19903
  Prefactor  = 3.96383
  Prefactor  = 76.7485
  Prefactor  = 0.0001
  norm       = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 19.4536
  norm       = 0.0001
  norm       = 12.605
  norm       = 0.0001
  norm       = 1.48503
  Prefactor  = 1.6094
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.15492
  Prefactor  = 0.642573
 **********
 **   18 **HESSE 
 **********

 FCN=   5370.875     FROM HESSE     STATUS=OK           431 CALLS     3360 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    18.289        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          3.5500        2.6757        .95682E-04   -1.5331    
   3  Prefactor     5.7508        7.6605        .83747E-03   -1.5228    
   4  Prefactor     4.1149        2.3273        .77326E-04   -1.5302    
   5  Prefactor     2.4069        1.6930        .77366E-04   -1.5398    
   6  Prefactor     .10000E-03    2.2688        .10777E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     6.1990        41.623        .16129E-03   -1.5210    
   8  Prefactor     3.9638        9.4856        .20260E-03   -1.5310    
   9  Prefactor     76.748        61.661        .22915E-03   -1.3954    
  10  Prefactor     .10000E-03    1.8111        .96201E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    6.2198        .23217E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    16.540        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    7.8207        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     19.454        13.455        .90787E-04   -1.4826    
  15  norm          .10000E-03    23.492        .22354E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          12.605        13.135        .56415E-03   -1.4998    
  17  norm          .10000E-03    2.5445        .22318E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          1.4850        3.2272        .19082E-03   -1.5464    
  19  Prefactor     1.6094        2.8668        .15658E-03   -1.5454    
  20  Prefactor     .10000E-03    36.830        .38790E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    58.814        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    3.7555        .13860E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    36.998        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.1549        .19640        .19959E-03   -.88007    
  25  Prefactor     .64257        .23887        .32197E-03   -1.0582    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.25649e-09
Minuit parameter uncertainties:
  1  1.8135e-05
  2  2.67578
  3  7.66177
  4  2.32732
  5  1.69304
  6  5.05373e-06
  7  32.1582
  8  9.48915
  9  61.7122
  10  8.59569e-07
  11  0.000211283
  12  6.30899e-06
  13  5.12274e-05
  14  13.4572
  15  9.36037e-05
  16  13.1376
  17  1.881e-06
  18  3.22762
  19  2.86705
  20  0.000418788
  21  6.73369e-05
  22  5.70916e-06
  23  0.000127665
  24  0.196526
  25  0.239254
Done.

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

Extracting fit parameters...

4FGL J1257.2+3646
   Spectrum: PowerLaw
300    Prefactor:  1.000e-04  8.596e-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:  6.426e-01  2.393e-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.155e+00  1.965e-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.58e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.69e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/33035/likelihoodResults_346118401_346377601_4FGL_J1257.2+3646_daily_bin412.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) = 5370.87753532
delta logL = -0.00253818021247

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5370.87499706
delta logL = 8.40436769067e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10150E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0067       1.0000          .0000       10.000    
     3 'Normalizat'    1.1549       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .64258       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=   5370.875     FROM MIGRAD    STATUS=FAILED        84 CALLS      233 TOTAL
                     EDM=   .34E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10108E-03    26.445        .97948E-03** at limit **
   2  Index         1.9579        8.5683        .50000        .80940E-04
   3  Normalizat    1.1549        .14937E-01    .19959E-03    .94006E-04
   4  Prefactor     .64257        .18529E-01    .32197E-03    .40394E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5370.875     FROM SIMPLEX   STATUS=UNCHANGED    122 CALLS      355 TOTAL
                     EDM=   .11E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10108E-03    26.445        .24117E-03** at limit **
   2  Index         1.9579        8.5683        .64547E-03    .80940E-04
   3  Normalizat    1.1549        .14937E-01    .23533E-05    .94006E-04
   4  Prefactor     .64257        .18529E-01    .38962E-05    .40394E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5370.875     FROM MIGRAD    STATUS=CONVERGED     47 CALLS      402 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    31.307        .19590E-02** at limit **
   2  Index         1.5640        7.0588        .50000        .27351E-06
   3  Normalizat    1.1549        .15021E-01    .39918E-04   -.18543E-02
   4  Prefactor     .64257        .18633E-01    .12879E-04   -.11366E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.56401
  Normalizat = 1.15492
  Prefactor  = 0.64257
 **********
 **   18 **HESSE 
 **********

 FCN=   5370.875     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      431 TOTAL
                     EDM=   .68E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    141.31        .39179E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.5640        5.7785        .50000       -.75762    
   3  Normalizat    1.1549        .33990E-01    .79837E-05   -.88007    
   4  Prefactor     .64257        .42160E-01    .25758E-05   -1.0582    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.79336e-10
Minuit parameter uncertainties:
  1  0.000168641
  2  505.246
  3  0.0339902
  4  0.0421621
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/33035': 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) = 5370.87499179
delta logL = 5.35301842319e-06

Extracting fit parameters...

4FGL J1257.2+3646
   Spectrum: PowerLaw
300    Prefactor:  1.000e-04  1.686e-04  1.000e-04  1.000e+04 ( 1.000e-13)
301        Index:  1.564e+00  5.052e+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:  6.426e-01  4.216e-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.155e+00  3.399e-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/33035/cmap_HighResolution_346118401_346377601_4FGL_J1257.2+3646_daily_bin412.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.69e-03', job_status='DONE', photon_flux_upper_limit='3.58e-08', time_completed='2021-09-06 11:46:09.172198', job_id='33035', GAL2='0.64', fit_tolerance='1e-08', EG2='1.15', EG='1.15', time_epoch_completed='1630953969.17', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.64', dlogl='5.35e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.03' WHERE bin_id='412' AND source_name='4FGL J1257.2+3646' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 11:46:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0043>
Subject: Job 33035: <4FGL_J1257.2+3646_daily_bin412> in cluster <slac> Done

Job <4FGL_J1257.2+3646_daily_bin412> 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) <bullet0043>, 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:46:09 2021
Results reported at Mon Sep  6 11:46:09 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1257.2+3646_daily_bin412 194.31 36.7706 346118401 346377601 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 :                                   688.20 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             262.90 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   933 sec.
    Turnaround time :                            934 sec.

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

