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


Performing analysis on: 4FGL_J1203.3+1119_daily_bin487
RA = 180.833, Dec = 11.3231
tmin = 365558401, tmax = 365817601
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='288519', job_status='RUN', time_executed='2021-09-04 22:05:43.269248', time_epoch_executed='1630818343.27' WHERE source_name='4FGL J1203.3+1119' and cadence='daily' and bin_id='487'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/288519

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/288519/ft1_4FGL_J1203.3+1119_daily_bin487.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/288519/ft2_4FGL_J1203.3+1119_daily_bin487.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/288519/ft1_4FGL_J1203.3+1119_daily_bin487.fits outfile=/scratch/kocevski/288519/ft1_filteredMKT_4FGL_J1203.3+1119_daily_bin487.fits ra=180.833 dec=11.3231 rad=12.0 tmin=365558401.0 tmax=365817601.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.69
user 3.38
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/288519/ft1_filtered_4FGL_J1203.3+1119_daily_bin487.fits" evtable="EVENTS" scfile=/scratch/kocevski/288519/ft2_4FGL_J1203.3+1119_daily_bin487.fits sctable="SC_DATA" outfile=/scratch/kocevski/288519/ltcube_365558401_365817601_4FGL_J1203.3+1119_daily_bin487.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/288519/ft2_4FGL_J1203.3+1119_daily_bin487.fits
.....................!
real 12.18
user 11.75
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/288519/ft1_filtered_4FGL_J1203.3+1119_daily_bin487.fits evtable="EVENTS" scfile=/scratch/kocevski/288519/ft2_4FGL_J1203.3+1119_daily_bin487.fits sctable="SC_DATA" expcube=/scratch/kocevski/288519/ltcube_365558401_365817601_4FGL_J1203.3+1119_daily_bin487.fits outfile=/scratch/kocevski/288519/expmap_365558401_365817601_4FGL_J1203.3+1119_daily_bin487.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/288519/ltcube_365558401_365817601_4FGL_J1203.3+1119_daily_bin487.fits
.....................!
real 191.31
user 186.29
sys 4.37

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/288519/ft1_filtered_4FGL_J1203.3+1119_daily_bin487.fits scfile=/scratch/kocevski/288519/ft2_4FGL_J1203.3+1119_daily_bin487.fits outfile=/scratch/kocevski/288519/cmap_365558401_365817601_4FGL_J1203.3+1119_daily_bin487.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.54
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/288519/ft1_filtered_4FGL_J1203.3+1119_daily_bin487.fits scfile=/scratch/kocevski/288519/ft2_4FGL_J1203.3+1119_daily_bin487.fits outfile=/scratch/kocevski/288519/cmap_HighResolution_365558401_365817601_4FGL_J1203.3+1119_daily_bin487.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.56
user 0.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    16.274       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10100E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    24.663       1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.6687       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10022E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    1.8126       1.0000         .10000E-03   10000.    
    18 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    174.20       1.0000         .10000E-03   10000.    
    20 'norm      '    .94816       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    4.9283       1.0000         .10000E-03   10000.    
    24 'Prefactor '    26.462       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.2040       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .99400       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=   6121.993     FROM MIGRAD    STATUS=CONVERGED    601 CALLS     3048 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    5.4144        .90712E-02** at limit **
   2  Prefactor     .10001E-03    34.254        .90712E-02** at limit **
   3  Prefactor     .10000E-03    3.7984        .90712E-02** at limit **
   4  Prefactor     .10003E-03    36.520        .90712E-02** at limit **
   5  Prefactor     .10008E-03    52.090        .90712E-02** at limit **
   6  Prefactor     16.274        13.226        .24820E-02    .53272E-03
   7  Prefactor     .10002E-03    16.952        .90712E-02** at limit **
   8  Prefactor     24.661        21.520        .20165E-02    .23620E-03
   9  Prefactor     2.6687        3.4357        .62369E-02    .47608E-03
  10  Prefactor     .10004E-03    48.524        .90712E-02** at limit **
  11  Prefactor     .10002E-03    17.601        .90712E-02** at limit **
  12  Prefactor     .10000E-03    2.4228        .90712E-02** at limit **
  13  Prefactor     .10000E-03    1.7297        .90712E-02** at limit **
  14  Prefactor     .10009E-03    19.488        .90712E-02** at limit **
  15  norm          .10000E-03    1.5653        .90712E-02** at limit **
  16  Prefactor     .10000E-03    11.330        .90712E-02** at limit **
  17  norm          1.8126        .39531        .50261E-02   -.55655E-03
  18  norm          .10001E-03    12.709        .90712E-02** at limit **
  19  Prefactor     174.20        145.54        .76435E-03   -.44014E-03
  20  norm          .94821        .60292        .10264E-01    .92304E-03
  21  Prefactor     .10000E-03    3.5152        .90712E-02** at limit **
  22  Prefactor     .10000E-03    11.409        .90712E-02** at limit **
  23  norm          4.9283        2.0532        .45293E-02    .17124E-04
  24  Prefactor     26.461        55.242        .19469E-02    .69114E-03
  25  Normalizat    1.2039        .20074        .60019E-01    .49568E-04
  26  Prefactor     .99410        .18035        .46192E-01    .38901E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.000100007
  Prefactor  = 0.0001
  Prefactor  = 0.00010003
  Prefactor  = 0.000100084
  Prefactor  = 16.2739
  Prefactor  = 0.000100024
  Prefactor  = 24.6614
  Prefactor  = 2.66869
  Prefactor  = 0.000100035
  Prefactor  = 0.000100019
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100085
  norm       = 0.0001
  Prefactor  = 0.000100002
  norm       = 1.81263
  norm       = 0.000100005
  Prefactor  = 174.2
  norm       = 0.948214
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.9283
  Prefactor  = 26.4606
  Normalizat = 1.20389
  Prefactor  = 0.994105
 **********
 **   18 **HESSE 
 **********

 FCN=   6121.993     FROM HESSE     STATUS=OK           446 CALLS     3494 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    5.4416        .17780E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10001E-03    34.431        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    3.8094        .14891E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10003E-03    36.679        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10008E-03    52.107        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     16.274        13.235        .49641E-03   -1.4901    
   7  Prefactor     .10002E-03    17.533        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     24.661        21.539        .80662E-04   -1.4714    
   9  Prefactor     2.6687        3.4224        .15789E-03   -1.5381    
  10  Prefactor     .10004E-03    48.537        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10002E-03    17.622        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    2.5242        .23733E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    1.7620        .10041E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10009E-03    19.535        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    1.5825        .95432E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    11.333        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.8126        .39595        .22208E-04   -1.5439    
  18  norm          .10001E-03    12.713        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     174.20        145.55        .15287E-03   -1.3061    
  20  norm          .94821        .59033        .46217E-04   -1.5513    
  21  Prefactor     .10000E-03    3.5207        .14326E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    11.422        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          4.9283        2.0507        .69471E-04   -1.5264    
  24  Prefactor     26.461        55.253        .77876E-04   -1.4679    
  25  Normalizat    1.2039        .23716        .26545E-03   -.86483    
  26  Prefactor     .99410        .21263        .26364E-03   -.92926    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.88054e-08
