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


Performing analysis on: 4FGL_J1209.8+1810_daily_bin293
RA = 182.466, Dec = 18.1776
tmin = 315273601, tmax = 315532801
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='375215', job_status='RUN', time_executed='2021-09-05 02:20:39.985060', time_epoch_executed='1630833639.99' WHERE source_name='4FGL J1209.8+1810' and cadence='daily' and bin_id='293'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/375215

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/375215/ft1_4FGL_J1209.8+1810_daily_bin293.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/375215/ft2_4FGL_J1209.8+1810_daily_bin293.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/375215/ft1_4FGL_J1209.8+1810_daily_bin293.fits outfile=/scratch/kocevski/375215/ft1_filteredMKT_4FGL_J1209.8+1810_daily_bin293.fits ra=182.466 dec=18.1776 rad=12.0 tmin=315273601.0 tmax=315532801.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.76
user 3.50
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/375215/ft1_filtered_4FGL_J1209.8+1810_daily_bin293.fits" evtable="EVENTS" scfile=/scratch/kocevski/375215/ft2_4FGL_J1209.8+1810_daily_bin293.fits sctable="SC_DATA" outfile=/scratch/kocevski/375215/ltcube_315273601_315532801_4FGL_J1209.8+1810_daily_bin293.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/375215/ft2_4FGL_J1209.8+1810_daily_bin293.fits
.....................!
real 11.87
user 11.50
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/375215/ft1_filtered_4FGL_J1209.8+1810_daily_bin293.fits evtable="EVENTS" scfile=/scratch/kocevski/375215/ft2_4FGL_J1209.8+1810_daily_bin293.fits sctable="SC_DATA" expcube=/scratch/kocevski/375215/ltcube_315273601_315532801_4FGL_J1209.8+1810_daily_bin293.fits outfile=/scratch/kocevski/375215/expmap_315273601_315532801_4FGL_J1209.8+1810_daily_bin293.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/375215/ltcube_315273601_315532801_4FGL_J1209.8+1810_daily_bin293.fits
.....................!
real 190.24
user 185.06
sys 4.71

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/375215/ft1_filtered_4FGL_J1209.8+1810_daily_bin293.fits scfile=/scratch/kocevski/375215/ft2_4FGL_J1209.8+1810_daily_bin293.fits outfile=/scratch/kocevski/375215/cmap_315273601_315532801_4FGL_J1209.8+1810_daily_bin293.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.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/375215/ft1_filtered_4FGL_J1209.8+1810_daily_bin293.fits scfile=/scratch/kocevski/375215/ft2_4FGL_J1209.8+1810_daily_bin293.fits outfile=/scratch/kocevski/375215/cmap_HighResolution_315273601_315532801_4FGL_J1209.8+1810_daily_bin293.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.57
user 0.39
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/375215/ft1_filtered_4FGL_J1209.8+1810_daily_bin293.fits', '/scratch/kocevski/375215/ft2_4FGL_J1209.8+1810_daily_bin293.fits', expMap='/scratch/kocevski/375215/expmap_315273601_315532801_4FGL_J1209.8+1810_daily_bin293.fits', expCube='/scratch/kocevski/375215/ltcube_315273601_315532801_4FGL_J1209.8+1810_daily_bin293.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/375215/Model_4FGL_J1209.8+1810_daily_bin293.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/375215/ft1_filtered_4FGL_J1209.8+1810_daily_bin293.fits
Spacecraft file(s): /scratch/kocevski/375215/ft2_4FGL_J1209.8+1810_daily_bin293.fits
Exposure map: /scratch/kocevski/375215/expmap_315273601_315532801_4FGL_J1209.8+1810_daily_bin293.fits
Exposure cube: /scratch/kocevski/375215/ltcube_315273601_315532801_4FGL_J1209.8+1810_daily_bin293.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/375215/Model_4FGL_J1209.8+1810_daily_bin293.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) = 6235.86335977

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10393E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10145E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.3277       1.0000         .10000E-03   10000.    
     6 'Prefactor '    43.930       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10129E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    14.678       1.0000         .10000E-03   10000.    
     9 'Prefactor '    12.183       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .13623E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    49.677       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .48998       1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.0751       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10074E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.4672       1.0000         .10000E-03   10000.    
    17 'norm      '    4.0682       1.0000         .10000E-03   10000.    
    18 'norm      '    .13716E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    21.075       1.0000         .10000E-03   10000.    
    21 'Prefactor '    70.552       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.1038       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .97236       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=   6235.823     FROM MIGRAD    STATUS=CONVERGED    543 CALLS     3115 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    19.417        .97700E-05** at limit **
   2  Prefactor     .10000E-03    30.164        .85193E-05** at limit **
   3  Prefactor     .10000E-03    33.011       -.11022E-04** at limit **
   4  Prefactor     .10000E-03    5.9329        .26120E-05** at limit **
   5  Prefactor     1.3278        1.2739        .24740E-06    .19374E-03
   6  Prefactor     44.070        137.25        .20721E-03   -.10689E-04
   7  Prefactor     .10000E-03    3.6928       -.31370E-06** at limit **
   8  norm          14.679        3.1216        .28842E-06   -.21890E-03
   9  Prefactor     12.194        23.879        .37730E-05   -.16188E-03
  10  Prefactor     .10000E-03    4.2066        .30650E-05** at limit **
  11  Prefactor     49.720        79.392        .56089E-04   -.42232E-04
  12  Prefactor     .50259        3.0676       -.16521E-06   -.78582E-03
  13  Prefactor     5.0688        4.8972        .74944E-06   -.79254E-03
  14  Prefactor     .10000E-03    1.4604        .95872E-07** at limit **
  15  Prefactor     .10000E-03    14.200       -.10729E-04** at limit **
  16  Prefactor     4.4651        5.2588        .37995E-06   -.51550E-03
  17  norm          4.0681        .58997        .13390E-06   -.59777E-02
  18  norm          .10001E-03    3.9676        .26827E-05** at limit **
  19  Prefactor     .10000E-03    6.9080       -.57415E-05** at limit **
  20  Prefactor     21.074        17.494        .83529E-06   -.20334E-03
  21  Prefactor     70.550        38.438       -.14190E-05    .28442E-04
  22  Prefactor     .10000E-03    3.9952       -.50256E-06** at limit **
  23  Normalizat    1.1036        .22497       -.10301E-04   -.41353E-03
  24  Prefactor     .97253        .19962       -.23983E-05   -.69941E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 1.32783
  Prefactor  = 44.0704
  Prefactor  = 0.000100001
  norm       = 14.6785
  Prefactor  = 12.1939
  Prefactor  = 0.000100001
  Prefactor  = 49.7199
  Prefactor  = 0.502594
  Prefactor  = 5.06876
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.4651
  norm       = 4.06811
  norm       = 0.000100007
  Prefactor  = 0.0001
  Prefactor  = 21.0736
  Prefactor  = 70.5496
  Prefactor  = 0.0001
  Normalizat = 1.10357
  Prefactor  = 0.972533
 **********
 **   18 **HESSE 
 **********

 FCN=   6235.823     FROM HESSE     STATUS=OK           393 CALLS     3508 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    20.030        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    30.228        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    33.368        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    5.9464        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     1.3278        1.2993        .84865E-04   -1.5478    
   6  Prefactor     44.070        137.16        .30244E-03   -1.4379    
   7  Prefactor     .10000E-03    3.6992        .14819E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          14.679        3.1239        .62197E-04   -1.4942    
   9  Prefactor     12.194        23.866        .11477E-03   -1.5009    
  10  Prefactor     .10000E-03    8.6576        .29765E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     49.720        79.252        .28448E-03   -1.4297    
  12  Prefactor     .50259        10.064        .21717E-02   -1.5566    
  13  Prefactor     5.0688        4.9556        .14300E-03   -1.5258    
  14  Prefactor     .10000E-03    1.4930        .93100E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    14.208        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     4.4651        5.1939        .18836E-03   -1.5285    
  17  norm          4.0681        .59024        .21555E-04   -1.5305    
  18  norm          .10001E-03    9.5932        .29927E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    6.9490        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     21.074        17.476        .87249E-04   -1.4790    
  21  Prefactor     70.550        38.442        .47792E-04   -1.4026    
  22  Prefactor     .10000E-03    4.0139        .15414E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.1036        .26805        .30107E-03   -.89637    
  24  Prefactor     .97253        .23931        .29974E-03   -.93651    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.84835e-09
