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


Performing analysis on: 4FGL_J1207.7-0106_daily_bin959
RA = 181.928, Dec = -1.1063
tmin = 487900801, tmax = 488160001
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='331845', job_status='RUN', time_executed='2021-09-05 00:24:03.194452', time_epoch_executed='1630826643.19' WHERE source_name='4FGL J1207.7-0106' and cadence='daily' and bin_id='959'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/331845

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/331845/ft1_4FGL_J1207.7-0106_daily_bin959.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/331845/ft2_4FGL_J1207.7-0106_daily_bin959.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/331845/ft1_4FGL_J1207.7-0106_daily_bin959.fits outfile=/scratch/kocevski/331845/ft1_filteredMKT_4FGL_J1207.7-0106_daily_bin959.fits ra=181.928 dec=-1.1063 rad=12.0 tmin=487900801.0 tmax=488160001.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 6.18
user 5.97
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/331845/ft2_4FGL_J1207.7-0106_daily_bin959.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/331845/ft2_4FGL_J1207.7-0106_daily_bin959.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/331845/ft1_filteredMKT_4FGL_J1207.7-0106_daily_bin959.fits evtable="EVENTS" outfile="/scratch/kocevski/331845/ft1_filtered_4FGL_J1207.7-0106_daily_bin959.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.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/331845/ft1_filtered_4FGL_J1207.7-0106_daily_bin959.fits" evtable="EVENTS" scfile=/scratch/kocevski/331845/ft2_4FGL_J1207.7-0106_daily_bin959.fits sctable="SC_DATA" outfile=/scratch/kocevski/331845/ltcube_487900801_488160001_4FGL_J1207.7-0106_daily_bin959.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/331845/ft2_4FGL_J1207.7-0106_daily_bin959.fits
.....................!
real 12.16
user 11.78
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/331845/ft1_filtered_4FGL_J1207.7-0106_daily_bin959.fits evtable="EVENTS" scfile=/scratch/kocevski/331845/ft2_4FGL_J1207.7-0106_daily_bin959.fits sctable="SC_DATA" expcube=/scratch/kocevski/331845/ltcube_487900801_488160001_4FGL_J1207.7-0106_daily_bin959.fits outfile=/scratch/kocevski/331845/expmap_487900801_488160001_4FGL_J1207.7-0106_daily_bin959.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/331845/ltcube_487900801_488160001_4FGL_J1207.7-0106_daily_bin959.fits
.....................!
real 189.89
user 184.64
sys 4.87

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

Setting source of interest to:
4FGL J1207.7-0106 @ 181.928 -1.1063

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/331845/ft1_filtered_4FGL_J1207.7-0106_daily_bin959.fits scfile=/scratch/kocevski/331845/ft2_4FGL_J1207.7-0106_daily_bin959.fits outfile=/scratch/kocevski/331845/cmap_487900801_488160001_4FGL_J1207.7-0106_daily_bin959.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=181.928 yref=-1.1063 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.35
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/331845/ft1_filtered_4FGL_J1207.7-0106_daily_bin959.fits scfile=/scratch/kocevski/331845/ft2_4FGL_J1207.7-0106_daily_bin959.fits outfile=/scratch/kocevski/331845/cmap_HighResolution_487900801_488160001_4FGL_J1207.7-0106_daily_bin959.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=181.928 yref=-1.1063 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.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/331845/ft1_filtered_4FGL_J1207.7-0106_daily_bin959.fits evtable="EVENTS" scfile=/scratch/kocevski/331845/ft2_4FGL_J1207.7-0106_daily_bin959.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/331845/Model_4FGL_J1207.7-0106_daily_bin959.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/331845/ft1_filtered_4FGL_J1207.7-0106_daily_bin959.fits.....................!
real 44.11
user 41.89
sys 1.18

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/331845/ft1_filtered_4FGL_J1207.7-0106_daily_bin959.fits', '/scratch/kocevski/331845/ft2_4FGL_J1207.7-0106_daily_bin959.fits', expMap='/scratch/kocevski/331845/expmap_487900801_488160001_4FGL_J1207.7-0106_daily_bin959.fits', expCube='/scratch/kocevski/331845/ltcube_487900801_488160001_4FGL_J1207.7-0106_daily_bin959.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/331845/Model_4FGL_J1207.7-0106_daily_bin959.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1207.7-0106'

