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


Performing analysis on: 4FGL_J0614.8+6136_daily_bin1385
RA = 93.7213, Dec = 61.6079
tmin = 598320001, tmax = 598579201
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='227867', job_status='RUN', time_executed='2021-08-24 19:11:35.404504', time_epoch_executed='1629857495.4' WHERE source_name='4FGL J0614.8+6136' and cadence='daily' and bin_id='1385'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/227867

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/227867/ft1_4FGL_J0614.8+6136_daily_bin1385.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/227867/ft2_4FGL_J0614.8+6136_daily_bin1385.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/227867/ft1_4FGL_J0614.8+6136_daily_bin1385.fits outfile=/scratch/kocevski/227867/ft1_filteredMKT_4FGL_J0614.8+6136_daily_bin1385.fits ra=93.7213 dec=61.6079 rad=12.0 tmin=598320001.0 tmax=598579201.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 6.67
user 3.11
sys 3.50

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/227867/ft2_4FGL_J0614.8+6136_daily_bin1385.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/227867/ft2_4FGL_J0614.8+6136_daily_bin1385.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/227867/ft1_filteredMKT_4FGL_J0614.8+6136_daily_bin1385.fits evtable="EVENTS" outfile="/scratch/kocevski/227867/ft1_filtered_4FGL_J0614.8+6136_daily_bin1385.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 3.88
user 0.35
sys 3.40

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/227867/ft1_filtered_4FGL_J0614.8+6136_daily_bin1385.fits" evtable="EVENTS" scfile=/scratch/kocevski/227867/ft2_4FGL_J0614.8+6136_daily_bin1385.fits sctable="SC_DATA" outfile=/scratch/kocevski/227867/ltcube_598320001_598579201_4FGL_J0614.8+6136_daily_bin1385.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/227867/ft2_4FGL_J0614.8+6136_daily_bin1385.fits
.....................!
real 15.94
user 11.75
sys 4.00

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/227867/ft1_filtered_4FGL_J0614.8+6136_daily_bin1385.fits evtable="EVENTS" scfile=/scratch/kocevski/227867/ft2_4FGL_J0614.8+6136_daily_bin1385.fits sctable="SC_DATA" expcube=/scratch/kocevski/227867/ltcube_598320001_598579201_4FGL_J0614.8+6136_daily_bin1385.fits outfile=/scratch/kocevski/227867/expmap_598320001_598579201_4FGL_J0614.8+6136_daily_bin1385.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/227867/ltcube_598320001_598579201_4FGL_J0614.8+6136_daily_bin1385.fits
.....................!
real 194.23
user 185.48
sys 8.28

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 185 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 J0614.8+6136 @ 93.7213 61.6079

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/227867/ft1_filtered_4FGL_J0614.8+6136_daily_bin1385.fits scfile=/scratch/kocevski/227867/ft2_4FGL_J0614.8+6136_daily_bin1385.fits outfile=/scratch/kocevski/227867/cmap_598320001_598579201_4FGL_J0614.8+6136_daily_bin1385.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=93.7213 yref=61.6079 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 3.74
user 0.38
sys 3.33

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/227867/ft1_filtered_4FGL_J0614.8+6136_daily_bin1385.fits scfile=/scratch/kocevski/227867/ft2_4FGL_J0614.8+6136_daily_bin1385.fits outfile=/scratch/kocevski/227867/cmap_HighResolution_598320001_598579201_4FGL_J0614.8+6136_daily_bin1385.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=93.7213 yref=61.6079 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 3.74
user 0.37
sys 3.35

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/227867/ft1_filtered_4FGL_J0614.8+6136_daily_bin1385.fits evtable="EVENTS" scfile=/scratch/kocevski/227867/ft2_4FGL_J0614.8+6136_daily_bin1385.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/227867/Model_4FGL_J0614.8+6136_daily_bin1385.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/227867/ft1_filtered_4FGL_J0614.8+6136_daily_bin1385.fits.....................!
real 72.96
user 67.31
sys 5.45

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/227867/ft1_filtered_4FGL_J0614.8+6136_daily_bin1385.fits', '/scratch/kocevski/227867/ft2_4FGL_J0614.8+6136_daily_bin1385.fits', expMap='/scratch/kocevski/227867/expmap_598320001_598579201_4FGL_J0614.8+6136_daily_bin1385.fits', expCube='/scratch/kocevski/227867/ltcube_598320001_598579201_4FGL_J0614.8+6136_daily_bin1385.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/227867/Model_4FGL_J0614.8+6136_daily_bin1385.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0614.8+6136'

4FGL J0614.8+6136
   Spectrum: PowerLaw
