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


Performing analysis on: 4FGL_J1203.3+1119_daily_bin1322
RA = 180.833, Dec = 11.3231
tmin = 581990401, tmax = 582249601
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='293366', job_status='RUN', time_executed='2021-09-04 22:23:11.198440', time_epoch_executed='1630819391.2' WHERE source_name='4FGL J1203.3+1119' and cadence='daily' and bin_id='1322'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/293366

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/293366/ft1_4FGL_J1203.3+1119_daily_bin1322.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/293366/ft2_4FGL_J1203.3+1119_daily_bin1322.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/293366/ft1_4FGL_J1203.3+1119_daily_bin1322.fits outfile=/scratch/kocevski/293366/ft1_filteredMKT_4FGL_J1203.3+1119_daily_bin1322.fits ra=180.833 dec=11.3231 rad=12.0 tmin=581990401.0 tmax=582249601.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 2.47
user 2.17
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/293366/ft1_filtered_4FGL_J1203.3+1119_daily_bin1322.fits" evtable="EVENTS" scfile=/scratch/kocevski/293366/ft2_4FGL_J1203.3+1119_daily_bin1322.fits sctable="SC_DATA" outfile=/scratch/kocevski/293366/ltcube_581990401_582249601_4FGL_J1203.3+1119_daily_bin1322.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/293366/ft2_4FGL_J1203.3+1119_daily_bin1322.fits
.....................!
real 12.83
user 12.46
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/293366/ft1_filtered_4FGL_J1203.3+1119_daily_bin1322.fits evtable="EVENTS" scfile=/scratch/kocevski/293366/ft2_4FGL_J1203.3+1119_daily_bin1322.fits sctable="SC_DATA" expcube=/scratch/kocevski/293366/ltcube_581990401_582249601_4FGL_J1203.3+1119_daily_bin1322.fits outfile=/scratch/kocevski/293366/expmap_581990401_582249601_4FGL_J1203.3+1119_daily_bin1322.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/293366/ltcube_581990401_582249601_4FGL_J1203.3+1119_daily_bin1322.fits
.....................!
real 193.02
user 187.89
sys 4.47

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/293366/ft1_filtered_4FGL_J1203.3+1119_daily_bin1322.fits scfile=/scratch/kocevski/293366/ft2_4FGL_J1203.3+1119_daily_bin1322.fits outfile=/scratch/kocevski/293366/cmap_581990401_582249601_4FGL_J1203.3+1119_daily_bin1322.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=180.833 yref=11.3231 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.54
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/293366/ft1_filtered_4FGL_J1203.3+1119_daily_bin1322.fits scfile=/scratch/kocevski/293366/ft2_4FGL_J1203.3+1119_daily_bin1322.fits outfile=/scratch/kocevski/293366/cmap_HighResolution_581990401_582249601_4FGL_J1203.3+1119_daily_bin1322.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.74
user 0.38
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.0239       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10991E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.6357       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.0955       1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.3956       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .11587E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    276.65       1.0000         .10000E-03   10000.    
    11 'Prefactor '    18.608       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .97042       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .61953E-01   1.0000         .10000E-03   10000.    
    15 'norm      '    10.732       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .12855       1.0000         .10000E-03   10000.    
    18 'norm      '    .26325E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .70438       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    46.420       1.0000         .10000E-03   10000.    
    23 'norm      '    .10107E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .59379       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.2630       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=   7867.597     FROM MIGRAD    STATUS=CONVERGED    643 CALLS     3245 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.0143        8.4355       -.90113E-05   -.22582E-03
   2  Prefactor     .10000E-03    11.462        .41082E-06** at limit **
   3  Prefactor     .10001E-03    4.8261       -.10377E-05** at limit **
   4  Prefactor     5.6332        16.365       -.64836E-06   -.51239E-04
   5  Prefactor     .10000E-03    22.101       -.94693E-05** at limit **
   6  Prefactor     4.0995        7.0308        .89760E-05    .50917E-04
   7  Prefactor     4.3953        3.4622       -.13231E-06    .13220E-03
   8  Prefactor     .10000E-03    6.3167        .95624E-06** at limit **
   9  Prefactor     .10000E-03    1.3465       -.69299E-07** at limit **
  10  Prefactor     276.57        101.95       -.43701E-04   -.22891E-04
  11  Prefactor     18.608        18.846        .75396E-09    .75565E-05
  12  Prefactor     .96995        1.8164       -.56299E-06   -.13689E-02
  13  Prefactor     .10000E-03    .75819        .21205E-07** at limit **
  14  Prefactor     .10004E-03    18.503       -.82992E-06** at limit **
  15  norm          10.727        3.5788       -.45868E-06   -.20909E-02
  16  Prefactor     .10000E-03    5.5382        .11313E-07** at limit **
  17  norm          .12838        .19622       -.27700E-06   -.54930E-02
  18  norm          .10001E-03    134.18        .59583E-04** at limit **
  19  Prefactor     .10000E-03    31.544       -.46217E-05** at limit **
  20  norm          .70415        .43095       -.11809E-06   -.24812E-02
  21  Prefactor     .10000E-03    1.9464        .15503E-07** at limit **
  22  Prefactor     46.420        25.247       -.89656E-06    .48192E-04
  23  norm          .10000E-03    .75016       -.23639E-06** at limit **
  24  Prefactor     .10000E-03    22.885        .12370E-04** at limit **
  25  Normalizat    .59378        .16035        .83605E-05    .12345E-03
  26  Prefactor     1.2632        .14595       -.33455E-06    .43573E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 4.01434
  Prefactor  = 0.0001
  Prefactor  = 0.000100013
  Prefactor  = 5.6332
  Prefactor  = 0.0001
  Prefactor  = 4.09948
  Prefactor  = 4.39532
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 276.567
  Prefactor  = 18.6076
  Prefactor  = 0.969946
  Prefactor  = 0.0001
  Prefactor  = 0.000100036
  norm       = 10.7271
  Prefactor  = 0.0001
  norm       = 0.128379
  norm       = 0.000100009
  Prefactor  = 0.0001
  norm       = 0.704146
  Prefactor  = 0.0001
  Prefactor  = 46.4196
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.593779
  Prefactor  = 1.26315
 **********
 **   18 **HESSE 
 **********

 FCN=   7867.597     FROM HESSE     STATUS=OK           472 CALLS     3717 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.0143        8.4475        .20103E-03   -1.5307    
   2  Prefactor     .10000E-03    11.481        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10001E-03    46.469        .36930E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     5.6332        16.351        .16922E-03   -1.5233    
   5  Prefactor     .10000E-03    22.105        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     4.0995        6.9891        .19921E-03   -1.5303    
   7  Prefactor     4.3953        3.4625        .14242E-03   -1.5289    
   8  Prefactor     .10000E-03    6.3367        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    1.3678        .10034E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     276.57        101.75        .12194E-03   -1.2366    
  11  Prefactor     18.608        18.833        .92849E-04   -1.4845    
  12  Prefactor     .96995        1.5771        .15302E-02   -1.5511    
  13  Prefactor     .10000E-03    .76478        .75316E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10004E-03    21.075        .11089       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          10.727        3.5506        .86937E-04   -1.5053    
  16  Prefactor     .10000E-03    5.5391        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .12838        .17722        .45835E-03   -1.5636    
  18  norm          .10001E-03    137.53        .42888E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    31.544        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .70415        .42045        .42483E-04   -1.5540    
  21  Prefactor     .10000E-03    1.9468        .12084E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     46.420        25.243        .58849E-04   -1.4344    
  23  norm          .10000E-03    1.4931        .14791E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    22.894        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .59378        .18121        .30677E-03   -1.0825    
  26  Prefactor     1.2632        .17015        .21155E-03   -.84409    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.96369e-09
