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


Performing analysis on: 4FGL_J1209.8+1810_daily_bin38
RA = 182.466, Dec = 18.1776
tmin = 249177601, tmax = 249436801
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='373676', job_status='RUN', time_executed='2021-09-05 02:18:07.987793', time_epoch_executed='1630833487.99' WHERE source_name='4FGL J1209.8+1810' and cadence='daily' and bin_id='38'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/373676

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/373676/ft1_4FGL_J1209.8+1810_daily_bin38.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/373676/ft2_4FGL_J1209.8+1810_daily_bin38.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/373676/ft1_4FGL_J1209.8+1810_daily_bin38.fits outfile=/scratch/kocevski/373676/ft1_filteredMKT_4FGL_J1209.8+1810_daily_bin38.fits ra=182.466 dec=18.1776 rad=12.0 tmin=249177601.0 tmax=249436801.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.44
user 1.24
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/373676/ft2_4FGL_J1209.8+1810_daily_bin38.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/373676/ft1_filteredMKT_4FGL_J1209.8+1810_daily_bin38.fits evtable="EVENTS" outfile="/scratch/kocevski/373676/ft1_filtered_4FGL_J1209.8+1810_daily_bin38.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.50
user 0.32
sys 0.16

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/373676/ft1_filtered_4FGL_J1209.8+1810_daily_bin38.fits evtable="EVENTS" scfile=/scratch/kocevski/373676/ft2_4FGL_J1209.8+1810_daily_bin38.fits sctable="SC_DATA" expcube=/scratch/kocevski/373676/ltcube_249177601_249436801_4FGL_J1209.8+1810_daily_bin38.fits outfile=/scratch/kocevski/373676/expmap_249177601_249436801_4FGL_J1209.8+1810_daily_bin38.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/373676/ltcube_249177601_249436801_4FGL_J1209.8+1810_daily_bin38.fits
.....................!
real 191.07
user 185.14
sys 4.89

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/373676/ft1_filtered_4FGL_J1209.8+1810_daily_bin38.fits scfile=/scratch/kocevski/373676/ft2_4FGL_J1209.8+1810_daily_bin38.fits outfile=/scratch/kocevski/373676/cmap_249177601_249436801_4FGL_J1209.8+1810_daily_bin38.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.54
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/373676/ft1_filtered_4FGL_J1209.8+1810_daily_bin38.fits scfile=/scratch/kocevski/373676/ft2_4FGL_J1209.8+1810_daily_bin38.fits outfile=/scratch/kocevski/373676/cmap_HighResolution_249177601_249436801_4FGL_J1209.8+1810_daily_bin38.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.53
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10120E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    14.256       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    6.7625       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.1902       1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.8550       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.6102       1.0000         .10000E-03   10000.    
    17 'norm      '    .32106       1.0000         .10000E-03   10000.    
    18 'norm      '    .64282       1.0000         .10000E-03   10000.    
    19 'Prefactor '    6.9104       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    31.832       1.0000         .10000E-03   10000.    
    22 'Prefactor '    4.4927       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .94903       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0307       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=   5254.345     FROM MIGRAD    STATUS=CONVERGED    548 CALLS     2715 TOTAL
                     EDM=   .62E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    36.385        .13885E-04** at limit **
   2  Prefactor     .10000E-03    21.589        .15080E-05** at limit **
   3  Prefactor     14.256        21.792       -.64049E-08    .45007E-04
   4  Prefactor     .10000E-03    3.1821       -.18285E-06** at limit **
   5  Prefactor     .10000E-03    1.2763       -.16534E-06** at limit **
   6  Prefactor     .10000E-03    40.350       -.24268E-05** at limit **
   7  Prefactor     .10000E-03    3.3902        .23449E-06** at limit **
   8  norm          6.7622        2.2692       -.14860E-07    .20105E-03
   9  Prefactor     .10000E-03    4.0029       -.16687E-06** at limit **
  10  Prefactor     .10000E-03    1.8317       -.29055E-07** at limit **
  11  Prefactor     .10002E-03    41.748        .10751E-04** at limit **
  12  Prefactor     .10000E-03    1.5690        .15772E-08** at limit **
  13  Prefactor     3.1893        3.0959       -.81508E-07    .18442E-03
  14  Prefactor     2.8549        2.5131        .98809E-07    .46694E-03
  15  Prefactor     .10000E-03    9.3455       -.19709E-06** at limit **
  16  Prefactor     3.6098        3.8352        .30793E-06    .26676E-03
  17  norm          .32107        .19972        .11543E-07    .10172E-02
  18  norm          .64350        4.6140       -.90348E-06    .56634E-03
  19  Prefactor     6.9108        7.9511       -.96750E-07   -.89755E-05
  20  Prefactor     .10000E-03    5.9390        .19280E-06** at limit **
  21  Prefactor     31.831        30.628        .24998E-06    .50653E-04
  22  Prefactor     4.4927        4.9956        .31747E-07   -.14441E-03
  23  Normalizat    .94924        .19091        .71648E-06    .15956E-03
  24  Prefactor     1.0305        .18528        .15952E-06    .16066E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100007
  Prefactor  = 0.0001
  Prefactor  = 14.2555
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 6.76219
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100019
  Prefactor  = 0.0001
  Prefactor  = 3.1893
  Prefactor  = 2.85492
  Prefactor  = 0.0001
  Prefactor  = 3.60984
  norm       = 0.321068
  norm       = 0.643501
  Prefactor  = 6.9108
  Prefactor  = 0.0001
  Prefactor  = 31.8312
  Prefactor  = 4.49267
  Normalizat = 0.949236
  Prefactor  = 1.03048
 **********
 **   18 **HESSE 
 **********

 FCN=   5254.345     FROM HESSE     STATUS=OK           399 CALLS     3114 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    37.143        .34515E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    21.701        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     14.256        21.572        .10608E-03   -1.4953    
   4  Prefactor     .10000E-03    3.1907        .12631E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    2.2877        .15582E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    40.542        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    3.4018        .13036E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          6.7622        2.2694        .59410E-04   -1.5188    
   9  Prefactor     .10000E-03    4.0072        .14166E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    1.8701        .95750E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10002E-03    45.245        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    1.6267        .17660E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     3.1893        3.0836        .11896E-03   -1.5351    
  14  Prefactor     2.8549        2.5039        .10337E-03   -1.5370    
  15  Prefactor     .10000E-03    9.3490        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     3.6098        3.8454        .13872E-03   -1.5328    
  17  norm          .32107        .19727        .24553E-04   -1.5595    
  18  norm          .64350        5.1259        .30436E-03   -1.5548    
  19  Prefactor     6.9108        7.9407        .15262E-03   -1.5182    
  20  Prefactor     .10000E-03    5.9509        .17253E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     31.831        30.615        .71019E-04   -1.4579    
  22  Prefactor     4.4927        4.9994        .83289E-03   -1.5284    
  23  Normalizat    .94924        .21805        .25018E-03   -.94751    
  24  Prefactor     1.0305        .21305        .24473E-03   -.91720    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.36855e-09
