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


Performing analysis on: 4FGL_J1209.4+7608_daily_bin1489
RA = 182.363, Dec = 76.137
tmin = 625276801, tmax = 625536001
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='372165', job_status='RUN', time_executed='2021-09-05 02:10:43.929028', time_epoch_executed='1630833043.93' WHERE source_name='4FGL J1209.4+7608' and cadence='daily' and bin_id='1489'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/372165

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/372165/ft1_4FGL_J1209.4+7608_daily_bin1489.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/372165/ft2_4FGL_J1209.4+7608_daily_bin1489.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/372165/ft1_4FGL_J1209.4+7608_daily_bin1489.fits outfile=/scratch/kocevski/372165/ft1_filteredMKT_4FGL_J1209.4+7608_daily_bin1489.fits ra=182.363 dec=76.137 rad=12.0 tmin=625276801.0 tmax=625536001.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.75
user 2.55
sys 0.18

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/372165/ft2_4FGL_J1209.4+7608_daily_bin1489.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/372165/ft2_4FGL_J1209.4+7608_daily_bin1489.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/372165/ft1_filteredMKT_4FGL_J1209.4+7608_daily_bin1489.fits evtable="EVENTS" outfile="/scratch/kocevski/372165/ft1_filtered_4FGL_J1209.4+7608_daily_bin1489.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.41
user 0.26
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/372165/ft1_filtered_4FGL_J1209.4+7608_daily_bin1489.fits" evtable="EVENTS" scfile=/scratch/kocevski/372165/ft2_4FGL_J1209.4+7608_daily_bin1489.fits sctable="SC_DATA" outfile=/scratch/kocevski/372165/ltcube_625276801_625536001_4FGL_J1209.4+7608_daily_bin1489.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/372165/ft2_4FGL_J1209.4+7608_daily_bin1489.fits
.....................!
real 9.06
user 8.73
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/372165/ft1_filtered_4FGL_J1209.4+7608_daily_bin1489.fits evtable="EVENTS" scfile=/scratch/kocevski/372165/ft2_4FGL_J1209.4+7608_daily_bin1489.fits sctable="SC_DATA" expcube=/scratch/kocevski/372165/ltcube_625276801_625536001_4FGL_J1209.4+7608_daily_bin1489.fits outfile=/scratch/kocevski/372165/expmap_625276801_625536001_4FGL_J1209.4+7608_daily_bin1489.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/372165/ltcube_625276801_625536001_4FGL_J1209.4+7608_daily_bin1489.fits
.....................!
real 144.69
user 140.90
sys 3.53

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

Setting source of interest to:
4FGL J1209.4+7608 @ 182.363 76.137

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/372165/ft1_filtered_4FGL_J1209.4+7608_daily_bin1489.fits scfile=/scratch/kocevski/372165/ft2_4FGL_J1209.4+7608_daily_bin1489.fits outfile=/scratch/kocevski/372165/cmap_625276801_625536001_4FGL_J1209.4+7608_daily_bin1489.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.363 yref=76.137 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.45
user 0.30
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/372165/ft1_filtered_4FGL_J1209.4+7608_daily_bin1489.fits scfile=/scratch/kocevski/372165/ft2_4FGL_J1209.4+7608_daily_bin1489.fits outfile=/scratch/kocevski/372165/cmap_HighResolution_625276801_625536001_4FGL_J1209.4+7608_daily_bin1489.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.363 yref=76.137 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.45
user 0.30
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/372165/ft1_filtered_4FGL_J1209.4+7608_daily_bin1489.fits evtable="EVENTS" scfile=/scratch/kocevski/372165/ft2_4FGL_J1209.4+7608_daily_bin1489.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/372165/Model_4FGL_J1209.4+7608_daily_bin1489.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/372165/ft1_filtered_4FGL_J1209.4+7608_daily_bin1489.fits.....................!
real 66.94
user 65.87
sys 0.95

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/372165/ft1_filtered_4FGL_J1209.4+7608_daily_bin1489.fits', '/scratch/kocevski/372165/ft2_4FGL_J1209.4+7608_daily_bin1489.fits', expMap='/scratch/kocevski/372165/expmap_625276801_625536001_4FGL_J1209.4+7608_daily_bin1489.fits', expCube='/scratch/kocevski/372165/ltcube_625276801_625536001_4FGL_J1209.4+7608_daily_bin1489.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/372165/Model_4FGL_J1209.4+7608_daily_bin1489.xml', optimizer='MINUIT')

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

4FGL J1209.4+7608
   Spectrum: PowerLaw
