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


Performing analysis on: 4FGL_J1203.3+1119_daily_bin830
RA = 180.833, Dec = 11.3231
tmin = 454464001, tmax = 454723201
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='291675', job_status='RUN', time_executed='2021-09-04 22:16:14.202766', time_epoch_executed='1630818974.2' WHERE source_name='4FGL J1203.3+1119' and cadence='daily' and bin_id='830'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/291675

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/291675/ft1_4FGL_J1203.3+1119_daily_bin830.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/291675/ft2_4FGL_J1203.3+1119_daily_bin830.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/291675/ft1_4FGL_J1203.3+1119_daily_bin830.fits outfile=/scratch/kocevski/291675/ft1_filteredMKT_4FGL_J1203.3+1119_daily_bin830.fits ra=180.833 dec=11.3231 rad=12.0 tmin=454464001.0 tmax=454723201.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 4.52
user 3.33
sys 0.23

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/291675/ft2_4FGL_J1203.3+1119_daily_bin830.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/291675/ft2_4FGL_J1203.3+1119_daily_bin830.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/291675/ft1_filteredMKT_4FGL_J1203.3+1119_daily_bin830.fits evtable="EVENTS" outfile="/scratch/kocevski/291675/ft1_filtered_4FGL_J1203.3+1119_daily_bin830.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 1.49
user 0.33
sys 0.18

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/291675/ft1_filtered_4FGL_J1203.3+1119_daily_bin830.fits" evtable="EVENTS" scfile=/scratch/kocevski/291675/ft2_4FGL_J1203.3+1119_daily_bin830.fits sctable="SC_DATA" outfile=/scratch/kocevski/291675/ltcube_454464001_454723201_4FGL_J1203.3+1119_daily_bin830.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/291675/ft2_4FGL_J1203.3+1119_daily_bin830.fits
.....................!
real 13.69
user 11.76
sys 0.43

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/291675/ft1_filtered_4FGL_J1203.3+1119_daily_bin830.fits evtable="EVENTS" scfile=/scratch/kocevski/291675/ft2_4FGL_J1203.3+1119_daily_bin830.fits sctable="SC_DATA" expcube=/scratch/kocevski/291675/ltcube_454464001_454723201_4FGL_J1203.3+1119_daily_bin830.fits outfile=/scratch/kocevski/291675/expmap_454464001_454723201_4FGL_J1203.3+1119_daily_bin830.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/291675/ltcube_454464001_454723201_4FGL_J1203.3+1119_daily_bin830.fits
.....................!
real 193.98
user 187.11
sys 5.04

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

Setting source of interest to:
4FGL J1203.3+1119 @ 180.833 11.3231

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/291675/ft1_filtered_4FGL_J1203.3+1119_daily_bin830.fits scfile=/scratch/kocevski/291675/ft2_4FGL_J1203.3+1119_daily_bin830.fits outfile=/scratch/kocevski/291675/cmap_454464001_454723201_4FGL_J1203.3+1119_daily_bin830.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=180.833 yref=11.3231 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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/291675/ft1_filtered_4FGL_J1203.3+1119_daily_bin830.fits scfile=/scratch/kocevski/291675/ft2_4FGL_J1203.3+1119_daily_bin830.fits outfile=/scratch/kocevski/291675/cmap_HighResolution_454464001_454723201_4FGL_J1203.3+1119_daily_bin830.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=180.833 yref=11.3231 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.58
user 0.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/291675/ft1_filtered_4FGL_J1203.3+1119_daily_bin830.fits evtable="EVENTS" scfile=/scratch/kocevski/291675/ft2_4FGL_J1203.3+1119_daily_bin830.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/291675/Model_4FGL_J1203.3+1119_daily_bin830.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/291675/ft1_filtered_4FGL_J1203.3+1119_daily_bin830.fits.....................!
real 60.73
user 59.33
sys 1.22

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/291675/ft1_filtered_4FGL_J1203.3+1119_daily_bin830.fits', '/scratch/kocevski/291675/ft2_4FGL_J1203.3+1119_daily_bin830.fits', expMap='/scratch/kocevski/291675/expmap_454464001_454723201_4FGL_J1203.3+1119_daily_bin830.fits', expCube='/scratch/kocevski/291675/ltcube_454464001_454723201_4FGL_J1203.3+1119_daily_bin830.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/291675/Model_4FGL_J1203.3+1119_daily_bin830.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1203.3+1119'

4FGL J1203.3+1119
   Spectrum: PowerLaw
