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


Performing analysis on: 4FGL_J0137.0+4751_daily_bin1372
RA = 24.2603, Dec = 47.8637
tmin = 594950401, tmax = 595209601
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='685031', job_status='RUN', time_executed='2021-08-14 07:10:41.009648', time_epoch_executed='1628950241.01' WHERE source_name='4FGL J0137.0+4751' and cadence='daily' and bin_id='1372'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/685031

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/685031/ft1_4FGL_J0137.0+4751_daily_bin1372.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/685031/ft2_4FGL_J0137.0+4751_daily_bin1372.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/685031/ft1_4FGL_J0137.0+4751_daily_bin1372.fits outfile=/scratch/kocevski/685031/ft1_filteredMKT_4FGL_J0137.0+4751_daily_bin1372.fits ra=24.2603 dec=47.8637 rad=12.0 tmin=594950401.0 tmax=595209601.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.30
user 2.74
sys 0.88

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/685031/ft2_4FGL_J0137.0+4751_daily_bin1372.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/685031/ft2_4FGL_J0137.0+4751_daily_bin1372.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/685031/ft1_filteredMKT_4FGL_J0137.0+4751_daily_bin1372.fits evtable="EVENTS" outfile="/scratch/kocevski/685031/ft1_filtered_4FGL_J0137.0+4751_daily_bin1372.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.84
user 0.34
sys 0.81

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/685031/ft1_filtered_4FGL_J0137.0+4751_daily_bin1372.fits" evtable="EVENTS" scfile=/scratch/kocevski/685031/ft2_4FGL_J0137.0+4751_daily_bin1372.fits sctable="SC_DATA" outfile=/scratch/kocevski/685031/ltcube_594950401_595209601_4FGL_J0137.0+4751_daily_bin1372.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/685031/ft2_4FGL_J0137.0+4751_daily_bin1372.fits
.....................!
real 22.09
user 12.90
sys 1.09

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/685031/ft1_filtered_4FGL_J0137.0+4751_daily_bin1372.fits evtable="EVENTS" scfile=/scratch/kocevski/685031/ft2_4FGL_J0137.0+4751_daily_bin1372.fits sctable="SC_DATA" expcube=/scratch/kocevski/685031/ltcube_594950401_595209601_4FGL_J0137.0+4751_daily_bin1372.fits outfile=/scratch/kocevski/685031/expmap_594950401_595209601_4FGL_J0137.0+4751_daily_bin1372.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/685031/ltcube_594950401_595209601_4FGL_J0137.0+4751_daily_bin1372.fits
.....................!
real 197.38
user 186.28
sys 6.11

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.
Added 177 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 J0137.0+4751 @ 24.2603 47.8637

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/685031/ft1_filtered_4FGL_J0137.0+4751_daily_bin1372.fits scfile=/scratch/kocevski/685031/ft2_4FGL_J0137.0+4751_daily_bin1372.fits outfile=/scratch/kocevski/685031/cmap_594950401_595209601_4FGL_J0137.0+4751_daily_bin1372.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.2603 yref=47.8637 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 1.48
user 0.37
sys 0.79

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/685031/ft1_filtered_4FGL_J0137.0+4751_daily_bin1372.fits scfile=/scratch/kocevski/685031/ft2_4FGL_J0137.0+4751_daily_bin1372.fits outfile=/scratch/kocevski/685031/cmap_HighResolution_594950401_595209601_4FGL_J0137.0+4751_daily_bin1372.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.2603 yref=47.8637 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 2.23
user 0.38
sys 0.78

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/685031/ft1_filtered_4FGL_J0137.0+4751_daily_bin1372.fits evtable="EVENTS" scfile=/scratch/kocevski/685031/ft2_4FGL_J0137.0+4751_daily_bin1372.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/685031/Model_4FGL_J0137.0+4751_daily_bin1372.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
adding source HB 3
adding source W 3
Working on...
/scratch/kocevski/685031/ft1_filtered_4FGL_J0137.0+4751_daily_bin1372.fits.....................!
real 65.09
user 53.60
sys 2.09

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/685031/ft1_filtered_4FGL_J0137.0+4751_daily_bin1372.fits', '/scratch/kocevski/685031/ft2_4FGL_J0137.0+4751_daily_bin1372.fits', expMap='/scratch/kocevski/685031/expmap_594950401_595209601_4FGL_J0137.0+4751_daily_bin1372.fits', expCube='/scratch/kocevski/685031/ltcube_594950401_595209601_4FGL_J0137.0+4751_daily_bin1372.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/685031/Model_4FGL_J0137.0+4751_daily_bin1372.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0137.0+4751'

4FGL J0137.0+4751
   Spectrum: LogParabola
