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


Performing analysis on: 4FGL_J1209.8+1810_daily_bin1403
RA = 182.466, Dec = 18.1776
tmin = 602985601, tmax = 603244801
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='382616', job_status='RUN', time_executed='2021-09-05 02:42:50.489076', time_epoch_executed='1630834970.49' WHERE source_name='4FGL J1209.8+1810' and cadence='daily' and bin_id='1403'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/382616

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/382616/ft1_4FGL_J1209.8+1810_daily_bin1403.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/382616/ft2_4FGL_J1209.8+1810_daily_bin1403.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/382616/ft1_4FGL_J1209.8+1810_daily_bin1403.fits outfile=/scratch/kocevski/382616/ft1_filteredMKT_4FGL_J1209.8+1810_daily_bin1403.fits ra=182.466 dec=18.1776 rad=12.0 tmin=602985601.0 tmax=603244801.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 2.99
user 2.77
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/382616/ft2_4FGL_J1209.8+1810_daily_bin1403.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/382616/ft1_filteredMKT_4FGL_J1209.8+1810_daily_bin1403.fits evtable="EVENTS" outfile="/scratch/kocevski/382616/ft1_filtered_4FGL_J1209.8+1810_daily_bin1403.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.33
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/382616/ft1_filtered_4FGL_J1209.8+1810_daily_bin1403.fits" evtable="EVENTS" scfile=/scratch/kocevski/382616/ft2_4FGL_J1209.8+1810_daily_bin1403.fits sctable="SC_DATA" outfile=/scratch/kocevski/382616/ltcube_602985601_603244801_4FGL_J1209.8+1810_daily_bin1403.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/382616/ft2_4FGL_J1209.8+1810_daily_bin1403.fits
.....................!
real 12.61
user 12.26
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/382616/ft1_filtered_4FGL_J1209.8+1810_daily_bin1403.fits evtable="EVENTS" scfile=/scratch/kocevski/382616/ft2_4FGL_J1209.8+1810_daily_bin1403.fits sctable="SC_DATA" expcube=/scratch/kocevski/382616/ltcube_602985601_603244801_4FGL_J1209.8+1810_daily_bin1403.fits outfile=/scratch/kocevski/382616/expmap_602985601_603244801_4FGL_J1209.8+1810_daily_bin1403.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/382616/ltcube_602985601_603244801_4FGL_J1209.8+1810_daily_bin1403.fits
.....................!
real 190.84
user 186.32
sys 4.13

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/382616/ft1_filtered_4FGL_J1209.8+1810_daily_bin1403.fits scfile=/scratch/kocevski/382616/ft2_4FGL_J1209.8+1810_daily_bin1403.fits outfile=/scratch/kocevski/382616/cmap_602985601_603244801_4FGL_J1209.8+1810_daily_bin1403.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.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/382616/ft1_filtered_4FGL_J1209.8+1810_daily_bin1403.fits scfile=/scratch/kocevski/382616/ft2_4FGL_J1209.8+1810_daily_bin1403.fits outfile=/scratch/kocevski/382616/cmap_HighResolution_602985601_603244801_4FGL_J1209.8+1810_daily_bin1403.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.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    31.287       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .13040E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    81.441       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.1595       1.0000         .10000E-03   10000.    
     6 'Prefactor '    251.60       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    1.4310       1.0000         .10000E-03   10000.    
     9 'Prefactor '    48.836       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .85200       1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.3271       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .60451       1.0000         .10000E-03   10000.    
    18 'norm      '    5.6344       1.0000         .10000E-03   10000.    
    19 'Prefactor '    33.441       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    64.198       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.1282       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .92197       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=   2591.948     FROM MIGRAD    STATUS=CONVERGED    553 CALLS     2800 TOTAL
                     EDM=   .82E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     31.284        43.942        .17223E-06   -.16549E-05
   2  Prefactor     .10000E-03    412.36        .13893E-06** at limit **
   3  Prefactor     .10000E-03    21.104        .10766E-06** at limit **
   4  Prefactor     81.444        38.765        .15850E-06   -.19379E-04
   5  Prefactor     1.1591        4.3304        .85156E-06   -.54437E-05
   6  Prefactor     252.04        438.38        .41902E-05    .35049E-04
   7  Prefactor     .10000E-03    10.540        .83800E-06** at limit **
   8  norm          1.4312        2.0660        .12680E-06   -.28985E-04
   9  Prefactor     48.834        44.096        .24104E-06   -.13433E-04
  10  Prefactor     .10000E-03    2.7688       -.36793E-07** at limit **
  11  Prefactor     .10000E-03    59.137        .17875E-06** at limit **
  12  Prefactor     .10000E-03    4.3085       -.25077E-06** at limit **
  13  Prefactor     .85200        5.8087        .14499E-05    .11746E-04
  14  Prefactor     4.3273        3.5488       -.10478E-06   -.46635E-04
  15  Prefactor     .10000E-03    21.275       -.11497E-06** at limit **
  16  Prefactor     .10000E-03    4.2037       -.25426E-06** at limit **
  17  norm          .60463        .37349       -.79949E-08   -.35983E-03
  18  norm          5.6354        7.1212        .29186E-05   -.89664E-04
  19  Prefactor     33.439        28.099       -.52406E-07   -.25039E-04
  20  Prefactor     .10000E-03    5.1928       -.48961E-07** at limit **
  21  Prefactor     64.212        73.953        .81000E-06   -.10961E-04
  22  Prefactor     .10000E-03    10.147       -.28323E-06** at limit **
  23  Normalizat    1.1276        .32620       -.25690E-05   -.32594E-05
  24  Prefactor     .92249        .29607        .35489E-06   -.60594E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 31.2836
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 81.4437
  Prefactor  = 1.15906
  Prefactor  = 252.037
  Prefactor  = 0.0001
  norm       = 1.43124
  Prefactor  = 48.834
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.852004
  Prefactor  = 4.32732
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.60463
  norm       = 5.63542
  Prefactor  = 33.4391
  Prefactor  = 0.0001
  Prefactor  = 64.2119
  Prefactor  = 0.0001
  Normalizat = 1.1276
  Prefactor  = 0.922492
 **********
 **   18 **HESSE 
 **********

 FCN=   2591.948     FROM HESSE     STATUS=OK           397 CALLS     3197 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     31.284        43.947        .71634E-04   -1.4589    
   2  Prefactor     .10000E-03    414.14        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    21.125        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     81.444        38.768        .44506E-04   -1.3901    
   5  Prefactor     1.1591        4.3179        .19231E-03   -1.5493    
   6  Prefactor     252.04        440.88        .12771E-03   -1.2519    
   7  Prefactor     .10000E-03    10.538        .16142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.4312        2.0376        .84836E-04   -1.5469    
   9  Prefactor     48.834        44.093        .57382E-04   -1.4309    
  10  Prefactor     .10000E-03    2.7713        .82727E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    59.136        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    4.4057        .20568E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .85200        5.6936        .23113E-03   -1.5523    
  14  Prefactor     4.3273        3.5475        .83106E-04   -1.5292    
  15  Prefactor     .10000E-03    21.286        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    4.2291        .10206E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .60463        .37399        .23075E-04   -1.5552    
  18  norm          5.6354        7.1141        .71942E-03   -1.5233    
  19  Prefactor     33.439        28.162        .69295E-04   -1.4551    
  20  Prefactor     .10000E-03    5.1938        .11332E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     64.212        74.344        .50086E-04   -1.4104    
  22  Prefactor     .10000E-03    10.228        .15823E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.1276        .38419        .27836E-03   -.88871    
  24  Prefactor     .92249        .34998        .28923E-03   -.95360    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.8052e-10
