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


Performing analysis on: 4FGL_J0617.2+5701_daily_bin64
RA = 94.3162, Dec = 57.0249
tmin = 255916801, tmax = 256176001
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='244591', job_status='RUN', time_executed='2021-08-24 19:51:20.004565', time_epoch_executed='1629859880.0' WHERE source_name='4FGL J0617.2+5701' and cadence='daily' and bin_id='64'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/244591

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/244591/ft1_4FGL_J0617.2+5701_daily_bin64.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/244591/ft2_4FGL_J0617.2+5701_daily_bin64.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/244591/ft1_4FGL_J0617.2+5701_daily_bin64.fits outfile=/scratch/kocevski/244591/ft1_filteredMKT_4FGL_J0617.2+5701_daily_bin64.fits ra=94.3162 dec=57.0249 rad=12.0 tmin=255916801.0 tmax=256176001.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 1.69
user 1.28
sys 0.39

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/244591/ft2_4FGL_J0617.2+5701_daily_bin64.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/244591/ft2_4FGL_J0617.2+5701_daily_bin64.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/244591/ft1_filteredMKT_4FGL_J0617.2+5701_daily_bin64.fits evtable="EVENTS" outfile="/scratch/kocevski/244591/ft1_filtered_4FGL_J0617.2+5701_daily_bin64.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.72
user 0.32
sys 0.38

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/244591/ft1_filtered_4FGL_J0617.2+5701_daily_bin64.fits" evtable="EVENTS" scfile=/scratch/kocevski/244591/ft2_4FGL_J0617.2+5701_daily_bin64.fits sctable="SC_DATA" outfile=/scratch/kocevski/244591/ltcube_255916801_256176001_4FGL_J0617.2+5701_daily_bin64.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/244591/ft2_4FGL_J0617.2+5701_daily_bin64.fits
.....................!
real 18.86
user 18.23
sys 0.58

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/244591/ft1_filtered_4FGL_J0617.2+5701_daily_bin64.fits evtable="EVENTS" scfile=/scratch/kocevski/244591/ft2_4FGL_J0617.2+5701_daily_bin64.fits sctable="SC_DATA" expcube=/scratch/kocevski/244591/ltcube_255916801_256176001_4FGL_J0617.2+5701_daily_bin64.fits outfile=/scratch/kocevski/244591/expmap_255916801_256176001_4FGL_J0617.2+5701_daily_bin64.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/244591/ltcube_255916801_256176001_4FGL_J0617.2+5701_daily_bin64.fits
.....................!
real 191.36
user 185.51
sys 5.27

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
Extended source G150.3+4.5 in ROI with RadialDisk spatial model.
Extended source HB 9 in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/HB9.fits is the correct path to the extended template.
Added 179 point sources and 2 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J0617.2+5701 @ 94.3162 57.0249

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/244591/ft1_filtered_4FGL_J0617.2+5701_daily_bin64.fits scfile=/scratch/kocevski/244591/ft2_4FGL_J0617.2+5701_daily_bin64.fits outfile=/scratch/kocevski/244591/cmap_255916801_256176001_4FGL_J0617.2+5701_daily_bin64.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=94.3162 yref=57.0249 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.75
user 0.36
sys 0.38

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/244591/ft1_filtered_4FGL_J0617.2+5701_daily_bin64.fits scfile=/scratch/kocevski/244591/ft2_4FGL_J0617.2+5701_daily_bin64.fits outfile=/scratch/kocevski/244591/cmap_HighResolution_255916801_256176001_4FGL_J0617.2+5701_daily_bin64.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=94.3162 yref=57.0249 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.78
user 0.37
sys 0.39

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/244591/ft1_filtered_4FGL_J0617.2+5701_daily_bin64.fits evtable="EVENTS" scfile=/scratch/kocevski/244591/ft2_4FGL_J0617.2+5701_daily_bin64.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/244591/Model_4FGL_J0617.2+5701_daily_bin64.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 G150.3+4.5
adding source GAL_V02
adding source HB 9
Working on...
/scratch/kocevski/244591/ft1_filtered_4FGL_J0617.2+5701_daily_bin64.fits.....................!
real 189.56
user 186.08
sys 1.59

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/244591/ft1_filtered_4FGL_J0617.2+5701_daily_bin64.fits', '/scratch/kocevski/244591/ft2_4FGL_J0617.2+5701_daily_bin64.fits', expMap='/scratch/kocevski/244591/expmap_255916801_256176001_4FGL_J0617.2+5701_daily_bin64.fits', expCube='/scratch/kocevski/244591/ltcube_255916801_256176001_4FGL_J0617.2+5701_daily_bin64.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/244591/Model_4FGL_J0617.2+5701_daily_bin64.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0617.2+5701'

4FGL J0617.2+5701
   Spectrum: PowerLaw
