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


Performing analysis on: 4FGL_J1203.3+1119_daily_bin560
RA = 180.833, Dec = 11.3231
tmin = 384480001, tmax = 384739201
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='288632', job_status='RUN', time_executed='2021-09-04 22:05:59.612407', time_epoch_executed='1630818359.61' WHERE source_name='4FGL J1203.3+1119' and cadence='daily' and bin_id='560'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/288632

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/288632/ft1_4FGL_J1203.3+1119_daily_bin560.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/288632/ft2_4FGL_J1203.3+1119_daily_bin560.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/288632/ft1_4FGL_J1203.3+1119_daily_bin560.fits outfile=/scratch/kocevski/288632/ft1_filteredMKT_4FGL_J1203.3+1119_daily_bin560.fits ra=180.833 dec=11.3231 rad=12.0 tmin=384480001.0 tmax=384739201.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.91
user 3.69
sys 0.19

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/288632/ft1_filtered_4FGL_J1203.3+1119_daily_bin560.fits evtable="EVENTS" scfile=/scratch/kocevski/288632/ft2_4FGL_J1203.3+1119_daily_bin560.fits sctable="SC_DATA" expcube=/scratch/kocevski/288632/ltcube_384480001_384739201_4FGL_J1203.3+1119_daily_bin560.fits outfile=/scratch/kocevski/288632/expmap_384480001_384739201_4FGL_J1203.3+1119_daily_bin560.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/288632/ltcube_384480001_384739201_4FGL_J1203.3+1119_daily_bin560.fits
.....................!
real 189.60
user 184.33
sys 4.16

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/288632/ft1_filtered_4FGL_J1203.3+1119_daily_bin560.fits scfile=/scratch/kocevski/288632/ft2_4FGL_J1203.3+1119_daily_bin560.fits outfile=/scratch/kocevski/288632/cmap_384480001_384739201_4FGL_J1203.3+1119_daily_bin560.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.53
user 0.37
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    10.435       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10565E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10094E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10120E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .13467E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    33.599       1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.5304       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10058E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10132E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .11032E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    27.815       1.0000         .10000E-03   10000.    
    17 'norm      '    .10021E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    80.125       1.0000         .10000E-03   10000.    
    19 'Prefactor '    90.251       1.0000         .10000E-03   10000.    
    20 'norm      '    .84957       1.0000         .10000E-03   10000.    
    21 'Prefactor '    5.5924       1.0000         .10000E-03   10000.    
    22 'Prefactor '    44.701       1.0000         .10000E-03   10000.    
    23 'norm      '    12.833       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.3121       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.0075       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=   6928.083     FROM MIGRAD    STATUS=CONVERGED    623 CALLS     3122 TOTAL
                     EDM=   .51E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          10.434        10.313        .15343E-06   -.11622E-04
   2  Prefactor     .10000E-03    29.343        .39430E-07** at limit **
   3  Prefactor     .10000E-03    6.6643        .15790E-06** at limit **
   4  Prefactor     .10000E-03    8.9471        .28628E-07** at limit **
   5  Prefactor     .10000E-03    28.902       -.16852E-07** at limit **
   6  Prefactor     .10000E-03    3.5057        .59529E-07** at limit **
   7  Prefactor     .10000E-03    5.3353        .66177E-07** at limit **
   8  Prefactor     .10000E-03    4.6281       -.46719E-07** at limit **
   9  Prefactor     .10007E-03    2.9257        .17722E-05** at limit **
  10  Prefactor     .10000E-03    23.255        .47366E-06** at limit **
  11  Prefactor     33.573        42.663       -.11056E-05    .32682E-04
  12  Prefactor     5.5252        4.0050        .13645E-06   -.70083E-03
  13  Prefactor     .10000E-03    2.9831        .29250E-07** at limit **
  14  Prefactor     .10000E-03    64.277       -.46903E-06** at limit **
  15  norm          .10000E-03    4.8354       -.36222E-05** at limit **
  16  Prefactor     27.818        50.511       -.12505E-05    .11742E-05
  17  norm          .10000E-03    .10373        .74800E-07** at limit **
  18  norm          80.083        51.092       -.27817E-05    .41397E-04
  19  Prefactor     89.972        190.07        .45621E-05    .50829E-04
  20  norm          .84977        .57834       -.29083E-06   -.14796E-02
  21  Prefactor     5.5903        6.0571       -.13369E-06   -.44894E-03
  22  Prefactor     44.687        28.341        .37157E-06   -.91904E-05
  23  norm          12.836        2.8809       -.11257E-06    .16980E-04
  24  Prefactor     .10000E-03    20.844        .16196E-06** at limit **
  25  Normalizat    1.3124        .20707       -.11715E-05   -.34661E-03
  26  Prefactor     1.0073        .18042       -.38456E-06   -.38091E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 10.4337
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100072
  Prefactor  = 0.0001
  Prefactor  = 33.5732
  Prefactor  = 5.5252
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 27.818
  norm       = 0.0001
  norm       = 80.0835
  Prefactor  = 89.9725
  norm       = 0.849771
  Prefactor  = 5.59027
  Prefactor  = 44.687
  norm       = 12.8364
  Prefactor  = 0.0001
  Normalizat = 1.31238
  Prefactor  = 1.00729
 **********
 **   18 **HESSE 
 **********

 FCN=   6928.083     FROM HESSE     STATUS=OK           454 CALLS     3576 TOTAL
                     EDM=   .42E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          10.434        10.322        .12403E-03   -1.5062    
   2  Prefactor     .10000E-03    29.418        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    6.7029        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    8.9520        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    28.906        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    3.5150        .15221E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    5.3798        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    4.6311        .17486E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10007E-03    19.364        .24164E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    23.262        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     33.573        42.844        .69131E-04   -1.4548    
  12  Prefactor     5.5252        3.9017        .12874E-03   -1.5238    
  13  Prefactor     .10000E-03    3.0545        .27893E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    64.865        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    4.8906        .25183E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     27.818        50.446        .75961E-04   -1.4653    
  17  norm          .10000E-03    .12026        .52242E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          80.083        50.889        .22434E-03   -1.3916    
  19  Prefactor     89.972        190.01        .21149E-03   -1.3808    
  20  norm          .84977        .56363        .48603E-03   -1.5524    
  21  Prefactor     5.5903        6.0644        .84940E-03   -1.5235    
  22  Prefactor     44.687        28.394        .59966E-04   -1.4370    
  23  norm          12.836        2.8717        .63633E-04   -1.4991    
  24  Prefactor     .10000E-03    20.857        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.3124        .24962        .27470E-03   -.83198    
  26  Prefactor     1.0073        .21841        .27859E-03   -.92487    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.23428e-09
