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


Performing analysis on: 4FGL_J0138.0+2247_daily_bin1469
RA = 24.5063, Dec = 22.7962
tmin = 620092801, tmax = 620352001
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='750230', job_status='RUN', time_executed='2021-08-14 11:11:28.809280', time_epoch_executed='1628964688.81' WHERE source_name='4FGL J0138.0+2247' and cadence='daily' and bin_id='1469'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/750230

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/750230/ft1_4FGL_J0138.0+2247_daily_bin1469.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/750230/ft2_4FGL_J0138.0+2247_daily_bin1469.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/750230/ft1_4FGL_J0138.0+2247_daily_bin1469.fits outfile=/scratch/kocevski/750230/ft1_filteredMKT_4FGL_J0138.0+2247_daily_bin1469.fits ra=24.5063 dec=22.7962 rad=12.0 tmin=620092801.0 tmax=620352001.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 5.00
user 2.73
sys 0.23

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/750230/ft2_4FGL_J0138.0+2247_daily_bin1469.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/750230/ft2_4FGL_J0138.0+2247_daily_bin1469.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/750230/ft1_filteredMKT_4FGL_J0138.0+2247_daily_bin1469.fits evtable="EVENTS" outfile="/scratch/kocevski/750230/ft1_filtered_4FGL_J0138.0+2247_daily_bin1469.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.88
user 0.31
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/750230/ft1_filtered_4FGL_J0138.0+2247_daily_bin1469.fits" evtable="EVENTS" scfile=/scratch/kocevski/750230/ft2_4FGL_J0138.0+2247_daily_bin1469.fits sctable="SC_DATA" outfile=/scratch/kocevski/750230/ltcube_620092801_620352001_4FGL_J0138.0+2247_daily_bin1469.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/750230/ft2_4FGL_J0138.0+2247_daily_bin1469.fits
.....................!
real 10.83
user 10.33
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/750230/ft1_filtered_4FGL_J0138.0+2247_daily_bin1469.fits evtable="EVENTS" scfile=/scratch/kocevski/750230/ft2_4FGL_J0138.0+2247_daily_bin1469.fits sctable="SC_DATA" expcube=/scratch/kocevski/750230/ltcube_620092801_620352001_4FGL_J0138.0+2247_daily_bin1469.fits outfile=/scratch/kocevski/750230/expmap_620092801_620352001_4FGL_J0138.0+2247_daily_bin1469.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/750230/ltcube_620092801_620352001_4FGL_J0138.0+2247_daily_bin1469.fits
.....................!
real 160.87
user 152.28
sys 4.23

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 169 point sources and 0 extended sources

Setting source of interest to:
4FGL J0138.0+2247 @ 24.5063 22.7962

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/750230/ft1_filtered_4FGL_J0138.0+2247_daily_bin1469.fits scfile=/scratch/kocevski/750230/ft2_4FGL_J0138.0+2247_daily_bin1469.fits outfile=/scratch/kocevski/750230/cmap_620092801_620352001_4FGL_J0138.0+2247_daily_bin1469.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.5063 yref=22.7962 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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/750230/ft1_filtered_4FGL_J0138.0+2247_daily_bin1469.fits scfile=/scratch/kocevski/750230/ft2_4FGL_J0138.0+2247_daily_bin1469.fits outfile=/scratch/kocevski/750230/cmap_HighResolution_620092801_620352001_4FGL_J0138.0+2247_daily_bin1469.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.5063 yref=22.7962 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.55
user 0.38
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/750230/ft1_filtered_4FGL_J0138.0+2247_daily_bin1469.fits evtable="EVENTS" scfile=/scratch/kocevski/750230/ft2_4FGL_J0138.0+2247_daily_bin1469.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/750230/Model_4FGL_J0138.0+2247_daily_bin1469.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

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

adding source EG_v02
adding source GAL_V02
Working on...
/scratch/kocevski/750230/ft1_filtered_4FGL_J0138.0+2247_daily_bin1469.fits.....................!
real 83.16
user 75.43
sys 1.11

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/750230/ft1_filtered_4FGL_J0138.0+2247_daily_bin1469.fits', '/scratch/kocevski/750230/ft2_4FGL_J0138.0+2247_daily_bin1469.fits', expMap='/scratch/kocevski/750230/expmap_620092801_620352001_4FGL_J0138.0+2247_daily_bin1469.fits', expCube='/scratch/kocevski/750230/ltcube_620092801_620352001_4FGL_J0138.0+2247_daily_bin1469.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/750230/Model_4FGL_J0138.0+2247_daily_bin1469.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0138.0+2247'

4FGL J0138.0+2247
   Spectrum: PowerLaw
