/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 164 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 = 7462
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1257.2+3646_daily_bin703
RA = 194.31, Dec = 36.7706
tmin = 421545601, tmax = 421804801
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='36225', job_status='RUN', time_executed='2021-09-06 11:43:51.749358', time_epoch_executed='1630953831.75' WHERE source_name='4FGL J1257.2+3646' and cadence='daily' and bin_id='703'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/36225

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/36225/ft1_4FGL_J1257.2+3646_daily_bin703.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/36225/ft2_4FGL_J1257.2+3646_daily_bin703.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/36225/ft1_4FGL_J1257.2+3646_daily_bin703.fits outfile=/scratch/kocevski/36225/ft1_filteredMKT_4FGL_J1257.2+3646_daily_bin703.fits ra=194.31 dec=36.7706 rad=12.0 tmin=421545601.0 tmax=421804801.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.58
user 3.32
sys 0.23

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/36225/ft1_filtered_4FGL_J1257.2+3646_daily_bin703.fits evtable="EVENTS" scfile=/scratch/kocevski/36225/ft2_4FGL_J1257.2+3646_daily_bin703.fits sctable="SC_DATA" expcube=/scratch/kocevski/36225/ltcube_421545601_421804801_4FGL_J1257.2+3646_daily_bin703.fits outfile=/scratch/kocevski/36225/expmap_421545601_421804801_4FGL_J1257.2+3646_daily_bin703.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/36225/ltcube_421545601_421804801_4FGL_J1257.2+3646_daily_bin703.fits
.....................!
real 191.59
user 185.68
sys 4.81

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/36225/ft1_filtered_4FGL_J1257.2+3646_daily_bin703.fits scfile=/scratch/kocevski/36225/ft2_4FGL_J1257.2+3646_daily_bin703.fits outfile=/scratch/kocevski/36225/cmap_421545601_421804801_4FGL_J1257.2+3646_daily_bin703.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.96
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/36225/ft1_filtered_4FGL_J1257.2+3646_daily_bin703.fits scfile=/scratch/kocevski/36225/ft2_4FGL_J1257.2+3646_daily_bin703.fits outfile=/scratch/kocevski/36225/cmap_HighResolution_421545601_421804801_4FGL_J1257.2+3646_daily_bin703.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.61
user 0.40
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    16.474       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .19071       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.8733       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    3.5922       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10189E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    25.616       1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.7875       1.0000         .10000E-03   10000.    
    15 'norm      '    6.0285       1.0000         .10000E-03   10000.    
    16 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    17.331       1.0000         .10000E-03   10000.    
    18 'norm      '    16.625       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    42.832       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10558E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .88712       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=   6056.372     FROM MIGRAD    STATUS=CONVERGED    590 CALLS     2916 TOTAL
                     EDM=   .55E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    13.364       -.84425E-06** at limit **
   2  norm          16.474        4.6319        .39235E-06    .30356E-03
   3  Prefactor     .18112        4.0501       -.27744E-05    .67886E-03
   4  Prefactor     .10000E-03    1.2335       -.42203E-07** at limit **
   5  Prefactor     4.8732        2.5870       -.64631E-07    .18711E-03
   6  Prefactor     .10000E-03    5.2923       -.12111E-05** at limit **
   7  Prefactor     .10000E-03    7.2506        .76828E-06** at limit **
   8  Prefactor     .10000E-03    5.2170        .11418E-05** at limit **
   9  Prefactor     .10000E-03    22.370        .21017E-05** at limit **
  10  Prefactor     .10000E-03    4.0574        .97901E-07** at limit **
  11  norm          3.5919        4.6731       -.18281E-05   -.30770E-03
  12  Prefactor     .10000E-03    68.595       -.20890E-04** at limit **
  13  Prefactor     25.616        26.878        .47817E-07    .41677E-04
  14  Prefactor     6.7850        21.815        .24684E-06   -.11094E-04
  15  norm          6.0289        6.7406       -.35129E-06   -.11536E-03
  16  norm          .10000E-03    8.9901        .10178E-04** at limit **
  17  norm          17.331        9.9067       -.25467E-06    .10013E-03
  18  norm          16.624        15.240       -.11090E-06    .10482E-04
  19  Prefactor     .10000E-03    4.2061       -.92078E-07** at limit **
  20  Prefactor     .10000E-03    8.7724       -.10492E-04** at limit **
  21  Prefactor     .10000E-03    137.38        .13402E-03** at limit **
  22  Prefactor     42.830        24.153        .24208E-06    .29402E-04
  23  Prefactor     .10001E-03    239.40       -.21714E-03** at limit **
  24  Normalizat    .88715        .17692        .12546E-05    .48741E-03
  25  Prefactor     1.0879        .20979       -.22589E-06    .32232E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 16.4742
  Prefactor  = 0.181121
  Prefactor  = 0.0001
  Prefactor  = 4.87317
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.5919
  Prefactor  = 0.0001
  Prefactor  = 25.616
  Prefactor  = 6.78499
  norm       = 6.02891
  norm       = 0.0001
  norm       = 17.3306
  norm       = 16.6244
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 42.8295
  Prefactor  = 0.000100005
  Normalizat = 0.887145
  Prefactor  = 1.08793
 **********
 **   18 **HESSE 
 **********

 FCN=   6056.372     FROM HESSE     STATUS=OK           421 CALLS     3337 TOTAL
                     EDM=   .49E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    13.373        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          16.474        4.6190        .85080E-04   -1.4896    
   3  Prefactor     .18112        19.548        .30257E-02   -1.5623    
   4  Prefactor     .10000E-03    1.2497        .84202E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     4.8732        2.5867        .87973E-04   -1.5266    
   6  Prefactor     .10000E-03    5.3064        .17483E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    7.2517        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    5.2177        .17361E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    22.372        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    4.0883        .15248E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          3.5919        4.6585        .18099E-03   -1.5329    
  12  Prefactor     .10000E-03    68.878        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     25.616        26.859        .79149E-04   -1.4695    
  14  Prefactor     6.7850        21.535        .15401E-03   -1.5187    
  15  norm          6.0289        6.6732        .16353E-03   -1.5217    
  16  norm          .10000E-03    9.0146        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          17.331        10.091        .96208E-04   -1.4875    
  18  norm          16.624        15.540        .98230E-04   -1.4892    
  19  Prefactor     .10000E-03    4.3358        .31031E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    8.7971        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    138.18        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     42.830        24.175        .61255E-04   -1.4398    
  23  Prefactor     .10001E-03    240.52        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .88715        .21223        .25697E-03   -.96913    
  25  Prefactor     1.0879        .25088        .28585E-03   -.89853    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.90265e-09
