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


Performing analysis on: 4FGL_J1203.3+1119_daily_bin583
RA = 180.833, Dec = 11.3231
tmin = 390441601, tmax = 390700801
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='288670', job_status='RUN', time_executed='2021-09-04 22:05:52.625786', time_epoch_executed='1630818352.63' WHERE source_name='4FGL J1203.3+1119' and cadence='daily' and bin_id='583'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/288670

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/288670/ft1_4FGL_J1203.3+1119_daily_bin583.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/288670/ft2_4FGL_J1203.3+1119_daily_bin583.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/288670/ft1_4FGL_J1203.3+1119_daily_bin583.fits outfile=/scratch/kocevski/288670/ft1_filteredMKT_4FGL_J1203.3+1119_daily_bin583.fits ra=180.833 dec=11.3231 rad=12.0 tmin=390441601.0 tmax=390700801.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.52
user 3.30
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/288670/ft2_4FGL_J1203.3+1119_daily_bin583.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/288670/ft1_filteredMKT_4FGL_J1203.3+1119_daily_bin583.fits evtable="EVENTS" outfile="/scratch/kocevski/288670/ft1_filtered_4FGL_J1203.3+1119_daily_bin583.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.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/288670/ft1_filtered_4FGL_J1203.3+1119_daily_bin583.fits" evtable="EVENTS" scfile=/scratch/kocevski/288670/ft2_4FGL_J1203.3+1119_daily_bin583.fits sctable="SC_DATA" outfile=/scratch/kocevski/288670/ltcube_390441601_390700801_4FGL_J1203.3+1119_daily_bin583.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/288670/ft2_4FGL_J1203.3+1119_daily_bin583.fits
.....................!
real 11.93
user 11.55
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/288670/ft1_filtered_4FGL_J1203.3+1119_daily_bin583.fits evtable="EVENTS" scfile=/scratch/kocevski/288670/ft2_4FGL_J1203.3+1119_daily_bin583.fits sctable="SC_DATA" expcube=/scratch/kocevski/288670/ltcube_390441601_390700801_4FGL_J1203.3+1119_daily_bin583.fits outfile=/scratch/kocevski/288670/expmap_390441601_390700801_4FGL_J1203.3+1119_daily_bin583.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/288670/ltcube_390441601_390700801_4FGL_J1203.3+1119_daily_bin583.fits
.....................!
real 190.29
user 185.03
sys 4.59

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/288670/ft1_filtered_4FGL_J1203.3+1119_daily_bin583.fits scfile=/scratch/kocevski/288670/ft2_4FGL_J1203.3+1119_daily_bin583.fits outfile=/scratch/kocevski/288670/cmap_390441601_390700801_4FGL_J1203.3+1119_daily_bin583.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.55
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/288670/ft1_filtered_4FGL_J1203.3+1119_daily_bin583.fits scfile=/scratch/kocevski/288670/ft2_4FGL_J1203.3+1119_daily_bin583.fits outfile=/scratch/kocevski/288670/cmap_HighResolution_390441601_390700801_4FGL_J1203.3+1119_daily_bin583.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.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    86.331       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10111E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .42310E-02   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10245E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .75852E-02   1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.9532       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10131E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.6588       1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.1262       1.0000         .10000E-03   10000.    
    15 'norm      '    .52783       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10380E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .65279       1.0000         .10000E-03   10000.    
    18 'norm      '    .10273E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    1.1516       1.0000         .10000E-03   10000.    
    21 'Prefactor '    22.759       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10131E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .89963       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.0802       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=   4216.068     FROM MIGRAD    STATUS=CONVERGED    615 CALLS     3101 TOTAL
                     EDM=   .52E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    5.9842       -.97083E-07** at limit **
   2  Prefactor     86.310        57.106        .44059E-06   -.11220E-04
   3  Prefactor     .10000E-03    19.567        .56831E-06** at limit **
   4  Prefactor     .10000E-03    30.081        .29670E-07** at limit **
   5  Prefactor     .10001E-03    1024.3       -.72751E-05** at limit **
   6  Prefactor     .10000E-03    34.299       -.51851E-06** at limit **
   7  Prefactor     .10000E-03    4.9107       -.17846E-07** at limit **
   8  Prefactor     .10072E-03    23.093       -.21521E-05** at limit **
   9  Prefactor     3.9531        4.2614        .40248E-06    .38022E-04
  10  Prefactor     .10000E-03    54.749       -.55712E-07** at limit **
  11  Prefactor     .10000E-03    24.295       -.13307E-06** at limit **
  12  Prefactor     .10000E-03    .75120        .38268E-07** at limit **
  13  Prefactor     2.6583        2.7828        .17984E-06    .54665E-04
  14  Prefactor     5.1037        66.183       -.14616E-05   -.19892E-04
  15  norm          .52722        4.3219        .20073E-05    .14636E-03
  16  Prefactor     .10000E-03    89.932        .10079E-05** at limit **
  17  norm          .65278        .28239        .31238E-07   -.17226E-03
  18  norm          .10000E-03    32.460       -.25080E-06** at limit **
  19  Prefactor     .10000E-03    64.429       -.15899E-07** at limit **
  20  norm          1.1517        .90445       -.95871E-07   -.41794E-03
  21  Prefactor     22.756        14.298        .15367E-06   -.31349E-04
  22  Prefactor     .10000E-03    56.660        .65857E-06** at limit **
  23  norm          .10000E-03    1.9213        .25351E-06** at limit **
  24  Prefactor     .10000E-03    27.139        .10896E-06** at limit **
  25  Normalizat    .89954        .24535       -.20674E-05   -.75867E-04
  26  Prefactor     1.0803        .21222       -.70083E-06   -.12370E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 86.3102
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100009
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100722
  Prefactor  = 3.95308
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.65833
  Prefactor  = 5.10369
  norm       = 0.527219
  Prefactor  = 0.0001
  norm       = 0.652781
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.15171
  Prefactor  = 22.7558
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.899543
  Prefactor  = 1.08034
 **********
 **   18 **HESSE 
 **********

 FCN=   4216.068     FROM HESSE     STATUS=OK           450 CALLS     3551 TOTAL
                     EDM=   .54E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    5.9875        .15511E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     86.310        57.200        .43238E-04   -1.3847    
   3  Prefactor     .10000E-03    20.042        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    30.082        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10001E-03    1028.3        .19424E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    34.759        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    4.9110        .14053E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10072E-03    130.49        .56953E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     3.9531        4.2577        .12963E-03   -1.5310    
  10  Prefactor     .10000E-03    54.762        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    24.301        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    .75381        .54936E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     2.6583        2.7717        .10536E-03   -1.5382    
  14  Prefactor     5.1037        65.743        .17757E-03   -1.5256    
  15  norm          .52722        4.2798        .25437E-03   -1.5563    
  16  Prefactor     .10000E-03    91.318        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .65278        .28133        .21492E-04   -1.5546    
  18  norm          .10000E-03    32.492        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    64.433        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          1.1517        .89835        .52340E-04   -1.5493    
  21  Prefactor     22.756        14.295        .83962E-04   -1.4754    
  22  Prefactor     .10000E-03    57.210        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    4.2626        .17340E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    27.148        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .89954        .27951        .28258E-03   -.96476    
  26  Prefactor     1.0803        .24518        .23725E-03   -.90098    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.36617e-09
