/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 101 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 = 7395
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1257.2+3646_daily_bin106
RA = 194.31, Dec = 36.7706
tmin = 266803201, tmax = 267062401
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='31810', job_status='RUN', time_executed='2021-09-06 11:27:33.200768', time_epoch_executed='1630952853.2' WHERE source_name='4FGL J1257.2+3646' and cadence='daily' and bin_id='106'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/31810

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/31810/ft1_4FGL_J1257.2+3646_daily_bin106.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/31810/ft2_4FGL_J1257.2+3646_daily_bin106.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/31810/ft1_4FGL_J1257.2+3646_daily_bin106.fits outfile=/scratch/kocevski/31810/ft1_filteredMKT_4FGL_J1257.2+3646_daily_bin106.fits ra=194.31 dec=36.7706 rad=12.0 tmin=266803201.0 tmax=267062401.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 2.00
user 1.75
sys 0.19

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/31810/ft1_filtered_4FGL_J1257.2+3646_daily_bin106.fits evtable="EVENTS" scfile=/scratch/kocevski/31810/ft2_4FGL_J1257.2+3646_daily_bin106.fits sctable="SC_DATA" expcube=/scratch/kocevski/31810/ltcube_266803201_267062401_4FGL_J1257.2+3646_daily_bin106.fits outfile=/scratch/kocevski/31810/expmap_266803201_267062401_4FGL_J1257.2+3646_daily_bin106.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/31810/ltcube_266803201_267062401_4FGL_J1257.2+3646_daily_bin106.fits
.....................!
real 191.50
user 185.97
sys 5.15

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/31810/ft1_filtered_4FGL_J1257.2+3646_daily_bin106.fits scfile=/scratch/kocevski/31810/ft2_4FGL_J1257.2+3646_daily_bin106.fits outfile=/scratch/kocevski/31810/cmap_266803201_267062401_4FGL_J1257.2+3646_daily_bin106.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.56
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/31810/ft1_filtered_4FGL_J1257.2+3646_daily_bin106.fits scfile=/scratch/kocevski/31810/ft2_4FGL_J1257.2+3646_daily_bin106.fits outfile=/scratch/kocevski/31810/cmap_HighResolution_266803201_267062401_4FGL_J1257.2+3646_daily_bin106.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.53
user 0.37
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    34.198       1.0000         .10000E-03   10000.    
     2 'norm      '    .32590       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .92956       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10166E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    16.586       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    10.032       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    9.0311       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .58496E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    3.0421       1.0000         .10000E-03   10000.    
    16 'norm      '    15.554       1.0000         .10000E-03   10000.    
    17 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .11299E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .12469E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    27.013       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0681       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .92343       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=   5687.322     FROM MIGRAD    STATUS=CONVERGED    598 CALLS     2925 TOTAL
                     EDM=   .58E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     34.196        31.994       -.74499E-06    .71952E-05
   2  norm          .32471        1.1252       -.52094E-06   -.10489E-02
   3  Prefactor     .10000E-03    4.1812        .32088E-07** at limit **
   4  Prefactor     .92933        1.3739        .61917E-07   -.22919E-04
   5  Prefactor     .10000E-03    1.1814        .38504E-07** at limit **
   6  Prefactor     16.587        9.7227        .25202E-06    .19888E-04
   7  Prefactor     .10000E-03    72.246       -.14165E-04** at limit **
   8  Prefactor     10.032        10.387        .39510E-07    .12160E-05
   9  Prefactor     .10000E-03    30.548       -.15574E-05** at limit **
  10  Prefactor     .10000E-03    1.6799       -.74348E-08** at limit **
  11  norm          .10000E-03    1.8077        .95349E-08** at limit **
  12  Prefactor     .10000E-03    83.405        .22813E-04** at limit **
  13  Prefactor     9.0299        19.213       -.22202E-06   -.60357E-04
  14  Prefactor     .10017E-03    6.6024        .16000E-05** at limit **
  15  norm          3.0413        3.1507       -.29039E-07   -.10889E-03
  16  norm          15.555        12.877       -.13312E-07   -.52246E-04
  17  norm          .10000E-03    1.3433        .15396E-07** at limit **
  18  norm          .10000E-03    1.6795        .24514E-07** at limit **
  19  Prefactor     .10000E-03    1.5023       -.24810E-08** at limit **
  20  Prefactor     .10000E-03    6.3268       -.23060E-08** at limit **
  21  Prefactor     .10000E-03    122.65       -.10673E-04** at limit **
  22  Prefactor     .10000E-03    20.751       -.14971E-06** at limit **
  23  Prefactor     27.013        55.237        .28373E-06   -.45160E-05
  24  Normalizat    1.0680        .16657       -.15520E-07   -.10850E-03
  25  Prefactor     .92341        .20414       -.63006E-07   -.10160E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 34.196
  norm       = 0.324714
  Prefactor  = 0.0001
  Prefactor  = 0.929332
  Prefactor  = 0.0001
  Prefactor  = 16.5867
  Prefactor  = 0.0001
  Prefactor  = 10.0318
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.02991
  Prefactor  = 0.00010017
  norm       = 3.04129
  norm       = 15.5546
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 27.0131
  Normalizat = 1.06802
  Prefactor  = 0.923413
 **********
 **   18 **HESSE 
 **********

 FCN=   5687.322     FROM HESSE     STATUS=OK           431 CALLS     3356 TOTAL
                     EDM=   .48E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     34.196        31.961        .68525E-04   -1.4538    
   2  norm          .32471        1.2951        .14315E-02   -1.5594    
   3  Prefactor     .10000E-03    4.2735        .15056E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .92933        1.1901        .10070E-02   -1.5515    
   5  Prefactor     .10000E-03    6.6052        .15840E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     16.587        9.7008        .98343E-04   -1.4893    
   7  Prefactor     .10000E-03    72.161        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     10.032        10.388        .12651E-03   -1.5074    
   9  Prefactor     .10000E-03    30.562        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    1.6857        .95428E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    1.8156        .98857E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    82.171        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     9.0299        19.069        .13337E-03   -1.5107    
  14  Prefactor     .10017E-03    38.416        .36535E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          3.0413        3.1287        .13120E-03   -1.5359    
  16  norm          15.555        12.877        .10155E-03   -1.4919    
  17  norm          .10000E-03    1.3530        .85194E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    1.6815        .95424E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    5.6094        .17564E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    6.3432        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    123.63        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    21.050        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     27.013        55.421        .77080E-04   -1.4668    
  24  Normalizat    1.0680        .19664        .21500E-03   -.90785    
  25  Prefactor     .92341        .24216        .28663E-03   -.95328    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.80937e-09
