/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 36 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 = 7386
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0137.9+5814_daily_bin1205
RA = 24.4957, Dec = 58.2494
tmin = 551664001, tmax = 551923201
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='719147', job_status='RUN', time_executed='2021-08-14 09:17:10.345687', time_epoch_executed='1628957830.35' WHERE source_name='4FGL J0137.9+5814' and cadence='daily' and bin_id='1205'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/719147

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/719147/ft1_4FGL_J0137.9+5814_daily_bin1205.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/719147/ft2_4FGL_J0137.9+5814_daily_bin1205.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/719147/ft1_4FGL_J0137.9+5814_daily_bin1205.fits outfile=/scratch/kocevski/719147/ft1_filteredMKT_4FGL_J0137.9+5814_daily_bin1205.fits ra=24.4957 dec=58.2494 rad=12.0 tmin=551664001.0 tmax=551923201.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 17.54
user 3.52
sys 4.27

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/719147/ft2_4FGL_J0137.9+5814_daily_bin1205.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/719147/ft2_4FGL_J0137.9+5814_daily_bin1205.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/719147/ft1_filteredMKT_4FGL_J0137.9+5814_daily_bin1205.fits evtable="EVENTS" outfile="/scratch/kocevski/719147/ft1_filtered_4FGL_J0137.9+5814_daily_bin1205.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 9.20
user 0.34
sys 4.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/719147/ft1_filtered_4FGL_J0137.9+5814_daily_bin1205.fits" evtable="EVENTS" scfile=/scratch/kocevski/719147/ft2_4FGL_J0137.9+5814_daily_bin1205.fits sctable="SC_DATA" outfile=/scratch/kocevski/719147/ltcube_551664001_551923201_4FGL_J0137.9+5814_daily_bin1205.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/719147/ft2_4FGL_J0137.9+5814_daily_bin1205.fits
.....................!
real 23.63
user 11.47
sys 4.88

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/719147/ft1_filtered_4FGL_J0137.9+5814_daily_bin1205.fits evtable="EVENTS" scfile=/scratch/kocevski/719147/ft2_4FGL_J0137.9+5814_daily_bin1205.fits sctable="SC_DATA" expcube=/scratch/kocevski/719147/ltcube_551664001_551923201_4FGL_J0137.9+5814_daily_bin1205.fits outfile=/scratch/kocevski/719147/expmap_551664001_551923201_4FGL_J0137.9+5814_daily_bin1205.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/719147/ltcube_551664001_551923201_4FGL_J0137.9+5814_daily_bin1205.fits
.....................!
real 212.76
user 185.23
sys 10.46

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 HB 3 in ROI with RadialDisk spatial model.
Extended source W 3 in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/W3.fits is the correct path to the extended template.
Extended source CTB 109 in ROI with RadialDisk spatial model.
Extended source FHES J2304.0+5406 in ROI with RadialGaussian spatial model.
Added 188 point sources and 4 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 J0137.9+5814 @ 24.4957 58.2494

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/719147/ft1_filtered_4FGL_J0137.9+5814_daily_bin1205.fits scfile=/scratch/kocevski/719147/ft2_4FGL_J0137.9+5814_daily_bin1205.fits outfile=/scratch/kocevski/719147/cmap_551664001_551923201_4FGL_J0137.9+5814_daily_bin1205.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=24.4957 yref=58.2494 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 6.64
user 0.35
sys 4.10

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/719147/ft1_filtered_4FGL_J0137.9+5814_daily_bin1205.fits scfile=/scratch/kocevski/719147/ft2_4FGL_J0137.9+5814_daily_bin1205.fits outfile=/scratch/kocevski/719147/cmap_HighResolution_551664001_551923201_4FGL_J0137.9+5814_daily_bin1205.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=24.4957 yref=58.2494 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 8.26
user 0.37
sys 4.09

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/719147/ft1_filtered_4FGL_J0137.9+5814_daily_bin1205.fits evtable="EVENTS" scfile=/scratch/kocevski/719147/ft2_4FGL_J0137.9+5814_daily_bin1205.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/719147/Model_4FGL_J0137.9+5814_daily_bin1205.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 CTB 109
adding source EG_v02
adding source FHES J2304.0+5406
adding source GAL_V02
adding source HB 3
adding source W 3
Working on...
/scratch/kocevski/719147/ft1_filtered_4FGL_J0137.9+5814_daily_bin1205.fits...................................!
real 37.77
user 17.29
sys 6.48

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/719147/ft1_filtered_4FGL_J0137.9+5814_daily_bin1205.fits', '/scratch/kocevski/719147/ft2_4FGL_J0137.9+5814_daily_bin1205.fits', expMap='/scratch/kocevski/719147/expmap_551664001_551923201_4FGL_J0137.9+5814_daily_bin1205.fits', expCube='/scratch/kocevski/719147/ltcube_551664001_551923201_4FGL_J0137.9+5814_daily_bin1205.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/719147/Model_4FGL_J0137.9+5814_daily_bin1205.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0137.9+5814'

4FGL J0137.9+5814
   Spectrum: PowerLaw