Minuit parameter uncertainties:
  1  8.45005
  2  1.35798e-05
  3  0.00157207
  4  16.3644
  5  7.64516e-06
  6  6.99052
  7  3.46269
  8  0.000233328
  9  8.61338e-06
  10  101.817
  11  18.8385
  12  1.57721
  13  2.13857e-06
  14  0.00175365
  15  3.55068
  16  2.16864e-06
  17  0.177217
  18  0.00221399
  19  6.29806e-06
  20  0.420453
  21  6.0405e-07
  22  25.2486
  23  3.46215e-05
  24  3.75308e-05
  25  0.181392
  26  0.170224
Done.

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

Extracting fit parameters...

4FGL J1203.3+1119
   Spectrum: PowerLaw
314    Prefactor:  2.766e+02  1.018e+02  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.263e+00  1.702e-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:  5.938e-01  1.814e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 15.04
Ra Dec: 180.833 11.323
Photon Index (Fixed Index): 2.34 +/- 0.00
Photon Flux (Fixed Index): 1.14e-07 +/- 4.20e-08
Energy Flux (Fixed Index): 4.07e-05 +/- 1.50e-05

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): 0
logL (Free Index) = 7867.25862472
delta logL = 0.338863750929

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7867.25312215
delta logL = 0.344366325012

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    183.82       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6226       1.0000          .0000       10.000    
     3 'Normalizat'    .56516       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2827       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=   7867.253     FROM MIGRAD    STATUS=CONVERGED     84 CALLS      292 TOTAL
                     EDM=   .97E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     183.84        142.40        .29778E-04   -.37124E-03
   2  Index         2.6227        .40770        .31088E-02   -.42919E-03
   3  Normalizat    .56526        .17944        .31375E-03    .36739E-03
   4  Prefactor     1.2825        .17238        .21017E-03    .87292E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 183.845
  Index      = 2.62274
  Normalizat = 0.565257
  Prefactor  = 1.28255
 **********
 **   18 **HESSE 
 **********

 FCN=   7867.253     FROM HESSE     STATUS=OK            25 CALLS      317 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     183.84        126.82        .59556E-05   -1.2988    
   2  Index         2.6227        .36276        .12435E-03   -.49548    
   3  Normalizat    .56526        .17900        .12550E-04   -1.0948    
   4  Prefactor     1.2825        .17206        .42034E-04   -.83827    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.00803e-09
