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


Performing analysis on: 4FGL_J1257.2+3646_daily_bin908
RA = 194.31, Dec = 36.7706
tmin = 474681601, tmax = 474940801
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='36549', job_status='RUN', time_executed='2021-09-06 11:44:48.347074', time_epoch_executed='1630953888.35' WHERE source_name='4FGL J1257.2+3646' and cadence='daily' and bin_id='908'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/36549

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/36549/ft1_4FGL_J1257.2+3646_daily_bin908.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/36549/ft2_4FGL_J1257.2+3646_daily_bin908.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/36549/ft1_4FGL_J1257.2+3646_daily_bin908.fits outfile=/scratch/kocevski/36549/ft1_filteredMKT_4FGL_J1257.2+3646_daily_bin908.fits ra=194.31 dec=36.7706 rad=12.0 tmin=474681601.0 tmax=474940801.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.64
user 3.42
sys 0.19

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/36549/ft1_filtered_4FGL_J1257.2+3646_daily_bin908.fits evtable="EVENTS" scfile=/scratch/kocevski/36549/ft2_4FGL_J1257.2+3646_daily_bin908.fits sctable="SC_DATA" expcube=/scratch/kocevski/36549/ltcube_474681601_474940801_4FGL_J1257.2+3646_daily_bin908.fits outfile=/scratch/kocevski/36549/expmap_474681601_474940801_4FGL_J1257.2+3646_daily_bin908.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/36549/ltcube_474681601_474940801_4FGL_J1257.2+3646_daily_bin908.fits
.....................!
real 190.07
user 184.27
sys 5.41

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/36549/ft1_filtered_4FGL_J1257.2+3646_daily_bin908.fits scfile=/scratch/kocevski/36549/ft2_4FGL_J1257.2+3646_daily_bin908.fits outfile=/scratch/kocevski/36549/cmap_474681601_474940801_4FGL_J1257.2+3646_daily_bin908.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 2.35
user 0.38
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/36549/ft1_filtered_4FGL_J1257.2+3646_daily_bin908.fits scfile=/scratch/kocevski/36549/ft2_4FGL_J1257.2+3646_daily_bin908.fits outfile=/scratch/kocevski/36549/cmap_HighResolution_474681601_474940801_4FGL_J1257.2+3646_daily_bin908.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 2.69
user 0.40
sys 0.18

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    18.380       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .11221E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.6873       1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.5089       1.0000         .10000E-03   10000.    
     7 'Prefactor '    9.2622       1.0000         .10000E-03   10000.    
     8 'Prefactor '    10.603       1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.0266       1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.1740       1.0000         .10000E-03   10000.    
    11 'norm      '    12.312       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .11129E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10121E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    4.5997       1.0000         .10000E-03   10000.    
    16 'norm      '    15.975       1.0000         .10000E-03   10000.    
    17 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    6.7421       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    8.2680       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    5.4286       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.2428       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .69973       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=   5432.466     FROM MIGRAD    STATUS=CONVERGED    623 CALLS     2953 TOTAL
                     EDM=   .21E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    26.140       -.92416E-08** at limit **
   2  norm          18.367        5.2922       -.63782E-07   -.16783E-03
   3  Prefactor     .10000E-03    7.0329        .62169E-07** at limit **
   4  Prefactor     .10000E-03    2.6559        .14115E-06** at limit **
   5  Prefactor     2.6866        2.4287       -.36935E-07   -.97197E-04
   6  Prefactor     4.5065        7.6012        .12255E-05    .36113E-03
   7  Prefactor     9.2613        42.216       -.32504E-05   -.89670E-04
   8  Prefactor     10.603        13.160       -.37648E-07   -.64420E-05
   9  Prefactor     2.6171        436.13       -.10424E-05   -.61554E-05
  10  Prefactor     3.1727        4.7795        .13336E-06   -.66989E-04
  11  norm          12.318        6.0517        .21899E-07    .48561E-04
  12  Prefactor     .10000E-03    125.60       -.21283E-06** at limit **
  13  Prefactor     .10000E-03    49.240        .22312E-06** at limit **
  14  Prefactor     .10000E-03    30.188        .80331E-07** at limit **
  15  norm          4.5983        4.8127        .13380E-06    .20764E-04
  16  norm          15.977        15.018        .81084E-07   -.84277E-07
  17  norm          .10000E-03    1.3883        .44333E-07** at limit **
  18  norm          6.7422        4.7053       -.82947E-06    .38173E-03
  19  Prefactor     .10000E-03    .93944       -.56023E-07** at limit **
  20  Prefactor     8.2684        11.272        .20332E-05   -.20699E-03
  21  Prefactor     .10000E-03    14.208       -.32798E-06** at limit **
  22  Prefactor     5.4263        14.166        .19278E-07   -.16627E-05
  23  Prefactor     .10000E-03    14.426        .33280E-06** at limit **
  24  Normalizat    1.2429        .18714        .46779E-06   -.57757E-04
  25  Prefactor     .69969        .22862       -.11097E-05   -.38415E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 18.3669
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.68658
  Prefactor  = 4.50648
  Prefactor  = 9.26132
  Prefactor  = 10.6029
  Prefactor  = 2.61706
  Prefactor  = 3.17268
  norm       = 12.3181
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.59832
  norm       = 15.9771
  norm       = 0.0001
  norm       = 6.74221
  Prefactor  = 0.0001
  Prefactor  = 8.26843
  Prefactor  = 0.0001
  Prefactor  = 5.42627
  Prefactor  = 0.0001
  Normalizat = 1.24286
  Prefactor  = 0.699692
 **********
 **   18 **HESSE 
 **********

 FCN=   5432.466     FROM HESSE     STATUS=OK           429 CALLS     3382 TOTAL
                     EDM=   .49E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    26.256        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          18.367        4.9725        .81342E-04   -1.4851    
   3  Prefactor     .10000E-03    7.1093        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    4.9658        .21727E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     2.6866        2.4243        .10349E-03   -1.5380    
   6  Prefactor     4.5065        7.8710        .18960E-03   -1.5283    
   7  Prefactor     9.2613        45.077        .13169E-03   -1.5099    
   8  Prefactor     10.603        13.156        .12304E-03   -1.5057    
   9  Prefactor     2.6171        433.61        .23326E-03   -1.5384    
  10  Prefactor     3.1727        4.7632        .19052E-03   -1.5352    
  11  norm          12.318        6.0083        .11416E-03   -1.5006    
  12  Prefactor     .10000E-03    128.35        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    49.751        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    31.024        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          4.5983        4.7968        .15888E-03   -1.5279    
  16  norm          15.977        15.030        .10021E-03   -1.4908    
  17  norm          .10000E-03    1.3963        .84689E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          6.7422        4.7641        .65634E-03   -1.5189    
  19  Prefactor     .10000E-03    .94624        .69758E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     8.2684        11.508        .69712E-03   -1.5133    
  21  Prefactor     .10000E-03    14.235        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     5.4263        14.156        .17247E-03   -1.5242    
  23  Prefactor     .10000E-03    14.451        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.2429        .21438        .21283E-03   -.85288    
  25  Prefactor     .69969        .25945        .34135E-03   -1.0354    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.86625e-10
