/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 234 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 = 7419
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1209.8+1810_daily_bin18
RA = 182.466, Dec = 18.1776
tmin = 243993601, tmax = 244252801
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='373642', job_status='RUN', time_executed='2021-09-05 02:19:31.426522', time_epoch_executed='1630833571.43' WHERE source_name='4FGL J1209.8+1810' and cadence='daily' and bin_id='18'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/373642

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/373642/ft1_4FGL_J1209.8+1810_daily_bin18.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/373642/ft2_4FGL_J1209.8+1810_daily_bin18.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/373642/ft1_4FGL_J1209.8+1810_daily_bin18.fits outfile=/scratch/kocevski/373642/ft1_filteredMKT_4FGL_J1209.8+1810_daily_bin18.fits ra=182.466 dec=18.1776 rad=12.0 tmin=243993601.0 tmax=244252801.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 1.40
user 1.20
sys 0.17

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/373642/ft2_4FGL_J1209.8+1810_daily_bin18.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/373642/ft2_4FGL_J1209.8+1810_daily_bin18.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/373642/ft1_filteredMKT_4FGL_J1209.8+1810_daily_bin18.fits evtable="EVENTS" outfile="/scratch/kocevski/373642/ft1_filtered_4FGL_J1209.8+1810_daily_bin18.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.52
user 0.34
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/373642/ft1_filtered_4FGL_J1209.8+1810_daily_bin18.fits" evtable="EVENTS" scfile=/scratch/kocevski/373642/ft2_4FGL_J1209.8+1810_daily_bin18.fits sctable="SC_DATA" outfile=/scratch/kocevski/373642/ltcube_243993601_244252801_4FGL_J1209.8+1810_daily_bin18.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/373642/ft2_4FGL_J1209.8+1810_daily_bin18.fits
.....................!
real 12.54
user 12.18
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/373642/ft1_filtered_4FGL_J1209.8+1810_daily_bin18.fits evtable="EVENTS" scfile=/scratch/kocevski/373642/ft2_4FGL_J1209.8+1810_daily_bin18.fits sctable="SC_DATA" expcube=/scratch/kocevski/373642/ltcube_243993601_244252801_4FGL_J1209.8+1810_daily_bin18.fits outfile=/scratch/kocevski/373642/expmap_243993601_244252801_4FGL_J1209.8+1810_daily_bin18.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/373642/ltcube_243993601_244252801_4FGL_J1209.8+1810_daily_bin18.fits
.....................!
real 192.40
user 186.94
sys 5.09

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

Setting source of interest to:
4FGL J1209.8+1810 @ 182.466 18.1776

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/373642/ft1_filtered_4FGL_J1209.8+1810_daily_bin18.fits scfile=/scratch/kocevski/373642/ft2_4FGL_J1209.8+1810_daily_bin18.fits outfile=/scratch/kocevski/373642/cmap_243993601_244252801_4FGL_J1209.8+1810_daily_bin18.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=182.466 yref=18.1776 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.57
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/373642/ft1_filtered_4FGL_J1209.8+1810_daily_bin18.fits scfile=/scratch/kocevski/373642/ft2_4FGL_J1209.8+1810_daily_bin18.fits outfile=/scratch/kocevski/373642/cmap_HighResolution_243993601_244252801_4FGL_J1209.8+1810_daily_bin18.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=182.466 yref=18.1776 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.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/373642/ft1_filtered_4FGL_J1209.8+1810_daily_bin18.fits evtable="EVENTS" scfile=/scratch/kocevski/373642/ft2_4FGL_J1209.8+1810_daily_bin18.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/373642/Model_4FGL_J1209.8+1810_daily_bin18.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/373642/ft1_filtered_4FGL_J1209.8+1810_daily_bin18.fits.....................!
real 60.91
user 59.35
sys 1.34

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/373642/ft1_filtered_4FGL_J1209.8+1810_daily_bin18.fits', '/scratch/kocevski/373642/ft2_4FGL_J1209.8+1810_daily_bin18.fits', expMap='/scratch/kocevski/373642/expmap_243993601_244252801_4FGL_J1209.8+1810_daily_bin18.fits', expCube='/scratch/kocevski/373642/ltcube_243993601_244252801_4FGL_J1209.8+1810_daily_bin18.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/373642/Model_4FGL_J1209.8+1810_daily_bin18.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1209.8+1810'

4FGL J1209.8+1810
   Spectrum: PowerLaw