249    Prefactor:  3.640e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
250        Index:  2.497e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
251        Scale:  8.979e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/227867/ft1_filtered_4FGL_J0614.8+6136_daily_bin1385.fits
Spacecraft file(s): /scratch/kocevski/227867/ft2_4FGL_J0614.8+6136_daily_bin1385.fits
Exposure map: /scratch/kocevski/227867/expmap_598320001_598579201_4FGL_J0614.8+6136_daily_bin1385.fits
Exposure cube: /scratch/kocevski/227867/ltcube_598320001_598579201_4FGL_J0614.8+6136_daily_bin1385.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/227867/Model_4FGL_J0614.8+6136_daily_bin1385.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) = 3551.70802395

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    54.352       1.0000         .10000E-03   10000.    
     3 'Prefactor '    16.717       1.0000         .10000E-03   10000.    
     4 'Prefactor '    25.656       1.0000         .10000E-03   10000.    
     5 'norm      '    51.234       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .12288E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.0784       1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.8057       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .67024E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    15.713       1.0000         .10000E-03   10000.    
    12 'Prefactor '    41.411       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10106E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    124.29       1.0000         .10000E-03   10000.    
    16 'norm      '    2.6769       1.0000         .10000E-03   10000.    
    17 'Prefactor '    51.677       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10159E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .71722       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0011       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6140E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   3551.665     FROM MIGRAD    STATUS=CONVERGED    413 CALLS     2359 TOTAL
                     EDM=   .61E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    9.8219        .15331E-06** at limit **
   2  norm          54.350        56.366        .21069E-06    .57080E-06
   3  Prefactor     16.718        17.152       -.32503E-06   -.60827E-05
   4  Prefactor     25.655        79.445       -.49564E-06   -.31943E-04
   5  norm          51.239        227.90        .64160E-05    .38344E-05
   6  Prefactor     .10000E-03    35.116        .13155E-06** at limit **
   7  Prefactor     .10000E-03    487.43       -.21070E-04** at limit **
   8  Prefactor     2.0725        304.55        .59730E-05   -.87333E-05
   9  Prefactor     1.8090        113.75        .13248E-06   -.39856E-04
  10  Prefactor     .10000E-03    248.89        .81921E-04** at limit **
  11  Prefactor     15.731        61.060        .51193E-05   -.22949E-03
  12  Prefactor     41.409        83.524       -.14077E-05   -.11122E-04
  13  Prefactor     .10000E-03    77.696        .12022E-05** at limit **
  14  Prefactor     .10000E-03    42.265       -.64796E-07** at limit **
  15  Prefactor     124.30        83.161        .26802E-05    .13931E-04
  16  norm          2.6770        1.4457       -.52723E-07   -.96029E-03
  17  Prefactor     51.675        90.812       -.18432E-05   -.59729E-05
  18  Prefactor     .10000E-03    130.88       -.86976E-05** at limit **
  19  Normalizat    .71723        .36974       -.47318E-05   -.19822E-03
  20  Prefactor     1.0011        .11197        .36322E-06   -.39311E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 54.3501
  Prefactor  = 16.7176
  Prefactor  = 25.655
  norm       = 51.2387
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.07254
  Prefactor  = 1.80905
  Prefactor  = 0.0001
  Prefactor  = 15.7311
  Prefactor  = 41.4087
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 124.299
  norm       = 2.67698
  Prefactor  = 51.675
  Prefactor  = 0.0001
  Normalizat = 0.717228
  Prefactor  = 1.00111
 **********
 **   18 **HESSE 
 **********

 FCN=   3551.665     FROM HESSE     STATUS=OK           285 CALLS     2644 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    9.8597        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          54.350        56.376        .54407E-04   -1.4232    
   3  Prefactor     16.718        17.153        .97958E-04   -1.4890    
   4  Prefactor     25.655        79.355        .39544E-03   -1.4695    
   5  norm          51.239        228.27        .56030E-04   -1.4275    
   6  Prefactor     .10000E-03    35.119        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    506.97        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     2.0725        303.50        .28647E-03   -1.5420    
   9  Prefactor     1.8090        112.03        .31100E-03   -1.5439    
  10  Prefactor     .10000E-03    249.10        .42008E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     15.731        60.215        .10104E-03   -1.4915    
  12  Prefactor     41.409        82.968        .62292E-04   -1.4420    
  13  Prefactor     .10000E-03    77.818        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    42.285        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     124.30        83.209        .36104E-04   -1.3474    
  16  norm          2.6770        1.4454        .50646E-04   -1.5381    
  17  Prefactor     51.675        90.830        .55790E-04   -1.4269    
  18  Prefactor     .10000E-03    130.96        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .71723        .38529        .49156E-03   -1.0322    
  20  Prefactor     1.0011        .11843        .14115E-03   -.92692    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.19489e-09