Minuit parameter uncertainties:
  1  0.00105618
  2  0.00015975
  3  21.5838
  4  1.11282e-05
  5  2.78363e-05
  6  0.000408981
  7  7.5963e-06
  8  2.26946
  9  1.23717e-05
  10  4.93736e-06
  11  0.00183767
  12  3.00367e-06
  13  3.08374
  14  2.50395
  15  1.83394e-05
  16  3.84563
  17  0.197272
  18  3.6325
  19  7.94189
  20  1.4339e-05
  21  30.6299
  22  4.99991
  23  0.218252
  24  0.213223
Done.

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

Extracting fit parameters...

4FGL J1209.8+1810
   Spectrum: PowerLaw
284    Prefactor:  1.000e-04  3.004e-06  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.030e+00  2.132e-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:  9.492e-01  2.183e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/373676/likelihoodResults_249177601_249436801_4FGL_J1209.8+1810_daily_bin38.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): 102
logL (Free Index) = 5254.34771009
delta logL = -0.00292872312366

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5254.34478149
delta logL = -1.21447556012e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4197       1.0000          .0000       10.000    
     3 'Normalizat'    .94928       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0305       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5254.345     FROM MIGRAD    STATUS=FAILED        88 CALLS      239 TOTAL
                     EDM=   .13E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10124E-03    28.891        .17692E-02** at limit **
   2  Index         2.5022        6.2773        .50000       -.43350E-04
   3  Normalizat    .94924        .19465E-01    .25018E-03    .77705E-05
   4  Prefactor     1.0305        .19859E-01    .24473E-03    .18164E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5254.345     FROM SIMPLEX   STATUS=UNCHANGED    125 CALLS      364 TOTAL
                     EDM=   .15E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10124E-03    28.891        .25142E-03** at limit **
   2  Index         2.5022        6.2773        .44605E-03   -.43350E-04
   3  Normalizat    .94924        .19465E-01    .38012E-05    .77705E-05
   4  Prefactor     1.0305        .19859E-01    .33245E-05    .18164E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5254.345     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      419 TOTAL
                     EDM=   .28E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .74768E-01    .21342E-01** at limit **
   2  Index         3.0691        6.9040        .50000        .63271E-06
   3  Normalizat    .94923        .14803E-02    .10007E-04   -.14314E-04
   4  Prefactor     1.0305        .15103E-02    .97892E-05   -.14563E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 3.06908
  Normalizat = 0.949235
  Prefactor  = 1.03047
 **********
 **   18 **HESSE 
 **********

 FCN=   5254.345     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      450 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    17.316        .12034E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         3.0691        8.4395        .50000       -.39649    
   3  Normalizat    .94923        .14128E-01    .20015E-05   -.94751    
   4  Prefactor     1.0305        .14410E-01    .19578E-05   -.91720    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.95145e-10