263    Prefactor:  1.430e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
264        Index:  1.951e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
265        Scale:  3.260e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/719147/ft1_filtered_4FGL_J0137.9+5814_daily_bin1205.fits
Spacecraft file(s): /scratch/kocevski/719147/ft2_4FGL_J0137.9+5814_daily_bin1205.fits
Exposure map: /scratch/kocevski/719147/expmap_551664001_551923201_4FGL_J0137.9+5814_daily_bin1205.fits
Exposure cube: /scratch/kocevski/719147/ltcube_551664001_551923201_4FGL_J0137.9+5814_daily_bin1205.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/719147/Model_4FGL_J0137.9+5814_daily_bin1205.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) = 349.496269611

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.2871       1.0000         .10000E-03   10000.    
     2 'norm      '    .36728E-01   1.0000         .10000E-03   10000.    
     3 'norm      '    .14760       1.0000         .10000E-03   10000.    
     4 'norm      '    .10916E-02   1.0000         .10000E-03   10000.    
     5 'norm      '    .64418E-02   1.0000         .10000E-03   10000.    
     6 'norm      '    .18854E-02   1.0000         .10000E-03   10000.    
     7 'norm      '    195.32       1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.3198       1.0000         .10000E-03   10000.    
     9 'Prefactor '    170.31       1.0000         .10000E-03   10000.    
    10 'norm      '    .27246E-01   1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    141.64       1.0000         .10000E-03   10000.    
    13 'Prefactor '    433.85       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10155E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    14.229       1.0000         .10000E-03   10000.    
    16 'norm      '    3.9821       1.0000         .10000E-03   10000.    
    17 'norm      '    278.41       1.0000         .10000E-03   10000.    
    18 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.0909       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6570E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   348.6783     FROM MIGRAD    STATUS=CONVERGED    584 CALLS     1820 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    242.31        .37146E-02** at limit **
   2  norm          .10000E-03    100.90        .92051E-02** at limit **
   3  norm          .10000E-03    184.93        .97358E-02** at limit **
   4  norm          .10000E-03    45.160        .10352E-01** at limit **
   5  norm          .10008E-03    997.08        .94157E-02** at limit **
   6  norm          .10000E-03    56.653        .10141E-01** at limit **
   7  norm          178.30        114.69        .72263E-03    .22954E-04
   8  Prefactor     .10000E-03    169.58        .67329E-02** at limit **
   9  Prefactor     408.10        549.89        .77289E-03   -.38924E-04
  10  norm          .10000E-03    90.658        .91584E-02** at limit **
  11  norm          .10000E-03    3.1673        .90712E-02** at limit **
  12  Prefactor     146.05        144.87        .84628E-03    .60628E-05
  13  Prefactor     312.02        530.18        .49086E-03   -.27858E-04
  14  Prefactor     .10000E-03    16.292        .90712E-02** at limit **
  15  Prefactor     6405.1        8063.8        .26546E-02   -.90883E-05
  16  norm          4.3994        12.919        .50529E-02    .11591E-03
  17  norm          65.937        328.53        .60784E-03    .54193E-04
  18  Normalizat    .10000E-01    .84696        .24531    ** at limit **
  19  Prefactor     1.0450        .29941        .37944E-01    .48891E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.000100084
  norm       = 0.0001
  norm       = 178.296
  Prefactor  = 0.000100001
  Prefactor  = 408.097
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 146.053
  Prefactor  = 312.016
  Prefactor  = 0.000100001
  Prefactor  = 6405.13
  norm       = 4.39936
  norm       = 65.9367
  Normalizat = 0.01
  Prefactor  = 1.04496
 **********
 **   18 **HESSE 
 **********

 FCN=   348.6783     FROM HESSE     STATUS=OK           250 CALLS     2070 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    242.31        .74292E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    100.90        .18361E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    184.93        .19472E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    45.160        .12272E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10008E-03    997.07        .18831E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    56.652        .13748E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          178.30        114.70        .28905E-04   -1.3029    
   8  Prefactor     .10000E-03    169.58        .13466E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     408.10        548.05        .30916E-04   -1.1640    
  10  norm          .10000E-03    90.658        .17401E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    3.1678        .32436E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     146.05        144.95        .33851E-04   -1.3285    
  13  Prefactor     312.02        530.50        .19634E-04   -1.2157    
  14  Prefactor     .10000E-03    16.310        .73667E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     6405.1        8063.6        .10618E-03    .28486    
  16  norm          4.3994        12.990        .10513E-03   -1.5288    
  17  norm          65.937        331.93        .24314E-04   -1.4082    
  18  Normalizat    .10000E-01    .85656        .10595E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     1.0450        .30303        .15132E-03   -.91245    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.04241e-09
Minuit parameter uncertainties:
  1  0.000542585
  2  0.00017555
  3  0.000592884
  4  2.76795e-05
  5  0.0185881
  6  8.33702e-05
  7  114.844
  8  0.000781875
  9  555.309
  10  5.03759e-05
  11  2.69178e-05
  12  145.303
  13  539.095
  14  0.000191832
  15  7296.67
  16  12.9988
  17  298.557
  18  9.58286e-06
  19  0.303526