314    Prefactor:  8.766e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
315        Index:  2.339e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
316        Scale:  1.487e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/291675/ft1_filtered_4FGL_J1203.3+1119_daily_bin830.fits
Spacecraft file(s): /scratch/kocevski/291675/ft2_4FGL_J1203.3+1119_daily_bin830.fits
Exposure map: /scratch/kocevski/291675/expmap_454464001_454723201_4FGL_J1203.3+1119_daily_bin830.fits
Exposure cube: /scratch/kocevski/291675/ltcube_454464001_454723201_4FGL_J1203.3+1119_daily_bin830.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/291675/Model_4FGL_J1203.3+1119_daily_bin830.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) = 6222.14786563

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.0269       1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.7293       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .44556       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .30896E-02   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .66719       1.0000         .10000E-03   10000.    
    10 'Prefactor '    87.450       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .12510E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    13.657       1.0000         .10000E-03   10000.    
    15 'norm      '    .67174       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .49576       1.0000         .10000E-03   10000.    
    18 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    1.1849       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    2.6480       1.0000         .10000E-03   10000.    
    23 'norm      '    5.8054       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.3418       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .71811       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6260E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6222.145     FROM MIGRAD    STATUS=CONVERGED    681 CALLS     3652 TOTAL
                     EDM=   .66E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.0252        12.152        .39317E-05   -.19786E-03
   2  Prefactor     2.7303        61.245        .52502E-04   -.53349E-04
   3  Prefactor     .10000E-03    3.3722        .25311E-07** at limit **
   4  Prefactor     .10000E-03    7.9840        .25626E-07** at limit **
   5  Prefactor     .87152E-03    129.43        .36007E-05** at limit **
   6  Prefactor     .10001E-03    5.3284        .15983E-05** at limit **
   7  Prefactor     .10000E-03    1.5725        .13314E-07** at limit **
   8  Prefactor     .10000E-03    6.6408        .18463E-06** at limit **
   9  Prefactor     .66347        3.1110       -.73714E-06   -.60228E-03
  10  Prefactor     87.460        89.153       -.15122E-04   -.10997E-03
  11  Prefactor     .10000E-03    26.420       -.25670E-06** at limit **
  12  Prefactor     .10000E-03    1.4954        .33335E-06** at limit **
  13  Prefactor     .10000E-03    1.2955        .27130E-07** at limit **
  14  Prefactor     13.657        23.549       -.10874E-04   -.10178E-03
  15  norm          .67214        3.0124        .98580E-06   -.67402E-03
  16  Prefactor     .10000E-03    13.825        .85728E-07** at limit **
  17  norm          .49564        .29621        .19306E-07   -.87580E-03
  18  norm          .10000E-03    24.047        .37890E-06** at limit **
  19  Prefactor     .10000E-03    59.615        .33933E-06** at limit **
  20  norm          1.1848        .63450        .13527E-07   -.18067E-02
  21  Prefactor     .10000E-03    5.4720       -.25804E-06** at limit **
  22  Prefactor     2.6363        61.886        .17804E-04   -.43655E-04
  23  norm          5.8052        2.0036        .47602E-07   -.47719E-03
  24  Prefactor     .10000E-03    18.745        .10723E-07** at limit **
  25  Normalizat    1.3419        .19393       -.13134E-05   -.67776E-03
  26  Prefactor     .71809        .15954       -.59484E-06   -.56549E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 8.0252
  Prefactor  = 2.73025
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000871523
  Prefactor  = 0.000100011
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.663466
  Prefactor  = 87.4598
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.6571
  norm       = 0.67214
  Prefactor  = 0.0001
  norm       = 0.495635
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.18479
  Prefactor  = 0.0001
  Prefactor  = 2.63626
  norm       = 5.80518
  Prefactor  = 0.0001
  Normalizat = 1.34193
  Prefactor  = 0.71809
 **********
 **   18 **HESSE 
 **********

 FCN=   6222.145     FROM HESSE     STATUS=OK           474 CALLS     4126 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.0252        12.098        .14152E-03   -1.5141    
   2  Prefactor     2.7303        59.845        .24648E-03   -1.5377    
   3  Prefactor     .10000E-03    3.3778        .14144E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    8.0058        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .87152E-03    119.40        .21832       -1.5702    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10001E-03    8.2853        .64851E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    1.5737        .96599E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    6.6497        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .66347        5.2921        .25313E-02   -1.5545    
  10  Prefactor     87.460        89.822        .42963E-04   -1.3835    
  11  Prefactor     .10000E-03    26.499        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    4.7035        .17965E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    1.3090        .87549E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     13.657        23.340        .10839E-03   -1.4969    
  15  norm          .67214        4.3315        .21718E-02   -1.5544    
  16  Prefactor     .10000E-03    13.839        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .49564        .28938        .31752E-04   -1.5567    
  18  norm          .10000E-03    24.069        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    59.628        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          1.1848        .59825        .39251E-04   -1.5490    
  21  Prefactor     .10000E-03    5.4778        .17991E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     2.6363        61.292        .25053E-03   -1.5383    
  23  norm          5.8052        1.9959        .62464E-04   -1.5226    
  24  Prefactor     .10000E-03    18.748        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.3419        .22978        .23233E-03   -.82323    
  26  Prefactor     .71809        .18991        .27232E-03   -1.0282    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.32791e-09
Minuit parameter uncertainties:
  1  12.102
  2  25.5936
  3  1.74621e-06
  4  4.10772e-06
  5  0.608233
  6  0.000611954
  7  1.79749e-06
  8  4.49626e-05
  9  3.74777
  10  89.9615
  11  8.21934e-05
  12  7.54633e-05
  13  2.97573e-06
  14  23.3552
  15  3.41265
  16  2.31575e-05
  17  0.289377
  18  9.78524e-06
  19  4.03808e-05
  20  0.598251
  21  6.56643e-05
  22  25.4519
  23  1.99595
  24  1.64894e-06
  25  0.229955
  26  0.190082