397    Prefactor:  7.028e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
398        Index:  2.167e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
399        Scale:  1.807e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/372165/ft1_filtered_4FGL_J1209.4+7608_daily_bin1489.fits
Spacecraft file(s): /scratch/kocevski/372165/ft2_4FGL_J1209.4+7608_daily_bin1489.fits
Exposure map: /scratch/kocevski/372165/expmap_625276801_625536001_4FGL_J1209.4+7608_daily_bin1489.fits
Exposure cube: /scratch/kocevski/372165/ltcube_625276801_625536001_4FGL_J1209.4+7608_daily_bin1489.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/372165/Model_4FGL_J1209.4+7608_daily_bin1489.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) = 7646.67082572

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.7509       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10209E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    8.3481       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10152E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10692E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10731E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .48711       1.0000         .10000E-03   10000.    
     9 'norm      '    .71977       1.0000         .10000E-03   10000.    
    10 'norm      '    .10110E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.0313       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.4265       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10231E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    32.119       1.0000         .10000E-03   10000.    
    18 'norm      '    3.4199       1.0000         .10000E-03   10000.    
    19 'norm      '    3.0160       1.0000         .10000E-03   10000.    
    20 'Prefactor '    24.617       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10196E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .73648       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    5.9263       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .11035E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.0912       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .88498       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7130E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7646.669     FROM MIGRAD    STATUS=CONVERGED    837 CALLS     4161 TOTAL
                     EDM=   .90E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.7515        4.8058        .62342E-05   -.76813E-03
   2  Prefactor     .10000E-03    5.3687       -.10751E-05** at limit **
   3  Prefactor     .10000E-03    5.4624        .25502E-05** at limit **
   4  Prefactor     8.3577        13.990        .40382E-06    .89864E-04
   5  Prefactor     .10000E-03    16.890        .26069E-05** at limit **
   6  norm          .10001E-03    1.6341       -.20431E-06** at limit **
   7  Prefactor     .10000E-03    297.94       -.14467E-04** at limit **
   8  Prefactor     .48487        2.4027       -.10831E-05    .32211E-04
   9  norm          .71981        .56515        .17152E-07    .18059E-02
  10  norm          .10000E-03    1.8124       -.49102E-06** at limit **
  11  Prefactor     .10000E-03    6.2213       -.74799E-06** at limit **
  12  Prefactor     3.0176        5.9345        .87366E-06    .59223E-04
  13  Prefactor     .10000E-03    22.111       -.12630E-04** at limit **
  14  Prefactor     3.4261        3.8166       -.38290E-06   -.10426E-05
  15  Prefactor     .10000E-03    1.8980       -.46375E-07** at limit **
  16  Prefactor     .10000E-03    40.229       -.25689E-04** at limit **
  17  Prefactor     32.123        29.490       -.10147E-05    .32396E-04
  18  norm          3.4201        4.3181        .77696E-06   -.34371E-03
  19  norm          3.0156        2.2599       -.86139E-07   -.19920E-03
  20  Prefactor     24.581        60.451       -.35254E-04    .10680E-04
  21  Prefactor     .10000E-03    60.785        .16940E-04** at limit **
  22  Prefactor     .10000E-03    8.7478        .62013E-06** at limit **
  23  Prefactor     .10000E-03    10.772       -.23284E-05** at limit **
  24  Prefactor     .10000E-03    5.2809       -.10192E-05** at limit **
  25  Prefactor     .10000E-03    3.5626       -.14752E-07** at limit **
  26  Prefactor     .65977        10.881       -.21382E-05    .12499E-03
  27  Prefactor     .10000E-03    28.367        .11201E-04** at limit **
  28  Prefactor     5.9006        68.750       -.88297E-05    .13793E-05
  29  Prefactor     .10000E-03    29.380        .12074E-04** at limit **
  30  Normalizat    1.0912        .15033        .27881E-05    .43300E-03
  31  Prefactor     .88495        .11828       -.11036E-05    .67765E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.75151
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.35768
  Prefactor  = 0.0001
  norm       = 0.000100008
  Prefactor  = 0.0001
  Prefactor  = 0.484873
  norm       = 0.719808
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.01764
  Prefactor  = 0.0001
  Prefactor  = 3.42605
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 32.1229
  norm       = 3.42014
  norm       = 3.01561
  Prefactor  = 24.5814
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.65977
  Prefactor  = 0.0001
  Prefactor  = 5.90061
  Prefactor  = 0.0001
  Normalizat = 1.09122
  Prefactor  = 0.884953
 **********
 **   18 **HESSE 
 **********

 FCN=   7646.669     FROM HESSE     STATUS=OK           620 CALLS     4781 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.7515        4.6716        .30038E-03   -1.5443    
   2  Prefactor     .10000E-03    5.3962        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    5.4822        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     8.3577        13.873        .13875E-03   -1.5130    
   5  Prefactor     .10000E-03    16.907        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10001E-03    12.092        .21255E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    298.71        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .48487        8.0937        .22566E-02   -1.5569    
   9  norm          .71981        .57452        .48737E-04   -1.5538    
  10  norm          .10000E-03    2.5016        .18418E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    6.3112        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     3.0176        4.8551        .22270E-03   -1.5361    
  13  Prefactor     .10000E-03    22.259        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     3.4261        3.8070        .17347E-03   -1.5338    
  15  Prefactor     .10000E-03    1.9013        .11763E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    40.543        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     32.123        29.567        .70702E-04   -1.4574    
  18  norm          3.4201        4.3032        .19591E-03   -1.5338    
  19  norm          3.0156        2.2556        .11007E-03   -1.5361    
  20  Prefactor     24.581        60.869        .80736E-04   -1.4716    
  21  Prefactor     .10000E-03    61.042        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    8.8295        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    10.772        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    5.2860        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    3.5804        .16112E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .65977        105.42        .53727E-02   -1.5546    
  27  Prefactor     .10000E-03    28.399        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     5.9006        68.710        .16495E-03   -1.5222    
  29  Prefactor     .10000E-03    29.439        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    1.0912        .16705        .23468E-03   -.90034    
  31  Prefactor     .88495        .13299        .21528E-03   -.96669    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.10249e-09
