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


Performing analysis on: 4FGL_J1257.2+3646_daily_bin443
RA = 194.31, Dec = 36.7706
tmin = 354153601, tmax = 354412801
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='34464', job_status='RUN', time_executed='2021-09-06 11:38:04.065553', time_epoch_executed='1630953484.07' WHERE source_name='4FGL J1257.2+3646' and cadence='daily' and bin_id='443'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/34464

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/34464/ft1_4FGL_J1257.2+3646_daily_bin443.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/34464/ft2_4FGL_J1257.2+3646_daily_bin443.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/34464/ft1_4FGL_J1257.2+3646_daily_bin443.fits outfile=/scratch/kocevski/34464/ft1_filteredMKT_4FGL_J1257.2+3646_daily_bin443.fits ra=194.31 dec=36.7706 rad=12.0 tmin=354153601.0 tmax=354412801.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.93
user 3.71
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/34464/ft1_filtered_4FGL_J1257.2+3646_daily_bin443.fits" evtable="EVENTS" scfile=/scratch/kocevski/34464/ft2_4FGL_J1257.2+3646_daily_bin443.fits sctable="SC_DATA" outfile=/scratch/kocevski/34464/ltcube_354153601_354412801_4FGL_J1257.2+3646_daily_bin443.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/34464/ft2_4FGL_J1257.2+3646_daily_bin443.fits
.....................!
real 11.98
user 11.55
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/34464/ft1_filtered_4FGL_J1257.2+3646_daily_bin443.fits evtable="EVENTS" scfile=/scratch/kocevski/34464/ft2_4FGL_J1257.2+3646_daily_bin443.fits sctable="SC_DATA" expcube=/scratch/kocevski/34464/ltcube_354153601_354412801_4FGL_J1257.2+3646_daily_bin443.fits outfile=/scratch/kocevski/34464/expmap_354153601_354412801_4FGL_J1257.2+3646_daily_bin443.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/34464/ltcube_354153601_354412801_4FGL_J1257.2+3646_daily_bin443.fits
.....................!
real 191.05
user 185.13
sys 5.16

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/34464/ft1_filtered_4FGL_J1257.2+3646_daily_bin443.fits scfile=/scratch/kocevski/34464/ft2_4FGL_J1257.2+3646_daily_bin443.fits outfile=/scratch/kocevski/34464/cmap_354153601_354412801_4FGL_J1257.2+3646_daily_bin443.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.62
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/34464/ft1_filtered_4FGL_J1257.2+3646_daily_bin443.fits scfile=/scratch/kocevski/34464/ft2_4FGL_J1257.2+3646_daily_bin443.fits outfile=/scratch/kocevski/34464/cmap_HighResolution_354153601_354412801_4FGL_J1257.2+3646_daily_bin443.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.81
user 0.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.601       1.0000         .10000E-03   10000.    
     2 'norm      '    .13017E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    7.4425       1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.6538       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    7.7659       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10074E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    13.329       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    21.896       1.0000         .10000E-03   10000.    
    17 'norm      '    5.9493       1.0000         .10000E-03   10000.    
    18 'norm      '    .12408E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.8939       1.0000         .10000E-03   10000.    
    20 'Prefactor '    2.5618       1.0000         .10000E-03   10000.    
    21 'Prefactor '    35.250       1.0000         .10000E-03   10000.    
    22 'Prefactor '    21.394       1.0000         .10000E-03   10000.    
    23 'Prefactor '    20.193       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .87955       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0879       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=   5935.093     FROM MIGRAD    STATUS=CONVERGED    565 CALLS     3652 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.599        24.408       -.33586E-05    .45278E-05
   2  norm          .10000E-03    1.7455        .10806E-05** at limit **
   3  Prefactor     .10000E-03    4.4089       -.52544E-05** at limit **
   4  Prefactor     7.4398        3.0366       -.35945E-06   -.10923E-02
   5  Prefactor     3.6534        2.3978       -.14240E-06   -.37806E-03
   6  Prefactor     .10000E-03    3.1112       -.31188E-06** at limit **
   7  Prefactor     .10000E-03    15.397        .13987E-05** at limit **
   8  Prefactor     7.7660        15.384       -.21479E-06   -.36588E-04
   9  Prefactor     .10000E-03    20.675       -.37652E-05** at limit **
  10  Prefactor     .10000E-03    2.0071       -.99459E-08** at limit **
  11  norm          .10000E-03    1.3436        .11270E-06** at limit **
  12  Prefactor     .10000E-03    16.707        .39069E-05** at limit **
  13  Prefactor     13.322        19.095       -.71031E-05   -.75624E-04
  14  Prefactor     .10000E-03    5.1606        .34985E-05** at limit **
  15  norm          .10000E-03    1.2440        .47420E-07** at limit **
  16  norm          21.897        13.550       -.12378E-06    .11112E-04
  17  norm          5.9542        4.0676       -.13224E-05   -.98576E-03
  18  norm          .10003E-03    5.5198        .88407E-06** at limit **
  19  Prefactor     1.8928        2.3464        .27532E-07   -.27743E-03
  20  Prefactor     2.5706        21.665        .91073E-05   -.90816E-04
  21  Prefactor     35.239        42.375       -.14922E-04   -.19040E-04
  22  Prefactor     21.392        16.046       -.21505E-05   -.29969E-04
  23  Prefactor     20.162        60.021       -.63173E-04    .82000E-05
  24  Normalizat    .87940        .16409        .59272E-05   -.31844E-03
  25  Prefactor     1.0881        .20269       -.60102E-06    .93311E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.5991
  norm       = 0.000100004
  Prefactor  = 0.0001
  Prefactor  = 7.43978
  Prefactor  = 3.65342
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.76603
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.3223
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 21.8967
  norm       = 5.95417
  norm       = 0.000100031
  Prefactor  = 1.89278
  Prefactor  = 2.57062
  Prefactor  = 35.2393
  Prefactor  = 21.3917
  Prefactor  = 20.1617
  Normalizat = 0.879402
  Prefactor  = 1.08814
 **********
 **   18 **HESSE 
 **********

 FCN=   5935.093     FROM HESSE     STATUS=OK           427 CALLS     4079 TOTAL
                     EDM=   .53E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.599        24.398        .12306E-03   -1.5057    
   2  norm          .10000E-03    3.8766        .18915E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    4.4442        .15799E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     7.4398        2.9135        .79017E-04   -1.5162    
   5  Prefactor     3.6534        2.3925        .92794E-04   -1.5326    
   6  Prefactor     .10000E-03    3.1150        .13271E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    15.423        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     7.7660        15.380        .14389E-03   -1.5151    
   9  Prefactor     .10000E-03    20.680        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    2.0138        .10656E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    1.3489        .87169E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    16.715        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     13.322        19.078        .10971E-03   -1.4978    
  14  Prefactor     .10000E-03    5.1732        .17089E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    1.2466        .83908E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          21.897        13.552        .85598E-04   -1.4772    
  17  norm          5.9542        3.5639        .10429E-03   -1.5220    
  18  norm          .10003E-03    10.189        .30569E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     1.8928        2.2926        .11651E-03   -1.5433    
  20  Prefactor     2.5706        20.612        .25506E-03   -1.5387    
  21  Prefactor     35.239        42.255        .67498E-04   -1.4520    
  22  Prefactor     21.392        16.036        .86597E-04   -1.4783    
  23  Prefactor     20.162        59.916        .89132E-04   -1.4810    
  24  Normalizat    .87940        .19427        .23596E-03   -.97188    
  25  Prefactor     1.0881        .24099        .27392E-03   -.89847    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.28831e-09