Minuit parameter uncertainties:
  1  1.13378e-06
  2  57.2369
  3  0.000110545
  4  1.8707e-05
  5  0.0061994
  6  0.000151786
  7  6.83747e-07
  8  0.0194519
  9  4.25798
  10  1.25354e-05
  11  1.32161e-05
  12  1.49275e-06
  13  2.77188
  14  36.6844
  15  3.00426
  16  0.000360853
  17  0.281331
  18  6.95792e-05
  19  1.90967e-05
  20  0.898359
  21  14.2976
  22  0.000202161
  23  8.22265e-07
  24  2.80985e-05
  25  0.279964
  26  0.245434
Done.

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

Extracting fit parameters...

4FGL J1203.3+1119
   Spectrum: PowerLaw
314    Prefactor:  1.000e-04  1.254e-05  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.080e+00  2.454e-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:  8.995e-01  2.800e-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: 9.33e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.18e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/288670/likelihoodResults_390441601_390700801_4FGL_J1203.3+1119_daily_bin583.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) = 4216.06836142
delta logL = -8.68806391736e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4216.0682749
delta logL = -3.56212694896e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10133E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6223       1.0000          .0000       10.000    
     3 'Normalizat'    .89954       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0803       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=   4216.068     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      268 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10216E-03    258.52        .18142E-02** at limit **
   2  Index         2.5538        6.2727        .50000        .63878E-05
   3  Normalizat    .89954        .13915E-01    .28258E-03   -.20518E-05
   4  Prefactor     1.0803        .12751E-01    .23725E-03   -.11501E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000102156
  Index      = 2.55379
  Normalizat = 0.899543
  Prefactor  = 1.08034
 **********
 **   18 **HESSE 
 **********

 FCN=   4216.068     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      297 TOTAL
                     EDM=   .58E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10216E-03    1077.3        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5538        5.3232        .50000       -.51122    
   3  Normalizat    .89954        .29436E-01    .11303E-04   -.96476    
   4  Prefactor     1.0803        .26974E-01    .94899E-05   -.90097    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.75018e-09
Minuit parameter uncertainties:
  1  0.0982113
  2  804.445
  3  0.0294365
  4  0.0269743
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/288670': 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) = 4216.0682748
delta logL = -2.57755345956e-07

Extracting fit parameters...

4FGL J1203.3+1119
   Spectrum: PowerLaw
314    Prefactor:  1.022e-04  9.821e-02  1.000e-04  1.000e+04 ( 1.000e-14)
315        Index:  2.554e+00  8.044e+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:  1.080e+00  2.697e-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:  8.995e-01  2.944e-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/288670/cmap_HighResolution_390441601_390700801_4FGL_J1203.3+1119_daily_bin583.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.18e-03', job_status='DONE', photon_flux_upper_limit='9.33e-08', time_completed='2021-09-04 22:16:13.807315', job_id='288670', GAL2='1.08', fit_tolerance='1e-08', EG2='0.90', EG='0.90', time_epoch_completed='1630818973.81', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.08', dlogl='-2.58e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.34' WHERE bin_id='583' AND source_name='4FGL J1203.3+1119' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 22:16:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0243>
Subject: Job 288670: <4FGL_J1203.3+1119_daily_bin583> in cluster <slac> Done

Job <4FGL_J1203.3+1119_daily_bin583> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sat Sep  4 22:05:39 2021
Job was executed on host(s) <bullet0243>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 22:05:42 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:42 2021
Terminated at Sat Sep  4 22:16:14 2021
Results reported at Sat Sep  4 22:16:14 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1203.3+1119_daily_bin583 180.833 11.3231 390441601 390700801 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 :                                   616.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             342.55 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   632 sec.
    Turnaround time :                            635 sec.

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