Minuit parameter uncertainties:
  1  1.37474e-05
  2  4.97256
  3  1.31085e-06
  4  3.29531e-05
  5  2.42439
  6  7.87276
  7  40.9137
  8  13.1597
  9  67.8773
  10  4.76376
  11  6.00863
  12  7.90108e-05
  13  8.00564e-06
  14  8.5609e-06
  15  4.79719
  16  15.0334
  17  1.22364e-06
  18  4.76439
  19  3.12499e-06
  20  11.5114
  21  5.88031e-05
  22  14.1649
  23  5.7262e-05
  24  0.214531
  25  0.259902
Done.

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

Extracting fit parameters...

4FGL J1257.2+3646
   Spectrum: PowerLaw
300    Prefactor:  3.173e+00  4.764e+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:  6.997e-01  2.599e-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.243e+00  2.145e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/36549/likelihoodResults_474681601_474940801_4FGL_J1257.2+3646_daily_bin908.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) = 5432.45880981
delta logL = 0.00722842197865

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5432.45629675
delta logL = 0.00974148548903

Fit tolerance = 1e-08

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

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

 FCN=   5432.456     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      245 TOTAL
                     EDM=   .70E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.5640        5.9521        .10112E-02   -.13160E-03
   2  Index         1.8958        .94921        .90190E-02   -.28903E-04
   3  Normalizat    1.2449        .20631        .21268E-03   -.18597E-03
   4  Prefactor     .69806        .25581        .34171E-03   -.12676E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.56395
  Index      = 1.89582
  Normalizat = 1.24493
  Prefactor  = 0.698061
 **********
 **   18 **HESSE 
 **********

 FCN=   5432.456     FROM HESSE     STATUS=OK            27 CALLS      272 TOTAL
                     EDM=   .84E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.5640        5.7486        .40447E-04   -1.5330    
   2  Index         1.8958        .91769        .36076E-03   -.66981    
   3  Normalizat    1.2449        .20640        .42536E-04   -.85225    
   4  Prefactor     .69806        .25595        .13668E-04   -1.0360    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.38466e-11
Minuit parameter uncertainties:
  1  5.74951
  2  0.926291
  3  0.206535
  4  0.25638
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/36549': 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) = 5432.45629379
delta logL = 0.00974444279291

Extracting fit parameters...

4FGL J1257.2+3646
   Spectrum: PowerLaw
300    Prefactor:  3.564e+00  5.750e+00  1.000e-04  1.000e+04 ( 1.000e-13)
301        Index:  1.896e+00  9.263e-01  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:  6.981e-01  2.564e-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.245e+00  2.065e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.67
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/36549/cmap_HighResolution_474681601_474940801_4FGL_J1257.2+3646_daily_bin908.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.81e-03', job_status='DONE', photon_flux_upper_limit='6.40e-08', time_completed='2021-09-06 11:56:53.474853', job_id='36549', GAL2='0.70', fit_tolerance='1e-08', EG2='1.24', EG='1.24', time_epoch_completed='1630954613.47', return_code2='0', ts='0.67', comment='SUCCESS', return_code='0', GAL='0.70', dlogl='9.74e-03', ts2='0.69', photon_index_error='0.00', photon_index='2.03' WHERE bin_id='908' AND source_name='4FGL J1257.2+3646' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 11:56:53 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0274>
Subject: Job 36549: <4FGL_J1257.2+3646_daily_bin908> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1257.2+3646_daily_bin908 194.31 36.7706 474681601 474940801 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 :                                   685.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             247.57 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   940 sec.
    Turnaround time :                            943 sec.

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

