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


Performing analysis on: 4FGL_J1207.7-0106_daily_bin1280
RA = 181.928, Dec = -1.1063
tmin = 571104001, tmax = 571363201
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='333584', job_status='RUN', time_executed='2021-09-05 00:28:52.667703', time_epoch_executed='1630826932.67' WHERE source_name='4FGL J1207.7-0106' and cadence='daily' and bin_id='1280'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/333584

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/333584/ft1_4FGL_J1207.7-0106_daily_bin1280.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/333584/ft2_4FGL_J1207.7-0106_daily_bin1280.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/333584/ft1_4FGL_J1207.7-0106_daily_bin1280.fits outfile=/scratch/kocevski/333584/ft1_filteredMKT_4FGL_J1207.7-0106_daily_bin1280.fits ra=181.928 dec=-1.1063 rad=12.0 tmin=571104001.0 tmax=571363201.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.01
user 2.78
sys 0.16

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/333584/ft2_4FGL_J1207.7-0106_daily_bin1280.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/333584/ft1_filteredMKT_4FGL_J1207.7-0106_daily_bin1280.fits evtable="EVENTS" outfile="/scratch/kocevski/333584/ft1_filtered_4FGL_J1207.7-0106_daily_bin1280.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.57
user 0.35
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/333584/ft1_filtered_4FGL_J1207.7-0106_daily_bin1280.fits" evtable="EVENTS" scfile=/scratch/kocevski/333584/ft2_4FGL_J1207.7-0106_daily_bin1280.fits sctable="SC_DATA" outfile=/scratch/kocevski/333584/ltcube_571104001_571363201_4FGL_J1207.7-0106_daily_bin1280.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/333584/ft2_4FGL_J1207.7-0106_daily_bin1280.fits
.....................!
real 12.44
user 12.02
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/333584/ft1_filtered_4FGL_J1207.7-0106_daily_bin1280.fits evtable="EVENTS" scfile=/scratch/kocevski/333584/ft2_4FGL_J1207.7-0106_daily_bin1280.fits sctable="SC_DATA" expcube=/scratch/kocevski/333584/ltcube_571104001_571363201_4FGL_J1207.7-0106_daily_bin1280.fits outfile=/scratch/kocevski/333584/expmap_571104001_571363201_4FGL_J1207.7-0106_daily_bin1280.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/333584/ltcube_571104001_571363201_4FGL_J1207.7-0106_daily_bin1280.fits
.....................!
real 190.68
user 184.77
sys 5.38

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/333584/ft1_filtered_4FGL_J1207.7-0106_daily_bin1280.fits scfile=/scratch/kocevski/333584/ft2_4FGL_J1207.7-0106_daily_bin1280.fits outfile=/scratch/kocevski/333584/cmap_571104001_571363201_4FGL_J1207.7-0106_daily_bin1280.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.56
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/333584/ft1_filtered_4FGL_J1207.7-0106_daily_bin1280.fits scfile=/scratch/kocevski/333584/ft2_4FGL_J1207.7-0106_daily_bin1280.fits outfile=/scratch/kocevski/333584/cmap_HighResolution_571104001_571363201_4FGL_J1207.7-0106_daily_bin1280.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.55
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/333584/ft1_filtered_4FGL_J1207.7-0106_daily_bin1280.fits evtable="EVENTS" scfile=/scratch/kocevski/333584/ft2_4FGL_J1207.7-0106_daily_bin1280.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/333584/Model_4FGL_J1207.7-0106_daily_bin1280.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/333584/ft1_filtered_4FGL_J1207.7-0106_daily_bin1280.fits.....................!
real 37.82
user 36.46
sys 1.15

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/333584/ft1_filtered_4FGL_J1207.7-0106_daily_bin1280.fits', '/scratch/kocevski/333584/ft2_4FGL_J1207.7-0106_daily_bin1280.fits', expMap='/scratch/kocevski/333584/expmap_571104001_571363201_4FGL_J1207.7-0106_daily_bin1280.fits', expCube='/scratch/kocevski/333584/ltcube_571104001_571363201_4FGL_J1207.7-0106_daily_bin1280.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/333584/Model_4FGL_J1207.7-0106_daily_bin1280.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/333584/ft1_filtered_4FGL_J1207.7-0106_daily_bin1280.fits
Spacecraft file(s): /scratch/kocevski/333584/ft2_4FGL_J1207.7-0106_daily_bin1280.fits
Exposure map: /scratch/kocevski/333584/expmap_571104001_571363201_4FGL_J1207.7-0106_daily_bin1280.fits
Exposure cube: /scratch/kocevski/333584/ltcube_571104001_571363201_4FGL_J1207.7-0106_daily_bin1280.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/333584/Model_4FGL_J1207.7-0106_daily_bin1280.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) = 3504.29548149

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.3114       1.0000         .10000E-03   10000.    
     4 'Prefactor '    118.42       1.0000         .10000E-03   10000.    
     5 'norm      '    10.834       1.0000         .10000E-03   10000.    
     6 'Prefactor '    7.6268       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    127.76       1.0000         .10000E-03   10000.    
    10 'Prefactor '    7.2377       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    7.2902       1.0000         .10000E-03   10000.    
    13 'Prefactor '    15.922       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    10.859       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    14.398       1.0000         .10000E-03   10000.    
    19 'norm      '    5.6750       1.0000         .10000E-03   10000.    
    20 'norm      '    9.2280       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    3.4617       1.0000         .10000E-03   10000.    
    26 'norm      '    2.7033       1.0000         .10000E-03   10000.    
    27 'Prefactor '    4.1118       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    46.398       1.0000         .10000E-03   10000.    
    30 'norm      '    38.302       1.0000         .10000E-03   10000.    
    31 'Normalizat'    .81946       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .97143       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=   3504.167     FROM MIGRAD    STATUS=CONVERGED    820 CALLS     5079 TOTAL
                     EDM=   .33E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.0851        .83370E-07** at limit **
   2  norm          .10000E-03    18.060        .41477E-05** at limit **
   3  Prefactor     1.3116        4.6276       -.29302E-06   -.51888E-03
   4  Prefactor     118.41        70.325       -.19577E-06   -.18979E-05
   5  norm          10.835        9.5512        .14222E-06    .11505E-04
   6  Prefactor     7.6270        6.2638        .58599E-06    .38120E-04
   7  Prefactor     .10000E-03    28.189       -.25377E-05** at limit **
   8  Prefactor     .10000E-03    20.844       -.25886E-05** at limit **
   9  Prefactor     127.77        282.53        .11416E-04    .50891E-05
  10  Prefactor     7.2361        18.773       -.83303E-06   -.25206E-04
  11  Prefactor     .10000E-03    19.553       -.39678E-05** at limit **
  12  Prefactor     7.2904        21.494       -.25462E-06    .20405E-05
  13  Prefactor     15.921        19.141        .16367E-06    .42732E-04
  14  Prefactor     .10000E-03    124.29       -.21769E-04** at limit **
  15  Prefactor     .10000E-03    65.145       -.22645E-04** at limit **
  16  Prefactor     10.859        19.356        .21166E-07   -.36587E-05
  17  Prefactor     .10000E-03    23.784        .70450E-05** at limit **
  18  Prefactor     14.398        21.728        .10741E-06   -.19564E-04
  19  norm          5.6750        4.7233        .97157E-07   -.58244E-04
  20  norm          9.2280        5.8583        .23284E-06   -.19620E-03
  21  Prefactor     .10000E-03    14.642       -.16871E-06** at limit **
  22  norm          .10000E-03    21.163       -.16203E-05** at limit **
  23  Prefactor     .10000E-03    75.761        .12554E-04** at limit **
  24  norm          .10000E-03    .24635        .72646E-07** at limit **
  25  Prefactor     3.4615        11.231       -.46233E-06   -.15977E-03
  26  norm          2.7034        1.9772        .14765E-06   -.30166E-03
  27  Prefactor     4.1101        8.7244       -.45154E-06   -.20787E-03
  28  Prefactor     .10000E-03    81.987        .25851E-04** at limit **
  29  Prefactor     46.401        43.378        .17076E-05   -.11593E-05
  30  norm          38.303        36.524        .50717E-06   -.19262E-04
  31  Normalizat    .81944        .33768       -.19134E-05   -.11331E-04
  32  Prefactor     .97143        .21703       -.18111E-06   -.29699E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 1.3116
  Prefactor  = 118.415
  norm       = 10.8345
  Prefactor  = 7.62698
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 127.771
  Prefactor  = 7.23615
  Prefactor  = 0.0001
  Prefactor  = 7.29043
  Prefactor  = 15.9211
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.8593
  Prefactor  = 0.0001
  Prefactor  = 14.398
  norm       = 5.67502
  norm       = 9.22802
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 3.46155
  norm       = 2.70335
  Prefactor  = 4.11005
  Prefactor  = 0.0001
  Prefactor  = 46.4007
  norm       = 38.3035
  Normalizat = 0.819444
  Prefactor  = 0.971426
 **********
 **   18 **HESSE 
 **********

 FCN=   3504.167     FROM HESSE     STATUS=OK           659 CALLS     5738 TOTAL
                     EDM=   .64E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.1121        .14252E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    18.056        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.3116        4.6128        .23074E-03   -1.5479    
   4  Prefactor     118.41        70.275        .36978E-04   -1.3527    
   5  norm          10.835        9.5444        .12172E-03   -1.5050    
   6  Prefactor     7.6270        6.2602        .12413E-03   -1.5156    
   7  Prefactor     .10000E-03    28.304        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    20.847        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     127.77        283.33        .35617E-04   -1.3442    
  10  Prefactor     7.2361        18.746        .14909E-03   -1.5170    
  11  Prefactor     .10000E-03    19.548        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     7.2904        21.516        .14855E-03   -1.5168    
  13  Prefactor     15.921        19.197        .10037E-03   -1.4910    
  14  Prefactor     .10000E-03    125.17        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    65.042        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     10.859        19.341        .12158E-03   -1.5049    
  17  Prefactor     .10000E-03    23.769        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     14.398        21.815        .10556E-03   -1.4949    
  19  norm          5.6750        4.7312        .98006E-04   -1.5231    
  20  norm          9.2280        5.8885        .10433E-03   -1.5100    
  21  Prefactor     .10000E-03    14.643        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    21.164        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    75.707        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    .25597        .56925E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     3.4615        11.200        .21736E-03   -1.5336    
  26  norm          2.7034        1.9748        .67492E-04   -1.5379    
  27  Prefactor     4.1101        8.7012        .19880E-03   -1.5302    
  28  Prefactor     .10000E-03    82.293        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     46.401        43.374        .58864E-04   -1.4345    
  30  norm          38.303        36.489        .64762E-04   -1.4469    
  31  Normalizat    .81944        .39241        .35199E-03   -.99351    
  32  Prefactor     .97143        .25276        .23305E-03   -.93688    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.4366e-10
