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


Performing analysis on: 4FGL_J1418.4+3543_daily_bin1130
RA = 214.623, Dec = 35.7192
tmin = 532224001, tmax = 532483201
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='320687', job_status='RUN', time_executed='2021-09-09 08:18:55.179165', time_epoch_executed='1631200735.18' WHERE source_name='4FGL J1418.4+3543' and cadence='daily' and bin_id='1130'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/320687

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/320687/ft1_4FGL_J1418.4+3543_daily_bin1130.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/320687/ft2_4FGL_J1418.4+3543_daily_bin1130.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/320687/ft1_4FGL_J1418.4+3543_daily_bin1130.fits outfile=/scratch/kocevski/320687/ft1_filteredMKT_4FGL_J1418.4+3543_daily_bin1130.fits ra=214.623 dec=35.7192 rad=12.0 tmin=532224001.0 tmax=532483201.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.66
user 3.29
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/320687/ft2_4FGL_J1418.4+3543_daily_bin1130.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/320687/ft1_filteredMKT_4FGL_J1418.4+3543_daily_bin1130.fits evtable="EVENTS" outfile="/scratch/kocevski/320687/ft1_filtered_4FGL_J1418.4+3543_daily_bin1130.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/320687/ft1_filtered_4FGL_J1418.4+3543_daily_bin1130.fits" evtable="EVENTS" scfile=/scratch/kocevski/320687/ft2_4FGL_J1418.4+3543_daily_bin1130.fits sctable="SC_DATA" outfile=/scratch/kocevski/320687/ltcube_532224001_532483201_4FGL_J1418.4+3543_daily_bin1130.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/320687/ft2_4FGL_J1418.4+3543_daily_bin1130.fits
.....................!
real 11.71
user 11.37
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/320687/ft1_filtered_4FGL_J1418.4+3543_daily_bin1130.fits evtable="EVENTS" scfile=/scratch/kocevski/320687/ft2_4FGL_J1418.4+3543_daily_bin1130.fits sctable="SC_DATA" expcube=/scratch/kocevski/320687/ltcube_532224001_532483201_4FGL_J1418.4+3543_daily_bin1130.fits outfile=/scratch/kocevski/320687/expmap_532224001_532483201_4FGL_J1418.4+3543_daily_bin1130.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/320687/ltcube_532224001_532483201_4FGL_J1418.4+3543_daily_bin1130.fits
.....................!
real 189.56
user 185.14
sys 4.07

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/320687/ft1_filtered_4FGL_J1418.4+3543_daily_bin1130.fits scfile=/scratch/kocevski/320687/ft2_4FGL_J1418.4+3543_daily_bin1130.fits outfile=/scratch/kocevski/320687/cmap_532224001_532483201_4FGL_J1418.4+3543_daily_bin1130.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.52
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/320687/ft1_filtered_4FGL_J1418.4+3543_daily_bin1130.fits scfile=/scratch/kocevski/320687/ft2_4FGL_J1418.4+3543_daily_bin1130.fits outfile=/scratch/kocevski/320687/cmap_HighResolution_532224001_532483201_4FGL_J1418.4+3543_daily_bin1130.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.53
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/320687/ft1_filtered_4FGL_J1418.4+3543_daily_bin1130.fits evtable="EVENTS" scfile=/scratch/kocevski/320687/ft2_4FGL_J1418.4+3543_daily_bin1130.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/320687/Model_4FGL_J1418.4+3543_daily_bin1130.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/320687/ft1_filtered_4FGL_J1418.4+3543_daily_bin1130.fits.....................!
real 51.94
user 50.49
sys 1.19

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/320687/ft1_filtered_4FGL_J1418.4+3543_daily_bin1130.fits', '/scratch/kocevski/320687/ft2_4FGL_J1418.4+3543_daily_bin1130.fits', expMap='/scratch/kocevski/320687/expmap_532224001_532483201_4FGL_J1418.4+3543_daily_bin1130.fits', expCube='/scratch/kocevski/320687/ltcube_532224001_532483201_4FGL_J1418.4+3543_daily_bin1130.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/320687/Model_4FGL_J1418.4+3543_daily_bin1130.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/320687/ft1_filtered_4FGL_J1418.4+3543_daily_bin1130.fits
Spacecraft file(s): /scratch/kocevski/320687/ft2_4FGL_J1418.4+3543_daily_bin1130.fits
Exposure map: /scratch/kocevski/320687/expmap_532224001_532483201_4FGL_J1418.4+3543_daily_bin1130.fits
Exposure cube: /scratch/kocevski/320687/ltcube_532224001_532483201_4FGL_J1418.4+3543_daily_bin1130.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/320687/Model_4FGL_J1418.4+3543_daily_bin1130.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) = 6506.92117786

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    44.384       1.0000         .10000E-03   10000.    
     4 'norm      '    6.0813       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .11970E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.5625       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.0997       1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.4405       1.0000         .10000E-03   10000.    
    13 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    17.923       1.0000         .10000E-03   10000.    
    16 'Prefactor '    19.611       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    14.718       1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.1257       1.0000         .10000E-03   10000.    
    21 'norm      '    5.3512       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.3352       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .76904       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=   6506.919     FROM MIGRAD    STATUS=CONVERGED    559 CALLS     2721 TOTAL
                     EDM=   .20E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    25.166        .31460E-05** at limit **
   2  Prefactor     .10000E-03    8.9337       -.66849E-06** at limit **
   3  Prefactor     44.410        72.461        .28017E-04   -.79423E-05
   4  norm          6.0814        1.9972       -.68095E-07   -.10771E-03
   5  Prefactor     .10000E-03    1.6231        .60804E-07** at limit **
   6  norm          .10000E-03    6.2982       -.13280E-06** at limit **
   7  Prefactor     .10000E-03    9.9996        .10931E-05** at limit **
   8  Prefactor     .10048E-03    21.158       -.81412E-06** at limit **
   9  norm          .10000E-03    1.1619       -.85594E-08** at limit **
  10  Prefactor     6.5626        11.348       -.37486E-06   -.23459E-04
  11  Prefactor     1.1096        54.523       -.42128E-05   -.27684E-03
  12  Prefactor     4.4415        4.3100        .82529E-07   -.37354E-03
  13  norm          .10000E-03    4.9407       -.45865E-07** at limit **
  14  Prefactor     .10000E-03    47.656        .25598E-04** at limit **
  15  norm          17.923        8.4823       -.87282E-07   -.87301E-03
  16  Prefactor     19.612        21.311       -.32497E-06   -.17736E-04
  17  Prefactor     .10000E-03    13.647       -.11098E-05** at limit **
  18  norm          .10000E-03    6.8944       -.13472E-07** at limit **
  19  Prefactor     14.721        14.532        .59380E-06   -.13539E-04
  20  Prefactor     1.1260        3.9871       -.13356E-05   -.99757E-03
  21  norm          5.3514        1.9354        .96550E-07    .11264E-03
  22  Prefactor     .10000E-03    43.970       -.25855E-04** at limit **
  23  Normalizat    1.3349        .18275       -.22160E-05    .12577E-03
  24  Prefactor     .76931        .19101        .98181E-06   -.14104E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 44.4096
  norm       = 6.08144
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100476
  norm       = 0.0001
  Prefactor  = 6.56258
  Prefactor  = 1.10962
  Prefactor  = 4.44149
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 17.9234
  Prefactor  = 19.6125
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 14.7207
  Prefactor  = 1.12597
  norm       = 5.35137
  Prefactor  = 0.0001
  Normalizat = 1.33485
  Prefactor  = 0.769309
 **********
 **   18 **HESSE 
 **********

 FCN=   6506.919     FROM HESSE     STATUS=OK           399 CALLS     3120 TOTAL
                     EDM=   .58E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    25.174        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    8.9469        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     44.410        71.963        .60179E-04   -1.4374    
   4  norm          6.0814        2.0003        .62945E-04   -1.5215    
   5  Prefactor     .10000E-03    1.6363        .10032E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    6.3061        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    10.022        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10048E-03    177.42        .70036E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    1.1646        .84898E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     6.5626        10.991        .15665E-03   -1.5196    
  11  Prefactor     1.1096        54.431        .45336E-02   -1.5497    
  12  Prefactor     4.4415        4.3058        .15594E-03   -1.5286    
  13  norm          .10000E-03    4.9418        .17504E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    47.764        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          17.923        8.4905        .47303E-03   -1.4861    
  16  Prefactor     19.612        21.310        .90443E-04   -1.4822    
  17  Prefactor     .10000E-03    13.656        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    6.9177        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     14.721        14.509        .10440E-03   -1.4940    
  20  Prefactor     1.1260        3.9517        .29476E-03   -1.5496    
  21  norm          5.3514        1.9320        .64446E-04   -1.5245    
  22  Prefactor     .10000E-03    43.549        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.3349        .21659        .22468E-03   -.82532    
  24  Prefactor     .76931        .22779        .31828E-03   -1.0087    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.75378e-09
