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


Performing analysis on: 4FGL_J1438.9+3710_daily_bin241
RA = 219.74, Dec = 37.1752
tmin = 301795201, tmax = 302054401
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='667286', job_status='RUN', time_executed='2021-09-10 03:18:14.435612', time_epoch_executed='1631269094.44' WHERE source_name='4FGL J1438.9+3710' and cadence='daily' and bin_id='241'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/667286

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/667286/ft1_4FGL_J1438.9+3710_daily_bin241.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/667286/ft2_4FGL_J1438.9+3710_daily_bin241.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/667286/ft1_4FGL_J1438.9+3710_daily_bin241.fits outfile=/scratch/kocevski/667286/ft1_filteredMKT_4FGL_J1438.9+3710_daily_bin241.fits ra=219.74 dec=37.1752 rad=12.0 tmin=301795201.0 tmax=302054401.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 4.10
user 3.79
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/667286/ft2_4FGL_J1438.9+3710_daily_bin241.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/667286/ft2_4FGL_J1438.9+3710_daily_bin241.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/667286/ft1_filteredMKT_4FGL_J1438.9+3710_daily_bin241.fits evtable="EVENTS" outfile="/scratch/kocevski/667286/ft1_filtered_4FGL_J1438.9+3710_daily_bin241.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.49
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/667286/ft1_filtered_4FGL_J1438.9+3710_daily_bin241.fits" evtable="EVENTS" scfile=/scratch/kocevski/667286/ft2_4FGL_J1438.9+3710_daily_bin241.fits sctable="SC_DATA" outfile=/scratch/kocevski/667286/ltcube_301795201_302054401_4FGL_J1438.9+3710_daily_bin241.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/667286/ft2_4FGL_J1438.9+3710_daily_bin241.fits
.....................!
real 11.79
user 11.41
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/667286/ft1_filtered_4FGL_J1438.9+3710_daily_bin241.fits evtable="EVENTS" scfile=/scratch/kocevski/667286/ft2_4FGL_J1438.9+3710_daily_bin241.fits sctable="SC_DATA" expcube=/scratch/kocevski/667286/ltcube_301795201_302054401_4FGL_J1438.9+3710_daily_bin241.fits outfile=/scratch/kocevski/667286/expmap_301795201_302054401_4FGL_J1438.9+3710_daily_bin241.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/667286/ltcube_301795201_302054401_4FGL_J1438.9+3710_daily_bin241.fits
.....................!
real 192.79
user 187.68
sys 4.73

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 176 point sources and 0 extended sources

Setting source of interest to:
4FGL J1438.9+3710 @ 219.74 37.1752

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/667286/ft1_filtered_4FGL_J1438.9+3710_daily_bin241.fits scfile=/scratch/kocevski/667286/ft2_4FGL_J1438.9+3710_daily_bin241.fits outfile=/scratch/kocevski/667286/cmap_301795201_302054401_4FGL_J1438.9+3710_daily_bin241.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=219.74 yref=37.1752 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.55
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/667286/ft1_filtered_4FGL_J1438.9+3710_daily_bin241.fits scfile=/scratch/kocevski/667286/ft2_4FGL_J1438.9+3710_daily_bin241.fits outfile=/scratch/kocevski/667286/cmap_HighResolution_301795201_302054401_4FGL_J1438.9+3710_daily_bin241.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=219.74 yref=37.1752 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/667286/ft1_filtered_4FGL_J1438.9+3710_daily_bin241.fits evtable="EVENTS" scfile=/scratch/kocevski/667286/ft2_4FGL_J1438.9+3710_daily_bin241.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/667286/Model_4FGL_J1438.9+3710_daily_bin241.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/667286/ft1_filtered_4FGL_J1438.9+3710_daily_bin241.fits.....................!
real 48.89
user 47.58
sys 1.16

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/667286/ft1_filtered_4FGL_J1438.9+3710_daily_bin241.fits', '/scratch/kocevski/667286/ft2_4FGL_J1438.9+3710_daily_bin241.fits', expMap='/scratch/kocevski/667286/expmap_301795201_302054401_4FGL_J1438.9+3710_daily_bin241.fits', expCube='/scratch/kocevski/667286/ltcube_301795201_302054401_4FGL_J1438.9+3710_daily_bin241.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/667286/Model_4FGL_J1438.9+3710_daily_bin241.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1438.9+3710'