Minuit parameter uncertainties:
  1  4.56041e-06
  2  2.62069e-06
  3  4.61401
  4  70.3248
  5  9.54579
  6  6.26071
  7  6.99272e-06
  8  8.62392e-06
  9  286.428
  10  18.7607
  11  3.51152e-06
  12  21.5391
  13  19.2039
  14  0.000374769
  15  7.58848e-06
  16  19.3517
  17  9.06396e-06
  18  21.8273
  19  4.73149
  20  5.88885
  21  1.2335e-07
  22  4.93512e-06
  23  3.42247e-06
  24  5.73173e-08
  25  11.2066
  26  1.97484
  27  8.70389
  28  0.00016057
  29  43.4033
  30  36.5107
  31  0.393778
  32  0.253066
Done.

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

Extracting fit parameters...

4FGL J1207.7-0106
   Spectrum: PowerLaw
320    Prefactor:  1.086e+01  1.935e+01  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:  9.714e-01  2.531e-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:  8.194e-01  3.938e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.53
Ra Dec: 181.928 -1.106
Photon Flux Upper Limit: 1.40e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.08e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/333584/likelihoodResults_571104001_571363201_4FGL_J1207.7-0106_daily_bin1280.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): 0
logL (Free Index) = 3504.07484398
delta logL = 0.0919931131407

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3504.07035885
delta logL = 0.0964782432475

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    13.880       1.0000         .10000E-03   10000.    
     2 'Index     '    1.8077       1.0000          .0000       10.000    
     3 'Normalizat'    .82930       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96586       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=   3504.070     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      225 TOTAL
                     EDM=   .11E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.876        22.116       -.98349E-05   -.14663E-04
   2  Index         1.8060        1.0380        .21761E-05    .54599E-04
   3  Normalizat    .82954        .29640        .48306E-07   -.79047E-05
   4  Prefactor     .96608        .21324        .35878E-06   -.80877E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.8763
  Index      = 1.80597
  Normalizat = 0.829543
  Prefactor  = 0.96608
 **********
 **   18 **HESSE 
 **********

 FCN=   3504.070     FROM HESSE     STATUS=OK            31 CALLS      256 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.876        22.106        .10751E-03   -1.4963    
   2  Index         1.8060        1.0489        .10811E-02   -.69294    
   3  Normalizat    .82954        .33988        .34999E-03   -.98982    
   4  Prefactor     .96608        .24509        .23356E-03   -.93869    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.27972e-10
