/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 26 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 = 7387
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1203.3+1119_daily_bin913
RA = 180.833, Dec = 11.3231
tmin = 475977601, tmax = 476236801
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='291804', job_status='RUN', time_executed='2021-09-04 22:17:13.663577', time_epoch_executed='1630819033.66' WHERE source_name='4FGL J1203.3+1119' and cadence='daily' and bin_id='913'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/291804

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/291804/ft1_4FGL_J1203.3+1119_daily_bin913.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/291804/ft2_4FGL_J1203.3+1119_daily_bin913.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/291804/ft1_4FGL_J1203.3+1119_daily_bin913.fits outfile=/scratch/kocevski/291804/ft1_filteredMKT_4FGL_J1203.3+1119_daily_bin913.fits ra=180.833 dec=11.3231 rad=12.0 tmin=475977601.0 tmax=476236801.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.79
user 3.34
sys 0.19

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/291804/ft1_filtered_4FGL_J1203.3+1119_daily_bin913.fits evtable="EVENTS" scfile=/scratch/kocevski/291804/ft2_4FGL_J1203.3+1119_daily_bin913.fits sctable="SC_DATA" expcube=/scratch/kocevski/291804/ltcube_475977601_476236801_4FGL_J1203.3+1119_daily_bin913.fits outfile=/scratch/kocevski/291804/expmap_475977601_476236801_4FGL_J1203.3+1119_daily_bin913.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/291804/ltcube_475977601_476236801_4FGL_J1203.3+1119_daily_bin913.fits
.....................!
real 190.95
user 186.40
sys 4.14

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/291804/ft1_filtered_4FGL_J1203.3+1119_daily_bin913.fits scfile=/scratch/kocevski/291804/ft2_4FGL_J1203.3+1119_daily_bin913.fits outfile=/scratch/kocevski/291804/cmap_475977601_476236801_4FGL_J1203.3+1119_daily_bin913.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.52
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/291804/ft1_filtered_4FGL_J1203.3+1119_daily_bin913.fits scfile=/scratch/kocevski/291804/ft2_4FGL_J1203.3+1119_daily_bin913.fits outfile=/scratch/kocevski/291804/cmap_HighResolution_475977601_476236801_4FGL_J1203.3+1119_daily_bin913.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.55
user 0.38
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    33.653       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10231E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.5473       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10528E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    7.4094       1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.1382       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .11219E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    12.200       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .50239E-01   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.9401       1.0000         .10000E-03   10000.    
    15 'norm      '    .15829E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10297E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .40537       1.0000         .10000E-03   10000.    
    18 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    35.548       1.0000         .10000E-03   10000.    
    20 'norm      '    1.3323       1.0000         .10000E-03   10000.    
    21 'Prefactor '    6.3036       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    1.9552       1.0000         .10000E-03   10000.    
    24 'Prefactor '    6.8473       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.2646       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .89342       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=   6510.354     FROM MIGRAD    STATUS=CONVERGED    619 CALLS     3169 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    7.5432        .29459E-06** at limit **
   2  Prefactor     33.679        28.745        .67725E-07    .81328E-04
   3  Prefactor     .10000E-03    8.9774        .23646E-06** at limit **
   4  Prefactor     2.5469        23.070        .18804E-04   -.12043E-03
   5  Prefactor     .10000E-03    43.065       -.15979E-06** at limit **
   6  Prefactor     .10000E-03    16.643        .20234E-06** at limit **
   7  Prefactor     .10000E-03    4.0565       -.54900E-06** at limit **
   8  Prefactor     7.4116        10.499        .17863E-05   -.45743E-04
   9  Prefactor     5.1394        4.4254       -.30452E-07    .57643E-04
  10  Prefactor     .10000E-03    49.219        .26524E-06** at limit **
  11  Prefactor     12.168        41.973        .30552E-05    .84306E-04
  12  Prefactor     .46918E-01    1.0930       -.15357E-06    .23510E-03
  13  Prefactor     .10000E-03    .87370        .49994E-07** at limit **
  14  Prefactor     3.9232        32.899        .65866E-05    .20893E-03
  15  norm          .10142E-03    1.9090       -.24046E-05** at limit **
  16  Prefactor     .10000E-03    10.431       -.10274E-05** at limit **
  17  norm          .40541        .21909       -.10120E-07    .15259E-03
  18  norm          .10000E-03    14.057       -.29807E-06** at limit **
  19  Prefactor     35.295        125.79       -.86758E-06   -.69437E-04
  20  norm          1.3314        .63821        .45642E-06    .63027E-02
  21  Prefactor     6.3043        6.2222       -.24349E-07    .40424E-04
  22  Prefactor     .10000E-03    19.726        .34954E-06** at limit **
  23  norm          1.9550        1.6332        .22796E-06    .10999E-02
  24  Prefactor     6.8674        185.45        .12051E-05    .20690E-04
  25  Normalizat    1.2647        .19377        .15172E-07    .77201E-03
  26  Prefactor     .89323        .16732        .46377E-06    .51086E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 33.6793
  Prefactor  = 0.0001
  Prefactor  = 2.54693
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.4116
  Prefactor  = 5.13936
  Prefactor  = 0.0001
  Prefactor  = 12.1684
  Prefactor  = 0.0469177
  Prefactor  = 0.0001
  Prefactor  = 3.92322
  norm       = 0.000101425
  Prefactor  = 0.0001
  norm       = 0.405406
  norm       = 0.0001
  Prefactor  = 35.2953
  norm       = 1.33143
  Prefactor  = 6.30427
  Prefactor  = 0.0001
  norm       = 1.95503
  Prefactor  = 6.86739
  Normalizat = 1.26474
  Prefactor  = 0.893228
 **********
 **   18 **HESSE 
 **********

 FCN=   6510.354     FROM HESSE     STATUS=OK           460 CALLS     3629 TOTAL
                     EDM=   .40E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    7.5934        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     33.679        28.780        .69076E-04   -1.4547    
   3  Prefactor     .10000E-03    9.0708        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     2.5469        21.999        .12792E-02   -1.5389    
   5  Prefactor     .10000E-03    43.079        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    16.887        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    4.0770        .15874E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     7.4116        10.478        .73671E-03   -1.5163    
   9  Prefactor     5.1394        4.4154        .14749E-03   -1.5255    
  10  Prefactor     .10000E-03    49.244        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     12.168        42.097        .11469E-03   -1.5010    
  12  Prefactor     .46918E-01    15.731        .15944E-02   -1.5665    
  13  Prefactor     .10000E-03    .87838        .73584E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     3.9232        32.034        .20323E-03   -1.5312    
  15  norm          .10142E-03    35.588        .18731E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    10.437        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .40541        .21674        .26871E-04   -1.5581    
  18  norm          .10000E-03    14.065        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     35.295        125.60        .33608E-03   -1.4519    
  20  norm          1.3314        .62036        .41220E-04   -1.5477    
  21  Prefactor     6.3043        6.2251        .15988E-03   -1.5206    
  22  Prefactor     .10000E-03    19.860        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          1.9550        1.6185        .89175E-04   -1.5428    
  24  Prefactor     6.8674        184.84        .15333E-03   -1.5184    
  25  Normalizat    1.2647        .23031        .24748E-03   -.84625    
  26  Prefactor     .89323        .19796        .25971E-03   -.96378    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.0058e-08
