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


Performing analysis on: 4FGL_J1438.9+3710_daily_bin528
RA = 219.74, Dec = 37.1752
tmin = 376185601, tmax = 376444801
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='670234', job_status='RUN', time_executed='2021-09-10 03:26:20.417137', time_epoch_executed='1631269580.42' WHERE source_name='4FGL J1438.9+3710' and cadence='daily' and bin_id='528'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/670234

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/670234/ft1_4FGL_J1438.9+3710_daily_bin528.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/670234/ft2_4FGL_J1438.9+3710_daily_bin528.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/670234/ft1_4FGL_J1438.9+3710_daily_bin528.fits outfile=/scratch/kocevski/670234/ft1_filteredMKT_4FGL_J1438.9+3710_daily_bin528.fits ra=219.74 dec=37.1752 rad=12.0 tmin=376185601.0 tmax=376444801.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.37
user 3.15
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/670234/ft2_4FGL_J1438.9+3710_daily_bin528.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/670234/ft1_filteredMKT_4FGL_J1438.9+3710_daily_bin528.fits evtable="EVENTS" outfile="/scratch/kocevski/670234/ft1_filtered_4FGL_J1438.9+3710_daily_bin528.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.61
user 0.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/670234/ft1_filtered_4FGL_J1438.9+3710_daily_bin528.fits" evtable="EVENTS" scfile=/scratch/kocevski/670234/ft2_4FGL_J1438.9+3710_daily_bin528.fits sctable="SC_DATA" outfile=/scratch/kocevski/670234/ltcube_376185601_376444801_4FGL_J1438.9+3710_daily_bin528.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/670234/ft2_4FGL_J1438.9+3710_daily_bin528.fits
.....................!
real 12.00
user 11.66
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/670234/ft1_filtered_4FGL_J1438.9+3710_daily_bin528.fits evtable="EVENTS" scfile=/scratch/kocevski/670234/ft2_4FGL_J1438.9+3710_daily_bin528.fits sctable="SC_DATA" expcube=/scratch/kocevski/670234/ltcube_376185601_376444801_4FGL_J1438.9+3710_daily_bin528.fits outfile=/scratch/kocevski/670234/expmap_376185601_376444801_4FGL_J1438.9+3710_daily_bin528.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/670234/ltcube_376185601_376444801_4FGL_J1438.9+3710_daily_bin528.fits
.....................!
real 191.83
user 186.26
sys 5.19

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/670234/ft1_filtered_4FGL_J1438.9+3710_daily_bin528.fits scfile=/scratch/kocevski/670234/ft2_4FGL_J1438.9+3710_daily_bin528.fits outfile=/scratch/kocevski/670234/cmap_376185601_376444801_4FGL_J1438.9+3710_daily_bin528.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.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/670234/ft1_filtered_4FGL_J1438.9+3710_daily_bin528.fits scfile=/scratch/kocevski/670234/ft2_4FGL_J1438.9+3710_daily_bin528.fits outfile=/scratch/kocevski/670234/cmap_HighResolution_376185601_376444801_4FGL_J1438.9+3710_daily_bin528.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.55
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10793E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    7.0193       1.0000         .10000E-03   10000.    
     3 'norm      '    11.663       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    17.844       1.0000         .10000E-03   10000.    
     6 'norm      '    16.973       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.3609       1.0000         .10000E-03   10000.    
    12 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    80.076       1.0000         .10000E-03   10000.    
    14 'Prefactor '    45.253       1.0000         .10000E-03   10000.    
    15 'norm      '    5.0624       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.6221       1.0000         .10000E-03   10000.    
    19 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10071E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .84263       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    9.3151       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    1.8774       1.0000         .10000E-03   10000.    
    26 'Prefactor '    9.1808       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.3995       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .65095       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=   6913.159     FROM MIGRAD    STATUS=CONVERGED    765 CALLS     3965 TOTAL
                     EDM=   .61E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    145.09       -.10020E-05** at limit **
   2  Prefactor     7.0215        7.7613       -.13724E-06   -.17355E-03
   3  norm          11.665        17.421        .71873E-06   -.80770E-05
   4  Prefactor     .10000E-03    6.8801       -.21431E-05** at limit **
   5  Prefactor     17.836        22.069        .23765E-05   -.89011E-05
   6  norm          16.974        5.4167        .12567E-06    .50575E-04
   7  Prefactor     .10000E-03    5.3926       -.18376E-05** at limit **
   8  Prefactor     .10000E-03    8.1054       -.25606E-05** at limit **
   9  Prefactor     .10000E-03    1.1884       -.49237E-07** at limit **
  10  norm          .10000E-03    3.7912        .31099E-07** at limit **
  11  Prefactor     1.3755        101.56       -.77410E-05   -.62237E-04
  12  norm          .10000E-03    4.1433        .17793E-05** at limit **
  13  Prefactor     80.076        49.529       -.40362E-06    .12881E-04
  14  Prefactor     45.269        44.566        .10012E-04   -.79942E-05
  15  norm          5.0622        6.9575       -.15476E-06   -.84735E-04
  16  Prefactor     .10000E-03    18.681       -.30603E-06** at limit **
  17  Prefactor     .10000E-03    4.0726       -.10589E-05** at limit **
  18  Prefactor     4.6225        4.4641       -.21564E-08    .74932E-04
  19  norm          .10000E-03    .70620        .56456E-08** at limit **
  20  norm          .10003E-03    1.9401        .12630E-05** at limit **
  21  Prefactor     .83323        5.4353       -.68867E-06   -.48385E-03
  22  Prefactor     .10000E-03    67.711        .72999E-06** at limit **
  23  Prefactor     9.3094        16.939       -.27641E-06   -.11532E-03
  24  Prefactor     .10000E-03    10.580        .60674E-06** at limit **
  25  norm          1.8772        1.7394       -.20580E-06   -.72827E-03
  26  Prefactor     9.1823        14.114        .10930E-05   -.66565E-04
  27  Prefactor     .10000E-03    5.2654        .21136E-05** at limit **
  28  norm          .10000E-03    4.4351       -.10002E-05** at limit **
  29  Normalizat    1.3991        .17950       -.11419E-05    .23515E-04
  30  Prefactor     .65129        .17655       -.52862E-06   -.14720E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 7.02154
  norm       = 11.6655
  Prefactor  = 0.0001
  Prefactor  = 17.8358
  norm       = 16.9743
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 1.37548
  norm       = 0.0001
  Prefactor  = 80.0762
  Prefactor  = 45.2686
  norm       = 5.0622
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.62252
  norm       = 0.0001
  norm       = 0.000100025
  Prefactor  = 0.833233
  Prefactor  = 0.0001
  Prefactor  = 9.3094
  Prefactor  = 0.0001
  norm       = 1.87715
  Prefactor  = 9.18227
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.39911
  Prefactor  = 0.651286
 **********
 **   18 **HESSE 
 **********

 FCN=   6913.159     FROM HESSE     STATUS=OK           586 CALLS     4551 TOTAL
                     EDM=   .48E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    145.47        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     7.0215        7.7884        .15142E-03   -1.5178    
   3  norm          11.665        17.488        .11730E-03   -1.5025    
   4  Prefactor     .10000E-03    6.8763        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     17.836        22.160        .94815E-04   -1.4863    
   6  norm          16.974        5.4253        .97216E-04   -1.4884    
   7  Prefactor     .10000E-03    5.3937        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    8.1062        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    1.2057        .88490E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    3.7921        .15811E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     1.3755        105.88        .37435E-03   -1.5473    
  12  norm          .10000E-03    4.1893        .16515E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     80.076        49.387        .44881E-04   -1.3916    
  14  Prefactor     45.269        44.086        .59600E-04   -1.4361    
  15  norm          5.0622        6.9529        .17871E-03   -1.5258    
  16  Prefactor     .10000E-03    18.882        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    4.1042        .16371E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     4.6225        4.4683        .16789E-03   -1.5278    
  19  norm          .10000E-03    .72907        .13623E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10003E-03    7.3994        .20004E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .83323        18.577        .31194E-02   -1.5525    
  22  Prefactor     .10000E-03    67.886        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     9.3094        16.947        .13131E-03   -1.5098    
  24  Prefactor     .10000E-03    10.662        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          1.8772        1.7230        .80069E-04   -1.5434    
  26  Prefactor     9.1823        14.046        .13227E-03   -1.5102    
  27  Prefactor     .10000E-03    5.2656        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .10000E-03    4.4412        .17097E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.3991        .21359        .21770E-03   -.80654    
  30  Prefactor     .65129        .20797        .32047E-03   -1.0547    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.75793e-09