Minuit parameter uncertainties:
  1  43.9922
  2  0.00013363
  3  7.60416e-05
  4  38.7805
  5  4.31904
  6  446.909
  7  8.5199e-06
  8  2.03768
  9  44.1229
  10  3.02902e-07
  11  4.02708e-06
  12  1.51643e-05
  13  4.40534
  14  3.54767
  15  7.57464e-05
  16  1.98066e-05
  17  0.373991
  18  7.11516
  19  28.1727
  20  3.49698e-06
  21  74.4522
  22  2.40166e-05
  23  0.385148
  24  0.350835
Done.

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

Extracting fit parameters...

4FGL J1209.8+1810
   Spectrum: PowerLaw
284    Prefactor:  1.000e-04  1.516e-05  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.225e-01  3.508e-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  3.851e-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: 1.56e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.21e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/382616/likelihoodResults_602985601_603244801_4FGL_J1209.8+1810_daily_bin1403.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) = 2591.94893232
delta logL = -0.00107898505757

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2591.94785335
delta logL = -1.67410689755e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4206       1.0000          .0000       10.000    
     3 'Normalizat'    1.1276       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92252       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=   2591.948     FROM MIGRAD    STATUS=FAILED        95 CALLS      255 TOTAL
                     EDM=   .24E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10100E-03    62.713        .20627E-02** at limit **
   2  Index         2.4850        7.5427        .50000       -.17318E-04
   3  Normalizat    1.1276        .29750E-01    .27836E-03    .43537E-04
   4  Prefactor     .92249        .28400E-01    .28923E-03    .25294E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   2591.948     FROM SIMPLEX   STATUS=UNCHANGED    126 CALLS      381 TOTAL
                     EDM=   .12E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10100E-03    62.713        .36689E-03** at limit **
   2  Index         2.4850        7.5427        .43839E-03   -.17318E-04
   3  Normalizat    1.1276        .29750E-01    .49739E-05    .43537E-04
   4  Prefactor     .92249        .28400E-01    .57138E-05    .25294E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   2591.948     FROM MIGRAD    STATUS=CONVERGED     46 CALLS      427 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    11.780        .41254E-02** at limit **
   2  Index         2.8917        5.7866        .50000        .52273E-07
   3  Normalizat    1.1276        .12344E-01    .11135E-04   -.50286E-03
   4  Prefactor     .92249        .11783E-01    .11569E-04   -.50019E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.8917
  Normalizat = 1.12759
  Prefactor  = 0.922492
 **********
 **   18 **HESSE 
 **********

 FCN=   2591.948     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      456 TOTAL
                     EDM=   .75E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    86.451        .82508E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.8917        6.7779        .50000       -.43527    
   3  Normalizat    1.1276        .33595E-01    .22269E-05   -.88871    
   4  Prefactor     .92249        .32077E-01    .23138E-05   -.95360    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.52966e-10