Minuit parameter uncertainties:
  1  5.48525e-06
  2  56.4318
  3  17.1582
  4  79.6838
  5  217.702
  6  1.01719e-05
  7  0.000352411
  8  50.4217
  9  28.5276
  10  0.000396547
  11  60.4487
  12  83.2004
  13  8.6857e-05
  14  1.10532e-05
  15  83.2879
  16  1.44546
  17  91.0743
  18  0.000466246
  19  0.386755
  20  0.118461
Done.

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

Extracting fit parameters...

4FGL J0614.8+6136
   Spectrum: PowerLaw
249    Prefactor:  2.073e+00  5.042e+01  1.000e-04  1.000e+04 ( 1.000e-13)
250        Index:  2.497e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
251        Scale:  8.979e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
607    Prefactor:  1.001e+00  1.185e-01  0.000e+00  1.000e+01 ( 1.000e+00)
608        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
609        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
602   Normalization:  7.172e-01  3.868e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 93.721 61.608
Photon Flux Upper Limit: 2.28e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.77e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/227867/likelihoodResults_598320001_598579201_4FGL_J0614.8+6136_daily_bin1385.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) = 3551.65765106
delta logL = 0.00731795956926

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3551.64732115
delta logL = 0.0176478763319

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.8293       1.0000         .10000E-03   10000.    
     2 'Index     '    3.0987       1.0000          .0000       10.000    
     3 'Normalizat'    .70238       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0026       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6140E+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=   3551.647     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      275 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.8278        58.899        .18306E-03   -.11054E-03
   2  Index         3.1002        2.8104        .61826E-02   -.94394E-04
   3  Normalizat    .70266        .34400        .49638E-03   -.16780E-03
   4  Prefactor     1.0025        .11278        .14106E-03   -.47238E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.82781
  Index      = 3.10024
  Normalizat = 0.702657
  Prefactor  = 1.0025
 **********
 **   18 **HESSE 
 **********

 FCN=   3551.647     FROM HESSE     STATUS=OK            23 CALLS      298 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.8278        51.559        .73224E-05   -1.5268    
   2  Index         3.1002        2.6514        .24731E-03   -.38974    
   3  Normalizat    .70266        .34423        .19855E-04   -1.0379    
   4  Prefactor     1.0025        .11280        .28213E-04   -.92646    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.58643e-09
Minuit parameter uncertainties:
  1  31.5888
  2  2.82353
  3  0.345292
  4  0.112827
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/227867': 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) = 3551.64732044
delta logL = 0.017648587238

Extracting fit parameters...

4FGL J0614.8+6136
   Spectrum: PowerLaw
249    Prefactor:  4.828e+00  3.159e+01  1.000e-04  1.000e+04 ( 1.000e-13)
250        Index:  3.100e+00  2.824e+00  0.000e+00  1.000e+01 (-1.000e+00)
251        Scale:  8.979e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
607    Prefactor:  1.002e+00  1.128e-01  0.000e+00  1.000e+01 ( 1.000e+00)
608        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
609        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
602   Normalization:  7.027e-01  3.453e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 93.721 61.608

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/227867/cmap_HighResolution_598320001_598579201_4FGL_J0614.8+6136_daily_bin1385.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.77e-02', job_status='DONE', photon_flux_upper_limit='2.28e-07', time_completed='2021-08-24 19:21:56.908140', job_id='227867', GAL2='1.00', fit_tolerance='1e-08', EG2='0.70', EG='0.72', time_epoch_completed='1629858116.91', return_code2='0', ts='0.00', comment='SUCCESS', return_code='0', GAL='1.00', dlogl='1.76e-02', ts2='0.04', photon_index_error='0.00', photon_index='2.50' WHERE bin_id='1385' AND source_name='4FGL J0614.8+6136' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 24 19:21:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0179>
Subject: Job 227867: <4FGL_J0614.8+6136_daily_bin1385> in cluster <slac> Done

Job <4FGL_J0614.8+6136_daily_bin1385> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Tue Aug 24 19:10:33 2021
Job was executed on host(s) <bullet0179>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 24 19:10:34 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:10:34 2021
Terminated at Tue Aug 24 19:21:58 2021
Results reported at Tue Aug 24 19:21:58 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0614.8+6136_daily_bin1385 93.7213 61.6079 598320001 598579201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0614.8+6136 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   631.35 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             341.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   683 sec.
    Turnaround time :                            685 sec.

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