284    Prefactor:  1.095e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
285        Index:  2.411e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
286        Scale:  8.871e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/373642/ft1_filtered_4FGL_J1209.8+1810_daily_bin18.fits
Spacecraft file(s): /scratch/kocevski/373642/ft2_4FGL_J1209.8+1810_daily_bin18.fits
Exposure map: /scratch/kocevski/373642/expmap_243993601_244252801_4FGL_J1209.8+1810_daily_bin18.fits
Exposure cube: /scratch/kocevski/373642/ltcube_243993601_244252801_4FGL_J1209.8+1810_daily_bin18.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/373642/Model_4FGL_J1209.8+1810_daily_bin18.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) = 6390.63612452

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    47.343       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .74082E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.0003       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    7.3648       1.0000         .10000E-03   10000.    
     8 'norm      '    2.9020       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .11392E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.2717       1.0000         .10000E-03   10000.    
    11 'Prefactor '    69.659       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .73170       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .73394       1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.6414       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .27946       1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    7.3457       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    40.138       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.1277       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0943       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6140E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6390.631     FROM MIGRAD    STATUS=CONVERGED    549 CALLS     2778 TOTAL
                     EDM=   .45E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    14.738       -.87168E-06** at limit **
   2  Prefactor     47.343        39.804        .24429E-06   -.84920E-05
   3  Prefactor     .10008E-03    9.0460        .17262E-05** at limit **
   4  Prefactor     .10000E-03    2.0134       -.11940E-08** at limit **
   5  Prefactor     1.9998        1.6314        .77053E-07   -.34678E-03
   6  Prefactor     .10000E-03    40.787       -.86970E-06** at limit **
   7  Prefactor     7.3648        7.5620        .13302E-05    .27199E-04
   8  norm          2.9018        1.3109        .22393E-07   -.28391E-03
   9  Prefactor     .10000E-03    28.381        .11238E-05** at limit **
  10  Prefactor     1.2719        2.1208        .24182E-06   -.19308E-04
  11  Prefactor     69.661        78.596        .20913E-05    .60752E-06
  12  Prefactor     .73221        1.5622       -.19425E-06   -.85853E-03
  13  Prefactor     .73353        2.8619        .19005E-05    .55785E-04
  14  Prefactor     5.6412        2.6866        .36958E-07   -.40100E-04
  15  Prefactor     .10000E-03    10.355        .29771E-06** at limit **
  16  Prefactor     .10000E-03    7.5202       -.34220E-06** at limit **
  17  norm          .27948        .24143        .79212E-08   -.44225E-03
  18  norm          .10000E-03    1.9658       -.10338E-07** at limit **
  19  Prefactor     7.3459        11.974        .20126E-06   -.18783E-04
  20  Prefactor     .10000E-03    3.5146        .21171E-08** at limit **
  21  Prefactor     40.140        37.842       -.48758E-07   -.27931E-04
  22  Prefactor     .10000E-03    6.4317        .10525E-06** at limit **
  23  Normalizat    1.1277        .19375       -.85516E-06   -.18189E-03
  24  Prefactor     1.0943        .18373       -.13326E-06   -.18120E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 47.3429
  Prefactor  = 0.000100078
  Prefactor  = 0.0001
  Prefactor  = 1.99982
  Prefactor  = 0.000100002
  Prefactor  = 7.36476
  norm       = 2.90181
  Prefactor  = 0.000100001
  Prefactor  = 1.27189
  Prefactor  = 69.6607
  Prefactor  = 0.732207
  Prefactor  = 0.733531
  Prefactor  = 5.64115
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.279483
  norm       = 0.0001
  Prefactor  = 7.34595
  Prefactor  = 0.0001
  Prefactor  = 40.1397
  Prefactor  = 0.0001
  Normalizat = 1.12768
  Prefactor  = 1.09429
 **********
 **   18 **HESSE 
 **********

 FCN=   6390.631     FROM HESSE     STATUS=OK           403 CALLS     3181 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    15.179        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     47.343        39.857        .58276E-04   -1.4331    
   3  Prefactor     .10008E-03    37.296        .43485E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    2.0145        .11078E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     1.9998        1.6107        .88198E-04   -1.5425    
   6  Prefactor     .10000E-03    41.222        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     7.3648        7.5165        .73896E-03   -1.5165    
   8  norm          2.9018        1.3066        .59636E-04   -1.5367    
   9  Prefactor     .10000E-03    28.753        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     1.2719        2.0774        .14561E-03   -1.5482    
  11  Prefactor     69.661        78.068        .48095E-04   -1.4037    
  12  Prefactor     .73221        1.2057        .13930E-02   -1.5537    
  13  Prefactor     .73353        2.8687        .24760E-03   -1.5537    
  14  Prefactor     5.6412        2.6881        .87282E-04   -1.5233    
  15  Prefactor     .10000E-03    10.407        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    7.8115        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .27948        .23234        .34241E-03   -1.5602    
  18  norm          .10000E-03    1.9841        .10942E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     7.3459        11.925        .14799E-03   -1.5166    
  20  Prefactor     .10000E-03    3.5162        .14636E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     40.140        37.836        .63269E-04   -1.4440    
  22  Prefactor     .10000E-03    6.5569        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.1277        .23010        .25926E-03   -.88868    
  24  Prefactor     1.0943        .22040        .26453E-03   -.89649    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.35156e-09
