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


Performing analysis on: 4FGL_J1814.4+2953_monthly_bin133
RA = 273.615, Dec = 29.8943
tmin = 581731201, tmax = 584323201
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='322893', job_status='RUN', time_executed='2021-11-02 01:27:17.356210', time_epoch_executed='1635841637.36' WHERE source_name='4FGL J1814.4+2953' and cadence='monthly' and bin_id='133'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/322893

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

Retrieving the FT1 file...

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

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

Retrieving 458 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/322893/ft1_4FGL_J1814.4+2953_monthly_bin133.fits


Retrieving the FT1 file...

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

Retrieving 458 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/322893/ft2_4FGL_J1814.4+2953_monthly_bin133.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/322893/ft1_4FGL_J1814.4+2953_monthly_bin133.fits outfile=/scratch/kocevski/322893/ft1_filteredMKT_4FGL_J1814.4+2953_monthly_bin133.fits ra=273.615 dec=29.8943 rad=12.0 tmin=581731201.0 tmax=584323201.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 31.17
user 30.34
sys 0.66

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/322893/ft2_4FGL_J1814.4+2953_monthly_bin133.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/322893/ft2_4FGL_J1814.4+2953_monthly_bin133.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/322893/ft1_filteredMKT_4FGL_J1814.4+2953_monthly_bin133.fits evtable="EVENTS" outfile="/scratch/kocevski/322893/ft1_filtered_4FGL_J1814.4+2953_monthly_bin133.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.90
user 0.64
sys 0.20

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/322893/ft1_filtered_4FGL_J1814.4+2953_monthly_bin133.fits" evtable="EVENTS" scfile=/scratch/kocevski/322893/ft2_4FGL_J1814.4+2953_monthly_bin133.fits sctable="SC_DATA" outfile=/scratch/kocevski/322893/ltcube_581731201_584323201_4FGL_J1814.4+2953_monthly_bin133.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/322893/ft2_4FGL_J1814.4+2953_monthly_bin133.fits
.....................!
real 122.42
user 121.63
sys 0.40

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/322893/ft1_filtered_4FGL_J1814.4+2953_monthly_bin133.fits evtable="EVENTS" scfile=/scratch/kocevski/322893/ft2_4FGL_J1814.4+2953_monthly_bin133.fits sctable="SC_DATA" expcube=/scratch/kocevski/322893/ltcube_581731201_584323201_4FGL_J1814.4+2953_monthly_bin133.fits outfile=/scratch/kocevski/322893/expmap_581731201_584323201_4FGL_J1814.4+2953_monthly_bin133.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/322893/ltcube_581731201_584323201_4FGL_J1814.4+2953_monthly_bin133.fits
.....................!
real 192.93
user 187.04
sys 5.44

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

Setting source of interest to:
4FGL J1814.4+2953 @ 273.615 29.8943

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/322893/ft1_filtered_4FGL_J1814.4+2953_monthly_bin133.fits scfile=/scratch/kocevski/322893/ft2_4FGL_J1814.4+2953_monthly_bin133.fits outfile=/scratch/kocevski/322893/cmap_581731201_584323201_4FGL_J1814.4+2953_monthly_bin133.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=273.615 yref=29.8943 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.82
user 0.62
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/322893/ft1_filtered_4FGL_J1814.4+2953_monthly_bin133.fits scfile=/scratch/kocevski/322893/ft2_4FGL_J1814.4+2953_monthly_bin133.fits outfile=/scratch/kocevski/322893/cmap_HighResolution_581731201_584323201_4FGL_J1814.4+2953_monthly_bin133.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=273.615 yref=29.8943 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.80
user 0.61
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/322893/ft1_filtered_4FGL_J1814.4+2953_monthly_bin133.fits evtable="EVENTS" scfile=/scratch/kocevski/322893/ft2_4FGL_J1814.4+2953_monthly_bin133.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/322893/Model_4FGL_J1814.4+2953_monthly_bin133.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/322893/ft1_filtered_4FGL_J1814.4+2953_monthly_bin133.fits.....................!
real 891.36
user 888.43
sys 1.27

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/322893/ft1_filtered_4FGL_J1814.4+2953_monthly_bin133.fits', '/scratch/kocevski/322893/ft2_4FGL_J1814.4+2953_monthly_bin133.fits', expMap='/scratch/kocevski/322893/expmap_581731201_584323201_4FGL_J1814.4+2953_monthly_bin133.fits', expCube='/scratch/kocevski/322893/ltcube_581731201_584323201_4FGL_J1814.4+2953_monthly_bin133.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/322893/Model_4FGL_J1814.4+2953_monthly_bin133.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1814.4+2953'

