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


Performing analysis on: 4FGL_J1418.4+3543_daily_bin1443
RA = 214.623, Dec = 35.7192
tmin = 613353601, tmax = 613612801
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='322256', job_status='RUN', time_executed='2021-09-09 08:21:19.020321', time_epoch_executed='1631200879.02' WHERE source_name='4FGL J1418.4+3543' and cadence='daily' and bin_id='1443'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/322256

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/322256/ft1_4FGL_J1418.4+3543_daily_bin1443.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/322256/ft2_4FGL_J1418.4+3543_daily_bin1443.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/322256/ft1_4FGL_J1418.4+3543_daily_bin1443.fits outfile=/scratch/kocevski/322256/ft1_filteredMKT_4FGL_J1418.4+3543_daily_bin1443.fits ra=214.623 dec=35.7192 rad=12.0 tmin=613353601.0 tmax=613612801.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 2.72
user 2.48
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/322256/ft2_4FGL_J1418.4+3543_daily_bin1443.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/322256/ft2_4FGL_J1418.4+3543_daily_bin1443.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/322256/ft1_filteredMKT_4FGL_J1418.4+3543_daily_bin1443.fits evtable="EVENTS" outfile="/scratch/kocevski/322256/ft1_filtered_4FGL_J1418.4+3543_daily_bin1443.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.54
user 0.32
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/322256/ft1_filtered_4FGL_J1418.4+3543_daily_bin1443.fits" evtable="EVENTS" scfile=/scratch/kocevski/322256/ft2_4FGL_J1418.4+3543_daily_bin1443.fits sctable="SC_DATA" outfile=/scratch/kocevski/322256/ltcube_613353601_613612801_4FGL_J1418.4+3543_daily_bin1443.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/322256/ft2_4FGL_J1418.4+3543_daily_bin1443.fits
.....................!
real 12.99
user 12.62
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/322256/ft1_filtered_4FGL_J1418.4+3543_daily_bin1443.fits evtable="EVENTS" scfile=/scratch/kocevski/322256/ft2_4FGL_J1418.4+3543_daily_bin1443.fits sctable="SC_DATA" expcube=/scratch/kocevski/322256/ltcube_613353601_613612801_4FGL_J1418.4+3543_daily_bin1443.fits outfile=/scratch/kocevski/322256/expmap_613353601_613612801_4FGL_J1418.4+3543_daily_bin1443.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/322256/ltcube_613353601_613612801_4FGL_J1418.4+3543_daily_bin1443.fits
.....................!
real 190.56
user 185.15
sys 4.99

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

Setting source of interest to:
4FGL J1418.4+3543 @ 214.623 35.7192

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/322256/ft1_filtered_4FGL_J1418.4+3543_daily_bin1443.fits scfile=/scratch/kocevski/322256/ft2_4FGL_J1418.4+3543_daily_bin1443.fits outfile=/scratch/kocevski/322256/cmap_613353601_613612801_4FGL_J1418.4+3543_daily_bin1443.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=214.623 yref=35.7192 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.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/322256/ft1_filtered_4FGL_J1418.4+3543_daily_bin1443.fits scfile=/scratch/kocevski/322256/ft2_4FGL_J1418.4+3543_daily_bin1443.fits outfile=/scratch/kocevski/322256/cmap_HighResolution_613353601_613612801_4FGL_J1418.4+3543_daily_bin1443.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=214.623 yref=35.7192 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/322256/ft1_filtered_4FGL_J1418.4+3543_daily_bin1443.fits evtable="EVENTS" scfile=/scratch/kocevski/322256/ft2_4FGL_J1418.4+3543_daily_bin1443.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/322256/Model_4FGL_J1418.4+3543_daily_bin1443.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/322256/ft1_filtered_4FGL_J1418.4+3543_daily_bin1443.fits.....................!
real 65.99
user 64.68
sys 1.14

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/322256/ft1_filtered_4FGL_J1418.4+3543_daily_bin1443.fits', '/scratch/kocevski/322256/ft2_4FGL_J1418.4+3543_daily_bin1443.fits', expMap='/scratch/kocevski/322256/expmap_613353601_613612801_4FGL_J1418.4+3543_daily_bin1443.fits', expCube='/scratch/kocevski/322256/ltcube_613353601_613612801_4FGL_J1418.4+3543_daily_bin1443.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/322256/Model_4FGL_J1418.4+3543_daily_bin1443.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1418.4+3543'

4FGL J1418.4+3543
   Spectrum: LogParabola
