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


Performing analysis on: 4FGL_J1257.2+3646_daily_bin144
RA = 194.31, Dec = 36.7706
tmin = 276652801, tmax = 276912001
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='31883', job_status='RUN', time_executed='2021-09-06 11:27:41.291921', time_epoch_executed='1630952861.29' WHERE source_name='4FGL J1257.2+3646' and cadence='daily' and bin_id='144'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/31883

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/31883/ft1_4FGL_J1257.2+3646_daily_bin144.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/31883/ft2_4FGL_J1257.2+3646_daily_bin144.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/31883/ft1_4FGL_J1257.2+3646_daily_bin144.fits outfile=/scratch/kocevski/31883/ft1_filteredMKT_4FGL_J1257.2+3646_daily_bin144.fits ra=194.31 dec=36.7706 rad=12.0 tmin=276652801.0 tmax=276912001.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 4.67
user 4.40
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/31883/ft1_filtered_4FGL_J1257.2+3646_daily_bin144.fits" evtable="EVENTS" scfile=/scratch/kocevski/31883/ft2_4FGL_J1257.2+3646_daily_bin144.fits sctable="SC_DATA" outfile=/scratch/kocevski/31883/ltcube_276652801_276912001_4FGL_J1257.2+3646_daily_bin144.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/31883/ft2_4FGL_J1257.2+3646_daily_bin144.fits
.....................!
real 11.99
user 11.50
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/31883/ft1_filtered_4FGL_J1257.2+3646_daily_bin144.fits evtable="EVENTS" scfile=/scratch/kocevski/31883/ft2_4FGL_J1257.2+3646_daily_bin144.fits sctable="SC_DATA" expcube=/scratch/kocevski/31883/ltcube_276652801_276912001_4FGL_J1257.2+3646_daily_bin144.fits outfile=/scratch/kocevski/31883/expmap_276652801_276912001_4FGL_J1257.2+3646_daily_bin144.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/31883/ltcube_276652801_276912001_4FGL_J1257.2+3646_daily_bin144.fits
.....................!
real 191.35
user 185.32
sys 5.63

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/31883/ft1_filtered_4FGL_J1257.2+3646_daily_bin144.fits scfile=/scratch/kocevski/31883/ft2_4FGL_J1257.2+3646_daily_bin144.fits outfile=/scratch/kocevski/31883/cmap_276652801_276912001_4FGL_J1257.2+3646_daily_bin144.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.73
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/31883/ft1_filtered_4FGL_J1257.2+3646_daily_bin144.fits scfile=/scratch/kocevski/31883/ft2_4FGL_J1257.2+3646_daily_bin144.fits outfile=/scratch/kocevski/31883/cmap_HighResolution_276652801_276912001_4FGL_J1257.2+3646_daily_bin144.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.74
user 0.38
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    18.428       1.0000         .10000E-03   10000.    
     2 'norm      '    9.5511       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.5076       1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.6954       1.0000         .10000E-03   10000.    
     6 'Prefactor '    17.981       1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.2607       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    6.5838       1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.0841       1.0000         .10000E-03   10000.    
    11 'norm      '    .48868       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10256E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.1582       1.0000         .10000E-03   10000.    
    15 'norm      '    3.5148       1.0000         .10000E-03   10000.    
    16 'norm      '    14.487       1.0000         .10000E-03   10000.    
    17 'norm      '    8.1398       1.0000         .10000E-03   10000.    
    18 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    8.9573       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.1573       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .81974       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=   5035.482     FROM MIGRAD    STATUS=CONVERGED    575 CALLS     2869 TOTAL
                     EDM=   .43E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     18.420        34.247        .19090E-06   -.23584E-04
   2  norm          9.5484        5.4061       -.45606E-06   -.21164E-03
   3  Prefactor     .10000E-03    2.0018        .85771E-07** at limit **
   4  Prefactor     1.5098        3.8432        .13717E-05    .27948E-03
   5  Prefactor     2.6949        2.9184        .20288E-07   -.11166E-03
   6  Prefactor     17.979        12.047       -.11477E-06   -.76482E-04
   7  Prefactor     1.2036        247.83       -.91059E-05   -.29379E-04
   8  Prefactor     .10000E-03    10.865        .11317E-06** at limit **
   9  Prefactor     6.5773        63.040        .14428E-06   -.39223E-04
  10  Prefactor     3.0838        6.7096        .42097E-06   -.22388E-04
  11  norm          .49145        4.4654        .24096E-05   -.52186E-03
  12  Prefactor     .10000E-03    22.362       -.21791E-06** at limit **
  13  Prefactor     .10000E-03    48.173        .81903E-06** at limit **
  14  Prefactor     2.1566        29.238        .10753E-05   -.87924E-05
  15  norm          3.5144        4.4638       -.66066E-07   -.15523E-03
  16  norm          14.487        14.879        .34722E-07   -.33235E-04
  17  norm          8.1382        3.8828       -.12996E-06   -.51001E-03
  18  norm          .10000E-03    3.8977       -.15168E-06** at limit **
  19  Prefactor     .10000E-03    .80360        .21645E-07** at limit **
  20  Prefactor     .10000E-03    4.8066        .13953E-06** at limit **
  21  Prefactor     .10000E-03    20.059        .16262E-06** at limit **
  22  Prefactor     .10000E-03    35.832        .18816E-05** at limit **
  23  Prefactor     8.8954        151.41       -.32275E-05   -.32506E-04
  24  Normalizat    1.1576        .20375        .32286E-05   -.59372E-03
  25  Prefactor     .81934        .24521       -.73313E-05   -.30116E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 18.4204
  norm       = 9.54839
  Prefactor  = 0.0001
  Prefactor  = 1.50978
  Prefactor  = 2.69492
  Prefactor  = 17.9789
  Prefactor  = 1.20363
  Prefactor  = 0.0001
  Prefactor  = 6.57729
  Prefactor  = 3.08382
  norm       = 0.49145
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.15657
  norm       = 3.51441
  norm       = 14.4874
  norm       = 8.13825
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.8954
  Normalizat = 1.15757
  Prefactor  = 0.819337
 **********
 **   18 **HESSE 
 **********

 FCN=   5035.482     FROM HESSE     STATUS=OK           435 CALLS     3304 TOTAL
                     EDM=   .88E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     18.420        34.293        .93301E-04   -1.4849    
   2  norm          9.5484        5.3034        .94096E-04   -1.5090    
   3  Prefactor     .10000E-03    2.0041        .98059E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.5098        3.7781        .17245E-03   -1.5462    
   5  Prefactor     2.6949        2.8918        .11433E-03   -1.5380    
   6  Prefactor     17.979        12.026        .94454E-04   -1.4860    
   7  Prefactor     1.2036        261.96        .39723E-02   -1.5489    
   8  Prefactor     .10000E-03    10.876        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     6.5773        62.604        .15640E-03   -1.5195    
  10  Prefactor     3.0838        6.5871        .23095E-03   -1.5357    
  11  norm          .49145        6.6972        .25063E-02   -1.5568    
  12  Prefactor     .10000E-03    22.383        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    48.769        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     2.1566        27.907        .28041E-03   -1.5414    
  15  norm          3.5144        4.4179        .15656E-03   -1.5333    
  16  norm          14.487        14.880        .10523E-03   -1.4947    
  17  norm          8.1382        3.8479        .91400E-04   -1.5137    
  18  norm          .10000E-03    3.9062        .13641E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    .80605        .62105E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    4.8216        .15196E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    20.074        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    37.079        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     8.8954        154.84        .13392E-03   -1.5111    
  24  Normalizat    1.1576        .21890        .21492E-03   -.87924    
  25  Prefactor     .81934        .25818        .31210E-03   -.99019    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.78305e-10