Minuit parameter uncertainties:
  1  7.61053e-06
  2  28.7919
  3  1.49887e-05
  4  14.9778
  5  2.70372e-05
  6  1.75148e-05
  7  1.97707e-05
  8  10.4807
  9  4.41569
  10  0.000145827
  11  42.1997
  12  1.71682
  13  6.20673e-07
  14  22.4371
  15  0.014251
  16  2.51185e-05
  17  0.216737
  18  4.15192e-05
  19  126.56
  20  0.620366
  21  6.22574
  22  1.65054e-05
  23  1.6185
  24  71.5012
  25  0.230492
  26  0.198115
Done.

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

Extracting fit parameters...

4FGL J1203.3+1119
   Spectrum: PowerLaw
314    Prefactor:  1.000e-04  1.458e-04  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:  8.932e-01  1.981e-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.265e+00  2.305e-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.00e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.39e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/291804/likelihoodResults_475977601_476236801_4FGL_J1203.3+1119_daily_bin913.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) = 6510.35435216
delta logL = -9.66669676927e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6510.35425606
delta logL = -5.62758032174e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10280E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.0137       1.0000          .0000       10.000    
     3 'Normalizat'    1.2647       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89323       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=   6510.354     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      236 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    11.250        .90712E-02** at limit **
   2  Index         2.9948        6.1612        .50000        .54003E-05
   3  Normalizat    1.2647        .27183E-02    .55966E-01    .27899E-04
   4  Prefactor     .89323        .24575E-02    .44919E-01    .27294E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.99479
  Normalizat = 1.26474
  Prefactor  = 0.89323
 **********
 **   18 **HESSE 
 **********

 FCN=   6510.354     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      269 TOTAL
                     EDM=   .34E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    221.01        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.9948        5.5978        .50000       -.41265    
   3  Normalizat    1.2647        .12126E-01    .24748E-03   -.84625    
   4  Prefactor     .89323        .10964E-01    .25971E-03   -.96378    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.43027e-07
Minuit parameter uncertainties:
  1  0.000331197
  2  500.995
  3  0.0121265
  4  0.0109643
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/291804': 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) = 6510.35425599
delta logL = -4.97119799547e-07

Extracting fit parameters...

4FGL J1203.3+1119
   Spectrum: PowerLaw
314    Prefactor:  1.000e-04  3.312e-04  1.000e-04  1.000e+04 ( 1.000e-14)
315        Index:  2.995e+00  5.010e+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:  8.932e-01  1.096e-02  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.265e+00  1.213e-02  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/291804/cmap_HighResolution_475977601_476236801_4FGL_J1203.3+1119_daily_bin913.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.39e-03', job_status='DONE', photon_flux_upper_limit='7.00e-08', time_completed='2021-09-04 22:30:47.444952', job_id='291804', GAL2='0.89', fit_tolerance='1e-08', EG2='1.26', EG='1.26', time_epoch_completed='1630819847.45', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.89', dlogl='-4.97e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.34' WHERE bin_id='913' AND source_name='4FGL J1203.3+1119' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 22:30:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0054>
Subject: Job 291804: <4FGL_J1203.3+1119_daily_bin913> in cluster <slac> Done

Job <4FGL_J1203.3+1119_daily_bin913> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Sat Sep  4 22:16:06 2021
Job was executed on host(s) <bullet0054>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 22:16:08 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:08 2021
Terminated at Sat Sep  4 22:30:48 2021
Results reported at Sat Sep  4 22:30:48 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1203.3+1119_daily_bin913 180.833 11.3231 475977601 476236801 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 :                                   795.25 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             293.18 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   879 sec.
    Turnaround time :                            882 sec.

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

