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


Performing analysis on: 4FGL_J1203.3+1119_daily_bin1523
RA = 180.833, Dec = 11.3231
tmin = 634089601, tmax = 634348801
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='293645', job_status='RUN', time_executed='2021-09-04 22:24:34.943714', time_epoch_executed='1630819474.94' WHERE source_name='4FGL J1203.3+1119' and cadence='daily' and bin_id='1523'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/293645

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/293645/ft1_4FGL_J1203.3+1119_daily_bin1523.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/293645/ft2_4FGL_J1203.3+1119_daily_bin1523.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/293645/ft1_4FGL_J1203.3+1119_daily_bin1523.fits outfile=/scratch/kocevski/293645/ft1_filteredMKT_4FGL_J1203.3+1119_daily_bin1523.fits ra=180.833 dec=11.3231 rad=12.0 tmin=634089601.0 tmax=634348801.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 4.92
user 4.64
sys 0.25

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/293645/ft1_filtered_4FGL_J1203.3+1119_daily_bin1523.fits evtable="EVENTS" scfile=/scratch/kocevski/293645/ft2_4FGL_J1203.3+1119_daily_bin1523.fits sctable="SC_DATA" expcube=/scratch/kocevski/293645/ltcube_634089601_634348801_4FGL_J1203.3+1119_daily_bin1523.fits outfile=/scratch/kocevski/293645/expmap_634089601_634348801_4FGL_J1203.3+1119_daily_bin1523.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/293645/ltcube_634089601_634348801_4FGL_J1203.3+1119_daily_bin1523.fits
.....................!
real 190.94
user 185.32
sys 5.25

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/293645/ft1_filtered_4FGL_J1203.3+1119_daily_bin1523.fits scfile=/scratch/kocevski/293645/ft2_4FGL_J1203.3+1119_daily_bin1523.fits outfile=/scratch/kocevski/293645/cmap_634089601_634348801_4FGL_J1203.3+1119_daily_bin1523.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.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/293645/ft1_filtered_4FGL_J1203.3+1119_daily_bin1523.fits scfile=/scratch/kocevski/293645/ft2_4FGL_J1203.3+1119_daily_bin1523.fits outfile=/scratch/kocevski/293645/cmap_HighResolution_634089601_634348801_4FGL_J1203.3+1119_daily_bin1523.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.58
user 0.40
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    25.394       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.8376       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10759       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .23822E-02   1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.8190       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10514E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10298E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .75354       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    9.5024       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10026E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    2.7453       1.0000         .10000E-03   10000.    
    21 'Prefactor '    15.744       1.0000         .10000E-03   10000.    
    22 'Prefactor '    8.6878       1.0000         .10000E-03   10000.    
    23 'norm      '    1.9824       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.1149       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.0365       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=   5855.096     FROM MIGRAD    STATUS=CONVERGED    662 CALLS     2708 TOTAL
                     EDM=   .98E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          25.391        13.398        .52088E-06   -.49434E-05
   2  Prefactor     .10000E-03    12.073       -.49799E-06** at limit **
   3  Prefactor     .10000E-03    16.669       -.16382E-05** at limit **
   4  Prefactor     .10000E-03    10.768        .18950E-07** at limit **
   5  Prefactor     .10000E-03    74.512       -.42568E-04** at limit **
   6  Prefactor     4.8336        6.9037       -.12838E-05   -.21270E-03
   7  Prefactor     .17416E-03    4.8675       -.22099E-06** at limit **
   8  Prefactor     .10000E-03    40.882        .82417E-05** at limit **
   9  Prefactor     4.8178        4.0586       -.92384E-07   -.30666E-03
  10  Prefactor     .10000E-03    85.543        .44228E-04** at limit **
  11  Prefactor     .10000E-03    24.530        .15045E-04** at limit **
  12  Prefactor     .10000E-03    .85785        .14162E-06** at limit **
  13  Prefactor     .75251        2.6333       -.12932E-05   -.13438E-02
  14  Prefactor     .10000E-03    14.111        .16184E-05** at limit **
  15  norm          9.5047        4.5935       -.12175E-06   -.51853E-03
  16  Prefactor     .10000E-03    27.027       -.18292E-04** at limit **
  17  norm          .10000E-03    .65827E-01    .16528E-08** at limit **
  18  norm          .10000E-03    35.082        .18245E-04** at limit **
  19  Prefactor     .10000E-03    50.150       -.12149E-05** at limit **
  20  norm          2.7452        .89857       -.18354E-07   -.56782E-03
  21  Prefactor     15.741        11.274        .22643E-06    .17411E-04
  22  Prefactor     8.6851        14.800        .56143E-06   -.12249E-04
  23  norm          1.9820        1.8031       -.16652E-07   -.39643E-03
  24  Prefactor     .10000E-03    31.387       -.12883E-04** at limit **
  25  Normalizat    1.1150        .20126        .15768E-06   -.39762E-04
  26  Prefactor     1.0366        .18493        .50425E-07   -.25754E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 25.3912
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.83363
  Prefactor  = 0.000174159
  Prefactor  = 0.000100001
  Prefactor  = 4.81779
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.752514
  Prefactor  = 0.0001
  norm       = 9.50474
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 2.74522
  Prefactor  = 15.7408
  Prefactor  = 8.68509
  norm       = 1.98201
  Prefactor  = 0.0001
  Normalizat = 1.11503
  Prefactor  = 1.03659
 **********
 **   18 **HESSE 
 **********

 FCN=   5855.096     FROM HESSE     STATUS=OK           468 CALLS     3176 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          25.391        13.395        .79493E-04   -1.4700    
   2  Prefactor     .10000E-03    12.083        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    17.095        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    10.771        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    74.269        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     4.8336        6.9046        .18290E-03   -1.5268    
   7  Prefactor     .17416E-03    9.9175        .56204E-01   -1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    42.454        .40131E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     4.8178        4.0478        .13432E-03   -1.5269    
  10  Prefactor     .10000E-03    85.294        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    24.560        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    1.3804        .13552E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .75251        2.6103        .21811E-03   -1.5534    
  14  Prefactor     .10000E-03    14.144        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          9.5047        4.6047        .10278E-03   -1.5091    
  16  Prefactor     .10000E-03    27.027        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    .80681E-01    .38243E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    35.083        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    50.152        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          2.7452        .89883        .37413E-04   -1.5377    
  21  Prefactor     15.741        11.273        .10094E-03   -1.4914    
  22  Prefactor     8.6851        14.789        .13599E-03   -1.5118    
  23  norm          1.9820        1.7883        .93328E-04   -1.5426    
  24  Prefactor     .10000E-03    31.374        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.1150        .23574        .26262E-03   -.89271    
  26  Prefactor     1.0366        .21731        .25533E-03   -.91520    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.85621e-09