Minuit parameter uncertainties:
  1  0.000117443
  2  7.78947
  3  17.4959
  4  4.06304e-06
  5  22.17
  6  5.42547
  7  7.93669e-06
  8  1.71451e-05
  9  7.99205e-07
  10  1.42772e-06
  11  24.1796
  12  3.60118e-06
  13  49.4126
  14  44.1182
  15  6.95398
  16  6.22725e-05
  17  6.68107e-06
  18  4.46865
  19  2.75466e-06
  20  0.000868431
  21  7.87105
  22  5.78764e-05
  23  16.9554
  24  2.54512e-05
  25  1.72308
  26  14.0514
  27  1.85624e-06
  28  2.56568e-06
  29  0.213728
  30  0.208214
Done.

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

Extracting fit parameters...

4FGL J1438.9+3710
   Spectrum: LogParabola
282         norm:  1.000e-04  3.601e-06  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:  6.513e-01  2.082e-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:  1.399e+00  2.137e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/670234/likelihoodResults_376185601_376444801_4FGL_J1438.9+3710_daily_bin528.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) = 6913.16057911
delta logL = -0.00113641568259

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6913.15944272
delta logL = -3.12666088575e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3129       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3991       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .65130       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6913.159     FROM MIGRAD    STATUS=FAILED        85 CALLS      233 TOTAL
                     EDM=   .71E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10011E-03    951.50        .16521E-02** at limit **
   2  alpha         2.3511        3.4037        .16519       -.18943E-05
   3  Normalizat    1.3991        .13589        .21770E-03    .10988E-04
   4  Prefactor     .65129        .14246        .32047E-03    .97556E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6913.159     FROM SIMPLEX   STATUS=UNCHANGED    169 CALLS      402 TOTAL
                     EDM=   .12E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10011E-03    951.50        .31856E-03** at limit **
   2  alpha         2.3511        3.4037        .27996E-05   -.18943E-05
   3  Normalizat    1.3991        .13589        .20725E-06    .10988E-04
   4  Prefactor     .65129        .14246        .19623E-06    .97556E-05
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6913.159     FROM MIGRAD    STATUS=CONVERGED     31 CALLS      433 TOTAL
                     EDM=   .25E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    4.2135        .33042E-03** at limit **
   2  alpha         2.3937        3.5804        .66077E-02   -.92908E-08
   3  Normalizat    1.3991        .19520        .43539E-04   -.47575E-04
   4  Prefactor     .65129        .20464        .12819E-04   -.31395E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.39365
  Normalizat = 1.39911
  Prefactor  = 0.651289
 **********
 **   18 **HESSE 
 **********

 FCN=   6913.159     FROM HESSE     STATUS=OK            23 CALLS      456 TOTAL
                     EDM=   .27E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    4.2131        .66084E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.3937        3.6826        .13215E-02   -.42551E-01
   3  Normalizat    1.3991        .19520        .87079E-05   -.80654    
   4  Prefactor     .65129        .20463        .25638E-05   -1.0547    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.69638e-12