277         norm:  1.175e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-11)
278        alpha:  2.196e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
279         beta:  9.871e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
280           Eb:  6.877e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/685031/ft1_filtered_4FGL_J0137.0+4751_daily_bin1372.fits
Spacecraft file(s): /scratch/kocevski/685031/ft2_4FGL_J0137.0+4751_daily_bin1372.fits
Exposure map: /scratch/kocevski/685031/expmap_594950401_595209601_4FGL_J0137.0+4751_daily_bin1372.fits
Exposure cube: /scratch/kocevski/685031/ltcube_594950401_595209601_4FGL_J0137.0+4751_daily_bin1372.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/685031/Model_4FGL_J0137.0+4751_daily_bin1372.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) = 3706.4912539

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.6865       1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10620E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    11.303       1.0000         .10000E-03   10000.    
     6 'norm      '    100.21       1.0000         .10000E-03   10000.    
     7 'Prefactor '    73.689       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    2.4021       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.8029       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .58605E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    32.847       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .12788E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10942E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    55.057       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .70324       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .91271       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6050E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   3706.448     FROM MIGRAD    STATUS=CONVERGED    521 CALLS     2560 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.6025        121.59       -.13013E-03    .37684E-05
   2  norm          .10000E-03    10.075       -.26657E-06** at limit **
   3  Prefactor     .10000E-03    8.2048       -.29253E-06** at limit **
   4  Prefactor     .10000E-03    58.452        .79931E-05** at limit **
   5  norm          11.301        8.8366       -.74690E-05    .68631E-04
   6  norm          100.21        95.706       -.96350E-06    .12060E-04
   7  Prefactor     73.690        59.358       -.21127E-05    .26322E-04
   8  Prefactor     .10000E-03    98.608       -.61541E-04** at limit **
   9  norm          2.4016        4.1980       -.16551E-05   -.26129E-03
  10  Prefactor     .10000E-03    31.031       -.27757E-05** at limit **
  11  Prefactor     .10000E-03    30.623       -.16670E-04** at limit **
  12  norm          .10000E-03    4.8891       -.47571E-06** at limit **
  13  norm          1.8027        1.8206       -.58737E-06   -.78237E-05
  14  Prefactor     .10010E-03    4.8795       -.23229E-05** at limit **
  15  Prefactor     .10000E-03    31.573        .18660E-04** at limit **
  16  Prefactor     .10000E-03    135.63        .80337E-04** at limit **
  17  Prefactor     32.843        30.960       -.20788E-05   -.16346E-03
  18  Prefactor     .10000E-03    238.57        .74494E-04** at limit **
  19  norm          .10000E-03    2.8490        .55908E-06** at limit **
  20  Prefactor     .10000E-03    311.40       -.83053E-04** at limit **
  21  norm          54.725        138.27       -.39028E-03    .28239E-04
  22  Normalizat    .70336        .42348        .27822E-04    .24641E-03
  23  Prefactor     .91270        .10645        .56923E-05    .27386E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.60249
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  norm       = 11.3011
  norm       = 100.213
  Prefactor  = 73.6905
  Prefactor  = 0.0001
  norm       = 2.40164
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100001
  norm       = 1.8027
  Prefactor  = 0.000100104
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 32.8426
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100004
  norm       = 54.7251
  Normalizat = 0.703363
  Prefactor  = 0.912698
 **********
 **   18 **HESSE 
 **********

 FCN=   3706.448     FROM HESSE     STATUS=OK           362 CALLS     2922 TOTAL
                     EDM=   .55E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.6025        122.34        .15518E-03   -1.5194    
   2  norm          .10000E-03    10.094        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    8.2100        .17031E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    59.144        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          11.301        8.8690        .11916E-03   -1.5035    
   6  norm          100.21        95.924        .40160E-04   -1.3702    
   7  Prefactor     73.690        59.464        .46771E-04   -1.3989    
   8  Prefactor     .10000E-03    98.655        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          2.4016        4.1707        .15907E-03   -1.5398    
  10  Prefactor     .10000E-03    31.037        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    30.625        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    4.9513        .13137E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.8027        1.8081        .79279E-04   -1.5439    
  14  Prefactor     .10010E-03    30.342        .25176E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    31.658        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    135.75        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     32.843        30.937        .69916E-04   -1.4561    
  18  Prefactor     .10000E-03    238.59        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    2.8998        .10034E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    311.40        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          54.725        138.51        .27030E-03   -1.4227    
  22  Normalizat    .70336        .43118        .59924E-03   -1.0376    
  23  Prefactor     .91270        .10754        .13335E-03   -.95699    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.52164e-09
Minuit parameter uncertainties:
  1  56.9767
  2  3.27216e-05
  3  4.13493e-06
  4  0.000775078
  5  8.87002
  6  96.0728
  7  59.512
  8  0.000342324
  9  4.17118
  10  7.66518e-05
  11  2.75015e-05
  12  0.000101917
  13  1.80813
  14  0.00355724
  15  3.79885e-05
  16  0.000333809
  17  30.9518
  18  7.50658e-05
  19  4.57628e-05
  20  0.0021005
  21  139.334
  22  0.433279
  23  0.107568