257    Prefactor:  5.231e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
258        Index:  2.006e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
259        Scale:  2.764e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/750230/ft1_filtered_4FGL_J0138.0+2247_daily_bin1469.fits
Spacecraft file(s): /scratch/kocevski/750230/ft2_4FGL_J0138.0+2247_daily_bin1469.fits
Exposure map: /scratch/kocevski/750230/expmap_620092801_620352001_4FGL_J0138.0+2247_daily_bin1469.fits
Exposure cube: /scratch/kocevski/750230/ltcube_620092801_620352001_4FGL_J0138.0+2247_daily_bin1469.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/750230/Model_4FGL_J0138.0+2247_daily_bin1469.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) = 8931.93648302

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.3588       1.0000         .10000E-03   10000.    
     2 'Prefactor '    61.107       1.0000         .10000E-03   10000.    
     3 'norm      '    2.0060       1.0000         .10000E-03   10000.    
     4 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.1101       1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.2390       1.0000         .10000E-03   10000.    
     9 'Prefactor '    6.6119       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .54981       1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.8729       1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.4130       1.0000         .10000E-03   10000.    
    15 'norm      '    .41706E-01   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .49959       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .24755E-01   1.0000         .10000E-03   10000.    
    20 'norm      '    67.832       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    35.161       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.2597       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .99209       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5370E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8931.890     FROM MIGRAD    STATUS=CONVERGED    583 CALLS     2841 TOTAL
                     EDM=   .14E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.3588        7.5188        .11688E-05    .17553E-03
   2  Prefactor     61.100        44.331        .40536E-06   -.45438E-05
   3  norm          2.0062        .93280        .18531E-07   -.17295E-03
   4  norm          .10000E-03    .71687        .24439E-06** at limit **
   5  Prefactor     .10000E-03    4.2692        .10778E-07** at limit **
   6  Prefactor     .10000E-03    12.287       -.28970E-07** at limit **
   7  Prefactor     4.1099        3.6819        .14018E-09   -.31906E-04
   8  Prefactor     6.2369        8.9700        .90794E-07   -.20178E-03
   9  Prefactor     6.6038        13.969        .30740E-06   -.75602E-05
  10  Prefactor     .10000E-03    43.155        .11618E-06** at limit **
  11  Prefactor     .10000E-03    20.963        .38341E-06** at limit **
  12  norm          .54978        .40425        .39486E-08    .20874E-04
  13  Prefactor     2.8729        11.880        .64457E-05   -.14707E-04
  14  Prefactor     4.3936        18.140        .27265E-05    .49231E-04
  15  norm          .46780E-01    1.9410       -.93151E-06    .34825E-03
  16  Prefactor     .10000E-03    130.57       -.21528E-05** at limit **
  17  Prefactor     .50009        2.4966        .97965E-06    .32272E-04
  18  Prefactor     .10000E-03    1.6744       -.59602E-07** at limit **
  19  Prefactor     .10097E-03    3.1198       -.52042E-06** at limit **
  20  norm          67.827        77.530        .65472E-06    .75117E-05
  21  Prefactor     .10000E-03    22.764       -.27795E-06** at limit **
  22  Prefactor     35.173        42.757       -.70234E-06   -.27223E-04
  23  Normalizat    1.2596        .20132       -.18394E-05   -.86995E-04
  24  Prefactor     .99218        .11167        .59927E-07   -.16873E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.35882
  Prefactor  = 61.1003
  norm       = 2.00618
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.10993
  Prefactor  = 6.23688
  Prefactor  = 6.60381
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.549783
  Prefactor  = 2.87294
  Prefactor  = 4.39365
  norm       = 0.0467803
  Prefactor  = 0.0001
  Prefactor  = 0.500088
  Prefactor  = 0.0001
  Prefactor  = 0.000100975
  norm       = 67.8267
  Prefactor  = 0.0001
  Prefactor  = 35.1734
  Normalizat = 1.25957
  Prefactor  = 0.992182
 **********
 **   18 **HESSE 
 **********

 FCN=   8931.890     FROM HESSE     STATUS=OK           417 CALLS     3258 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.3588        7.5264        .15917E-03   -1.5204    
   2  Prefactor     61.100        44.450        .51329E-04   -1.4143    
   3  norm          2.0062        .92963        .53759E-04   -1.5425    
   4  norm          .10000E-03    2.9609        .14620E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    4.2803        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    12.293        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     4.1099        3.6809        .16501E-03   -1.5302    
   8  Prefactor     6.2369        8.6338        .16071E-03   -1.5208    
   9  Prefactor     6.6038        13.940        .15606E-03   -1.5194    
  10  Prefactor     .10000E-03    43.375        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    20.966        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .54978        .40032        .49914E-04   -1.5560    
  13  Prefactor     2.8729        12.156        .11990E-02   -1.5369    
  14  Prefactor     4.3936        18.217        .19171E-03   -1.5289    
  15  norm          .46780E-01    1.5977        .42742E-01   -1.5665    
  16  Prefactor     .10000E-03    130.61        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .50009        2.5638        .28170E-03   -1.5567    
  18  Prefactor     .10000E-03    1.6766        .11943E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10097E-03    6.8039        .51867E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          67.827        77.639        .48734E-04   -1.4059    
  21  Prefactor     .10000E-03    22.807        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     35.173        42.775        .67583E-04   -1.4521    
  23  Normalizat    1.2596        .23564        .30701E-03   -.84781    
  24  Prefactor     .99218        .13232        .20304E-03   -.92991    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.23287e-09