283         norm:  4.095e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
284        alpha:  2.016e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
285         beta:  6.612e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
286           Eb:  8.292e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/322256/ft1_filtered_4FGL_J1418.4+3543_daily_bin1443.fits
Spacecraft file(s): /scratch/kocevski/322256/ft2_4FGL_J1418.4+3543_daily_bin1443.fits
Exposure map: /scratch/kocevski/322256/expmap_613353601_613612801_4FGL_J1418.4+3543_daily_bin1443.fits
Exposure cube: /scratch/kocevski/322256/ltcube_613353601_613612801_4FGL_J1418.4+3543_daily_bin1443.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/322256/Model_4FGL_J1418.4+3543_daily_bin1443.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) = 9069.99538275

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    49.212       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    59.631       1.0000         .10000E-03   10000.    
     4 'norm      '    1.8462       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .91136       1.0000         .10000E-03   10000.    
     6 'norm      '    .10271E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10068E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .32112E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10356E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    18.558       1.0000         .10000E-03   10000.    
    12 'Prefactor '    22.002       1.0000         .10000E-03   10000.    
    13 'norm      '    .10120E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    33.338       1.0000         .10000E-03   10000.    
    15 'norm      '    1.8539       1.0000         .10000E-03   10000.    
    16 'Prefactor '    19.087       1.0000         .10000E-03   10000.    
    17 'Prefactor '    79.138       1.0000         .10000E-03   10000.    
    18 'norm      '    .10216E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .50820       1.0000         .10000E-03   10000.    
    21 'norm      '    .96617       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .99901       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .99496       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5780E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   9069.983     FROM MIGRAD    STATUS=CONVERGED    515 CALLS     3096 TOTAL
                     EDM=   .96E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     49.201        51.440        .25615E-05    .39401E-04
   2  Prefactor     .10000E-03    5.7160        .70617E-06** at limit **
   3  Prefactor     59.599        49.016        .52845E-05    .17562E-03
   4  norm          1.8463        1.0076        .47193E-07   -.30230E-03
   5  Prefactor     .91309        2.8425        .10270E-05    .10368E-03
   6  norm          .10000E-03    7.8709        .61656E-06** at limit **
   7  Prefactor     .10000E-03    5.0826        .63797E-08** at limit **
   8  Prefactor     .10000E-03    6.0136        .86486E-07** at limit **
   9  norm          .10000E-03    1.4572        .37636E-06** at limit **
  10  Prefactor     .10000E-03    6.0160        .21694E-06** at limit **
  11  Prefactor     18.561        13.893       -.79811E-06   -.21446E-03
  12  Prefactor     22.003        5.2308       -.16868E-06   -.69394E-03
  13  norm          .10000E-03    6.7969       -.41375E-06** at limit **
  14  Prefactor     33.337        23.733        .53975E-06   -.68399E-04
  15  norm          1.8556        5.0317        .10223E-04   -.72861E-03
  16  Prefactor     19.099        33.780       -.60472E-05   -.12761E-03
  17  Prefactor     79.096        33.315        .53440E-05    .60624E-03
  18  norm          .10000E-03    5.9176        .31612E-06** at limit **
  19  Prefactor     .10000E-03    11.033       -.51044E-06** at limit **
  20  Prefactor     .50584        4.0765       -.70301E-06   -.17898E-03
  21  norm          .96593        .83887       -.40630E-07   -.48783E-03
  22  Prefactor     .10000E-03    20.521       -.31062E-06** at limit **
  23  Normalizat    .99839        .15270        .98703E-07   -.28065E-03
  24  Prefactor     .99556        .16303       -.34242E-05   -.55926E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 49.2008
  Prefactor  = 0.0001
  Prefactor  = 59.5994
  norm       = 1.8463
  Prefactor  = 0.913089
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 18.5609
  Prefactor  = 22.0028
  norm       = 0.0001
  Prefactor  = 33.3366
  norm       = 1.85563
  Prefactor  = 19.0986
  Prefactor  = 79.0956
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.505845
  norm       = 0.965928
  Prefactor  = 0.0001
  Normalizat = 0.998391
  Prefactor  = 0.99556
 **********
 **   18 **HESSE 
 **********

 FCN=   9069.983     FROM HESSE     STATUS=OK           395 CALLS     3491 TOTAL
                     EDM=   .65E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     49.201        51.462        .57163E-04   -1.4304    
   2  Prefactor     .10000E-03    5.7248        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     59.599        49.251        .51956E-04   -1.4162    
   4  norm          1.8463        1.0040        .68183E-04   -1.5436    
   5  Prefactor     .91309        2.7966        .26810E-03   -1.5517    
   6  norm          .10000E-03    7.9298        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    5.0913        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    6.0337        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    8.4712        .21897E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    6.0278        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     18.561        13.867        .92973E-04   -1.4846    
  12  Prefactor     22.003        5.2181        .85393E-04   -1.4769    
  13  norm          .10000E-03    6.8185        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     33.337        23.769        .69401E-04   -1.4553    
  15  norm          1.8556        5.0758        .15308E-02   -1.5436    
  16  Prefactor     19.099        33.767        .91676E-04   -1.4834    
  17  Prefactor     79.096        33.485        .22572E-03   -1.3927    
  18  norm          .10000E-03    6.0009        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    11.260        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .50584        11.152        .35526E-02   -1.5566    
  21  norm          .96593        .80918        .76847E-04   -1.5511    
  22  Prefactor     .10000E-03    20.524        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .99839        .17963        .24187E-03   -.93084    
  24  Prefactor     .99556        .19144        .27545E-03   -.92878    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.47202e-08