4FGL J1207.7-0106
   Spectrum: PowerLaw
320    Prefactor:  4.320e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
321        Index:  2.338e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
322        Scale:  1.045e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/331845/ft1_filtered_4FGL_J1207.7-0106_daily_bin959.fits
Spacecraft file(s): /scratch/kocevski/331845/ft2_4FGL_J1207.7-0106_daily_bin959.fits
Exposure map: /scratch/kocevski/331845/expmap_487900801_488160001_4FGL_J1207.7-0106_daily_bin959.fits
Exposure cube: /scratch/kocevski/331845/ltcube_487900801_488160001_4FGL_J1207.7-0106_daily_bin959.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/331845/Model_4FGL_J1207.7-0106_daily_bin959.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) = 4260.06322151

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    8.1910       1.0000         .10000E-03   10000.    
     4 'Prefactor '    16.023       1.0000         .10000E-03   10000.    
     5 'norm      '    .10138E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10210E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    43.028       1.0000         .10000E-03   10000.    
     9 'Prefactor '    233.84       1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.6969       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10132E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.2899       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .11595E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    47.387       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .14417E-02   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10064E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.4184       1.0000         .10000E-03   10000.    
    19 'norm      '    5.9815       1.0000         .10000E-03   10000.    
    20 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    26.007       1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    2.1186       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    5.3203       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    28.727       1.0000         .10000E-03   10000.    
    30 'norm      '    44.051       1.0000         .10000E-03   10000.    
    31 'Normalizat'    .69594       1.0000         .10000E-01   10.000    
    32 'Prefactor '    1.2084       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6270E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4260.050     FROM MIGRAD    STATUS=CONVERGED    836 CALLS     4294 TOTAL
                     EDM=   .70E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.7053        .11609E-06** at limit **
   2  norm          .10000E-03    17.115        .49186E-06** at limit **
   3  Prefactor     8.1907        3.9743        .20425E-07   -.15830E-04
   4  Prefactor     16.029        40.052       -.16672E-06   -.52638E-05
   5  norm          .10000E-03    9.4717       -.74419E-07** at limit **
   6  Prefactor     .10000E-03    3.6088        .92582E-07** at limit **
   7  Prefactor     .10000E-03    8.2613        .23660E-06** at limit **
   8  Prefactor     43.026        31.533        .23426E-07   -.65640E-05
   9  Prefactor     233.63        167.25        .75050E-05    .12949E-05
  10  Prefactor     6.6961        10.901       -.75563E-07   -.10548E-04
  11  Prefactor     .10000E-03    26.570        .26944E-06** at limit **
  12  Prefactor     3.2797        9.1386       -.34275E-06   -.30150E-04
  13  Prefactor     .10000E-03    17.726        .38293E-06** at limit **
  14  Prefactor     47.399        43.938       -.55140E-06   -.59334E-05
  15  Prefactor     .10000E-03    185.63        .46280E-05** at limit **
  16  Prefactor     .10000E-03    34.485        .11544E-05** at limit **
  17  Prefactor     .10000E-03    20.532       -.48918E-06** at limit **
  18  Prefactor     2.4197        8.2625        .22347E-05   -.21025E-05
  19  norm          5.9826        3.5818       -.52901E-07   -.21218E-04
  20  norm          .10000E-03    2.7088       -.21264E-07** at limit **
  21  Prefactor     26.009        35.302       -.19105E-07   -.17028E-05
  22  norm          .10000E-03    22.590       -.40594E-06** at limit **
  23  Prefactor     .10000E-03    69.715       -.17445E-05** at limit **
  24  norm          2.1184        .79737       -.55423E-08   -.68174E-04
  25  Prefactor     .10000E-03    5.2810        .10684E-07** at limit **
  26  norm          5.3205        2.4399        .29432E-07   -.76556E-05
  27  Prefactor     .10000E-03    7.1932       -.46583E-07** at limit **
  28  Prefactor     .10000E-03    19.492       -.27587E-06** at limit **
  29  Prefactor     28.724        43.519        .31886E-06    .72374E-07
  30  norm          44.055        33.746       -.11384E-07   -.38023E-06
  31  Normalizat    .69641        .28233        .33954E-06   -.26472E-04
  32  Prefactor     1.2080        .21053       -.90003E-06   -.18791E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 8.19073
  Prefactor  = 16.0291
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 43.026
  Prefactor  = 233.633
  Prefactor  = 6.69614
  Prefactor  = 0.0001
  Prefactor  = 3.27966
  Prefactor  = 0.0001
  Prefactor  = 47.3995
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.41966
  norm       = 5.98255
  norm       = 0.0001
  Prefactor  = 26.0089
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 2.11841
  Prefactor  = 0.0001
  norm       = 5.3205
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 28.7243
  norm       = 44.0549
  Normalizat = 0.696412
  Prefactor  = 1.20799
 **********
 **   18 **HESSE 
 **********

 FCN=   4260.050     FROM HESSE     STATUS=OK           653 CALLS     4947 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.7636        .15191E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    17.126        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     8.1907        3.9773        .86620E-04   -1.5135    
   4  Prefactor     16.029        39.988        .10006E-03   -1.4907    
   5  norm          .10000E-03    9.5448        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    3.6514        .12100E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    8.2657        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     43.026        31.533        .61115E-04   -1.4395    
   9  Prefactor     233.63        167.93        .13235E-03   -1.2639    
  10  Prefactor     6.6961        10.896        .77529E-03   -1.5190    
  11  Prefactor     .10000E-03    26.579        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     3.2797        9.1215        .22323E-03   -1.5346    
  13  Prefactor     .10000E-03    17.830        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     47.399        43.945        .58248E-04   -1.4330    
  15  Prefactor     .10000E-03    186.53        .20502E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    34.693        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    20.567        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     2.4197        8.2807        .13160E-02   -1.5397    
  19  norm          5.9826        3.5856        .90995E-04   -1.5219    
  20  norm          .10000E-03    2.7569        .10471E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     26.009        35.304        .78552E-04   -1.4688    
  22  norm          .10000E-03    22.599        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    69.732        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          2.1184        .79595        .33455E-04   -1.5417    
  25  Prefactor     .10000E-03    5.2944        .14648E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          5.3205        2.4387        .65881E-04   -1.5247    
  27  Prefactor     .10000E-03    7.2500        .17087E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    19.500        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     28.724        43.540        .74750E-04   -1.4636    
  30  norm          44.055        33.755        .60405E-04   -1.4380    
  31  Normalizat    .69641        .32237        .37119E-03   -1.0403    
  32  Prefactor     1.2080        .24151        .22642E-03   -.86086    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.04281e-10