Minuit parameter uncertainties:
  1  13.3971
  2  3.18456e-06
  3  2.20691e-05
  4  2.2292e-07
  5  8.02548e-05
  6  6.90576
  7  0.0542479
  8  0.000295844
  9  4.048
  10  8.92463e-05
  11  1.86617e-05
  12  1.5918e-05
  13  2.61072
  14  2.23737e-06
  15  4.60487
  16  2.57414e-05
  17  2.29247e-07
  18  2.31371e-06
  19  4.00417e-06
  20  0.898837
  21  11.2743
  22  14.7951
  23  1.78836
  24  1.39079e-06
  25  0.235964
  26  0.217492
Done.

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

Extracting fit parameters...

4FGL J1203.3+1119
   Spectrum: PowerLaw
314    Prefactor:  1.000e-04  8.925e-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.037e+00  2.175e-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.115e+00  2.360e-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.30e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.62e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/293645/likelihoodResults_634089601_634348801_4FGL_J1203.3+1119_daily_bin1523.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) = 5855.09653339
delta logL = -5.57461917197e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5855.09647768
delta logL = -3.9984115574e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10136E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5279       1.0000          .0000       10.000    
     3 'Normalizat'    1.1150       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0366       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=   5855.096     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      233 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    52.157        .90712E-02** at limit **
   2  Index         2.5139        5.5775        .50000        .14473E-05
   3  Normalizat    1.1150        .39432E-02    .59382E-01    .17362E-04
   4  Prefactor     1.0366        .37295E-02    .40768E-01    .14964E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.51386
  Normalizat = 1.11503
  Prefactor  = 1.03659
 **********
 **   18 **HESSE 
 **********

 FCN=   5855.096     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      266 TOTAL
                     EDM=   .79E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    311.45        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5139        6.3078        .50000       -.52040    
   3  Normalizat    1.1150        .96787E-02    .26262E-03   -.89271    
   4  Prefactor     1.0366        .91600E-02    .25533E-03   -.91520    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.88771e-09
Minuit parameter uncertainties:
  1  0.000218184
  2  270.201
  3  0.0096787
  4  0.00915997
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/293645': 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) = 5855.09647767
delta logL = -2.66654751613e-08

Extracting fit parameters...

4FGL J1203.3+1119
   Spectrum: PowerLaw
314    Prefactor:  1.000e-04  2.182e-04  1.000e-04  1.000e+04 ( 1.000e-14)
315        Index:  2.514e+00  2.702e+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.037e+00  9.160e-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.115e+00  9.679e-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/293645/cmap_HighResolution_634089601_634348801_4FGL_J1203.3+1119_daily_bin1523.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.62e-03', job_status='DONE', photon_flux_upper_limit='7.30e-08', time_completed='2021-09-04 22:37:00.775961', job_id='293645', GAL2='1.04', fit_tolerance='1e-08', EG2='1.12', EG='1.12', time_epoch_completed='1630820220.78', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.04', dlogl='-2.67e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.34' WHERE bin_id='1523' AND source_name='4FGL J1203.3+1119' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 22:37:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0211>
Subject: Job 293645: <4FGL_J1203.3+1119_daily_bin1523> in cluster <slac> Done

Job <4FGL_J1203.3+1119_daily_bin1523> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sat Sep  4 22:21:00 2021
Job was executed on host(s) <bullet0211>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 22:21:02 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:21:02 2021
Terminated at Sat Sep  4 22:37:01 2021
Results reported at Sat Sep  4 22:37:01 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1203.3+1119_daily_bin1523 180.833 11.3231 634089601 634348801 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 :                                   736.02 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             287.76 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   959 sec.
    Turnaround time :                            961 sec.

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