245    Prefactor:  4.712e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
246        Index:  2.089e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
247        Scale:  1.613e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/244591/ft1_filtered_4FGL_J0617.2+5701_daily_bin64.fits
Spacecraft file(s): /scratch/kocevski/244591/ft2_4FGL_J0617.2+5701_daily_bin64.fits
Exposure map: /scratch/kocevski/244591/expmap_255916801_256176001_4FGL_J0617.2+5701_daily_bin64.fits
Exposure cube: /scratch/kocevski/244591/ltcube_255916801_256176001_4FGL_J0617.2+5701_daily_bin64.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/244591/Model_4FGL_J0617.2+5701_daily_bin64.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) = 11556.3401572

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .39211E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .64831       1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.4214       1.0000         .10000E-03   10000.    
     6 'norm      '    1.6908       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10057E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.5362       1.0000         .10000E-03   10000.    
     9 'Prefactor '    6.8294       1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.4017       1.0000         .10000E-03   10000.    
    11 'Prefactor '    19.179       1.0000         .10000E-03   10000.    
    12 'norm      '    7.7766       1.0000         .10000E-03   10000.    
    13 'norm      '    1.6626       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    5.7478       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.0020       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.0263       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5960E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   11556.32     FROM MIGRAD    STATUS=CONVERGED    403 CALLS     1666 TOTAL
                     EDM=   .52E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10001E-03    8.5662        .10072E-05** at limit **
   2  Prefactor     .74775        23.818       -.21084E-05    .11288E-03
   3  norm          .10000E-03    38.573       -.16199E-05** at limit **
   4  norm          .10000E-03    .26958        .12187E-06** at limit **
   5  Prefactor     2.5169        141.47        .98994E-04   -.20262E-04
   6  norm          1.6909        1.9461       -.83331E-07   -.66994E-03
   7  Prefactor     .10000E-03    20.666        .65548E-06** at limit **
   8  Prefactor     6.5173        23.078        .30591E-04   -.31593E-04
   9  Prefactor     6.8291        6.2625       -.33430E-05   -.95811E-04
  10  Prefactor     6.3841        22.018        .29005E-04   -.41932E-04
  11  Prefactor     19.195        26.477       -.39075E-05   -.40496E-04
  12  norm          7.7760        4.1765       -.11477E-06   -.16812E-02
  13  norm          1.6627        2.6258       -.27512E-07   -.53385E-03
  14  Prefactor     .10000E-03    16.836       -.32456E-06** at limit **
  15  Prefactor     5.7469        10.539        .40868E-06   -.82292E-04
  16  Prefactor     .10000E-03    7.1117        .91382E-08** at limit **
  17  Prefactor     .10000E-03    7.4387        .15036E-07** at limit **
  18  Normalizat    1.0022        .18142       -.63619E-05   -.19341E-03
  19  Prefactor     1.0262        .61691E-01   -.40136E-06   -.60275E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100006
  Prefactor  = 0.747747
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 2.51688
  norm       = 1.69094
  Prefactor  = 0.0001
  Prefactor  = 6.5173
  Prefactor  = 6.82909
  Prefactor  = 6.38412
  Prefactor  = 19.1948
  norm       = 7.77597
  norm       = 1.66268
  Prefactor  = 0.0001
  Prefactor  = 5.74687
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.00219
  Prefactor  = 1.0262
 **********
 **   18 **HESSE 
 **********

 FCN=   11556.32     FROM HESSE     STATUS=OK           282 CALLS     1948 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10001E-03    52.460        .60737E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .74775        25.253        .15799       -1.5535    
   3  norm          .10000E-03    38.575        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    .45436        .10831E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     2.5169        139.97        .26303E-03   -1.5391    
   6  norm          1.6909        1.9321        .15629E-03   -1.5448    
   7  Prefactor     .10000E-03    20.734        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     6.5173        23.027        .15697E-03   -1.5197    
   9  Prefactor     6.8291        6.2681        .15353E-03   -1.5185    
  10  Prefactor     6.3841        21.987        .15863E-03   -1.5203    
  11  Prefactor     19.195        26.491        .91456E-04   -1.4831    
  12  norm          7.7760        4.1777        .71897E-03   -1.5150    
  13  norm          1.6627        2.5949        .21170E-03   -1.5450    
  14  Prefactor     .10000E-03    17.024        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     5.7469        10.523        .16753E-03   -1.5228    
  16  Prefactor     .10000E-03    7.1226        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    7.4471        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.0022        .19646        .41950E-03   -.92957    
  19  Prefactor     1.0262        .67124E-01    .14462E-03   -.91861    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.31573e-09
Minuit parameter uncertainties:
  1  0.00111756
  2  8.69426
  3  8.60344e-06
  4  5.66516e-06
  5  37.6304
  6  1.93214
  7  3.91661e-05
  8  23.0584
  9  6.26865
  10  22.0147
  11  26.507
  12  4.17787
  13  2.59506
  14  6.1749e-05
  15  10.5267
  16  1.13099e-05
  17  1.80319e-05
  18  0.1966
  19  0.0671291