Minuit parameter uncertainties:
  1  51.5083
  2  3.56964e-05
  3  49.2847
  4  1.00404
  5  2.79698
  6  1.96607e-05
  7  8.79449e-06
  8  2.50928e-05
  9  0.000175296
  10  3.7063e-05
  11  13.8689
  12  5.21816
  13  7.05023e-06
  14  23.7753
  15  5.07697
  16  33.8006
  17  33.4933
  18  3.10598e-05
  19  8.77647e-05
  20  4.75069
  21  0.809186
  22  1.84653e-05
  23  0.179737
  24  0.19157
Done.

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

Extracting fit parameters...

4FGL J1418.4+3543
   Spectrum: LogParabola
283         norm:  1.000e-04  1.753e-04  1.000e-04  1.000e+04 ( 1.000e-12)
284        alpha:  2.016e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
285         beta:  6.612e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
286           Eb:  8.292e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
575    Prefactor:  9.956e-01  1.916e-01  0.000e+00  1.000e+01 ( 1.000e+00)
576        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
577        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
574   Normalization:  9.984e-01  1.797e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 214.623 35.719
Photon Flux Upper Limit: 4.62e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.63e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/322256/likelihoodResults_613353601_613612801_4FGL_J1418.4+3543_daily_bin1443.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) = 9069.98323679
delta logL = -0.000561727487366

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9069.98267666
delta logL = -1.59407500178e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .11168E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0889       1.0000          .0000       5.0000    
     3 'Normalizat'    .99808       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99596       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5780E+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=   9069.983     FROM MIGRAD    STATUS=FAILED       102 CALLS      265 TOTAL
                     EDM=   .78E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10420E-03    1492.2        .21629E-02** at limit **
   2  alpha         2.3751        2.6868        .16751       -.26534E-05
   3  Normalizat    .99839        .35989E-01    .24186E-03    .13772E-03
   4  Prefactor     .99556        .41162E-01    .27545E-03    .85518E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   9069.983     FROM SIMPLEX   STATUS=PROGRESS     147 CALLS      412 TOTAL
                     EDM=   .71E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10389E-03    1492.2        .64251E-03** at limit **
   2  alpha         2.3750        2.6868        .59370E-04   -.26534E-05
   3  Normalizat    .99839        .35989E-01    .13377E-05    .13772E-03
   4  Prefactor     .99556        .41162E-01    .10224E-05    .85518E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9069.983     FROM MIGRAD    STATUS=CONVERGED     42 CALLS      454 TOTAL
                     EDM=   .31E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    19.179        .86517E-04** at limit **
   2  alpha         2.4008        3.6157        .67004E-01   -.16967E-08
   3  Normalizat    .99839        .16575        .96746E-05    .79907E-05
   4  Prefactor     .99556        .18946        .11018E-04    .14033E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.4008
  Normalizat = 0.998388
  Prefactor  = 0.995564
 **********
 **   18 **HESSE 
 **********

 FCN=   9069.983     FROM HESSE     STATUS=OK            23 CALLS      477 TOTAL
                     EDM=   .38E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    18.998        .17303E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.4008        3.5113        .26802E-02   -.39690E-01
   3  Normalizat    .99839        .16540        .19349E-05   -.93084    
   4  Prefactor     .99556        .18905        .22036E-05   -.92878    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.79978e-13
Minuit parameter uncertainties:
  1  4.07478e-06
  2  159.389
  3  0.165486
  4  0.189178
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/322256': 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) = 9069.98267184
delta logL = 3.21650259139e-06

Extracting fit parameters...

4FGL J1418.4+3543
   Spectrum: LogParabola
283         norm:  1.000e-04  4.075e-06  1.000e-04  1.000e+04 ( 1.000e-12)
284        alpha:  2.401e+00  1.594e+02  0.000e+00  5.000e+00 ( 1.000e+00)
285         beta:  6.612e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
286           Eb:  8.292e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
575    Prefactor:  9.956e-01  1.892e-01  0.000e+00  1.000e+01 ( 1.000e+00)
576        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
577        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
574   Normalization:  9.984e-01  1.655e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 214.623 35.719

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/322256/cmap_HighResolution_613353601_613612801_4FGL_J1418.4+3543_daily_bin1443.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.63e-05', job_status='DONE', photon_flux_upper_limit='4.62e-08', time_completed='2021-09-09 08:36:50.124580', job_id='322256', GAL2='1.00', fit_tolerance='1e-08', EG2='1.00', EG='1.00', time_epoch_completed='1631201810.12', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.00', dlogl='3.22e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.02' WHERE bin_id='1443' AND source_name='4FGL J1418.4+3543' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 08:36:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0219>
Subject: Job 322256: <4FGL_J1418.4+3543_daily_bin1443> in cluster <slac> Done

Job <4FGL_J1418.4+3543_daily_bin1443> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Thu Sep  9 08:21:05 2021
Job was executed on host(s) <bullet0219>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 08:21:07 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep  9 08:21:07 2021
Terminated at Thu Sep  9 08:36:50 2021
Results reported at Thu Sep  9 08:36:50 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1418.4+3543_daily_bin1443 214.623 35.7192 613353601 613612801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1418.4+3543 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   896.18 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             300.72 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   943 sec.
    Turnaround time :                            945 sec.

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