Minuit parameter uncertainties:
  1  34.3301
  2  5.30362
  3  3.02084e-06
  4  3.77872
  5  2.89191
  6  12.0277
  7  35.6711
  8  4.47698e-06
  9  40.6395
  10  6.58866
  11  3.62853
  12  7.80003e-05
  13  7.65609e-05
  14  15.524
  15  4.41834
  16  14.8835
  17  3.84803
  18  3.02974e-06
  19  5.13613e-09
  20  7.55557e-06
  21  6.77196e-05
  22  0.000251
  23  74.4525
  24  0.21907
  25  0.258564
Done.

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

Extracting fit parameters...

4FGL J1257.2+3646
   Spectrum: PowerLaw
300    Prefactor:  3.084e+00  6.589e+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

GAL_V02
   Spectrum: PowerLaw
599    Prefactor:  8.193e-01  2.586e-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.158e+00  2.191e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.30
Ra Dec: 194.310 36.771
Photon Flux Upper Limit: 7.45e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.60e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/31883/likelihoodResults_276652801_276912001_4FGL_J1257.2+3646_daily_bin144.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): 0
logL (Free Index) = 5035.09683992
delta logL = 0.384744665776

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5035.08148816
delta logL = 0.400096419939

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.1604       1.0000         .10000E-03   10000.    
     2 'Index     '    2.9718       1.0000          .0000       10.000    
     3 'Normalizat'    1.1274       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83841       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=   5035.081     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      249 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.1595        29.593        .10694E-01    .60698E-03
   2  Index         2.9722        3.1459        .10132        .13784E-03
   3  Normalizat    1.1275        .47120E-01    .36981E-01   -.26953E-05
   4  Prefactor     .83836        .57655E-01    .69785E-01    .13771E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.15952
  Index      = 2.97217
  Normalizat = 1.12746
  Prefactor  = 0.838357
 **********
 **   18 **HESSE 
 **********

 FCN=   5035.081     FROM HESSE     STATUS=OK            33 CALLS      282 TOTAL
                     EDM=   .14E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.1595        14.596        .81229E-04   -1.5493    
   2  Index         2.9722        2.8460        .56606E-02   -.41760    
   3  Normalizat    1.1275        .21291        .21731E-03   -.88875    
   4  Prefactor     .83836        .26078        .30876E-03   -.98330    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.39662e-07
