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


Performing analysis on: 4FGL_J1257.2+3646_daily_bin889
RA = 194.31, Dec = 36.7706
tmin = 469756801, tmax = 470016001
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='36507', job_status='RUN', time_executed='2021-09-06 11:43:18.841053', time_epoch_executed='1630953798.84' WHERE source_name='4FGL J1257.2+3646' and cadence='daily' and bin_id='889'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/36507

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/36507/ft1_4FGL_J1257.2+3646_daily_bin889.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/36507/ft2_4FGL_J1257.2+3646_daily_bin889.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/36507/ft1_4FGL_J1257.2+3646_daily_bin889.fits outfile=/scratch/kocevski/36507/ft1_filteredMKT_4FGL_J1257.2+3646_daily_bin889.fits ra=194.31 dec=36.7706 rad=12.0 tmin=469756801.0 tmax=470016001.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.57
user 3.23
sys 0.24

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/36507/ft1_filtered_4FGL_J1257.2+3646_daily_bin889.fits evtable="EVENTS" scfile=/scratch/kocevski/36507/ft2_4FGL_J1257.2+3646_daily_bin889.fits sctable="SC_DATA" expcube=/scratch/kocevski/36507/ltcube_469756801_470016001_4FGL_J1257.2+3646_daily_bin889.fits outfile=/scratch/kocevski/36507/expmap_469756801_470016001_4FGL_J1257.2+3646_daily_bin889.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/36507/ltcube_469756801_470016001_4FGL_J1257.2+3646_daily_bin889.fits
.....................!
real 190.85
user 185.26
sys 5.03

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/36507/ft1_filtered_4FGL_J1257.2+3646_daily_bin889.fits scfile=/scratch/kocevski/36507/ft2_4FGL_J1257.2+3646_daily_bin889.fits outfile=/scratch/kocevski/36507/cmap_469756801_470016001_4FGL_J1257.2+3646_daily_bin889.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.99
user 0.36
sys 0.19

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/36507/ft1_filtered_4FGL_J1257.2+3646_daily_bin889.fits scfile=/scratch/kocevski/36507/ft2_4FGL_J1257.2+3646_daily_bin889.fits outfile=/scratch/kocevski/36507/cmap_HighResolution_469756801_470016001_4FGL_J1257.2+3646_daily_bin889.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.87
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    5.8900       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.7391       1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.0845       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    21.596       1.0000         .10000E-03   10000.    
     8 'Prefactor '    32.605       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10121E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .30626E-02   1.0000         .10000E-03   10000.    
    12 'Prefactor '    19.781       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .29073E-02   1.0000         .10000E-03   10000.    
    15 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    24.429       1.0000         .10000E-03   10000.    
    17 'norm      '    .10133E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    5.1732       1.0000         .10000E-03   10000.    
    19 'Prefactor '    6.6332       1.0000         .10000E-03   10000.    
    20 'Prefactor '    8.4174       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .46765E-02   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.2173       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .77329       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=   5671.570     FROM MIGRAD    STATUS=CONVERGED    582 CALLS     2490 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    26.985       -.14332E-04** at limit **
   2  norm          5.8895        3.0795       -.45998E-08    .39246E-04
   3  Prefactor     .10000E-03    4.4750       -.20955E-06** at limit **
   4  Prefactor     2.7392        2.2399       -.67158E-07    .43476E-05
   5  Prefactor     3.0843        2.0644       -.55530E-07    .37720E-04
   6  Prefactor     .10000E-03    3.8584        .24669E-06** at limit **
   7  Prefactor     21.585        27.131       -.78452E-05    .47163E-05
   8  Prefactor     32.607        22.508        .11559E-05    .21214E-03
   9  Prefactor     .10000E-03    23.732       -.86796E-05** at limit **
  10  Prefactor     .10000E-03    6.5792       -.14594E-06** at limit **
  11  norm          .10000E-03    2.5072        .78637E-07** at limit **
  12  Prefactor     19.775        28.203       -.49839E-05    .13209E-04
  13  Prefactor     .10000E-03    12.507       -.57870E-06** at limit **
  14  Prefactor     .10215E-03    11.951       -.49319E-05** at limit **
  15  norm          .10000E-03    1.9983        .35436E-07** at limit **
  16  norm          24.427        15.765        .28653E-06    .42317E-04
  17  norm          .10000E-03    3.6245        .33213E-06** at limit **
  18  norm          5.1723        4.9090       -.19500E-05    .52596E-04
  19  Prefactor     6.6339        3.4254        .18759E-06    .46228E-03
  20  Prefactor     8.4195        8.8678       -.32494E-06    .62139E-04
  21  Prefactor     .10000E-03    20.819        .11554E-04** at limit **
  22  Prefactor     .10002E-03    9.2205        .54410E-06** at limit **
  23  Prefactor     .10000E-03    40.234        .23319E-04** at limit **
  24  Normalizat    1.2173        .17717        .11922E-05    .43346E-03
  25  Prefactor     .77355        .21499       -.86016E-07    .25912E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 5.88949
  Prefactor  = 0.0001
  Prefactor  = 2.73918
  Prefactor  = 3.08433
  Prefactor  = 0.0001
  Prefactor  = 21.585
  Prefactor  = 32.6074
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 19.7747
  Prefactor  = 0.0001
  Prefactor  = 0.000102147
  norm       = 0.0001
  norm       = 24.4273
  norm       = 0.0001
  norm       = 5.17232
  Prefactor  = 6.6339
  Prefactor  = 8.41951
  Prefactor  = 0.0001
  Prefactor  = 0.000100018
  Prefactor  = 0.0001
  Normalizat = 1.21727
  Prefactor  = 0.773551
 **********
 **   18 **HESSE 
 **********

 FCN=   5671.570     FROM HESSE     STATUS=OK           427 CALLS     2917 TOTAL
                     EDM=   .26E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    27.091        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          5.8895        3.0920        .86922E-04   -1.5223    
   3  Prefactor     .10000E-03    4.5196        .15556E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     2.7392        2.2516        .92787E-04   -1.5377    
   5  Prefactor     3.0843        2.0640        .85364E-04   -1.5357    
   6  Prefactor     .10000E-03    3.8675        .14445E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     21.585        27.151        .86190E-04   -1.4778    
   8  Prefactor     32.607        22.412        .70175E-04   -1.4565    
   9  Prefactor     .10000E-03    23.747        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    6.6679        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    37.947        .22799E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     19.775        28.203        .90054E-04   -1.4818    
  13  Prefactor     .10000E-03    12.531        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10215E-03    81.286        .47784E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    2.0074        .10390E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          24.427        15.764        .81046E-04   -1.4719    
  17  norm          .10000E-03    3.7062        .27841E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          5.1723        4.8867        .15693E-03   -1.5253    
  19  Prefactor     6.6339        3.4198        .94626E-04   -1.5193    
  20  Prefactor     8.4195        8.8602        .13817E-03   -1.5128    
  21  Prefactor     .10000E-03    20.825        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10002E-03    38.056        .44171E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    40.256        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.2173        .20314        .21254E-03   -.86071    
  25  Prefactor     .77355        .24834        .32194E-03   -1.0071    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.58223e-08