Minuit parameter uncertainties:
  1  2.63143e-05
  2  0.000996907
  3  1.0943e-05
  4  0.00210527
  5  0.00417621
  6  13.2375
  7  0.00130889
  8  21.5462
  9  3.42269
  10  0.00262189
  11  0.00115483
  12  2.57434e-05
  13  3.68564e-07
  14  0.00258192
  15  1.0619e-05
  16  0.000279483
  17  0.395953
  18  0.000518705
  19  145.849
  20  0.590336
  21  1.67774e-06
  22  1.58911e-05
  23  2.05078
  24  55.3596
  25  0.237377
  26  0.212808
Done.

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

Extracting fit parameters...

4FGL J1203.3+1119
   Spectrum: PowerLaw
314    Prefactor:  1.000e-04  2.622e-03  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:  9.941e-01  2.128e-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.204e+00  2.374e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 180.833 11.323
Photon Flux Upper Limit: 7.99e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.15e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/288519/likelihoodResults_365558401_365817601_4FGL_J1203.3+1119_daily_bin487.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) = 6121.99359656
delta logL = -9.80665408861e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6121.99349937
delta logL = -8.78096216184e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12520E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6890       1.0000          .0000       10.000    
     3 'Normalizat'    1.2039       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99411       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=   6121.993     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      271 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10379E-03    12.462        .18142E-01** at limit **
   2  Index         2.5922        5.9525        .50000        .76449E-05
   3  Normalizat    1.2039        .29118E-02    .26545E-03   -.16858E-03
   4  Prefactor     .99411        .26713E-02    .26364E-03    .11686E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010379
  Index      = 2.5922
  Normalizat = 1.20389
  Prefactor  = 0.994109
 **********
 **   18 **HESSE 
 **********

 FCN=   6121.993     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      300 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10379E-03    139.71        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5922        8.6860        .50000       -.50243    
   3  Normalizat    1.2039        .97900E-02    .53090E-04   -.86483    
   4  Prefactor     .99411        .89814E-02    .10546E-04   -.92926    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.31432e-09
Minuit parameter uncertainties:
  1  0.0461262
  2  376.906
  3  0.00979004
  4  0.00898136
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/288519': 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) = 6121.99349885
delta logL = -3.63905201084e-07

Extracting fit parameters...

4FGL J1203.3+1119
   Spectrum: PowerLaw
314    Prefactor:  1.038e-04  4.613e-02  1.000e-04  1.000e+04 ( 1.000e-14)
315        Index:  2.592e+00  3.769e+02  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:  9.941e-01  8.981e-03  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.204e+00  9.790e-03  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/288519/cmap_HighResolution_365558401_365817601_4FGL_J1203.3+1119_daily_bin487.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.15e-03', job_status='DONE', photon_flux_upper_limit='7.99e-08', time_completed='2021-09-04 22:18:33.401548', job_id='288519', GAL2='0.99', fit_tolerance='1e-08', EG2='1.20', EG='1.20', time_epoch_completed='1630819113.4', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.99', dlogl='-3.64e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.34' WHERE bin_id='487' AND source_name='4FGL J1203.3+1119' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 22:18:33 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0057>
Subject: Job 288519: <4FGL_J1203.3+1119_daily_bin487> in cluster <slac> Done

Job <4FGL_J1203.3+1119_daily_bin487> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sat Sep  4 22:05:27 2021
Job was executed on host(s) <bullet0057>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 22:05:29 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:05:29 2021
Terminated at Sat Sep  4 22:18:34 2021
Results reported at Sat Sep  4 22:18:34 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1203.3+1119_daily_bin487 180.833 11.3231 365558401 365817601 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 :                                   765.26 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             348.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   784 sec.
    Turnaround time :                            787 sec.

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

