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


Performing analysis on: 4FGL_J1438.9+3710_daily_bin978
RA = 219.74, Dec = 37.1752
tmin = 492825601, tmax = 493084801
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='673195', job_status='RUN', time_executed='2021-09-10 03:39:06.592185', time_epoch_executed='1631270346.59' WHERE source_name='4FGL J1438.9+3710' and cadence='daily' and bin_id='978'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/673195

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/673195/ft1_4FGL_J1438.9+3710_daily_bin978.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/673195/ft2_4FGL_J1438.9+3710_daily_bin978.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/673195/ft1_4FGL_J1438.9+3710_daily_bin978.fits outfile=/scratch/kocevski/673195/ft1_filteredMKT_4FGL_J1438.9+3710_daily_bin978.fits ra=219.74 dec=37.1752 rad=12.0 tmin=492825601.0 tmax=493084801.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 3.71
user 3.52
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/673195/ft2_4FGL_J1438.9+3710_daily_bin978.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/673195/ft1_filteredMKT_4FGL_J1438.9+3710_daily_bin978.fits evtable="EVENTS" outfile="/scratch/kocevski/673195/ft1_filtered_4FGL_J1438.9+3710_daily_bin978.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.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/673195/ft1_filtered_4FGL_J1438.9+3710_daily_bin978.fits" evtable="EVENTS" scfile=/scratch/kocevski/673195/ft2_4FGL_J1438.9+3710_daily_bin978.fits sctable="SC_DATA" outfile=/scratch/kocevski/673195/ltcube_492825601_493084801_4FGL_J1438.9+3710_daily_bin978.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/673195/ft2_4FGL_J1438.9+3710_daily_bin978.fits
.....................!
real 11.83
user 11.49
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/673195/ft1_filtered_4FGL_J1438.9+3710_daily_bin978.fits evtable="EVENTS" scfile=/scratch/kocevski/673195/ft2_4FGL_J1438.9+3710_daily_bin978.fits sctable="SC_DATA" expcube=/scratch/kocevski/673195/ltcube_492825601_493084801_4FGL_J1438.9+3710_daily_bin978.fits outfile=/scratch/kocevski/673195/expmap_492825601_493084801_4FGL_J1438.9+3710_daily_bin978.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/673195/ltcube_492825601_493084801_4FGL_J1438.9+3710_daily_bin978.fits
.....................!
real 190.11
user 184.93
sys 4.75

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/673195/ft1_filtered_4FGL_J1438.9+3710_daily_bin978.fits scfile=/scratch/kocevski/673195/ft2_4FGL_J1438.9+3710_daily_bin978.fits outfile=/scratch/kocevski/673195/cmap_492825601_493084801_4FGL_J1438.9+3710_daily_bin978.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.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/673195/ft1_filtered_4FGL_J1438.9+3710_daily_bin978.fits scfile=/scratch/kocevski/673195/ft2_4FGL_J1438.9+3710_daily_bin978.fits outfile=/scratch/kocevski/673195/cmap_HighResolution_492825601_493084801_4FGL_J1438.9+3710_daily_bin978.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.37
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/673195/ft1_filtered_4FGL_J1438.9+3710_daily_bin978.fits', '/scratch/kocevski/673195/ft2_4FGL_J1438.9+3710_daily_bin978.fits', expMap='/scratch/kocevski/673195/expmap_492825601_493084801_4FGL_J1438.9+3710_daily_bin978.fits', expCube='/scratch/kocevski/673195/ltcube_492825601_493084801_4FGL_J1438.9+3710_daily_bin978.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/673195/Model_4FGL_J1438.9+3710_daily_bin978.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/673195/ft1_filtered_4FGL_J1438.9+3710_daily_bin978.fits
Spacecraft file(s): /scratch/kocevski/673195/ft2_4FGL_J1438.9+3710_daily_bin978.fits
Exposure map: /scratch/kocevski/673195/expmap_492825601_493084801_4FGL_J1438.9+3710_daily_bin978.fits
Exposure cube: /scratch/kocevski/673195/ltcube_492825601_493084801_4FGL_J1438.9+3710_daily_bin978.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/673195/Model_4FGL_J1438.9+3710_daily_bin978.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) = 5636.22021281

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    44.088       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    2.9161       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    4.4386       1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.1210       1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.7325       1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.6151       1.0000         .10000E-03   10000.    
    10 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .45233       1.0000         .10000E-03   10000.    
    13 'Prefactor '    19.884       1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.8326       1.0000         .10000E-03   10000.    
    15 'norm      '    5.3240       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    15.450       1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.9336       1.0000         .10000E-03   10000.    
    19 'norm      '    2.6998       1.0000         .10000E-03   10000.    
    20 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10763E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    12.829       1.0000         .10000E-03   10000.    
    24 'Prefactor '    3.5881       1.0000         .10000E-03   10000.    
    25 'norm      '    8.6796       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .93340E-01   1.0000         .10000E-03   10000.    
    27 'Prefactor '    10.480       1.0000         .10000E-03   10000.    
    28 'norm      '    8.1416       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .62830       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.0651       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=   5636.215     FROM MIGRAD    STATUS=CONVERGED    781 CALLS     3936 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     44.126        76.372        .66886E-06    .52763E-04
   2  Prefactor     .10000E-03    4.3737        .11451E-06** at limit **
   3  norm          2.9158        9.0438        .16065E-05    .34944E-03
   4  Prefactor     .10000E-03    11.107       -.95491E-06** at limit **
   5  Prefactor     .10000E-03    21.916       -.38203E-06** at limit **
   6  norm          4.4386        3.0450       -.24317E-07   -.12299E-03
   7  Prefactor     3.1091        52.495       -.11464E-05   -.34252E-04
   8  Prefactor     5.7527        41.781        .18767E-05   -.18030E-04
   9  Prefactor     3.6146        2.8183        .14182E-06    .14007E-03
  10  norm          .10000E-03    3.7554       -.20713E-06** at limit **
  11  Prefactor     .10000E-03    8.3242       -.20489E-06** at limit **
  12  norm          .46099        15.456        .97966E-05   -.28998E-03
  13  Prefactor     19.865        36.686       -.58022E-06   -.35141E-04
  14  Prefactor     4.8318        43.073        .21679E-05    .27199E-04
  15  norm          5.3240        5.5465       -.19426E-06   -.25157E-03
  16  Prefactor     .10000E-03    3.6797        .69764E-07** at limit **
  17  Prefactor     15.450        8.8833       -.36247E-08    .14365E-03
  18  Prefactor     4.9337        8.9156        .87054E-06    .16804E-03
  19  norm          2.6996        1.5694        .52495E-07   -.15231E-04
  20  norm          .10000E-03    1.9609       -.30427E-06** at limit **
  21  Prefactor     .10000E-03    5.6776       -.58391E-06** at limit **
  22  Prefactor     .10000E-03    82.120       -.67898E-07** at limit **
  23  Prefactor     12.828        17.072       -.30362E-06   -.26238E-04
  24  Prefactor     3.5856        12.857        .17728E-05    .17647E-03
  25  norm          8.6855        1.8572        .57544E-08   -.31066E-03
  26  Prefactor     .10014E-03    6.7287       -.48710E-06** at limit **
  27  Prefactor     10.477        13.783        .11639E-06   -.66692E-04
  28  norm          8.1426        8.9446        .87832E-08    .36855E-04
  29  Normalizat    .62839        .17545       -.43797E-05   -.27988E-03
  30  Prefactor     1.0650        .18242        .25056E-05    .48627E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 44.1255
  Prefactor  = 0.0001
  norm       = 2.91584
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 4.43863
  Prefactor  = 3.1091
  Prefactor  = 5.7527
  Prefactor  = 3.6146
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.460988
  Prefactor  = 19.8652
  Prefactor  = 4.83175
  norm       = 5.324
  Prefactor  = 0.0001
  Prefactor  = 15.4498
  Prefactor  = 4.9337
  norm       = 2.69963
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 12.8284
  Prefactor  = 3.58556
  norm       = 8.68555
  Prefactor  = 0.000100135
  Prefactor  = 10.4772
  norm       = 8.14264
  Normalizat = 0.628394
  Prefactor  = 1.06498
 **********
 **   18 **HESSE 
 **********

 FCN=   5636.215     FROM HESSE     STATUS=OK           604 CALLS     4540 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     44.126        76.751        .60379E-04   -1.4378    
   2  Prefactor     .10000E-03    4.5018        .30660E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          2.9158        9.1620        .23791E-03   -1.5366    
   4  Prefactor     .10000E-03    11.239        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    22.732        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          4.4386        3.0428        .10485E-03   -1.5287    
   7  Prefactor     3.1091        54.614        .22950E-03   -1.5355    
   8  Prefactor     5.7527        43.221        .16776E-03   -1.5228    
   9  Prefactor     3.6146        2.8189        .10689E-03   -1.5328    
  10  norm          .10000E-03    3.7606        .14217E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    8.3369        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .46099        16.101        .25908E-02   -1.5572    
  13  Prefactor     19.865        36.595        .89821E-04   -1.4816    
  14  Prefactor     4.8318        43.288        .18300E-03   -1.5268    
  15  norm          5.3240        5.5475        .17418E-03   -1.5246    
  16  Prefactor     .10000E-03    3.6855        .14064E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     15.450        8.8897        .10190E-03   -1.4922    
  18  Prefactor     4.9337        8.9551        .18107E-03   -1.5264    
  19  norm          2.6996        1.5682        .64224E-04   -1.5379    
  20  norm          .10000E-03    2.0059        .10275E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    5.7349        .17437E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    82.733        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     12.828        16.831        .11183E-03   -1.4991    
  24  Prefactor     3.5856        12.731        .21333E-03   -1.5329    
  25  norm          8.6855        1.8888        .41764E-04   -1.5118    
  26  Prefactor     .10014E-03    13.271        .58386E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     10.477        13.798        .12377E-03   -1.5060    
  28  norm          8.1426        8.9537        .14051E-03   -1.5137    
  29  Normalizat    .62839        .20124        .25637E-03   -1.0679    
  30  Prefactor     1.0650        .21046        .22917E-03   -.90594    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.02979e-09