Minuit parameter uncertainties:
  1  31.9771
  2  1.29521
  3  2.77307e-06
  4  1.19015
  5  5.84405e-06
  6  9.70168
  7  0.00010619
  8  10.3899
  9  7.56848e-07
  10  2.53847e-06
  11  4.51742e-07
  12  0.000101968
  13  19.0819
  14  0.00512139
  15  3.12889
  16  12.8797
  17  2.51591e-07
  18  1.95736e-07
  19  2.07638e-06
  20  5.84559e-07
  21  0.000134102
  22  2.81593e-06
  23  55.5264
  24  0.196772
  25  0.242444
Done.

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

Extracting fit parameters...

4FGL J1257.2+3646
   Spectrum: PowerLaw
300    Prefactor:  1.000e-04  2.538e-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:  9.234e-01  2.424e-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.068e+00  1.968e-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.24e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.44e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/31810/likelihoodResults_266803201_267062401_4FGL_J1257.2+3646_daily_bin106.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) = 5687.32442775
delta logL = -0.00275446623436

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5687.32167407
delta logL = -7.89405021351e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10636E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.9981       1.0000          .0000       10.000    
     3 'Normalizat'    1.0681       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92338       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=   5687.322     FROM MIGRAD    STATUS=FAILED        87 CALLS      236 TOTAL
                     EDM=   .46E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10162E-03    22.461        .98880E-03** at limit **
   2  Index         1.9367        9.0281        .50000        .11547E-03
   3  Normalizat    1.0680        .14056E-01    .21500E-03   -.11790E-03
   4  Prefactor     .92342        .17629E-01    .28663E-03   -.10511E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5687.322     FROM SIMPLEX   STATUS=UNCHANGED    122 CALLS      358 TOTAL
                     EDM=   .78E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10162E-03    22.461        .19760E-03** at limit **
   2  Index         1.9367        9.0281        .18117E-02    .11547E-03
   3  Normalizat    1.0680        .14056E-01    .13806E-04   -.11790E-03
   4  Prefactor     .92342        .17629E-01    .14114E-04   -.10511E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5687.322     FROM MIGRAD    STATUS=CONVERGED     47 CALLS      405 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    27.629        .19776E-02** at limit **
   2  Index         1.5259        8.0076        .50000        .78849E-06
   3  Normalizat    1.0680        .13879E-01    .43000E-04    .16734E-02
   4  Prefactor     .92342        .17407E-01    .11465E-04    .12024E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.52586
  Normalizat = 1.06802
  Prefactor  = 0.923416
 **********
 **   18 **HESSE 
 **********

 FCN=   5687.322     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      434 TOTAL
                     EDM=   .52E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    126.16        .39552E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.5259        5.7520        .50000       -.76818    
   3  Normalizat    1.0680        .31236E-01    .86000E-05   -.90785    
   4  Prefactor     .92342        .39180E-01    .22930E-05   -.95328    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.1938e-10
Minuit parameter uncertainties:
  1  0.000434495
  2  409.235
  3  0.0312366
  4  0.0391816
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/31810': 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) = 5687.32166478
delta logL = 8.49622392707e-06

Extracting fit parameters...

4FGL J1257.2+3646
   Spectrum: PowerLaw
300    Prefactor:  1.000e-04  4.345e-04  1.000e-04  1.000e+04 ( 1.000e-13)
301        Index:  1.526e+00  4.092e+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:  9.234e-01  3.918e-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.068e+00  3.124e-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/31810/cmap_HighResolution_266803201_267062401_4FGL_J1257.2+3646_daily_bin106.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.44e-03', job_status='DONE', photon_flux_upper_limit='3.24e-08', time_completed='2021-09-06 11:38:58.540299', job_id='31810', GAL2='0.92', fit_tolerance='1e-08', EG2='1.07', EG='1.07', time_epoch_completed='1630953538.54', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.92', dlogl='8.50e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.03' WHERE bin_id='106' AND source_name='4FGL J1257.2+3646' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 11:38:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0096>
Subject: Job 31810: <4FGL_J1257.2+3646_daily_bin106> in cluster <slac> Done

Job <4FGL_J1257.2+3646_daily_bin106> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Mon Sep  6 11:25:39 2021
Job was executed on host(s) <bullet0096>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 11:25:41 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:25:41 2021
Terminated at Mon Sep  6 11:38:59 2021
Results reported at Mon Sep  6 11:38:59 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1257.2+3646_daily_bin106 194.31 36.7706 266803201 267062401 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 :                                   682.27 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             313.68 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   797 sec.
    Turnaround time :                            800 sec.

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