Done.

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

Extracting fit parameters...

4FGL J1203.3+1119
   Spectrum: PowerLaw
314    Prefactor:  8.746e+01  8.996e+01  1.000e-04  1.000e+04 ( 1.000e-14)
315        Index:  2.339e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
316        Scale:  1.487e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
623    Prefactor:  7.181e-01  1.901e-01  0.000e+00  1.000e+01 ( 1.000e+00)
624        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
625        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
622   Normalization:  1.342e+00  2.300e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.41
Ra Dec: 180.833 11.323
Photon Index (Fixed Index): 2.34 +/- 0.00
Photon Flux (Fixed Index): 3.61e-08 +/- 3.71e-08
Energy Flux (Fixed Index): 1.29e-05 +/- 1.32e-05

TS (Fixed Index): 1.41
Ra Dec: 180.833 11.323
Photon Flux Upper Limit: 1.18e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.10e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/291675/likelihoodResults_454464001_454723201_4FGL_J1203.3+1119_daily_bin830.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) = 6221.61990726
delta logL = 0.525341489952

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6221.6052113
delta logL = 0.54003745523

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    17.668       1.0000         .10000E-03   10000.    
     2 'Index     '    3.5076       1.0000          .0000       10.000    
     3 'Normalizat'    1.2694       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .76156       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6260E+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=   6221.605     FROM MIGRAD    STATUS=CONVERGED     99 CALLS      331 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     17.583        395.18        .95286E-04    .90080E-04
   2  Index         3.5115        3.8592        .39396E-02    .87635E-04
   3  Normalizat    1.2662        .23368        .23801E-03    .23487E-03
   4  Prefactor     .76464        .19925        .26460E-03    .18037E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 17.5828
  Index      = 3.51152
  Normalizat = 1.26619
  Prefactor  = 0.764637
 **********
 **   18 **HESSE 
 **********

 FCN=   6221.605     FROM HESSE     STATUS=OK            25 CALLS      356 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     17.583        57.593        .38114E-05   -1.4869    
   2  Index         3.5115        1.5210        .15758E-03   -.30228    
   3  Normalizat    1.2662        .22859        .47602E-04   -.84581    
   4  Prefactor     .76464        .19692        .10584E-04   -1.0105    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.01735e-10
Minuit parameter uncertainties:
  1  57.7764
  2  1.54801
  3  0.228767
  4  0.197103
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/291675': 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) = 6221.60508666
delta logL = 0.540162089159

Extracting fit parameters...

4FGL J1203.3+1119
   Spectrum: PowerLaw
314    Prefactor:  1.758e+01  5.778e+01  1.000e-04  1.000e+04 ( 1.000e-14)
315        Index:  3.512e+00  1.548e+00  0.000e+00  1.000e+01 (-1.000e+00)
316        Scale:  1.487e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
623    Prefactor:  7.646e-01  1.971e-01  0.000e+00  1.000e+01 ( 1.000e+00)
624        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
625        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
622   Normalization:  1.266e+00  2.288e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.62
Ra Dec: 180.833 11.323
Photon Index (Free Index): 3.51 +/- 1.55
Photon Flux (Free Index): 9.18e-08 +/- 7.39e-08
Energy Flux (Free Index): 1.52e-05 +/- 1.10e-05

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/291675/cmap_HighResolution_454464001_454723201_4FGL_J1203.3+1119_daily_bin830.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.10e-03', comment='SUCCESS', photon_flux='3.61e-08', energy_flux2='1.52e-05', photon_flux_error='3.71e-08', dlogl='5.40e-01', energy_flux='1.29e-05', photon_flux2='9.18e-08', job_status='DONE', time_completed='2021-09-04 22:30:18.831815', photon_index_error2='1.55', photon_index2='3.51', ts='1.41', fit_tolerance='1e-08', GAL='0.72', photon_index_error='0.00', photon_flux_upper_limit='1.18e-07', energy_flux_error2='1.10e-05', EG='1.34', time_epoch_completed='1630819818.83', return_code='0', job_id='291675', GAL2='0.76', EG2='1.27', return_code2='0', energy_flux_error='1.32e-05', photon_flux_error2='7.39e-08', ts2='2.62', photon_index='2.34' WHERE bin_id='830' AND source_name='4FGL J1203.3+1119' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 22:30:18 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0225>
Subject: Job 291675: <4FGL_J1203.3+1119_daily_bin830> in cluster <slac> Done

Job <4FGL_J1203.3+1119_daily_bin830> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Sat Sep  4 22:15:55 2021
Job was executed on host(s) <bullet0225>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 22:15:58 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep  4 22:15:58 2021
Terminated at Sat Sep  4 22:30:19 2021
Results reported at Sat Sep  4 22:30:19 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1203.3+1119_daily_bin830 180.833 11.3231 454464001 454723201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1203.3+1119 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   836.15 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             335.64 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   861 sec.
    Turnaround time :                            864 sec.

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