Minuit parameter uncertainties:
  1  8.2301
  2  3.07221
  3  0.213073
  4  0.261171
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/31883': 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) = 5035.081488
delta logL = 0.400096584598

Extracting fit parameters...

4FGL J1257.2+3646
   Spectrum: PowerLaw
300    Prefactor:  1.160e+00  8.230e+00  1.000e-04  1.000e+04 ( 1.000e-13)
301        Index:  2.972e+00  3.072e+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:  8.384e-01  2.612e-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.127e+00  2.131e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.12
Ra Dec: 194.310 36.771
Photon Index (Free Index): 2.97 +/- 3.07
Photon Flux (Free Index): 3.70e-08 +/- 4.44e-08
Energy Flux (Free Index): 7.49e-06 +/- 1.17e-05

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/31883/cmap_HighResolution_276652801_276912001_4FGL_J1257.2+3646_daily_bin144.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.60e-03', comment='SUCCESS', energy_flux2='7.49e-06', dlogl='4.00e-01', photon_flux2='3.70e-08', job_status='DONE', time_completed='2021-09-06 11:38:50.687368', photon_index_error2='3.07', photon_index2='2.97', ts='0.30', fit_tolerance='1e-08', GAL='0.82', photon_index_error='0.00', photon_flux_upper_limit='7.45e-08', energy_flux_error2='1.17e-05', EG='1.16', time_epoch_completed='1630953530.69', return_code='0', job_id='31883', GAL2='0.84', EG2='1.13', return_code2='0', photon_flux_error2='4.44e-08', ts2='1.12', photon_index='2.03' WHERE bin_id='144' AND source_name='4FGL J1257.2+3646' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 11:38:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0252>
Subject: Job 31883: <4FGL_J1257.2+3646_daily_bin144> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1257.2+3646_daily_bin144 194.31 36.7706 276652801 276912001 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 :                                   657.08 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             293.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   785 sec.
    Turnaround time :                            787 sec.

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