Done.

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

Extracting fit parameters...

4FGL J0137.0+4751
   Spectrum: LogParabola
277         norm:  1.803e+00  1.808e+00  1.000e-04  1.000e+04 ( 1.000e-11)
278        alpha:  2.196e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
279         beta:  9.871e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
280           Eb:  6.877e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
594    Prefactor:  9.127e-01  1.076e-01  0.000e+00  1.000e+01 ( 1.000e+00)
595        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
596        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
593   Normalization:  7.034e-01  4.333e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.03
Ra Dec: 24.260 47.864
Photon Index (Fixed Index): 2.20 +/- 0.00
Photon Flux (Fixed Index): 8.71e-08 +/- 8.74e-08
Energy Flux (Fixed Index): 3.48e-05 +/- 3.49e-05

TS (Fixed Index): 2.03
Ra Dec: 24.260 47.864
Photon Flux Upper Limit: 3.15e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.26e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/685031/likelihoodResults_594950401_595209601_4FGL_J0137.0+4751_daily_bin1372.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) = 3706.41537189
delta logL = 0.0329350259822

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3706.41400124
delta logL = 0.0343056787406

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.7681       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4589       1.0000          .0000       5.0000    
     3 'Normalizat'    .68527       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91441       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6050E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3706.414     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      209 TOTAL
                     EDM=   .78E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.7680        54.716        .78744E-02    .16582E-03
   2  alpha         2.4592        3.0760        .41159        .14921E-04
   3  Normalizat    .68504        .21769        .13649        .21295E-04
   4  Prefactor     .91446        .43971E-01    .30146E-01   -.58321E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.76798
  alpha      = 2.45918
  Normalizat = 0.68504
  Prefactor  = 0.91446
 **********
 **   18 **HESSE 
 **********

 FCN=   3706.414     FROM HESSE     STATUS=OK            33 CALLS      242 TOTAL
                     EDM=   .59E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.7680        1.7705        .73780E-04   -1.5442    
   2  alpha         2.4592        .98456        .17789E-01   -.16328E-01
   3  Normalizat    .68504        .40636        .60620E-03   -1.0449    
   4  Prefactor     .91446        .10157        .13322E-03   -.95638    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.86764e-10
Minuit parameter uncertainties:
  1  1.77051
  2  1.01198
  3  0.408162
  4  0.101588
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/685031': 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) = 3706.41400106
delta logL = 0.0343058611061

Extracting fit parameters...

4FGL J0137.0+4751
   Spectrum: LogParabola
277         norm:  1.768e+00  1.771e+00  1.000e-04  1.000e+04 ( 1.000e-11)
278        alpha:  2.459e+00  1.012e+00  0.000e+00  5.000e+00 ( 1.000e+00)
279         beta:  9.871e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
280           Eb:  6.877e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
594    Prefactor:  9.145e-01  1.016e-01  0.000e+00  1.000e+01 ( 1.000e+00)
595        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
596        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
593   Normalization:  6.850e-01  4.082e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.11
Ra Dec: 24.260 47.864
Photon Index (Free Index): 2.46 +/- 1.01
Photon Flux (Free Index): 1.15e-07 +/- 1.47e-07
Energy Flux (Free Index): 3.45e-05 +/- 3.27e-05

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/685031/cmap_HighResolution_594950401_595209601_4FGL_J0137.0+4751_daily_bin1372.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.26e-04', comment='SUCCESS', photon_flux='8.71e-08', energy_flux2='3.45e-05', photon_flux_error='8.74e-08', dlogl='3.43e-02', energy_flux='3.48e-05', photon_flux2='1.15e-07', job_status='DONE', time_completed='2021-08-14 07:20:31.593605', photon_index_error2='1.01', photon_index2='2.46', ts='2.03', fit_tolerance='1e-08', GAL='0.91', photon_index_error='0.00', photon_flux_upper_limit='3.15e-07', energy_flux_error2='3.27e-05', EG='0.70', time_epoch_completed='1628950831.59', return_code='0', job_id='685031', GAL2='0.91', EG2='0.69', return_code2='0', energy_flux_error='3.49e-05', photon_flux_error2='1.47e-07', ts2='2.11', photon_index='2.20' WHERE bin_id='1372' AND source_name='4FGL J0137.0+4751' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 07:20:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0078>
Subject: Job 685031: <4FGL_J0137.0+4751_daily_bin1372> in cluster <slac> Done

Job <4FGL_J0137.0+4751_daily_bin1372> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Sat Aug 14 07:05:31 2021
Job was executed on host(s) <bullet0078>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 14 07:07:18 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Aug 14 07:07:18 2021
Terminated at Sat Aug 14 07:20:33 2021
Results reported at Sat Aug 14 07:20:33 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0137.0+4751_daily_bin1372 24.2603 47.8637 594950401 595209601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0137.0+4751 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   559.53 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             267.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   794 sec.
    Turnaround time :                            902 sec.

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