Minuit parameter uncertainties:
  1  7.0668e-06
  2  7.73478e-06
  3  3.97741
  4  40.0547
  5  1.20314e-05
  6  5.38377e-06
  7  3.23019e-06
  8  31.5457
  9  168.274
  10  10.8993
  11  9.53502e-06
  12  9.12539
  13  2.13458e-05
  14  43.9749
  15  0.000900892
  16  9.06606e-06
  17  1.13378e-05
  18  8.28464
  19  3.58569
  20  2.06645e-06
  21  35.3327
  22  3.3826e-06
  23  2.14077e-05
  24  0.795954
  25  1.73526e-06
  26  2.43876
  27  4.38432e-06
  28  1.14955e-06
  29  43.5886
  30  33.7696
  31  0.323251
  32  0.241732
Done.

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

Extracting fit parameters...

4FGL J1207.7-0106
   Spectrum: PowerLaw
320    Prefactor:  1.000e-04  9.066e-06  1.000e-04  1.000e+04 ( 1.000e-13)
321        Index:  2.338e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
322        Scale:  1.045e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
624    Prefactor:  1.208e+00  2.417e-01  0.000e+00  1.000e+01 ( 1.000e+00)
625        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
626        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
623   Normalization:  6.964e-01  3.233e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 181.928 -1.106
Photon Flux Upper Limit: 1.19e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.19e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/331845/likelihoodResults_487900801_488160001_4FGL_J1207.7-0106_daily_bin959.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) = 4260.05046058
delta logL = -0.000137263716169

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4260.05031963
delta logL = 3.68775454263e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .69332E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.9434       1.0000          .0000       10.000    
     3 'Normalizat'    .69641       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2080       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6270E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4260.040     FROM MIGRAD    STATUS=CONVERGED    125 CALLS      317 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .67899        15.467        .42356E-01    .60609E-03
   2  Index         3.5438        .66619        .50000        .42350E-05
   3  Normalizat    .68415        .13293E-01    .84513E-01    .25778E-04
   4  Prefactor     1.2130        .10457E-01    .51127E-01    .36161E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.678986
  Index      = 3.54378
  Normalizat = 0.684149
  Prefactor  = 1.21298
 **********
 **   18 **HESSE 
 **********

 FCN=   4260.040     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      350 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .67899        1432.1        .24917E-02   -1.5543    
   2  Index         3.5438        6.6318        .44250E-02   -.29553    
   3  Normalizat    .68415        .28301        .37431E-03   -1.0452    
   4  Prefactor     1.2130        .17413        .22602E-03   -.85933    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.95167e-09