Minuit parameter uncertainties:
  1  1.17725e-06
  2  238.846
  3  0.195303
  4  0.204861
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/670234': 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) = 6913.15944263
delta logL = 6.27742338111e-08

Extracting fit parameters...

4FGL J1438.9+3710
   Spectrum: LogParabola
282         norm:  1.000e-04  1.177e-06  1.000e-04  1.000e+04 ( 1.000e-12)
283        alpha:  2.394e+00  2.388e+02  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:  6.513e-01  2.049e-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:  1.399e+00  1.953e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 219.740 37.175

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/670234/cmap_HighResolution_376185601_376444801_4FGL_J1438.9+3710_daily_bin528.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.03e-05', job_status='DONE', photon_flux_upper_limit='5.92e-08', time_completed='2021-09-10 03:41:39.394441', job_id='670234', GAL2='0.65', fit_tolerance='1e-08', EG2='1.40', EG='1.40', time_epoch_completed='1631270499.39', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.65', dlogl='6.28e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.31' WHERE bin_id='528' AND source_name='4FGL J1438.9+3710' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 03:41:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0085>
Subject: Job 670234: <4FGL_J1438.9+3710_daily_bin528> in cluster <slac> Done

Job <4FGL_J1438.9+3710_daily_bin528> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Fri Sep 10 03:26:09 2021
Job was executed on host(s) <bullet0085>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 03:26:10 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:26:10 2021
Terminated at Fri Sep 10 03:41:40 2021
Results reported at Fri Sep 10 03:41:40 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1438.9+3710_daily_bin528 219.74 37.1752 376185601 376444801 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 :                                   914.11 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             349.97 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   929 sec.
    Turnaround time :                            931 sec.

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