Minuit parameter uncertainties:
  1  7.52749
  2  44.4739
  3  0.929639
  4  9.18255e-06
  5  1.71254e-06
  6  4.64258e-06
  7  3.68106
  8  8.63555
  9  13.9466
  10  1.76034e-05
  11  2.49662e-05
  12  0.400323
  13  11.8233
  14  17.902
  15  0.546203
  16  0.000312291
  17  2.26455
  18  3.76567e-06
  19  0.00515107
  20  77.7557
  21  1.10263e-06
  22  42.8122
  23  0.235843
  24  0.132362
Done.

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

Extracting fit parameters...

4FGL J0138.0+2247
   Spectrum: PowerLaw
257    Prefactor:  1.000e-04  1.760e-05  1.000e-04  1.000e+04 ( 1.000e-14)
258        Index:  2.006e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
259        Scale:  2.764e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
534    Prefactor:  9.922e-01  1.324e-01  0.000e+00  1.000e+01 ( 1.000e+00)
535        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
536        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
533   Normalization:  1.260e+00  2.358e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 24.506 22.796
Photon Flux Upper Limit: 6.50e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.88e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/750230/likelihoodResults_620092801_620352001_4FGL_J0138.0+2247_daily_bin1469.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): 102
logL (Free Index) = 8931.89047592
delta logL = -0.000109775950477

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8931.81751826
delta logL = 0.0728478802594

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8931.817     FROM MIGRAD    STATUS=CONVERGED     63 CALLS      350 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.8359        212.64        .75918E-02    .13868E-02
   2  Index         3.0194        6.5048        .10728        .26442E-03
   3  Normalizat    1.2448        .45530E-01    .69736E-01   -.17606E-03
   4  Prefactor     .99352        .26768E-01    .46188E-01   -.17998E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.83593
  Index      = 3.0194
  Normalizat = 1.24478
  Prefactor  = 0.993515
 **********
 **   18 **HESSE 
 **********

 FCN=   8931.817     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      381 TOTAL
                     EDM=   .84E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.8359        608.05        .30367E-03   -1.5437    
   2  Index         3.0194        5.8877        .12193E-01   -.40729    
   3  Normalizat    1.2448        .18852        .30855E-03   -.85230    
   4  Prefactor     .99352        .11632        .20290E-03   -.92946    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.39112e-09
Minuit parameter uncertainties:
  1  67.5244
  2  12.3647
  3  0.188624
  4  0.116349
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/750230': 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): 102
logL (Free Index) = 8931.81748103
delta logL = 0.0728851101339

Extracting fit parameters...

4FGL J0138.0+2247
   Spectrum: PowerLaw
257    Prefactor:  1.836e+00  6.752e+01  1.000e-04  1.000e+04 ( 1.000e-14)
258        Index:  3.019e+00  1.236e+01  0.000e+00  1.000e+01 (-1.000e+00)
259        Scale:  2.764e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
534    Prefactor:  9.935e-01  1.163e-01  0.000e+00  1.000e+01 ( 1.000e+00)
535        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
536        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
533   Normalization:  1.245e+00  1.886e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 24.506 22.796

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/750230/cmap_HighResolution_620092801_620352001_4FGL_J0138.0+2247_daily_bin1469.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.88e-03', job_status='DONE', photon_flux_upper_limit='6.50e-08', time_completed='2021-08-14 11:23:51.149575', job_id='750230', GAL2='0.99', fit_tolerance='1e-08', EG2='1.24', EG='1.26', time_epoch_completed='1628965431.15', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.99', dlogl='7.29e-02', ts2='0.15', photon_index_error='0.00', photon_index='2.01' WHERE bin_id='1469' AND source_name='4FGL J0138.0+2247' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 11:23:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0175>
Subject: Job 750230: <4FGL_J0138.0+2247_daily_bin1469> in cluster <slac> Done

Job <4FGL_J0138.0+2247_daily_bin1469> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Sat Aug 14 11:08:00 2021
Job was executed on host(s) <bullet0175>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 14 11:09:05 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Aug 14 11:09:05 2021
Terminated at Sat Aug 14 11:23:52 2021
Results reported at Sat Aug 14 11:23:52 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0138.0+2247_daily_bin1469 24.5063 22.7962 620092801 620352001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0138.0+2247 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   717.21 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             311.23 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   886 sec.
    Turnaround time :                            952 sec.

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