Minuit parameter uncertainties:
  1  10.3241
  2  8.87908e-05
  3  2.44168e-05
  4  8.40028e-06
  5  6.7615e-06
  6  1.02109e-05
  7  1.20641e-05
  8  4.40938e-06
  9  0.00236679
  10  7.22735e-05
  11  42.8833
  12  3.90185
  13  2.9794e-06
  14  0.000105571
  15  1.16365e-05
  16  50.5235
  17  1.7318e-06
  18  50.9163
  19  191.313
  20  0.563632
  21  6.06512
  22  28.4029
  23  2.87172
  24  3.05706e-05
  25  0.249854
  26  0.218606
Done.

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

Extracting fit parameters...

4FGL J1203.3+1119
   Spectrum: PowerLaw
314    Prefactor:  1.000e-04  7.227e-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.007e+00  2.186e-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.312e+00  2.499e-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: 5.08e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.91e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/288632/likelihoodResults_384480001_384739201_4FGL_J1203.3+1119_daily_bin560.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) = 6928.08359606
delta logL = -0.000191339239791

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6928.08340652
delta logL = -1.79520793608e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10337E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.8196       1.0000          .0000       10.000    
     3 'Normalizat'    1.3124       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0073       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=   6928.083     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      284 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10725E-03    5.3749        .18142E-01** at limit **
   2  Index         2.6688        8.4049        .50000        .18679E-04
   3  Normalizat    1.3124        .29420E-02    .27470E-03   -.11439E-03
   4  Prefactor     1.0073        .26690E-02    .27859E-03    .15262E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010725
  Index      = 2.66878
  Normalizat = 1.31237
  Prefactor  = 1.0073
 **********
 **   18 **HESSE 
 **********

 FCN=   6928.083     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      313 TOTAL
                     EDM=   .22E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10725E-03    85.958        .32517E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.6688        5.8421        .50000       -.48504    
   3  Normalizat    1.3124        .11832E-01    .10988E-04   -.83198    
   4  Prefactor     1.0073        .10734E-01    .11144E-04   -.92487    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.23774e-08
Minuit parameter uncertainties:
  1  0.0500013
  2  400.269
  3  0.0118318
  4  0.0107337
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/288632': 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) = 6928.08340592
delta logL = -1.19759260997e-06

Extracting fit parameters...

4FGL J1203.3+1119
   Spectrum: PowerLaw
314    Prefactor:  1.073e-04  5.000e-02  1.000e-04  1.000e+04 ( 1.000e-14)
315        Index:  2.669e+00  4.003e+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.007e+00  1.073e-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.312e+00  1.183e-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 -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/288632/cmap_HighResolution_384480001_384739201_4FGL_J1203.3+1119_daily_bin560.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.91e-03', job_status='DONE', photon_flux_upper_limit='5.08e-08', time_completed='2021-09-04 22:19:51.783307', job_id='288632', GAL2='1.01', fit_tolerance='1e-08', EG2='1.31', EG='1.31', time_epoch_completed='1630819191.78', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.01', dlogl='-1.20e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.34' WHERE bin_id='560' AND source_name='4FGL J1203.3+1119' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 22:19:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0283>
Subject: Job 288632: <4FGL_J1203.3+1119_daily_bin560> in cluster <slac> Done

Job <4FGL_J1203.3+1119_daily_bin560> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sat Sep  4 22:05:35 2021
Job was executed on host(s) <bullet0283>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 22:05:37 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:37 2021
Terminated at Sat Sep  4 22:19:52 2021
Results reported at Sat Sep  4 22:19:52 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1203.3+1119_daily_bin560 180.833 11.3231 384480001 384739201 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 :                                   826.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             330.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   855 sec.
    Turnaround time :                            857 sec.

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