Minuit parameter uncertainties:
  1  0.000147304
  2  39.8795
  3  0.00342386
  4  7.54306e-08
  5  1.61069
  6  0.000553127
  7  7.51746
  8  1.30665
  9  0.000346514
  10  2.07757
  11  78.1829
  12  1.2057
  13  2.86921
  14  2.68818
  15  9.42886e-05
  16  3.14321e-05
  17  0.23234
  18  1.66207e-06
  19  11.929
  20  2.2618e-07
  21  37.8585
  22  1.75686e-05
  23  0.230306
  24  0.220582
Done.

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

Extracting fit parameters...

4FGL J1209.8+1810
   Spectrum: PowerLaw
284    Prefactor:  7.322e-01  1.206e+00  1.000e-04  1.000e+04 ( 1.000e-12)
285        Index:  2.411e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
286        Scale:  8.871e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
611    Prefactor:  1.094e+00  2.206e-01  0.000e+00  1.000e+01 ( 1.000e+00)
612        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
613        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
610   Normalization:  1.128e+00  2.303e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.66
Ra Dec: 182.466 18.178
Photon Flux Upper Limit: 6.69e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.17e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/373642/likelihoodResults_243993601_244252801_4FGL_J1209.8+1810_daily_bin18.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) = 6390.27186893
delta logL = 0.35925419743

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6390.27155171
delta logL = 0.359571414389

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.0479       1.0000         .10000E-03   10000.    
     2 'Index     '    1.6032       1.0000          .0000       10.000    
     3 'Normalizat'    1.1353       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0882       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6140E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6390.272     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      247 TOTAL
                     EDM=   .40E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.0524        9.2529        .24231E-01   -.45097E-04
   2  Index         1.6046        2.1237        .28729       -.36622E-04
   3  Normalizat    1.1352        .18249        .58443E-01    .56513E-05
   4  Prefactor     1.0882        .18469        .59935E-01    .55742E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.05242
  Index      = 1.60465
  Normalizat = 1.13525
  Prefactor  = 1.08822
 **********
 **   18 **HESSE 
 **********

 FCN=   6390.272     FROM HESSE     STATUS=OK            35 CALLS      282 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.0524        1.4196        .12872E-02   -1.5503    
   2  Index         1.6046        .78492        .13047E-01   -.74650    
   3  Normalizat    1.1352        .21698        .25846E-03   -.88628    
   4  Prefactor     1.0882        .21940        .26506E-03   -.89844    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.00231e-09
Minuit parameter uncertainties:
  1  1.4196
  2  0.791033
  3  0.217151
  4  0.219585
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/373642': 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) = 6390.27154629
delta logL = 0.359576835032

Extracting fit parameters...

4FGL J1209.8+1810
   Spectrum: PowerLaw
284    Prefactor:  1.052e+00  1.420e+00  1.000e-04  1.000e+04 ( 1.000e-12)
285        Index:  1.605e+00  7.910e-01  0.000e+00  1.000e+01 (-1.000e+00)
286        Scale:  8.871e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
611    Prefactor:  1.088e+00  2.196e-01  0.000e+00  1.000e+01 ( 1.000e+00)
612        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
613        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
610   Normalization:  1.135e+00  2.172e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.38
Ra Dec: 182.466 18.178
Photon Index (Free Index): 1.60 +/- 0.79
Photon Flux (Free Index): 5.69e-09 +/- 8.87e-09
Energy Flux (Free Index): 1.27e-05 +/- 2.78e-05

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/373642/cmap_HighResolution_243993601_244252801_4FGL_J1209.8+1810_daily_bin18.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.17e-03', comment='SUCCESS', energy_flux2='1.27e-05', dlogl='3.60e-01', photon_flux2='5.69e-09', job_status='DONE', time_completed='2021-09-05 02:31:44.674210', photon_index_error2='0.79', photon_index2='1.60', ts='0.66', fit_tolerance='1e-08', GAL='1.09', photon_index_error='0.00', photon_flux_upper_limit='6.69e-08', energy_flux_error2='2.78e-05', EG='1.13', time_epoch_completed='1630834304.67', return_code='0', job_id='373642', GAL2='1.09', EG2='1.14', return_code2='0', photon_flux_error2='8.87e-09', ts2='1.38', photon_index='2.41' WHERE bin_id='18' AND source_name='4FGL J1209.8+1810' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 02:31:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0104>
Subject: Job 373642: <4FGL_J1209.8+1810_daily_bin18> in cluster <slac> Done

Job <4FGL_J1209.8+1810_daily_bin18> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sun Sep  5 02:15:27 2021
Job was executed on host(s) <bullet0104>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 02:15:29 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep  5 02:15:29 2021
Terminated at Sun Sep  5 02:31:45 2021
Results reported at Sun Sep  5 02:31:45 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1209.8+1810_daily_bin18 182.466 18.1776 243993601 244252801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1209.8+1810 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   732.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             245.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   975 sec.
    Turnaround time :                            978 sec.

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