Minuit parameter uncertainties:
  1  0.000132905
  2  0.00010147
  3  0.000362872
  4  2.41083e-05
  5  1.29933
  6  138.158
  7  0.000133743
  8  3.12389
  9  23.8845
  10  0.000152458
  11  79.4204
  12  4.49843
  13  4.95599
  14  1.3134e-05
  15  2.14769e-05
  16  5.19444
  17  0.590244
  18  0.000535201
  19  8.0632e-05
  20  17.4802
  21  38.4552
  22  2.84848e-05
  23  0.268385
  24  0.239574
Done.

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

Extracting fit parameters...

4FGL J1209.8+1810
   Spectrum: PowerLaw
284    Prefactor:  5.026e-01  4.498e+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:  9.725e-01  2.396e-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.104e+00  2.684e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.02
Ra Dec: 182.466 18.178
Photon Flux Upper Limit: 1.34e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.04e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/375215/likelihoodResults_315273601_315532801_4FGL_J1209.8+1810_daily_bin293.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) = 6235.57764479
delta logL = 0.245178513976

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6235.546228
delta logL = 0.27659531076

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .50862       1.0000         .10000E-03   10000.    
     2 'Index     '    3.7053       1.0000          .0000       10.000    
     3 'Normalizat'    1.0520       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99949       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=   6235.546     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      309 TOTAL
                     EDM=   .50E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .50868        11.992        .11306E-01    .13981E-02
   2  Index         3.7053        3.4163        .15000        .12996E-03
   3  Normalizat    1.0519        .42082E-01    .69404E-01    .13602E-04
   4  Prefactor     .99952        .39947E-01    .66905E-01    .11323E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.508684
  Index      = 3.70535
  Normalizat = 1.05192
  Prefactor  = 0.999515
 **********
 **   18 **HESSE 
 **********

 FCN=   6235.546     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      342 TOTAL
                     EDM=   .76E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .50868        45.458        .73525E-04   -1.5565    
   2  Index         3.7053        6.0360        .83410E-02   -.26191    
   3  Normalizat    1.0519        .23093        .30707E-03   -.91311    
   4  Prefactor     .99952        .22424        .29591E-03   -.92746    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.60819e-09