Minuit parameter uncertainties:
  1  2.17789e-06
  2  3.09205
  3  4.62555e-06
  4  2.25166
  5  2.06404
  6  2.25865e-06
  7  27.1667
  8  22.4174
  9  3.61384e-06
  10  2.28157e-05
  11  0.000224204
  12  28.2223
  13  1.24278e-05
  14  0.0264555
  15  8.05999e-06
  16  15.7665
  17  5.00044e-05
  18  4.88703
  19  3.41991
  20  8.86158
  21  4.88027e-06
  22  0.00166358
  23  3.64018e-05
  24  0.20327
  25  0.248703
Done.

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

Extracting fit parameters...

4FGL J1257.2+3646
   Spectrum: PowerLaw
300    Prefactor:  1.000e-04  2.282e-05  1.000e-04  1.000e+04 ( 1.000e-13)
301        Index:  2.027e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
302        Scale:  1.897e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
599    Prefactor:  7.736e-01  2.487e-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.217e+00  2.033e-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: 5.87e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.42e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/36507/likelihoodResults_469756801_470016001_4FGL_J1257.2+3646_daily_bin889.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) = 5671.57106007
delta logL = -0.000714774187145

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5671.57034476
delta logL = 5.32058038516e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0697       1.0000          .0000       10.000    
     3 'Normalizat'    1.2173       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .77352       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=   5671.570     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      211 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    34.046        .90712E-02** at limit **
   2  Index         2.1176        5.4193        .50000       -.59599E-04
   3  Normalizat    1.2173        .88926E-02    .34480E-01   -.69372E-03
   4  Prefactor     .77355        .11045E-01    .72745E-01   -.27767E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Index      = 2.11758
  Normalizat = 1.21726
  Prefactor  = 0.773553
 **********
 **   18 **HESSE 
 **********

 FCN=   5671.570     FROM HESSE     STATUS=OK            31 CALLS      242 TOTAL
                     EDM=   .76E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    13.446        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1176        5.9115        .50000       -.61442    
   3  Normalizat    1.2173        .19821        .21254E-03   -.86071    
   4  Prefactor     .77355        .24554        .32194E-03   -1.0071    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.6406e-09
Minuit parameter uncertainties:
  1  0.000165545
  2  5.31663
  3  0.198332
  4  0.245884
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/36507': 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): 0
logL (Free Index) = 5671.57034408
delta logL = 1.21796529129e-06

Extracting fit parameters...

4FGL J1257.2+3646
   Spectrum: PowerLaw
300    Prefactor:  1.000e-04  1.655e-04  1.000e-04  1.000e+04 ( 1.000e-13)
301        Index:  2.118e+00  5.317e+00  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:  7.736e-01  2.459e-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.217e+00  1.983e-01  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/36507/cmap_HighResolution_469756801_470016001_4FGL_J1257.2+3646_daily_bin889.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.42e-03', job_status='DONE', photon_flux_upper_limit='5.87e-08', time_completed='2021-09-06 11:54:43.712649', job_id='36507', GAL2='0.77', fit_tolerance='1e-08', EG2='1.22', EG='1.22', time_epoch_completed='1630954483.71', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.77', dlogl='1.22e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.03' WHERE bin_id='889' AND source_name='4FGL J1257.2+3646' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 11:54:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0156>
Subject: Job 36507: <4FGL_J1257.2+3646_daily_bin889> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1257.2+3646_daily_bin889 194.31 36.7706 469756801 470016001 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 :                                   660.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             293.57 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   826 sec.
    Turnaround time :                            815 sec.

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