4FGL J1438.9+3710
   Spectrum: LogParabola
282         norm:  4.709e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
283        alpha:  2.310e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
284         beta:  1.080e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
285           Eb:  6.335e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/667286/ft1_filtered_4FGL_J1438.9+3710_daily_bin241.fits
Spacecraft file(s): /scratch/kocevski/667286/ft2_4FGL_J1438.9+3710_daily_bin241.fits
Exposure map: /scratch/kocevski/667286/expmap_301795201_302054401_4FGL_J1438.9+3710_daily_bin241.fits
Exposure cube: /scratch/kocevski/667286/ltcube_301795201_302054401_4FGL_J1438.9+3710_daily_bin241.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/667286/Model_4FGL_J1438.9+3710_daily_bin241.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) = 5959.11764961

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    51.386       1.0000         .10000E-03   10000.    
     2 'Prefactor '    23.571       1.0000         .10000E-03   10000.    
     3 'norm      '    14.271       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.8519       1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .11339E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    37.352       1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.5671       1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    28.366       1.0000         .10000E-03   10000.    
    12 'norm      '    1.1439       1.0000         .10000E-03   10000.    
    13 'Prefactor '    58.631       1.0000         .10000E-03   10000.    
    14 'Prefactor '    26.637       1.0000         .10000E-03   10000.    
    15 'norm      '    5.6138       1.0000         .10000E-03   10000.    
    16 'Prefactor '    5.3606       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .85348E-02   1.0000         .10000E-03   10000.    
    19 'norm      '    .23587       1.0000         .10000E-03   10000.    
    20 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    2.7171       1.0000         .10000E-03   10000.    
    22 'Prefactor '    45.363       1.0000         .10000E-03   10000.    
    23 'Prefactor '    6.8715       1.0000         .10000E-03   10000.    
    24 'Prefactor '    6.8665       1.0000         .10000E-03   10000.    
    25 'norm      '    8.2346       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    20.859       1.0000         .10000E-03   10000.    
    28 'norm      '    .10091E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .98893       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .74208       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5650E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5959.066     FROM MIGRAD    STATUS=CONVERGED    763 CALLS     3965 TOTAL
                     EDM=   .60E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     51.375        73.797       -.32955E-06   -.19201E-04
   2  Prefactor     23.570        9.1292       -.22735E-07   -.96262E-06
   3  norm          14.267        16.190        .10322E-06    .59254E-04
   4  Prefactor     .10000E-03    11.290        .13537E-07** at limit **
   5  Prefactor     3.8446        18.666        .54853E-06    .10746E-04
   6  norm          .10000E-03    .99530       -.19861E-07** at limit **
   7  Prefactor     .10003E-03    11.972       -.21387E-05** at limit **
   8  Prefactor     37.335        22.011        .26327E-06    .39810E-03
   9  Prefactor     3.5668        3.9502        .11274E-06   -.10131E-05
  10  norm          .10000E-03    5.1299       -.34312E-07** at limit **
  11  Prefactor     28.358        27.949       -.29691E-06   -.38817E-04
  12  norm          1.1474        4.7300        .25807E-05    .32749E-03
  13  Prefactor     58.628        41.979       -.47472E-06   -.26131E-04
  14  Prefactor     26.616        37.176       -.74782E-06   -.12744E-03
  15  norm          5.6134        5.8523       -.11280E-06   -.27349E-04
  16  Prefactor     5.3629        8.6039       -.25603E-06   -.67223E-04
  17  Prefactor     .10000E-03    1.9166       -.34613E-07** at limit **
  18  Prefactor     .10021E-03    7.4333        .17824E-05** at limit **
  19  norm          .23619        1.0838        .21438E-06   -.14608E-03
  20  norm          .10000E-03    2.3432        .30959E-06** at limit **
  21  Prefactor     2.7269        19.104       -.56967E-06   -.88407E-04
  22  Prefactor     45.382        54.512       -.62101E-06    .10230E-04
  23  Prefactor     6.8737        19.356       -.28191E-06   -.31254E-04
  24  Prefactor     6.8543        22.261        .87219E-06   -.41985E-04
  25  norm          8.2354        1.8382       -.19456E-07   -.35148E-03
  26  Prefactor     .10000E-03    9.2924        .10241E-06** at limit **
  27  Prefactor     20.835        20.395       -.79304E-07   -.75197E-04
  28  norm          .10000E-03    16.850       -.73669E-06** at limit **
  29  Normalizat    .98890        .19483        .15270E-05   -.23586E-03
  30  Prefactor     .74228        .18431       -.29923E-05   -.20617E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 51.3748
  Prefactor  = 23.57
  norm       = 14.267
  Prefactor  = 0.0001
  Prefactor  = 3.84462
  norm       = 0.0001
  Prefactor  = 0.000100033
  Prefactor  = 37.3353
  Prefactor  = 3.56679
  norm       = 0.0001
  Prefactor  = 28.3581
  norm       = 1.14743
  Prefactor  = 58.6281
  Prefactor  = 26.6161
  norm       = 5.61336
  Prefactor  = 5.36289
  Prefactor  = 0.0001
  Prefactor  = 0.00010021
  norm       = 0.236192
  norm       = 0.0001
  Prefactor  = 2.72688
  Prefactor  = 45.3816
  Prefactor  = 6.8737
  Prefactor  = 6.85428
  norm       = 8.23544
  Prefactor  = 0.0001
  Prefactor  = 20.8349
  norm       = 0.0001
  Normalizat = 0.988902
  Prefactor  = 0.742276
 **********
 **   18 **HESSE 
 **********

 FCN=   5959.066     FROM HESSE     STATUS=OK           590 CALLS     4555 TOTAL
                     EDM=   .30E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     51.375        73.898        .55947E-04   -1.4273    
   2  Prefactor     23.570        9.1575        .82504E-04   -1.4737    
   3  norm          14.267        16.237        .10602E-03   -1.4952    
   4  Prefactor     .10000E-03    11.326        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     3.8446        18.897        .20562E-03   -1.5316    
   6  norm          .10000E-03    .99710        .75197E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10003E-03    34.142        .43128E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     37.335        20.453        .65577E-04   -1.4485    
   9  Prefactor     3.5668        3.9627        .15171E-03   -1.5330    
  10  norm          .10000E-03    5.1328        .17075E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     28.358        28.003        .75222E-04   -1.4642    
  12  norm          1.1474        4.9415        .32804E-03   -1.5494    
  13  Prefactor     58.628        41.967        .52395E-04   -1.4175    
  14  Prefactor     26.616        37.203        .77620E-04   -1.4676    
  15  norm          5.6134        5.8526        .16955E-03   -1.5234    
  16  Prefactor     5.3629        8.5884        .17358E-03   -1.5245    
  17  Prefactor     .10000E-03    1.9190        .10433E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10021E-03    47.178        .35177E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .23619        1.8924        .14660E-02   -1.5611    
  20  norm          .10000E-03    2.3573        .11478E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     2.7269        15.537        .24707E-03   -1.5378    
  22  Prefactor     45.382        54.268        .59528E-04   -1.4360    
  23  Prefactor     6.8737        19.165        .15305E-03   -1.5184    
  24  Prefactor     6.8543        20.346        .15311E-03   -1.5184    
  25  norm          8.2354        1.8367        .47176E-04   -1.5134    
  26  Prefactor     .10000E-03    9.3250        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     20.835        20.342        .87698E-04   -1.4795    
  28  norm          .10000E-03    16.920        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .98890        .22120        .23668E-03   -.93403    
  30  Prefactor     .74228        .20449        .28053E-03   -1.0189    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.96718e-08