Done.

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

Extracting fit parameters...

4FGL J0137.9+5814
   Spectrum: PowerLaw
263    Prefactor:  1.461e+02  1.453e+02  1.000e-04  1.000e+04 ( 1.000e-13)
264        Index:  1.951e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
265        Scale:  3.260e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
646    Prefactor:  1.045e+00  3.035e-01  0.000e+00  1.000e+01 ( 1.000e+00)
647        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
648        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
641   Normalization:  1.000e-02  9.583e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.13
Ra Dec: 24.496 58.249
Photon Index (Fixed Index): 1.95 +/- 0.00
Photon Flux (Fixed Index): 1.38e-06 +/- 1.37e-06
Energy Flux (Fixed Index): 1.08e-03 +/- 1.07e-03

TS (Fixed Index): 2.13
Ra Dec: 24.496 58.249
Photon Flux Upper Limit: 5.23e-06 ph cm-2 s-1
Energy Flux Upper Limit: 3.91e-01 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/719147/likelihoodResults_551664001_551923201_4FGL_J0137.9+5814_daily_bin1205.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) = 348.574338256
delta logL = 0.10391514212

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 348.572237697
delta logL = 0.10601570093

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    65.222       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3223       1.0000          .0000       10.000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0423       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6570E+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=   348.5722     FROM MIGRAD    STATUS=CONVERGED     80 CALLS      245 TOTAL
                     EDM=   .70E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     65.490        159.30        .24847E-03   -.64086E-05
   2  Index         2.3207        .89807        .15054E-03    .52439E-05
   3  Normalizat    .10000E-01    .84223        .10511E-02** at limit **
   4  Prefactor     1.0423        .25606        .15128E-03    .90412E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 65.4904
  Index      = 2.3207
  Normalizat = 0.01
  Prefactor  = 1.04225
 **********
 **   18 **HESSE 
 **********

 FCN=   348.5722     FROM HESSE     STATUS=OK            23 CALLS      268 TOTAL
                     EDM=   .68E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     65.490        156.81        .99386E-05   -1.4088    
   2  Index         2.3207        .88402        .60216E-05   -.56553    
   3  Normalizat    .10000E-01    .84222        .21021E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.0423        .25606        .60514E-05   -.91334    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.8449e-12
Minuit parameter uncertainties:
  1  157.81
  2  0.890617
  3  1.51088e-06
  4  0.256364
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/719147': 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) = 348.572235947
delta logL = 0.106017451021

Extracting fit parameters...

4FGL J0137.9+5814
   Spectrum: PowerLaw
263    Prefactor:  6.549e+01  1.578e+02  1.000e-04  1.000e+04 ( 1.000e-13)
264        Index:  2.321e+00  8.906e-01  0.000e+00  1.000e+01 (-1.000e+00)
265        Scale:  3.260e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
646    Prefactor:  1.042e+00  2.564e-01  0.000e+00  1.000e+01 ( 1.000e+00)
647        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
648        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
641   Normalization:  1.000e-02  1.511e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.31
Ra Dec: 24.496 58.249
Photon Index (Free Index): 2.32 +/- 0.89
Photon Flux (Free Index): 1.61e-06 +/- 1.58e-06
Energy Flux (Free Index): 5.91e-04 +/- 8.76e-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/719147/cmap_HighResolution_551664001_551923201_4FGL_J0137.9+5814_daily_bin1205.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.91e-01', comment='SUCCESS', photon_flux='1.38e-06', energy_flux2='5.91e-04', photon_flux_error='1.37e-06', dlogl='1.06e-01', energy_flux='1.08e-03', photon_flux2='1.61e-06', job_status='DONE', time_completed='2021-08-14 09:25:13.559548', photon_index_error2='0.89', photon_index2='2.32', ts='2.13', fit_tolerance='1e-08', GAL='1.04', photon_index_error='0.00', photon_flux_upper_limit='5.23e-06', energy_flux_error2='8.76e-04', EG='0.01', time_epoch_completed='1628958313.56', return_code='0', job_id='719147', GAL2='1.04', EG2='0.01', return_code2='0', energy_flux_error='1.07e-03', photon_flux_error2='1.58e-06', ts2='2.31', photon_index='1.95' WHERE bin_id='1205' AND source_name='4FGL J0137.9+5814' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 09:25:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0083>
Subject: Job 719147: <4FGL_J0137.9+5814_daily_bin1205> in cluster <slac> Done

Job <4FGL_J0137.9+5814_daily_bin1205> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Sat Aug 14 09:11:16 2021
Job was executed on host(s) <bullet0083>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 14 09:11:59 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Aug 14 09:11:59 2021
Terminated at Sat Aug 14 09:25:15 2021
Results reported at Sat Aug 14 09:25:15 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0137.9+5814_daily_bin1205 24.4957 58.2494 551664001 551923201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0137.9+5814 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   467.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             195.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   795 sec.
    Turnaround time :                            839 sec.

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