Minuit parameter uncertainties:
  1  63.9581
  2  37.7626
  3  0.283611
  4  0.174214
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/331845': 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) = 4260.03951127
delta logL = 0.0108120393097

Extracting fit parameters...

4FGL J1207.7-0106
   Spectrum: PowerLaw
320    Prefactor:  6.790e-01  6.396e+01  1.000e-04  1.000e+04 ( 1.000e-13)
321        Index:  3.544e+00  3.776e+01  0.000e+00  1.000e+01 (-1.000e+00)
322        Scale:  1.045e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
624    Prefactor:  1.213e+00  1.742e-01  0.000e+00  1.000e+01 ( 1.000e+00)
625        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
626        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
623   Normalization:  6.841e-01  2.836e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 181.928 -1.106

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/331845/cmap_HighResolution_487900801_488160001_4FGL_J1207.7-0106_daily_bin959.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.19e-03', job_status='DONE', photon_flux_upper_limit='1.19e-07', time_completed='2021-09-05 00:37:00.726263', job_id='331845', GAL2='1.21', fit_tolerance='1e-08', EG2='0.68', EG='0.70', time_epoch_completed='1630827420.73', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.21', dlogl='1.08e-02', ts2='0.02', photon_index_error='0.00', photon_index='2.34' WHERE bin_id='959' AND source_name='4FGL J1207.7-0106' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 00:37:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0230>
Subject: Job 331845: <4FGL_J1207.7-0106_daily_bin959> in cluster <slac> Done

Job <4FGL_J1207.7-0106_daily_bin959> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Sun Sep  5 00:20:23 2021
Job was executed on host(s) <bullet0230>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 00:20:26 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep  5 00:20:26 2021
Terminated at Sun Sep  5 00:37:01 2021
Results reported at Sun Sep  5 00:37:01 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1207.7-0106_daily_bin959 181.928 -1.1063 487900801 488160001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1207.7-0106 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   761.02 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             250.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   995 sec.
    Turnaround time :                            998 sec.

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