Minuit parameter uncertainties:
  1  74.0303
  2  9.158
  3  16.2418
  4  1.34695e-05
  5  17.0558
  6  4.00347e-07
  7  0.00212342
  8  20.4572
  9  3.96299
  10  7.97827e-07
  11  28.0161
  12  4.76284
  13  41.9878
  14  37.2351
  15  5.8532
  16  8.59038
  17  1.65581e-06
  18  0.00630329
  19  1.3369
  20  1.01931e-05
  21  13.0229
  22  54.327
  23  19.1818
  24  20.3669
  25  1.83673
  26  1.34387e-05
  27  20.3492
  28  5.25654e-05
  29  0.221403
  30  0.2047
Done.

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

Extracting fit parameters...

4FGL J1438.9+3710
   Spectrum: LogParabola
282         norm:  1.147e+00  4.763e+00  1.000e-04  1.000e+04 ( 1.000e-12)
283        alpha:  2.310e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
284         beta:  1.080e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
285           Eb:  6.335e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
562    Prefactor:  7.423e-01  2.047e-01  0.000e+00  1.000e+01 ( 1.000e+00)
563        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
564        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
561   Normalization:  9.889e-01  2.214e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.07
Ra Dec: 219.740 37.175
Photon Flux Upper Limit: 6.72e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.30e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/667286/likelihoodResults_301795201_302054401_4FGL_J1438.9+3710_daily_bin241.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) = 5959.04760718
delta logL = 0.0183880673821

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5959.04731112
delta logL = 0.018684128072

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5959.047     FROM MIGRAD    STATUS=CONVERGED     45 CALLS      202 TOTAL
                     EDM=   .68E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.2181        4.6067        .10224E-01    .19367E-02
   2  alpha         1.8271        1.6295        .43215       -.61163E-05
   3  Normalizat    .99192        .16482        .46066E-01    .48467E-05
   4  Prefactor     .73975        .17247        .63512E-01    .24791E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.21811
  alpha      = 1.82713
  Normalizat = 0.991924
  Prefactor  = 0.739749
 **********
 **   18 **HESSE 
 **********

 FCN=   5959.047     FROM HESSE     STATUS=OK            33 CALLS      235 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.2181        4.2353        .28515E-03   -1.5487    
   2  alpha         1.8271        1.8251        .50960E-01   -.27251    
   3  Normalizat    .99192        .19145        .23635E-03   -.93301    
   4  Prefactor     .73975        .20000        .28095E-03   -1.0199    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.43884e-09
