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


Performing analysis on: 4FGL_J1257.2+3646_daily_bin327
RA = 194.31, Dec = 36.7706
tmin = 324086401, tmax = 324345601
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='32912', job_status='RUN', time_executed='2021-09-06 11:33:28.238685', time_epoch_executed='1630953208.24' WHERE source_name='4FGL J1257.2+3646' and cadence='daily' and bin_id='327'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/32912

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/32912/ft1_4FGL_J1257.2+3646_daily_bin327.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/32912/ft2_4FGL_J1257.2+3646_daily_bin327.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/32912/ft1_4FGL_J1257.2+3646_daily_bin327.fits outfile=/scratch/kocevski/32912/ft1_filteredMKT_4FGL_J1257.2+3646_daily_bin327.fits ra=194.31 dec=36.7706 rad=12.0 tmin=324086401.0 tmax=324345601.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.25
user 4.02
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/32912/ft1_filtered_4FGL_J1257.2+3646_daily_bin327.fits evtable="EVENTS" scfile=/scratch/kocevski/32912/ft2_4FGL_J1257.2+3646_daily_bin327.fits sctable="SC_DATA" expcube=/scratch/kocevski/32912/ltcube_324086401_324345601_4FGL_J1257.2+3646_daily_bin327.fits outfile=/scratch/kocevski/32912/expmap_324086401_324345601_4FGL_J1257.2+3646_daily_bin327.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/32912/ltcube_324086401_324345601_4FGL_J1257.2+3646_daily_bin327.fits
.....................!
real 191.18
user 186.13
sys 4.65

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/32912/ft1_filtered_4FGL_J1257.2+3646_daily_bin327.fits scfile=/scratch/kocevski/32912/ft2_4FGL_J1257.2+3646_daily_bin327.fits outfile=/scratch/kocevski/32912/cmap_324086401_324345601_4FGL_J1257.2+3646_daily_bin327.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.55
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/32912/ft1_filtered_4FGL_J1257.2+3646_daily_bin327.fits scfile=/scratch/kocevski/32912/ft2_4FGL_J1257.2+3646_daily_bin327.fits outfile=/scratch/kocevski/32912/cmap_HighResolution_324086401_324345601_4FGL_J1257.2+3646_daily_bin327.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.54
user 0.36
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    29.568       1.0000         .10000E-03   10000.    
     2 'norm      '    8.2560       1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.5467       1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.5586       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10211E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.1424       1.0000         .10000E-03   10000.    
     7 'Prefactor '    33.439       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.6180       1.0000         .10000E-03   10000.    
    11 'norm      '    10.924       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10569E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    7.8851       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    2.5162       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.8836       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    147.16       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.1424       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .76256       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5524.280     FROM MIGRAD    STATUS=CONVERGED    601 CALLS     2922 TOTAL
                     EDM=   .24E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     29.571        31.480         .0000        .25709E-03
   2  norm          8.2559        3.4785         .0000        .28294E-04
   3  Prefactor     1.5457        5.0833         .0000        .16970E-01
   4  Prefactor     2.5585        2.0226         .0000        .18581E-04
   5  Prefactor     .10000E-03    1.3143         .0000    ** at limit **
   6  Prefactor     6.1421        7.3635         .0000       -.13269E-03
   7  Prefactor     33.446        29.113         .0000        .12181E-02
   8  Prefactor     .10000E-03    5.1794         .0000    ** at limit **
   9  Prefactor     .10000E-03    57.241         .0000    ** at limit **
  10  Prefactor     3.6180        3.5048         .0000       -.19544E-03
  11  norm          10.923        6.8589         .0000        .47900E-03
  12  Prefactor     .10000E-03    326.44         .0000    ** at limit **
  13  Prefactor     7.8872        26.571         .0000        .32708E-03
  14  Prefactor     .10000E-03    9.3009         .0000    ** at limit **
  15  norm          2.5161        3.8743         .0000        .22860E-03
  16  norm          .10000E-03    8.2978         .0000    ** at limit **
  17  norm          .10000E-03    1.4257         .0000    ** at limit **
  18  norm          .10000E-03    2.0993         .0000    ** at limit **
  19  Prefactor     2.8834        2.9133         .0000        .31078E-03
  20  Prefactor     .10000E-03    4.9709         .0000    ** at limit **
  21  Prefactor     .10000E-03    32.324         .0000    ** at limit **
  22  Prefactor     .10000E-03    12.600         .0000    ** at limit **
  23  Prefactor     147.16        86.007         .0000       -.32581E-04
  24  Normalizat    1.1423        .18031         .0000        .63273E-04
  25  Prefactor     .76265        .21566         .0000        .55141E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 29.5708
  norm       = 8.2559
  Prefactor  = 1.54566
  Prefactor  = 2.55853
  Prefactor  = 0.0001
  Prefactor  = 6.14208
  Prefactor  = 33.4464
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.61801
  norm       = 10.9231
  Prefactor  = 0.000100002
  Prefactor  = 7.88718
  Prefactor  = 0.0001
  norm       = 2.51612
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 2.88338
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 147.164
  Normalizat = 1.14232
  Prefactor  = 0.762654
 **********
 **   18 **HESSE 
 **********

 FCN=   5524.280     FROM HESSE     STATUS=OK           425 CALLS     3347 TOTAL
                     EDM=   .53E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     29.571        31.496        .73680E-04   -1.4620    
   2  norm          8.2559        3.4750        .84282E-04   -1.5133    
   3  Prefactor     1.5457        5.0396        .14648E-02   -1.5459    
   4  Prefactor     2.5585        2.0257        .88473E-04   -1.5388    
   5  Prefactor     .10000E-03    2.2567        .16432E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     6.1421        7.3392        .16199E-03   -1.5212    
   7  Prefactor     33.446        29.175        .69296E-04   -1.4551    
   8  Prefactor     .10000E-03    5.1806        .16521E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    57.290        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     3.6180        3.5110        .13318E-03   -1.5328    
  11  norm          10.923        6.8219        .12122E-03   -1.5047    
  12  Prefactor     .10000E-03    332.92        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     7.8872        26.444        .14279E-03   -1.5146    
  14  Prefactor     .10000E-03    9.3510        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          2.5161        3.8506        .17414E-03   -1.5391    
  16  norm          .10000E-03    8.3174        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    1.4344        .86567E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    2.1029        .10515E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     2.8834        2.8982        .12098E-03   -1.5368    
  20  Prefactor     .10000E-03    4.9848        .16178E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    32.394        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    12.688        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     147.16        86.335        .33219E-04   -1.3276    
  24  Normalizat    1.1423        .21258        .21365E-03   -.88404    
  25  Prefactor     .76265        .25251        .31522E-03   -1.0112    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.33734e-09