Minuit parameter uncertainties:
  1  1.51206e-06
  2  4.61911
  3  3.76353
  4  5.48709e-06
  5  2.58671
  6  2.82927e-06
  7  1.51141e-06
  8  9.24024e-08
  9  1.91616e-05
  10  1.11617e-06
  11  4.65895
  12  1.78495e-05
  13  26.872
  14  21.5597
  15  6.67404
  16  1.00293e-05
  17  10.0921
  18  15.5435
  19  9.89888e-07
  20  5.90115e-06
  21  0.00142316
  22  24.1807
  23  0.00220947
  24  0.212426
  25  0.25115
Done.

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

Extracting fit parameters...

4FGL J1257.2+3646
   Spectrum: PowerLaw
300    Prefactor:  1.000e-04  1.116e-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.511e-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.871e-01  2.124e-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.95e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.72e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/36225/likelihoodResults_421545601_421804801_4FGL_J1257.2+3646_daily_bin703.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) = 6056.37298607
delta logL = -0.00116453720966

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6056.37182154
delta logL = -9.03582986211e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0221       1.0000          .0000       10.000    
     3 'Normalizat'    .88715       1.0000         .10000E-01   10.000    
     4 '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.

 FCN=   6056.372     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      200 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    66.834        .90712E-02** at limit **
   2  Index         2.0170        8.9915        .50000        .95642E-05
   3  Normalizat    .88714        .17714E-01    .44737E-01    .23513E-04
   4  Prefactor     1.0879        .21699E-01    .64626E-01    .16144E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.01695
  Normalizat = 0.887143
  Prefactor  = 1.08793
 **********
 **   18 **HESSE 
 **********

 FCN=   6056.372     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      231 TOTAL
                     EDM=   .28E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    450.71        .15267E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0170        8.9632        .20000       -.63927    
   3  Normalizat    .88714        .52896E-01    .25697E-03   -.96913    
   4  Prefactor     1.0879        .64774E-01    .28585E-03   -.89853    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.75942e-05
Minuit parameter uncertainties:
  1  7.64954e-05
  2  2210.42
  3  0.0528995
  4  0.0647791
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/36225': 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) = 6056.3718215
delta logL = 2.628803486e-08

Extracting fit parameters...

4FGL J1257.2+3646
   Spectrum: PowerLaw
300    Prefactor:  1.000e-04  7.650e-05  1.000e-04  1.000e+04 ( 1.000e-13)
301        Index:  2.017e+00  2.210e+03  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  6.478e-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.871e-01  5.290e-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/36225/cmap_HighResolution_421545601_421804801_4FGL_J1257.2+3646_daily_bin703.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.72e-03', job_status='DONE', photon_flux_upper_limit='4.95e-08', time_completed='2021-09-06 11:55:39.499015', job_id='36225', GAL2='1.09', fit_tolerance='1e-08', EG2='0.89', EG='0.89', time_epoch_completed='1630954539.5', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.09', dlogl='2.63e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.03' WHERE bin_id='703' AND source_name='4FGL J1257.2+3646' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 11:55:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0072>
Subject: Job 36225: <4FGL_J1257.2+3646_daily_bin703> in cluster <slac> Done

Job <4FGL_J1257.2+3646_daily_bin703> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Mon Sep  6 11:40:44 2021
Job was executed on host(s) <bullet0072>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 11:40:45 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:40:45 2021
Terminated at Mon Sep  6 11:55:40 2021
Results reported at Mon Sep  6 11:55:40 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1257.2+3646_daily_bin703 194.31 36.7706 421545601 421804801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1257.2+3646 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   697.41 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             321.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   894 sec.
    Turnaround time :                            896 sec.

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