Minuit parameter uncertainties:
  1  76.9233
  2  2.09192e-05
  3  9.16636
  4  0.000248292
  5  0.000130171
  6  3.04287
  7  26.0889
  8  31.568
  9  2.81897
  10  3.32008e-05
  11  4.2862e-05
  12  5.4498
  13  36.6359
  14  28.952
  15  5.54802
  16  5.37606e-06
  17  8.89041
  18  8.95751
  19  1.5682
  20  3.39109e-05
  21  0.000112751
  22  4.61622e-05
  23  16.8373
  24  12.7406
  25  1.88879
  26  0.00267979
  27  13.8026
  28  8.95519
  29  0.201476
  30  0.210623
Done.

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

Extracting fit parameters...

4FGL J1438.9+3710
   Spectrum: LogParabola
282         norm:  4.610e-01  5.450e+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:  1.065e+00  2.106e-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:  6.284e-01  2.015e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/673195/likelihoodResults_492825601_493084801_4FGL_J1438.9+3710_daily_bin978.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) = 5635.06830011
delta logL = 1.14710406362

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5634.99416674
delta logL = 1.22123743901

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .34668       1.0000         .10000E-03   10000.    
     2 'alpha     '    4.9957       1.0000          .0000       5.0000    
     3 'Normalizat'    .53714       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1301       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5634.994     FROM MIGRAD    STATUS=CONVERGED    123 CALLS      376 TOTAL
                     EDM=   .91E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .34434        .32105        .30510E-04   -.41622E-03
   2  alpha         5.0000        3.2550        .50000       -.30326E-05
   3  Normalizat    .53718        .18972        .27562E-03   -.53540E-04
   4  Prefactor     1.1300        .21092        .22309E-03   -.50646E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.344335
  alpha      = 4.99999
  Normalizat = 0.537182
  Prefactor  = 1.13005
 **********
 **   18 **HESSE 
 **********

 FCN=   5634.994     FROM HESSE     STATUS=OK            29 CALLS      405 TOTAL
                     EDM=   .91E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .34434        .31970        .12204E-05   -1.5591    
   2  alpha         5.0000        3.2495        .50000        1.5678    
   3  Normalizat    .53718        .18991        .11025E-04   -1.1072    
   4  Prefactor     1.1300        .21111        .44617E-04   -.88512    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.07975e-10
