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


Performing analysis on: 4FGL_J1203.3+1119_daily_bin1240
RA = 180.833, Dec = 11.3231
tmin = 560736001, tmax = 560995201
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='292407', job_status='RUN', time_executed='2021-09-04 22:20:26.034815', time_epoch_executed='1630819226.03' WHERE source_name='4FGL J1203.3+1119' and cadence='daily' and bin_id='1240'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/292407

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/292407/ft1_4FGL_J1203.3+1119_daily_bin1240.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/292407/ft2_4FGL_J1203.3+1119_daily_bin1240.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/292407/ft1_4FGL_J1203.3+1119_daily_bin1240.fits outfile=/scratch/kocevski/292407/ft1_filteredMKT_4FGL_J1203.3+1119_daily_bin1240.fits ra=180.833 dec=11.3231 rad=12.0 tmin=560736001.0 tmax=560995201.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.73
user 3.53
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/292407/ft2_4FGL_J1203.3+1119_daily_bin1240.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/292407/ft1_filteredMKT_4FGL_J1203.3+1119_daily_bin1240.fits evtable="EVENTS" outfile="/scratch/kocevski/292407/ft1_filtered_4FGL_J1203.3+1119_daily_bin1240.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.52
user 0.33
sys 0.17

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/292407/ft1_filtered_4FGL_J1203.3+1119_daily_bin1240.fits evtable="EVENTS" scfile=/scratch/kocevski/292407/ft2_4FGL_J1203.3+1119_daily_bin1240.fits sctable="SC_DATA" expcube=/scratch/kocevski/292407/ltcube_560736001_560995201_4FGL_J1203.3+1119_daily_bin1240.fits outfile=/scratch/kocevski/292407/expmap_560736001_560995201_4FGL_J1203.3+1119_daily_bin1240.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/292407/ltcube_560736001_560995201_4FGL_J1203.3+1119_daily_bin1240.fits
.....................!
real 190.47
user 185.69
sys 4.47

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/292407/ft1_filtered_4FGL_J1203.3+1119_daily_bin1240.fits scfile=/scratch/kocevski/292407/ft2_4FGL_J1203.3+1119_daily_bin1240.fits outfile=/scratch/kocevski/292407/cmap_560736001_560995201_4FGL_J1203.3+1119_daily_bin1240.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.83
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/292407/ft1_filtered_4FGL_J1203.3+1119_daily_bin1240.fits scfile=/scratch/kocevski/292407/ft2_4FGL_J1203.3+1119_daily_bin1240.fits outfile=/scratch/kocevski/292407/cmap_HighResolution_560736001_560995201_4FGL_J1203.3+1119_daily_bin1240.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.54
user 0.38
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/292407/ft1_filtered_4FGL_J1203.3+1119_daily_bin1240.fits', '/scratch/kocevski/292407/ft2_4FGL_J1203.3+1119_daily_bin1240.fits', expMap='/scratch/kocevski/292407/expmap_560736001_560995201_4FGL_J1203.3+1119_daily_bin1240.fits', expCube='/scratch/kocevski/292407/ltcube_560736001_560995201_4FGL_J1203.3+1119_daily_bin1240.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/292407/Model_4FGL_J1203.3+1119_daily_bin1240.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/292407/ft1_filtered_4FGL_J1203.3+1119_daily_bin1240.fits
Spacecraft file(s): /scratch/kocevski/292407/ft2_4FGL_J1203.3+1119_daily_bin1240.fits
Exposure map: /scratch/kocevski/292407/expmap_560736001_560995201_4FGL_J1203.3+1119_daily_bin1240.fits
Exposure cube: /scratch/kocevski/292407/ltcube_560736001_560995201_4FGL_J1203.3+1119_daily_bin1240.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/292407/Model_4FGL_J1203.3+1119_daily_bin1240.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) = 862.47227144

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10036E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    27.903       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    17.445       1.0000         .10000E-03   10000.    
    11 'Prefactor '    174.34       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .11328E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    197.95       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .11056E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    1119.9       1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .24022E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.4113       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=   862.2963     FROM MIGRAD    STATUS=CONVERGED    600 CALLS     3521 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    19.257       -.43320E-07** at limit **
   2  Prefactor     .10000E-03    60.003        .11202E-04** at limit **
   3  Prefactor     .10000E-03    63.034        .13007E-05** at limit **
   4  Prefactor     .10000E-03    14.755       -.43655E-08** at limit **
   5  Prefactor     .10000E-03    140.36        .78219E-04** at limit **
   6  Prefactor     27.900        31.589       -.13112E-05    .53534E-04
   7  Prefactor     .10000E-03    7.6555       -.13347E-06** at limit **
   8  Prefactor     .10000E-03    40.430       -.19046E-04** at limit **
   9  Prefactor     .10000E-03    63.992       -.19782E-05** at limit **
  10  Prefactor     17.470        1605.1        .58901E-04    .59509E-05
  11  Prefactor     174.37        155.22        .21502E-04    .17405E-03
  12  Prefactor     .10000E-03    29.689        .12068E-04** at limit **
  13  Prefactor     .10000E-03    26.943       -.60098E-05** at limit **
  14  Prefactor     .10000E-03    88.737       -.44217E-04** at limit **
  15  norm          .10010E-03    20.622       -.96496E-06** at limit **
  16  Prefactor     .10000E-03    58.986        .14254E-04** at limit **
  17  norm          .10000E-03    52.344        .24853E-04** at limit **
  18  norm          197.92        169.89       -.20226E-04    .92623E-04
  19  Prefactor     .10000E-03    266.94        .61363E-04** at limit **
  20  norm          .10000E-03    1.0024        .45385E-06** at limit **
  21  Prefactor     .10000E-03    89.642       -.42755E-04** at limit **
  22  Prefactor     1119.8        680.66       -.32647E-04    .67219E-04
  23  norm          .10000E-03    1.7714       -.53336E-08** at limit **
  24  Prefactor     .10000E-03    1278.5       -.11754E-02** at limit **
  25  Normalizat    .10000E-01    .43987       -.12232E-04** at limit **
  26  Prefactor     1.4112        .29729        .41268E-06    .38930E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 27.8998
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 17.4699
  Prefactor  = 174.373
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100099
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 197.92
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 0.000100001
  Prefactor  = 1119.8
  norm       = 0.0001
  Prefactor  = 0.000100002
  Normalizat = 0.01
  Prefactor  = 1.41121
 **********
 **   18 **HESSE 
 **********

 FCN=   862.2963     FROM HESSE     STATUS=OK           436 CALLS     3957 TOTAL
                     EDM=   .44E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    19.271        .12591E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    60.005        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    63.034        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    14.755        .11021E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    140.34        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     27.900        31.565        .75842E-04   -1.4651    
   7  Prefactor     .10000E-03    7.6600        .79354E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    40.437        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    63.992        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     17.470        1602.4        .95893E-04   -1.4872    
  11  Prefactor     174.37        146.29        .15281E-03   -1.3059    
  12  Prefactor     .10000E-03    29.689        .15637E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    26.943        .14896E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    88.795        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10010E-03    42.518        .21133E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    58.987        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    52.343        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          197.92        151.39        .14358E-03   -1.2885    
  19  Prefactor     .10000E-03    266.95        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    1.0754        .56196E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    89.630        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     1119.8        680.22        .63421E-04   -.88836    
  23  norm          .10000E-03    1.7720        .38177E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    1276.6        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .10000E-01    .50715        .10283E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     1.4112        .27026        .19496E-03   -.80058    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.43395e-09