Minuit parameter uncertainties:
  1  9.62405
  2  10.3397
  3  0.23115
  4  0.224446
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/375215': 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): 102
logL (Free Index) = 6235.54622797
delta logL = 0.276595335577

Extracting fit parameters...

4FGL J1209.8+1810
   Spectrum: PowerLaw
284    Prefactor:  5.087e-01  9.624e+00  1.000e-04  1.000e+04 ( 1.000e-12)
285        Index:  3.705e+00  1.034e+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:  9.995e-01  2.244e-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.052e+00  2.312e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.02
Ra Dec: 182.466 18.178

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/375215/cmap_HighResolution_315273601_315532801_4FGL_J1209.8+1810_daily_bin293.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.04e-02', job_status='DONE', photon_flux_upper_limit='1.34e-07', time_completed='2021-09-05 02:33:15.406322', job_id='375215', GAL2='1.00', fit_tolerance='1e-08', EG2='1.05', EG='1.10', time_epoch_completed='1630834395.41', return_code2='102', ts='0.02', comment='SUCCESS', return_code='0', GAL='0.97', dlogl='2.77e-01', ts2='0.60', photon_index_error='0.00', photon_index='2.41' WHERE bin_id='293' AND source_name='4FGL J1209.8+1810' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 02:33:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0203>
Subject: Job 375215: <4FGL_J1209.8+1810_daily_bin293> in cluster <slac> Done

Job <4FGL_J1209.8+1810_daily_bin293> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sun Sep  5 02:20:22 2021
Job was executed on host(s) <bullet0203>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 02:20:24 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:20:24 2021
Terminated at Sun Sep  5 02:33:16 2021
Results reported at Sun Sep  5 02:33:16 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1209.8+1810_daily_bin293 182.466 18.1776 315273601 315532801 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 :                                   751.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             368.32 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   771 sec.
    Turnaround time :                            774 sec.

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

