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


Performing analysis on: 4FGL_J1209.8+1810_daily_bin1013
RA = 182.466, Dec = 18.1776
tmin = 501897601, tmax = 502156801
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='380386', job_status='RUN', time_executed='2021-09-05 02:38:48.572772', time_epoch_executed='1630834728.57' WHERE source_name='4FGL J1209.8+1810' and cadence='daily' and bin_id='1013'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/380386

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/380386/ft1_4FGL_J1209.8+1810_daily_bin1013.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/380386/ft2_4FGL_J1209.8+1810_daily_bin1013.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/380386/ft1_4FGL_J1209.8+1810_daily_bin1013.fits outfile=/scratch/kocevski/380386/ft1_filteredMKT_4FGL_J1209.8+1810_daily_bin1013.fits ra=182.466 dec=18.1776 rad=12.0 tmin=501897601.0 tmax=502156801.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.49
user 3.25
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/380386/ft2_4FGL_J1209.8+1810_daily_bin1013.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/380386/ft1_filteredMKT_4FGL_J1209.8+1810_daily_bin1013.fits evtable="EVENTS" outfile="/scratch/kocevski/380386/ft1_filtered_4FGL_J1209.8+1810_daily_bin1013.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.16

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/380386/ft1_filtered_4FGL_J1209.8+1810_daily_bin1013.fits evtable="EVENTS" scfile=/scratch/kocevski/380386/ft2_4FGL_J1209.8+1810_daily_bin1013.fits sctable="SC_DATA" expcube=/scratch/kocevski/380386/ltcube_501897601_502156801_4FGL_J1209.8+1810_daily_bin1013.fits outfile=/scratch/kocevski/380386/expmap_501897601_502156801_4FGL_J1209.8+1810_daily_bin1013.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/380386/ltcube_501897601_502156801_4FGL_J1209.8+1810_daily_bin1013.fits
.....................!
real 190.01
user 185.53
sys 4.07

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/380386/ft1_filtered_4FGL_J1209.8+1810_daily_bin1013.fits scfile=/scratch/kocevski/380386/ft2_4FGL_J1209.8+1810_daily_bin1013.fits outfile=/scratch/kocevski/380386/cmap_501897601_502156801_4FGL_J1209.8+1810_daily_bin1013.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.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/380386/ft1_filtered_4FGL_J1209.8+1810_daily_bin1013.fits scfile=/scratch/kocevski/380386/ft2_4FGL_J1209.8+1810_daily_bin1013.fits outfile=/scratch/kocevski/380386/cmap_HighResolution_501897601_502156801_4FGL_J1209.8+1810_daily_bin1013.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.54
user 0.40
sys 0.13

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11148E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .34616E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    25.240       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10307E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.1971       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .76081E-01   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10310E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    10.763       1.0000         .10000E-03   10000.    
     9 'Prefactor '    10.461       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    17.929       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.6174       1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.0095       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .36219       1.0000         .10000E-03   10000.    
    18 'norm      '    8.2226       1.0000         .10000E-03   10000.    
    19 'Prefactor '    14.983       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    28.235       1.0000         .10000E-03   10000.    
    22 'Prefactor '    6.6266       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.1523       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .97139       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=   6545.266     FROM MIGRAD    STATUS=CONVERGED    570 CALLS     2747 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    23.284        .15604E-05** at limit **
   2  Prefactor     .10001E-03    131.02        .61282E-06** at limit **
   3  Prefactor     25.257        21.766       -.55091E-06    .16780E-04
   4  Prefactor     .10000E-03    4.9704       -.15401E-06** at limit **
   5  Prefactor     2.1961        1.8073       -.32288E-06   -.31453E-03
   6  Prefactor     .10000E-03    1715.6       -.81099E-04** at limit **
   7  Prefactor     .10000E-03    5.9073       -.20329E-06** at limit **
   8  norm          10.763        2.1600       -.87241E-07    .14495E-03
   9  Prefactor     10.455        10.787        .36815E-05    .27685E-04
  10  Prefactor     .10000E-03    1.1273       -.47421E-07** at limit **
  11  Prefactor     17.928        52.746        .20866E-05    .55658E-05
  12  Prefactor     .10000E-03    .69880       -.21823E-07** at limit **
  13  Prefactor     3.6174        2.6058       -.54573E-07   -.64969E-04
  14  Prefactor     5.0099        2.5422       -.18259E-06   -.27315E-04
  15  Prefactor     .10000E-03    9.8333       -.17061E-07** at limit **
  16  Prefactor     .10000E-03    1.8611        .27671E-07** at limit **
  17  norm          .36218        .20287       -.38288E-07    .27764E-03
  18  norm          8.2220        4.8893       -.10989E-05   -.27297E-02
  19  Prefactor     14.974        11.544       -.11142E-04    .50829E-04
  20  Prefactor     .10000E-03    10.876       -.76326E-08** at limit **
  21  Prefactor     28.240        26.408       -.24304E-04    .36623E-04
  22  Prefactor     6.6182        8.8444       -.55677E-05   -.10845E-03
  23  Normalizat    1.1523        .18627        .33353E-05    .71774E-04
  24  Prefactor     .97151        .18144        .34585E-05    .11953E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 0.000100008
  Prefactor  = 25.2567
  Prefactor  = 0.0001
  Prefactor  = 2.19612
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 10.763
  Prefactor  = 10.4555
  Prefactor  = 0.0001
  Prefactor  = 17.9282
  Prefactor  = 0.0001
  Prefactor  = 3.61744
  Prefactor  = 5.00992
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.362182
  norm       = 8.22197
  Prefactor  = 14.9739
  Prefactor  = 0.0001
  Prefactor  = 28.2399
  Prefactor  = 6.61819
  Normalizat = 1.15227
  Prefactor  = 0.971509
 **********
 **   18 **HESSE 
 **********

 FCN=   6545.266     FROM HESSE     STATUS=OK           401 CALLS     3148 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    24.063        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10001E-03    134.24        .42657E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     25.257        21.778        .79735E-04   -1.4702    
   4  Prefactor     .10000E-03    4.9950        .17613E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     2.1961        1.7933        .92635E-04   -1.5412    
   6  Prefactor     .10000E-03    1779.8        .37586E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    6.0059        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          10.763        2.1609        .51192E-04   -1.5052    
   9  Prefactor     10.455        10.779        .12388E-03   -1.5061    
  10  Prefactor     .10000E-03    1.1328        .83864E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     17.928        52.696        .94590E-04   -1.4861    
  12  Prefactor     .10000E-03    .70465        .65996E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     3.6174        2.6011        .10646E-03   -1.5328    
  14  Prefactor     5.0099        2.5426        .88600E-04   -1.5260    
  15  Prefactor     .10000E-03    9.8375        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    1.8646        .10775E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .36218        .19948        .26161E-04   -1.5588    
  18  norm          8.2220        4.9267        .66869E-03   -1.5134    
  19  Prefactor     14.974        11.526        .10347E-03   -1.4934    
  20  Prefactor     .10000E-03    11.053        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     28.240        26.357        .75395E-04   -1.4645    
  22  Prefactor     6.6182        8.8545        .15589E-03   -1.5193    
  23  Normalizat    1.1523        .21719        .25782E-03   -.88091    
  24  Prefactor     .97151        .21096        .27884E-03   -.93685    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.44722e-09