Done.

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

Extracting fit parameters...

4FGL J0617.2+5701
   Spectrum: PowerLaw
245    Prefactor:  6.829e+00  6.269e+00  1.000e-04  1.000e+04 ( 1.000e-13)
246        Index:  2.089e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
247        Scale:  1.613e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
589    Prefactor:  1.026e+00  6.713e-02  0.000e+00  1.000e+01 ( 1.000e+00)
590        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
591        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
584   Normalization:  1.002e+00  1.966e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 9.70
Ra Dec: 94.316 57.025
Photon Index (Fixed Index): 2.09 +/- 0.00
Photon Flux (Fixed Index): 2.09e-08 +/- 1.92e-08
Energy Flux (Fixed Index): 1.17e-05 +/- 1.08e-05

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) = 11554.4439021
delta logL = 1.87149889684

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 11554.1811428
delta logL = 2.13425819829

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.9505       1.0000         .10000E-03   10000.    
     2 'Index     '    .66216       1.0000          .0000       10.000    
     3 'Normalizat'    1.0171       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0254       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5960E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   11554.18     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      222 TOTAL
                     EDM=   .29E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.9448        2.0928        .74285E-02   -.78191E-03
   2  Index         .66063        .42606        .34567       -.48754E-04
   3  Normalizat    1.0170        .17371        .94084E-01    .38157E-04
   4  Prefactor     1.0253        .60847E-01    .41638E-01   -.12479E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.94478
  Index      = 0.660631
  Normalizat = 1.01703
  Prefactor  = 1.02533
 **********
 **   18 **HESSE 
 **********

 FCN=   11554.18     FROM HESSE     STATUS=OK            33 CALLS      255 TOTAL
                     EDM=   .46E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.9448        3.6200        .14489E-03   -1.5429    
   2  Index         .66063        .66514        .16639E-01   -1.0509    
   3  Normalizat    1.0170        .18867        .41676E-03   -.92462    
   4  Prefactor     1.0253        .66279E-01    .14467E-03   -.91890    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.644e-09
Minuit parameter uncertainties:
  1  3.6204
  2  0.673354
  3  0.18879
  4  0.0662844
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/244591': 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) = 11554.181138
delta logL = 2.13426301293

Extracting fit parameters...

4FGL J0617.2+5701
   Spectrum: PowerLaw
245    Prefactor:  1.945e+00  3.620e+00  1.000e-04  1.000e+04 ( 1.000e-13)
246        Index:  6.606e-01  6.734e-01  0.000e+00  1.000e+01 (-1.000e+00)
247        Scale:  1.613e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
589    Prefactor:  1.025e+00  6.628e-02  0.000e+00  1.000e+01 ( 1.000e+00)
590        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
591        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
584   Normalization:  1.017e+00  1.888e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 13.96
Ra Dec: 94.316 57.025
Photon Index (Free Index): 0.66 +/- 0.67
Photon Flux (Free Index): 3.39e-09 +/- 3.52e-09
Energy Flux (Free Index): 9.51e-05 +/- 1.16e-04

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/244591/cmap_HighResolution_255916801_256176001_4FGL_J0617.2+5701_daily_bin64.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.09e-08', energy_flux2='9.51e-05', photon_flux_error='1.92e-08', dlogl='2.13e+00', energy_flux='1.17e-05', photon_flux2='3.39e-09', job_status='DONE', time_completed='2021-08-24 20:05:08.213961', photon_index_error2='0.67', photon_index2='0.66', ts='9.70', fit_tolerance='1e-08', GAL='1.03', photon_index_error='0.00', energy_flux_error2='1.16e-04', EG='1.00', time_epoch_completed='1629860708.21', return_code='0', job_id='244591', GAL2='1.03', EG2='1.02', return_code2='0', energy_flux_error='1.08e-05', photon_flux_error2='3.52e-09', ts2='13.96', photon_index='2.09' WHERE bin_id='64' AND source_name='4FGL J0617.2+5701' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 24 20:05:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0098>
Subject: Job 244591: <4FGL_J0617.2+5701_daily_bin64> in cluster <slac> Done

Job <4FGL_J0617.2+5701_daily_bin64> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Tue Aug 24 19:50:47 2021
Job was executed on host(s) <bullet0098>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 24 19:50:55 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Aug 24 19:50:55 2021
Terminated at Tue Aug 24 20:05:09 2021
Results reported at Tue Aug 24 20:05:09 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0617.2+5701_daily_bin64 94.3162 57.0249 255916801 256176001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0617.2+5701 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   828.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             335.68 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   853 sec.
    Turnaround time :                            862 sec.

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