Minuit parameter uncertainties:
  1  127.005
  2  0.363172
  3  0.179185
  4  0.172135
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/293366': 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): 0
logL (Free Index) = 7867.25312115
delta logL = 0.344367320069

Extracting fit parameters...

4FGL J1203.3+1119
   Spectrum: PowerLaw
314    Prefactor:  1.838e+02  1.270e+02  1.000e-04  1.000e+04 ( 1.000e-14)
315        Index:  2.623e+00  3.632e-01  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.283e+00  1.721e-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:  5.653e-01  1.792e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 15.81
Ra Dec: 180.833 11.323
Photon Index (Free Index): 2.62 +/- 0.36
Photon Flux (Free Index): 1.35e-07 +/- 5.04e-08
Energy Flux (Free Index): 3.46e-05 +/- 1.32e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/293366/cmap_HighResolution_581990401_582249601_4FGL_J1203.3+1119_daily_bin1322.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.14e-07', energy_flux2='3.46e-05', photon_flux_error='4.20e-08', dlogl='3.44e-01', energy_flux='4.07e-05', photon_flux2='1.35e-07', job_status='DONE', time_completed='2021-09-04 22:37:12.511973', photon_index_error2='0.36', photon_index2='2.62', ts='15.04', fit_tolerance='1e-08', GAL='1.26', photon_index_error='0.00', energy_flux_error2='1.32e-05', EG='0.59', time_epoch_completed='1630820232.51', return_code='0', job_id='293366', GAL2='1.28', EG2='0.57', return_code2='0', energy_flux_error='1.50e-05', photon_flux_error2='5.04e-08', ts2='15.81', photon_index='2.34' WHERE bin_id='1322' AND source_name='4FGL J1203.3+1119' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 22:37:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0076>
Subject: Job 293366: <4FGL_J1203.3+1119_daily_bin1322> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1203.3+1119_daily_bin1322 180.833 11.3231 581990401 582249601 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 :                                   831.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             284.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   995 sec.
    Turnaround time :                            998 sec.

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