Minuit parameter uncertainties:
  1  2.25709e-05
  2  5.86385e-06
  3  72.1045
  4  2.00034
  5  2.90653e-06
  6  1.21953e-05
  7  1.31908e-05
  8  0.018438
  9  1.71865e-06
  10  10.9945
  11  15.5575
  12  4.30613
  13  8.36575e-06
  14  1.86537e-05
  15  8.49111
  16  21.3178
  17  1.15808e-05
  18  4.68979e-06
  19  14.5127
  20  3.95263
  21  1.932
  22  1.60764e-05
  23  0.216735
  24  0.228064
Done.

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

Extracting fit parameters...

4FGL J1418.4+3543
   Spectrum: LogParabola
283         norm:  1.000e-04  1.719e-06  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:  7.693e-01  2.281e-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:  1.335e+00  2.167e-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: 3.78e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.15e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/320687/likelihoodResults_532224001_532483201_4FGL_J1418.4+3543_daily_bin1130.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) = 6506.92268442
delta logL = -0.00387597638291

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6506.9188084
delta logL = 4.21296135755e-08

Fit tolerance = 1e-08

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

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

 FCN=   6506.919     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      238 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    198.03        .85012E-03** at limit **
   2  alpha         1.8475        2.6210        .50000       -.61914E-07
   3  Normalizat    1.3348        .76376E-01    .22468E-03    .35085E-04
   4  Prefactor     .76931        .84959E-01    .31828E-03    .29897E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.84751
  Normalizat = 1.33485
  Prefactor  = 0.769314
 **********
 **   18 **HESSE 
 **********

 FCN=   6506.919     FROM HESSE     STATUS=OK            29 CALLS      267 TOTAL
                     EDM=   .98E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.4112        .17002E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.8475        3.4140        .50000       -.26405    
   3  Normalizat    1.3348        .20275        .44936E-04   -.82532    
   4  Prefactor     .76931        .22542        .12731E-04   -1.0087    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.76949e-12