Minuit parameter uncertainties:
  1  2.53545e-06
  2  3.9178e-06
  3  3.55979e-06
  4  1.77549e-05
  5  0.000277768
  6  31.584
  7  5.32507e-05
  8  4.34815e-05
  9  9.66648e-07
  10  344.62
  11  146.596
  12  5.41921e-06
  13  1.81834e-05
  14  0.000362258
  15  0.0041102
  16  3.07593e-05
  17  1.13649e-07
  18  151.692
  19  0.000106979
  20  5.03464e-05
  21  0.000489378
  22  685.612
  23  6.60743e-06
  24  0.00356755
  25  2.64592e-05
  26  0.270528
Done.

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

Extracting fit parameters...

4FGL J1203.3+1119
   Spectrum: PowerLaw
314    Prefactor:  1.747e+01  3.446e+02  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:  1.411e+00  2.705e-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.000e-02  2.646e-05  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 180.833 11.323
Photon Flux Upper Limit: 5.03e-07 ph cm-2 s-1
Energy Flux Upper Limit: 3.87e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/292407/likelihoodResults_560736001_560995201_4FGL_J1203.3+1119_daily_bin1240.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) = 862.098068372
delta logL = 0.198192130874

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 862.095873776
delta logL = 0.200386726762

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    274.83       1.0000         .10000E-03   10000.    
     2 'Index     '    1.4507       1.0000          .0000       10.000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3945       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.

 FCN=   862.0959     FROM MIGRAD    STATUS=CONVERGED     46 CALLS      250 TOTAL
                     EDM=   .89E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     274.83        617.17        .61168E-03    .23621E-03
   2  Index         1.4505        1.0170        .17291       -.17207E-04
   3  Normalizat    .10000E-01    .46880        .19194    ** at limit **
   4  Prefactor     1.3946        .27919        .31138E-01   -.29833E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 274.827
  Index      = 1.45054
  Normalizat = 0.01
  Prefactor  = 1.39462
 **********
 **   18 **HESSE 
 **********

 FCN=   862.0959     FROM HESSE     STATUS=OK            29 CALLS      279 TOTAL
                     EDM=   .61E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     274.83        529.44        .12234E-03   -1.2377    
   2  Index         1.4505        .93168        .71347E-02   -.78934    
   3  Normalizat    .10000E-01    .55936        .10611E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.3946        .23698        .19535E-03   -.80536    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.07769e-09