4FGL J1814.4+2953
   Spectrum: PowerLaw
352    Prefactor:  2.583e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
353        Index:  2.553e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
354        Scale:  1.024e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/322893/ft1_filtered_4FGL_J1814.4+2953_monthly_bin133.fits
Spacecraft file(s): /scratch/kocevski/322893/ft2_4FGL_J1814.4+2953_monthly_bin133.fits
Exposure map: /scratch/kocevski/322893/expmap_581731201_584323201_4FGL_J1814.4+2953_monthly_bin133.fits
Exposure cube: /scratch/kocevski/322893/ltcube_581731201_584323201_4FGL_J1814.4+2953_monthly_bin133.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/322893/Model_4FGL_J1814.4+2953_monthly_bin133.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) = 117481.565886

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    12.519       1.0000         .10000E-03   10000.    
     2 'Prefactor '    21.283       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .84306E-02   1.0000         .10000E-03   10000.    
     4 'Prefactor '    7.4798       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .11521E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .26838       1.0000         .10000E-03   10000.    
     9 'norm      '    .11428E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    1.0922       1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.7503       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .77305       1.0000         .10000E-03   10000.    
    14 'norm      '    6.8730       1.0000         .10000E-03   10000.    
    15 'Prefactor '    9.8332       1.0000         .10000E-03   10000.    
    16 'norm      '    3.2658       1.0000         .10000E-03   10000.    
    17 'norm      '    .65949       1.0000         .10000E-03   10000.    
    18 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .98178       1.0000         .10000E-03   10000.    
    20 'Prefactor '    10.310       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.0436       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0239       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7690E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   117481.4     FROM MIGRAD    STATUS=CONVERGED    520 CALLS     2214 TOTAL
                     EDM=   .59E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.520        8.7406       -.17227E-05    .11268E-04
   2  Prefactor     21.280        19.758        .11165E-04    .67651E-04
   3  Prefactor     .10007E-03    .72519       -.38307E-06** at limit **
   4  Prefactor     7.4835        10.026        .10335E-05    .35202E-05
   5  Prefactor     .10000E-03    3.1178       -.12902E-07** at limit **
   6  Prefactor     .10000E-03    26.337       -.64983E-07** at limit **
   7  Prefactor     .10000E-03    .51350        .84247E-08** at limit **
   8  norm          .26850        .25764       -.35883E-07   -.79413E-03
   9  norm          .10000E-03    22.314        .21677E-06** at limit **
  10  Prefactor     .10000E-03    .20227        .45662E-07** at limit **
  11  norm          1.0922        .92167        .44201E-08    .16447E-04
  12  Prefactor     2.7504        1.0500        .26835E-07    .15757E-04
  13  Prefactor     .77354        .38541       -.18265E-08   -.55638E-03
  14  norm          6.8728        4.9468        .36295E-07   -.17915E-04
  15  Prefactor     9.8330        2.4493        .44498E-07   -.16795E-03
  16  norm          3.2657        3.4017        .12609E-05   -.10069E-04
  17  norm          .65949        .55026       -.65383E-08   -.40792E-04
  18  norm          .10000E-03    .67332E-01   -.28517E-08** at limit **
  19  Prefactor     .98176        1.7302        .38275E-07   -.11950E-04
  20  Prefactor     10.308        9.9428        .11672E-05    .64135E-05
  21  Normalizat    1.0436        .63100E-01   -.73118E-06    .44980E-03
  22  Prefactor     1.0240        .22297E-01    .44082E-07   -.37928E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.5197
  Prefactor  = 21.2802
  Prefactor  = 0.000100069
  Prefactor  = 7.48347
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.268497
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.09224
  Prefactor  = 2.7504
  Prefactor  = 0.773536
  norm       = 6.87275
  Prefactor  = 9.83298
  norm       = 3.26573
  norm       = 0.659495
  norm       = 0.0001
  Prefactor  = 0.981758
  Prefactor  = 10.308
  Normalizat = 1.04357
  Prefactor  = 1.02397
 **********
 **   18 **HESSE 
 **********

 FCN=   117481.4     FROM HESSE     STATUS=OK           368 CALLS     2582 TOTAL
                     EDM=   .40E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.520        8.7423        .11321E-03   -1.5000    
   2  Prefactor     21.280        19.854        .86822E-04   -1.4785    
   3  Prefactor     .10007E-03    .69856        .95555E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     7.4835        10.017        .14664E-03   -1.5161    
   5  Prefactor     .10000E-03    3.1349        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    26.842        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    .53722        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .26850        .26783        .16497E-02   -1.5604    
   9  norm          .10000E-03    22.824        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    .51287        .29765E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.0922        .92147        .29489E-03   -1.5499    
  12  Prefactor     2.7504        1.0576        .12273E-03   -1.5376    
  13  Prefactor     .77354        3.7457        .24678E-02   -1.5532    
  14  norm          6.8728        4.9471        .76519E-03   -1.5184    
  15  Prefactor     9.8330        2.4239        .63894E-03   -1.5081    
  16  norm          3.2657        3.4068        .22409E-03   -1.5347    
  17  norm          .65949        .51418        .20115E-02   -1.5546    
  18  norm          .10000E-03    .40948        .15516E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .98176        1.6917        .52405E-03   -1.5510    
  20  Prefactor     10.308        9.8355        .12479E-03   -1.5066    
  21  Normalizat    1.0436        .71659E-01    .40744E-03   -.91585    
  22  Prefactor     1.0240        .25532E-01    .14972E-03   -.91935    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.9772e-07