Minuit parameter uncertainties:
  1  0.00029612
  2  310.047
  3  0.0335954
  4  0.0320772
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/382616': 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) = 2591.94785212
delta logL = 1.21805169329e-06

Extracting fit parameters...

4FGL J1209.8+1810
   Spectrum: PowerLaw
284    Prefactor:  1.000e-04  2.961e-04  1.000e-04  1.000e+04 ( 1.000e-12)
285        Index:  2.892e+00  3.100e+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:  9.225e-01  3.208e-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:  1.128e+00  3.360e-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/382616/cmap_HighResolution_602985601_603244801_4FGL_J1209.8+1810_daily_bin1403.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.21e-02', job_status='DONE', photon_flux_upper_limit='1.56e-07', time_completed='2021-09-05 02:52:27.625436', job_id='382616', GAL2='0.92', fit_tolerance='1e-08', EG2='1.13', EG='1.13', time_epoch_completed='1630835547.63', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.92', dlogl='1.22e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.41' WHERE bin_id='1403' AND source_name='4FGL J1209.8+1810' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 02:52:27 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0234>
Subject: Job 382616: <4FGL_J1209.8+1810_daily_bin1403> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1209.8+1810_daily_bin1403 182.466 18.1776 602985601 603244801 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 :                                   485.19 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             229.32 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   716 sec.
    Turnaround time :                            719 sec.

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