Minuit parameter uncertainties:
  1  24.4205
  2  0.000258025
  3  1.55482e-05
  4  2.9136
  5  2.39258
  6  5.74166e-06
  7  4.44347e-05
  8  15.388
  9  6.16121e-06
  10  3.27623e-06
  11  8.17017e-06
  12  2.81802e-05
  13  19.0864
  14  4.57587e-06
  15  2.44943e-06
  16  13.5536
  17  3.56399
  18  0.00112404
  19  2.29275
  20  14.5647
  21  42.291
  22  16.039
  23  60.0957
  24  0.19442
  25  0.241234
Done.

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

Extracting fit parameters...

4FGL J1257.2+3646
   Spectrum: PowerLaw
300    Prefactor:  1.000e-04  3.276e-06  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.088e+00  2.412e-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.794e-01  1.944e-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.71e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.79e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/34464/likelihoodResults_354153601_354412801_4FGL_J1257.2+3646_daily_bin443.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) = 5935.09484373
delta logL = -0.00233937492339

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5935.0925043
delta logL = 6.18247213424e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0124       1.0000          .0000       10.000    
     3 'Normalizat'    .87941       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0882       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=   5935.093     FROM MIGRAD    STATUS=FAILED        88 CALLS      239 TOTAL
                     EDM=   .45E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10093E-03    35.768        .10753E-02** at limit **
   2  Index         1.9620        5.9405        .50000        .51044E-04
   3  Normalizat    .87941        .16613E-01    .23596E-03   -.15900E-04
   4  Prefactor     1.0881        .21319E-01    .27392E-03   -.79271E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5935.093     FROM SIMPLEX   STATUS=UNCHANGED    141 CALLS      380 TOTAL
                     EDM=   .11E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10093E-03    35.768        .25705E-03** at limit **
   2  Index         1.9620        5.9405        .14807E-03    .51044E-04
   3  Normalizat    .87941        .16613E-01    .90946E-06   -.15900E-04
   4  Prefactor     1.0881        .21319E-01    .69205E-06   -.79271E-05
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5935.093     FROM MIGRAD    STATUS=CONVERGED     46 CALLS      426 TOTAL
                     EDM=   .80E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    36.916        .21507E-02** at limit **
   2  Index         1.6327        9.1609        .50000       -.13733E-07
   3  Normalizat    .87941        .16105E-01    .94384E-05    .30739E-03
   4  Prefactor     1.0881        .20668E-01    .10957E-04    .26624E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.63271
  Normalizat = 0.879407
  Prefactor  = 1.08813
 **********
 **   18 **HESSE 
 **********

 FCN=   5935.093     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      455 TOTAL
                     EDM=   .38E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    170.14        .43013E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.6327        6.6062        .50000       -.73888    
   3  Normalizat    .87941        .37396E-01    .18877E-05   -.97188    
   4  Prefactor     1.0881        .47973E-01    .21914E-05   -.89847    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.80328e-11