Minuit parameter uncertainties:
  1  8.7432
  2  19.8601
  3  0.000439517
  4  10.0192
  5  6.35142e-06
  6  3.84355e-05
  7  4.09353e-07
  8  0.267832
  9  1.85656e-05
  10  2.02195e-06
  11  0.92148
  12  1.05763
  13  3.40448
  14  4.94743
  15  2.42394
  16  3.407
  17  0.514184
  18  3.1711e-07
  19  1.6918
  20  9.83702
  21  0.0716653
  22  0.025532
Done.

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

Extracting fit parameters...

4FGL J1814.4+2953
   Spectrum: PowerLaw
352    Prefactor:  7.735e-01  3.404e+00  1.000e-04  1.000e+04 ( 1.000e-13)
353        Index:  2.553e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
354        Scale:  1.024e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
766    Prefactor:  1.024e+00  2.553e-02  0.000e+00  1.000e+01 ( 1.000e+00)
767        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
768        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
765   Normalization:  1.044e+00  7.167e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.06
Ra Dec: 273.615 29.894
Photon Flux Upper Limit: 2.19e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.71e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/322893/likelihoodResults_581731201_584323201_4FGL_J1814.4+2953_monthly_bin133.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) = 117479.534812
delta logL = 1.88347240872

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 117479.36177
delta logL = 2.05651419205

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .17801       1.0000         .10000E-03   10000.    
     2 'Index     '    .56833       1.0000          .0000       10.000    
     3 'Normalizat'    1.0442       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0241       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7690E+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=   117479.4     FROM MIGRAD    STATUS=CONVERGED    102 CALLS      315 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .17797        .38533        .22080E-02   -.61912E-02
   2  Index         .56819        .65081        .58143E-01   -.17613E-03
   3  Normalizat    1.0442        .68429E-01    .40729E-03    .10718E-04
   4  Prefactor     1.0240        .25121E-01    .14971E-03    .85050E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.177967
  Index      = 0.568186
  Normalizat = 1.04424
  Prefactor  = 1.02404
 **********
 **   18 **HESSE 
 **********

 FCN=   117479.4     FROM HESSE     STATUS=OK            27 CALLS      342 TOTAL
                     EDM=   .52E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .17797        .51345        .88321E-04   -1.5624    
   2  Index         .56819        .85126        .23257E-02   -1.0894    
   3  Normalizat    1.0442        .68467E-01    .16292E-04   -.91563    
   4  Prefactor     1.0240        .25135E-01    .59884E-05   -.91932    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.24576e-13