Minuit parameter uncertainties:
  1  0.000356478
  2  0.00204238
  3  21.7851
  4  3.28643e-05
  5  1.79335
  6  0.00162157
  7  4.20554e-05
  8  2.16091
  9  10.7808
  10  6.85488e-06
  11  52.8336
  12  2.4273e-06
  13  2.60117
  14  2.54261
  15  5.81922e-06
  16  4.69938e-07
  17  0.199483
  18  4.92692
  19  11.5279
  20  3.70096e-05
  21  26.3674
  22  8.85622
  23  0.217363
  24  0.211138
Done.

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

Extracting fit parameters...

4FGL J1209.8+1810
   Spectrum: PowerLaw
284    Prefactor:  1.000e-04  2.427e-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:  9.715e-01  2.111e-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.152e+00  2.174e-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: 4.80e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.71e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/380386/likelihoodResults_501897601_502156801_4FGL_J1209.8+1810_daily_bin1013.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) = 6545.27205964
delta logL = -0.00645820399586

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6545.26560113
delta logL = 3.06386937154e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3969       1.0000          .0000       10.000    
     3 'Normalizat'    1.1522       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97158       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 FCN=   6545.266     FROM MIGRAD    STATUS=FAILED       109 CALLS      259 TOTAL
                     EDM=   .14E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    97.506        .72855E-03** at limit **
   2  Index         1.8619        5.7070        .50000       -.71035E-05
   3  Normalizat    1.1523        .58445E-01    .25782E-03    .28265E-04
   4  Prefactor     .97151        .58900E-01    .27884E-03    .27398E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6545.266     FROM SIMPLEX   STATUS=UNCHANGED    203 CALLS      462 TOTAL
                     EDM=   .83E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    97.506        .14314E-03** at limit **
   2  Index         1.8619        5.7070        .34216E-06   -.71035E-05
   3  Normalizat    1.1523        .58445E-01    .11876E-07    .28265E-04
   4  Prefactor     .97151        .58900E-01    .39579E-08    .27398E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6545.266     FROM MIGRAD    STATUS=CONVERGED     44 CALLS      506 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.5477         .0000    ** at limit **
   2  Index         1.8618        5.0526         .0000       -.71278E-05
   3  Normalizat    1.1523        .20786         .0000        .28221E-04
   4  Prefactor     .97151        .20949         .0000        .27316E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.86181
  Normalizat = 1.15227
  Prefactor  = 0.971507
 **********
 **   18 **HESSE 
 **********

 FCN=   6545.266     FROM HESSE     STATUS=OK            27 CALLS      533 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .86877        .29142E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8618        7.5641        .50000       -.67852    
   3  Normalizat    1.1523        .20752        .20626E-05   -.88091    
   4  Prefactor     .97151        .20916        .22307E-05   -.93685    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.22438e-08