Minuit parameter uncertainties:
  1  4.23638
  2  2.07125
  3  0.191585
  4  0.200195
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/667286': 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) = 5959.04731111
delta logL = 0.0186841289169

Extracting fit parameters...

4FGL J1438.9+3710
   Spectrum: LogParabola
282         norm:  1.218e+00  4.236e+00  1.000e-04  1.000e+04 ( 1.000e-12)
283        alpha:  1.827e+00  2.071e+00  0.000e+00  5.000e+00 ( 1.000e+00)
284         beta:  1.080e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
285           Eb:  6.335e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
562    Prefactor:  7.397e-01  2.002e-01  0.000e+00  1.000e+01 ( 1.000e+00)
563        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
564        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
561   Normalization:  9.919e-01  1.916e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.07
Ra Dec: 219.740 37.175

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/667286/cmap_HighResolution_301795201_302054401_4FGL_J1438.9+3710_daily_bin241.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.30e-05', job_status='DONE', photon_flux_upper_limit='6.72e-08', time_completed='2021-09-10 03:31:47.417331', job_id='667286', GAL2='0.74', fit_tolerance='1e-08', EG2='0.99', EG='0.99', time_epoch_completed='1631269907.42', return_code2='0', ts='0.07', comment='SUCCESS', return_code='0', GAL='0.74', dlogl='1.87e-02', ts2='0.11', photon_index_error='0.00', photon_index='2.31' WHERE bin_id='241' AND source_name='4FGL J1438.9+3710' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 03:31:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0043>
Subject: Job 667286: <4FGL_J1438.9+3710_daily_bin241> in cluster <slac> Done

Job <4FGL_J1438.9+3710_daily_bin241> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Sep 10 03:16:12 2021
Job was executed on host(s) <bullet0043>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 03:16:14 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 10 03:16:14 2021
Terminated at Fri Sep 10 03:31:48 2021
Results reported at Fri Sep 10 03:31:48 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1438.9+3710_daily_bin241 219.74 37.1752 301795201 302054401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1438.9+3710 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   809.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             296.37 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   933 sec.
    Turnaround time :                            936 sec.

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