Minuit parameter uncertainties:
  1  0.513464
  2  0.871719
  3  0.0684723
  4  0.0251353
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/322893': 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) = 117479.36177
delta logL = 2.05651440968

Extracting fit parameters...

4FGL J1814.4+2953
   Spectrum: PowerLaw
352    Prefactor:  1.780e-01  5.135e-01  1.000e-04  1.000e+04 ( 1.000e-13)
353        Index:  5.682e-01  8.717e-01  0.000e+00  1.000e+01 (-1.000e+00)
354        Scale:  1.024e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
766    Prefactor:  1.024e+00  2.514e-02  0.000e+00  1.000e+01 ( 1.000e+00)
767        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
768        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
765   Normalization:  1.044e+00  6.847e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.17
Ra Dec: 273.615 29.894
Photon Index (Free Index): 0.57 +/- 0.87
Photon Flux (Free Index): 2.90e-10 +/- 3.25e-10
Energy Flux (Free Index): 9.21e-06 +/- 1.16e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  2.220e+00 [aplpy.core]
Saving /scratch/kocevski/322893/cmap_HighResolution_581731201_584323201_4FGL_J1814.4+2953_monthly_bin133.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.71e-03', comment='SUCCESS', energy_flux2='9.21e-06', dlogl='2.06e+00', photon_flux2='2.90e-10', job_status='DONE', time_completed='2021-11-02 04:00:43.133287', photon_index_error2='0.87', photon_index2='0.57', ts='0.06', fit_tolerance='1e-08', GAL='1.02', photon_index_error='0.00', photon_flux_upper_limit='2.19e-08', energy_flux_error2='1.16e-05', EG='1.04', time_epoch_completed='1635850843.13', return_code='0', job_id='322893', GAL2='1.02', EG2='1.04', return_code2='0', photon_flux_error2='3.25e-10', ts2='4.17', photon_index='2.55' WHERE bin_id='133' AND source_name='4FGL J1814.4+2953' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Tue Nov  2 04:00:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0137>
Subject: Job 322893: <4FGL_J1814.4+2953_monthly_bin133> in cluster <slac> Done

Job <4FGL_J1814.4+2953_monthly_bin133> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Tue Nov  2 00:50:15 2021
Job was executed on host(s) <bullet0137>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Nov  2 01:26:57 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Nov  2 01:26:57 2021
Terminated at Tue Nov  2 04:00:44 2021
Results reported at Tue Nov  2 04:00:44 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1814.4+2953_monthly_bin133 273.615 29.8943 581731201 584323201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1814.4+2953 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   9009.00 sec.
    Max Memory :                                 1265 MB
    Average Memory :                             496.33 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   9229 sec.
    Turnaround time :                            11429 sec.

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