Minuit parameter uncertainties:
  1  22.1194
  2  1.0624
  3  0.340755
  4  0.245369
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/333584': 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) = 3504.07035241
delta logL = 0.0964846833403

Extracting fit parameters...

4FGL J1207.7-0106
   Spectrum: PowerLaw
320    Prefactor:  1.388e+01  2.212e+01  1.000e-04  1.000e+04 ( 1.000e-13)
321        Index:  1.806e+00  1.062e+00  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:  9.661e-01  2.454e-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:  8.295e-01  3.408e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.53
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/333584/cmap_HighResolution_571104001_571363201_4FGL_J1207.7-0106_daily_bin1280.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.08e-02', job_status='DONE', photon_flux_upper_limit='1.40e-07', time_completed='2021-09-05 00:40:37.159526', job_id='333584', GAL2='0.97', fit_tolerance='1e-08', EG2='0.83', EG='0.82', time_epoch_completed='1630827637.16', return_code2='0', ts='0.53', comment='SUCCESS', return_code='0', GAL='0.97', dlogl='9.65e-02', ts2='0.72', photon_index_error='0.00', photon_index='2.34' WHERE bin_id='1280' AND source_name='4FGL J1207.7-0106' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 00:40:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0228>
Subject: Job 333584: <4FGL_J1207.7-0106_daily_bin1280> in cluster <slac> Done

Job <4FGL_J1207.7-0106_daily_bin1280> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sun Sep  5 00:25:25 2021
Job was executed on host(s) <bullet0228>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 00:25: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:25:26 2021
Terminated at Sun Sep  5 00:40:37 2021
Results reported at Sun Sep  5 00:40:37 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1207.7-0106_daily_bin1280 181.928 -1.1063 571104001 571363201 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 :                                   699.42 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             234.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   911 sec.
    Turnaround time :                            912 sec.

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