Minuit parameter uncertainties:
  1  4.7753e-07
  2  108.997
  3  0.20287
  4  0.225685
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/320687': 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) = 6506.91880756
delta logL = 8.80916559254e-07

Extracting fit parameters...

4FGL J1418.4+3543
   Spectrum: LogParabola
283         norm:  1.000e-04  4.775e-07  1.000e-04  1.000e+04 ( 1.000e-12)
284        alpha:  1.848e+00  1.090e+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:  7.693e-01  2.257e-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:  1.335e+00  2.029e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/320687/cmap_HighResolution_532224001_532483201_4FGL_J1418.4+3543_daily_bin1130.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.15e-05', job_status='DONE', photon_flux_upper_limit='3.78e-08', time_completed='2021-09-09 08:31:10.924482', job_id='320687', GAL2='0.77', fit_tolerance='1e-08', EG2='1.33', EG='1.33', time_epoch_completed='1631201470.92', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.77', dlogl='8.81e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.02' WHERE bin_id='1130' AND source_name='4FGL J1418.4+3543' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 08:31:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0163>
Subject: Job 320687: <4FGL_J1418.4+3543_daily_bin1130> in cluster <slac> Done

Job <4FGL_J1418.4+3543_daily_bin1130> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Thu Sep  9 08:15:51 2021
Job was executed on host(s) <bullet0163>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 08:15:52 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:15:52 2021
Terminated at Thu Sep  9 08:31:11 2021
Results reported at Thu Sep  9 08:31:11 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1418.4+3543_daily_bin1130 214.623 35.7192 532224001 532483201 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 :                                   688.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             278.18 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   919 sec.
    Turnaround time :                            920 sec.

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