Minuit parameter uncertainties:
  1  0.319706
  2  0.00879191
  3  0.190143
  4  0.211271
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/673195': 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) = 5634.9941633
delta logL = 1.22124087686

Extracting fit parameters...

4FGL J1438.9+3710
   Spectrum: LogParabola
282         norm:  3.443e-01  3.197e-01  1.000e-04  1.000e+04 ( 1.000e-12)
283        alpha:  5.000e+00  8.792e-03  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:  1.130e+00  2.113e-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:  5.372e-01  1.901e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.69
Ra Dec: 219.740 37.175
Photon Index (Free Index): 5.00 +/- 0.01
Photon Flux (Free Index): 6.68e-08 +/- 6.23e-08
Energy Flux (Free Index): 9.10e-06 +/- 8.50e-06

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/673195/cmap_HighResolution_492825601_493084801_4FGL_J1438.9+3710_daily_bin978.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.29e-05', comment='SUCCESS', energy_flux2='9.10e-06', dlogl='1.22e+00', photon_flux2='6.68e-08', job_status='DONE', time_completed='2021-09-10 03:52:27.878079', photon_index_error2='0.01', photon_index2='5.00', ts='0.01', fit_tolerance='1e-08', GAL='1.06', photon_index_error='0.00', photon_flux_upper_limit='6.67e-08', energy_flux_error2='8.50e-06', EG='0.63', time_epoch_completed='1631271147.88', return_code='0', job_id='673195', GAL2='1.13', EG2='0.54', return_code2='0', photon_flux_error2='6.23e-08', ts2='2.69', photon_index='2.31' WHERE bin_id='978' AND source_name='4FGL J1438.9+3710' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 03:52:27 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0067>
Subject: Job 673195: <4FGL_J1438.9+3710_daily_bin978> in cluster <slac> Done

Job <4FGL_J1438.9+3710_daily_bin978> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Fri Sep 10 03:36:02 2021
Job was executed on host(s) <bullet0067>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 03:36:04 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:36:04 2021
Terminated at Fri Sep 10 03:52:28 2021
Results reported at Fri Sep 10 03:52:28 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1438.9+3710_daily_bin978 219.74 37.1752 492825601 493084801 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 :                                   798.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             287.68 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   984 sec.
    Turnaround time :                            986 sec.

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