Minuit parameter uncertainties:
  1  1.9365e-06
  2  682.246
  3  0.0373972
  4  0.047975
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/34464': 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) = 5935.09250135
delta logL = 3.00750070892e-06

Extracting fit parameters...

4FGL J1257.2+3646
   Spectrum: PowerLaw
300    Prefactor:  1.000e-04  1.936e-06  1.000e-04  1.000e+04 ( 1.000e-13)
301        Index:  1.633e+00  6.822e+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.088e+00  4.797e-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.794e-01  3.740e-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/34464/cmap_HighResolution_354153601_354412801_4FGL_J1257.2+3646_daily_bin443.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.79e-03', job_status='DONE', photon_flux_upper_limit='3.71e-08', time_completed='2021-09-06 11:51:12.264501', job_id='34464', GAL2='1.09', fit_tolerance='1e-08', EG2='0.88', EG='0.88', time_epoch_completed='1630954272.26', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.09', dlogl='3.01e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.03' WHERE bin_id='443' AND source_name='4FGL J1257.2+3646' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 11:51:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0064>
Subject: Job 34464: <4FGL_J1257.2+3646_daily_bin443> in cluster <slac> Done

Job <4FGL_J1257.2+3646_daily_bin443> 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) <bullet0064>, 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:51:12 2021
Results reported at Mon Sep  6 11:51:12 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1257.2+3646_daily_bin443 194.31 36.7706 354153601 354412801 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 :                                   784.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             260.97 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   948 sec.
    Turnaround time :                            945 sec.

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