Minuit parameter uncertainties:
  1  539.165
  2  0.942906
  3  3.5681e-06
  4  0.237167
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/292407': 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) = 862.095873497
delta logL = 0.200387005393

Extracting fit parameters...

4FGL J1203.3+1119
   Spectrum: PowerLaw
314    Prefactor:  2.748e+02  5.392e+02  1.000e-04  1.000e+04 ( 1.000e-14)
315        Index:  1.451e+00  9.429e-01  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:  1.395e+00  2.372e-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.000e-02  3.568e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 180.833 11.323

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/292407/cmap_HighResolution_560736001_560995201_4FGL_J1203.3+1119_daily_bin1240.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.87e-02', job_status='DONE', photon_flux_upper_limit='5.03e-07', time_completed='2021-09-04 22:28:43.164791', job_id='292407', GAL2='1.39', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1630819723.16', return_code2='0', ts='0.00', comment='SUCCESS', return_code='0', GAL='1.41', dlogl='2.00e-01', ts2='0.40', photon_index_error='0.00', photon_index='2.34' WHERE bin_id='1240' AND source_name='4FGL J1203.3+1119' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 22:28:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0287>
Subject: Job 292407: <4FGL_J1203.3+1119_daily_bin1240> in cluster <slac> Done

Job <4FGL_J1203.3+1119_daily_bin1240> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Sat Sep  4 22:16:46 2021
Job was executed on host(s) <bullet0287>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 22:16:47 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:16:47 2021
Terminated at Sat Sep  4 22:28:43 2021
Results reported at Sat Sep  4 22:28:43 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1203.3+1119_daily_bin1240 180.833 11.3231 560736001 560995201 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 :                                   385.41 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             220.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   716 sec.
    Turnaround time :                            717 sec.

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