Minuit parameter uncertainties:
  1  31.5134
  2  3.47509
  3  5.04097
  4  2.02573
  5  1.23423e-06
  6  7.34029
  7  29.1871
  8  4.07535e-06
  9  0.000102147
  10  3.5112
  11  6.82238
  12  0.00177213
  13  26.4835
  14  1.27579e-06
  15  3.851
  16  6.49081e-07
  17  5.70757e-07
  18  7.73251e-08
  19  2.89834
  20  8.04634e-07
  21  4.95029e-06
  22  3.24068e-06
  23  86.4091
  24  0.212741
  25  0.252895
Done.

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

Extracting fit parameters...

4FGL J1257.2+3646
   Spectrum: PowerLaw
300    Prefactor:  3.618e+00  3.511e+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:  7.627e-01  2.529e-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.142e+00  2.127e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.95
Ra Dec: 194.310 36.771
Photon Index (Fixed Index): 2.03 +/- 0.00
Photon Flux (Fixed Index): 1.37e-08 +/- 1.33e-08
Energy Flux (Fixed Index): 8.88e-06 +/- 8.62e-06

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) = 5522.62602365
delta logL = 1.6542469244

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5522.54760543
delta logL = 1.73266514595

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.1300       1.0000         .10000E-03   10000.    
     2 'Index     '    .77715       1.0000          .0000       10.000    
     3 'Normalizat'    1.1533       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .75704       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=   5522.548     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      203 TOTAL
                     EDM=   .69E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.1178        2.2551        .70626E-02   -.29384E-03
   2  Index         .77435        .45674        .25870       -.30975E-04
   3  Normalizat    1.1533        .17363        .36154E-01    .36195E-05
   4  Prefactor     .75693        .21458        .71468E-01    .20051E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.11784
  Index      = 0.774346
  Normalizat = 1.15333
  Prefactor  = 0.756933
 **********
 **   18 **HESSE 
 **********

 FCN=   5522.548     FROM HESSE     STATUS=OK            31 CALLS      234 TOTAL
                     EDM=   .12E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.1178        3.4042        .10504E-03   -1.5417    
   2  Index         .77435        .66835        .11638E-02   -1.0068    
   3  Normalizat    1.1533        .20252        .21270E-03   -.88057    
   4  Prefactor     .75693        .24981        .31627E-03   -1.0134    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.22033e-13
Minuit parameter uncertainties:
  1  3.40451
  2  0.675519
  3  0.20266
  4  0.250186
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/32912': 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) = 5522.54759663
delta logL = 1.73267394555

Extracting fit parameters...

4FGL J1257.2+3646
   Spectrum: PowerLaw
300    Prefactor:  2.118e+00  3.405e+00  1.000e-04  1.000e+04 ( 1.000e-13)
301        Index:  7.743e-01  6.755e-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:  7.569e-01  2.502e-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.153e+00  2.027e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 10.40
Ra Dec: 194.310 36.771
Photon Index (Free Index): 0.77 +/- 0.68
Photon Flux (Free Index): 3.44e-09 +/- 3.63e-09
Energy Flux (Free Index): 8.02e-05 +/- 1.06e-04

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/32912/cmap_HighResolution_324086401_324345601_4FGL_J1257.2+3646_daily_bin327.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.37e-08', energy_flux2='8.02e-05', photon_flux_error='1.33e-08', dlogl='1.73e+00', energy_flux='8.88e-06', photon_flux2='3.44e-09', job_status='DONE', time_completed='2021-09-06 11:43:49.146976', photon_index_error2='0.68', photon_index2='0.77', ts='6.95', fit_tolerance='1e-08', GAL='0.76', photon_index_error='0.00', energy_flux_error2='1.06e-04', EG='1.14', time_epoch_completed='1630953829.15', return_code='0', job_id='32912', GAL2='0.76', EG2='1.15', return_code2='0', energy_flux_error='8.62e-06', photon_flux_error2='3.63e-09', ts2='10.40', photon_index='2.03' WHERE bin_id='327' AND source_name='4FGL J1257.2+3646' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 11:43:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0140>
Subject: Job 32912: <4FGL_J1257.2+3646_daily_bin327> in cluster <slac> Done

Job <4FGL_J1257.2+3646_daily_bin327> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Mon Sep  6 11:30:26 2021
Job was executed on host(s) <bullet0140>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 11:30:27 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:30:27 2021
Terminated at Mon Sep  6 11:43:49 2021
Results reported at Mon Sep  6 11:43:49 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1257.2+3646_daily_bin327 194.31 36.7706 324086401 324345601 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 :                                   615.36 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             272.15 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   802 sec.
    Turnaround time :                            803 sec.

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