Minuit parameter uncertainties:
  1  6.7436e-06
  2  60.0959
  3  0.207664
  4  0.20933
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/380386': 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) = 6545.26558909
delta logL = 1.23404088299e-05

Extracting fit parameters...

4FGL J1209.8+1810
   Spectrum: PowerLaw
284    Prefactor:  1.000e-04  6.744e-06  1.000e-04  1.000e+04 ( 1.000e-12)
285        Index:  1.862e+00  6.010e+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.715e-01  2.093e-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.152e+00  2.077e-01  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 -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/380386/cmap_HighResolution_501897601_502156801_4FGL_J1209.8+1810_daily_bin1013.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.71e-03', job_status='DONE', photon_flux_upper_limit='4.80e-08', time_completed='2021-09-05 02:51:47.841670', job_id='380386', GAL2='0.97', fit_tolerance='1e-08', EG2='1.15', EG='1.15', time_epoch_completed='1630835507.84', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.97', dlogl='1.23e-05', ts2='-0.00', photon_index_error='0.00', photon_index='2.41' WHERE bin_id='1013' AND source_name='4FGL J1209.8+1810' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 02:51:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0089>
Subject: Job 380386: <4FGL_J1209.8+1810_daily_bin1013> in cluster <slac> Done

Job <4FGL_J1209.8+1810_daily_bin1013> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sun Sep  5 02:35:35 2021
Job was executed on host(s) <bullet0089>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 02:35:36 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:35:36 2021
Terminated at Sun Sep  5 02:51:48 2021
Results reported at Sun Sep  5 02:51:48 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1209.8+1810_daily_bin1013 182.466 18.1776 501897601 502156801 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 :                                   771.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             257.59 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   972 sec.
    Turnaround time :                            973 sec.

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