Minuit parameter uncertainties:
  1  1.80214e-05
  2  136.486
  3  0.0141276
  4  0.0144099
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/373676': 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) = 5254.34477715
delta logL = 4.22370158049e-06

Extracting fit parameters...

4FGL J1209.8+1810
   Spectrum: PowerLaw
284    Prefactor:  1.000e-04  1.802e-05  1.000e-04  1.000e+04 ( 1.000e-12)
285        Index:  3.069e+00  1.365e+02  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.030e+00  1.441e-02  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:  9.492e-01  1.413e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
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/373676/cmap_HighResolution_249177601_249436801_4FGL_J1209.8+1810_daily_bin38.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.16e-03', job_status='DONE', photon_flux_upper_limit='6.67e-08', time_completed='2021-09-05 02:29:04.561433', job_id='373676', GAL2='1.03', fit_tolerance='1e-08', EG2='0.95', EG='0.95', time_epoch_completed='1630834144.56', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.03', dlogl='4.22e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.41' WHERE bin_id='38' AND source_name='4FGL J1209.8+1810' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 02:29:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0233>
Subject: Job 373676: <4FGL_J1209.8+1810_daily_bin38> in cluster <slac> Done

Job <4FGL_J1209.8+1810_daily_bin38> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sun Sep  5 02:15:30 2021
Job was executed on host(s) <bullet0233>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 02:15:31 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:31 2021
Terminated at Sun Sep  5 02:29:05 2021
Results reported at Sun Sep  5 02:29:05 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1209.8+1810_daily_bin38 182.466 18.1776 249177601 249436801 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 :                                   652.41 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             286.92 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   813 sec.
    Turnaround time :                            815 sec.

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