Minuit parameter uncertainties:
  1  4.67255
  2  9.15546e-06
  3  2.31572e-05
  4  13.8779
  5  8.66845e-06
  6  0.000625399
  7  0.000167999
  8  3.96225
  9  0.574528
  10  6.79805e-05
  11  2.35242e-05
  12  4.85571
  13  4.17288e-06
  14  3.80722
  15  2.74129e-06
  16  7.47187e-05
  17  29.5805
  18  4.30362
  19  2.25566
  20  61.0229
  21  5.60192e-05
  22  2.00076e-05
  23  3.22486e-05
  24  3.13658e-05
  25  4.04867e-06
  26  16.7086
  27  8.38955e-07
  28  40.3284
  29  8.53912e-07
  30  0.167128
  31  0.133042
Done.

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

Extracting fit parameters...

4FGL J1209.4+7608
   Spectrum: PowerLaw
397    Prefactor:  1.000e-04  7.472e-05  1.000e-04  1.000e+04 ( 1.000e-14)
398        Index:  2.167e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
399        Scale:  1.807e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
710    Prefactor:  8.850e-01  1.330e-01  0.000e+00  1.000e+01 ( 1.000e+00)
711        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
712        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
709   Normalization:  1.091e+00  1.671e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 182.363 76.137
Photon Flux Upper Limit: 3.86e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.93e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/372165/likelihoodResults_625276801_625536001_4FGL_J1209.4+7608_daily_bin1489.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) = 7646.66865141
delta logL = -0.000117451841106

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7646.66853465
delta logL = -6.87449755787e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10066E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2975       1.0000          .0000       10.000    
     3 'Normalizat'    1.0912       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88495       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7130E+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.

 FCN=   7646.669     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      272 TOTAL
                     EDM=   .82E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10537E-03    10.510        .18142E-01** at limit **
   2  Index         2.1851        8.8604        .50000        .19518E-04
   3  Normalizat    1.0912        .20247E-02    .23468E-03    .27380E-03
   4  Prefactor     .88495        .16993E-02    .21528E-03   -.17564E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000105365
  Index      = 2.18512
  Normalizat = 1.09122
  Prefactor  = 0.884949
 **********
 **   18 **HESSE 
 **********

 FCN=   7646.669     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      301 TOTAL
                     EDM=   .49E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10537E-03    66.329        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1851        5.4270        .50000       -.59798    
   3  Normalizat    1.0912        .50395E-02    .46936E-04   -.90034    
   4  Prefactor     .88495        .42295E-02    .86111E-05   -.96669    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.91468e-10
Minuit parameter uncertainties:
  1  0.0377715
  2  104.791
  3  0.00503946
  4  0.00422955
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/372165': 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) = 7646.66853411
delta logL = -1.49458173837e-07

Extracting fit parameters...

4FGL J1209.4+7608
   Spectrum: PowerLaw
397    Prefactor:  1.054e-04  3.777e-02  1.000e-04  1.000e+04 ( 1.000e-14)
398        Index:  2.185e+00  1.048e+02  0.000e+00  1.000e+01 (-1.000e+00)
399        Scale:  1.807e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
710    Prefactor:  8.849e-01  4.230e-03  0.000e+00  1.000e+01 ( 1.000e+00)
711        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
712        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
709   Normalization:  1.091e+00  5.039e-03  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 182.363 76.137

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/372165/cmap_HighResolution_625276801_625536001_4FGL_J1209.4+7608_daily_bin1489.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.93e-03', job_status='DONE', photon_flux_upper_limit='3.86e-08', time_completed='2021-09-05 02:26:07.835581', job_id='372165', GAL2='0.88', fit_tolerance='1e-08', EG2='1.09', EG='1.09', time_epoch_completed='1630833967.84', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.88', dlogl='-1.49e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.17' WHERE bin_id='1489' AND source_name='4FGL J1209.4+7608' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 02:26:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0071>
Subject: Job 372165: <4FGL_J1209.4+7608_daily_bin1489> in cluster <slac> Done

Job <4FGL_J1209.4+7608_daily_bin1489> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Sun Sep  5 02:10:31 2021
Job was executed on host(s) <bullet0071>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 02:10:33 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:10:33 2021
Terminated at Sun Sep  5 02:26:08 2021
Results reported at Sun Sep  5 02:26:08 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1209.4+7608_daily_bin1489 182.363 76.137 625276801 625536001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1209.4+7608 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   899.50 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             352.56 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   935 sec.
    Turnaround time :                            937 sec.

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

