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


Performing analysis on: 4FGL_J1203.3+1119_daily_bin675
RA = 180.833, Dec = 11.3231
tmin = 414288001, tmax = 414547201
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='290054', job_status='RUN', time_executed='2021-09-04 22:10:51.030210', time_epoch_executed='1630818651.03' WHERE source_name='4FGL J1203.3+1119' and cadence='daily' and bin_id='675'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/290054

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/290054/ft1_4FGL_J1203.3+1119_daily_bin675.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/290054/ft2_4FGL_J1203.3+1119_daily_bin675.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/290054/ft1_4FGL_J1203.3+1119_daily_bin675.fits outfile=/scratch/kocevski/290054/ft1_filteredMKT_4FGL_J1203.3+1119_daily_bin675.fits ra=180.833 dec=11.3231 rad=12.0 tmin=414288001.0 tmax=414547201.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 5.45
user 5.21
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/290054/ft1_filtered_4FGL_J1203.3+1119_daily_bin675.fits" evtable="EVENTS" scfile=/scratch/kocevski/290054/ft2_4FGL_J1203.3+1119_daily_bin675.fits sctable="SC_DATA" outfile=/scratch/kocevski/290054/ltcube_414288001_414547201_4FGL_J1203.3+1119_daily_bin675.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/290054/ft2_4FGL_J1203.3+1119_daily_bin675.fits
.....................!
real 11.87
user 11.42
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/290054/ft1_filtered_4FGL_J1203.3+1119_daily_bin675.fits evtable="EVENTS" scfile=/scratch/kocevski/290054/ft2_4FGL_J1203.3+1119_daily_bin675.fits sctable="SC_DATA" expcube=/scratch/kocevski/290054/ltcube_414288001_414547201_4FGL_J1203.3+1119_daily_bin675.fits outfile=/scratch/kocevski/290054/expmap_414288001_414547201_4FGL_J1203.3+1119_daily_bin675.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/290054/ltcube_414288001_414547201_4FGL_J1203.3+1119_daily_bin675.fits
.....................!
real 190.39
user 185.75
sys 4.22

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/290054/ft1_filtered_4FGL_J1203.3+1119_daily_bin675.fits scfile=/scratch/kocevski/290054/ft2_4FGL_J1203.3+1119_daily_bin675.fits outfile=/scratch/kocevski/290054/cmap_414288001_414547201_4FGL_J1203.3+1119_daily_bin675.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.74
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/290054/ft1_filtered_4FGL_J1203.3+1119_daily_bin675.fits scfile=/scratch/kocevski/290054/ft2_4FGL_J1203.3+1119_daily_bin675.fits outfile=/scratch/kocevski/290054/cmap_HighResolution_414288001_414547201_4FGL_J1203.3+1119_daily_bin675.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.83
user 0.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.0585       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.7757       1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.4843       1.0000         .10000E-03   10000.    
     5 'Prefactor '    96.895       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    8.7205       1.0000         .10000E-03   10000.    
    10 'Prefactor '    70.627       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.9745       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    3.5192       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10697E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    4.7911       1.0000         .10000E-03   10000.    
    18 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    179.47       1.0000         .10000E-03   10000.    
    20 'norm      '    1.5886       1.0000         .10000E-03   10000.    
    21 'Prefactor '    19.976       1.0000         .10000E-03   10000.    
    22 'Prefactor '    57.147       1.0000         .10000E-03   10000.    
    23 'norm      '    2.1078       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.4136       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .50548       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=   4415.246     FROM MIGRAD    STATUS=CONVERGED    596 CALLS     3047 TOTAL
                     EDM=   .20E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.0589        10.117        .59346E-06   -.17816E-04
   2  Prefactor     .10000E-03    19.901       -.52747E-06** at limit **
   3  Prefactor     4.7760        9.7998        .47203E-05   -.23095E-03
   4  Prefactor     5.4446        28.740       -.65977E-05   -.14608E-03
   5  Prefactor     96.889        120.59       -.78897E-08   -.13052E-04
   6  Prefactor     .10000E-03    4.5417        .37133E-07** at limit **
   7  Prefactor     .10000E-03    2.8680       -.95475E-07** at limit **
   8  Prefactor     .10000E-03    18.556        .10990E-05** at limit **
   9  Prefactor     8.7208        5.2294       -.59852E-07   -.39665E-05
  10  Prefactor     70.632        76.663        .84924E-06    .95052E-05
  11  Prefactor     .10000E-03    33.207        .86019E-06** at limit **
  12  Prefactor     2.9749        2.9917        .18897E-07   -.52301E-04
  13  Prefactor     .10000E-03    2.2241        .74502E-07** at limit **
  14  Prefactor     .10000E-03    10.160       -.31593E-07** at limit **
  15  norm          3.5188        4.3029        .18676E-06   -.69936E-04
  16  Prefactor     .10000E-03    41.575       -.69031E-07** at limit **
  17  norm          4.7912        .69836        .15220E-08   -.95572E-04
  18  norm          .10000E-03    35.846        .99363E-06** at limit **
  19  Prefactor     179.45        172.87       -.14120E-05   -.23220E-04
  20  norm          1.5886        .87512        .60873E-08   -.69240E-04
  21  Prefactor     19.975        19.690       -.27464E-06   -.13512E-04
  22  Prefactor     57.153        59.492        .97627E-06    .22218E-04
  23  norm          2.1077        2.2693        .10035E-06   -.39903E-04
  24  Prefactor     .10000E-03    25.715       -.14767E-05** at limit **
  25  Normalizat    1.4134        .23994       -.10409E-05    .15043E-04
  26  Prefactor     .50564        .19859        .45782E-06   -.43520E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.05888
  Prefactor  = 0.0001
  Prefactor  = 4.77597
  Prefactor  = 5.44462
  Prefactor  = 96.8894
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.72082
  Prefactor  = 70.6318
  Prefactor  = 0.0001
  Prefactor  = 2.9749
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.51879
  Prefactor  = 0.0001
  norm       = 4.7912
  norm       = 0.0001
  Prefactor  = 179.45
  norm       = 1.58864
  Prefactor  = 19.9747
  Prefactor  = 57.1526
  norm       = 2.10768
  Prefactor  = 0.0001
  Normalizat = 1.4134
  Prefactor  = 0.505641
 **********
 **   18 **HESSE 
 **********

 FCN=   4415.246     FROM HESSE     STATUS=OK           456 CALLS     3503 TOTAL
                     EDM=   .47E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.0589        10.115        .23197E-03   -1.5358    
   2  Prefactor     .10000E-03    19.938        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     4.7760        10.031        .92053E-03   -1.5271    
   4  Prefactor     5.4446        31.785        .17157E-03   -1.5241    
   5  Prefactor     96.889        121.14        .40835E-04   -1.3736    
   6  Prefactor     .10000E-03    4.5454        .13829E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    2.8709        .10989E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    18.792        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     8.7208        5.2360        .11200E-03   -1.5117    
  10  Prefactor     70.632        76.723        .23883E-03   -1.4025    
  11  Prefactor     .10000E-03    33.421        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     2.9749        2.9828        .11010E-03   -1.5363    
  13  Prefactor     .10000E-03    2.2544        .96665E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    10.161        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          3.5188        4.2945        .13817E-03   -1.5333    
  16  Prefactor     .10000E-03    41.738        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          4.7912        .70000        .20404E-04   -1.5270    
  18  norm          .10000E-03    35.918        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     179.45        173.10        .15065E-03   -1.3021    
  20  norm          1.5886        .86736        .41958E-04   -1.5456    
  21  Prefactor     19.975        19.712        .89615E-04   -1.4814    
  22  Prefactor     57.153        59.826        .53067E-04   -1.4195    
  23  norm          2.1077        2.2553        .98360E-04   -1.5418    
  24  Prefactor     .10000E-03    25.852        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.4134        .28020        .24560E-03   -.80242    
  26  Prefactor     .50564        .22785        .33779E-03   -1.1172    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.66406e-10
Minuit parameter uncertainties:
  1  10.1202
  2  6.77089e-05
  3  10.035
  4  26.3311
  5  121.453
  6  2.73728e-07
  7  4.45171e-06
  8  7.73667e-05
  9  5.23628
  10  76.8311
  11  0.000144511
  12  2.98298
  13  1.18804e-06
  14  1.55402e-06
  15  4.29491
  16  7.00395e-06
  17  0.700005
  18  0.000159953
  19  173.593
  20  0.867368
  21  19.7186
  22  59.8893
  23  2.25538
  24  0.000202138
  25  0.280509
  26  0.228258
Done.

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

Extracting fit parameters...

4FGL J1203.3+1119
   Spectrum: PowerLaw
314    Prefactor:  7.063e+01  7.683e+01  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:  5.056e-01  2.283e-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.413e+00  2.805e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.21
Ra Dec: 180.833 11.323
Photon Index (Fixed Index): 2.34 +/- 0.00
Photon Flux (Fixed Index): 2.91e-08 +/- 3.17e-08
Energy Flux (Fixed Index): 1.04e-05 +/- 1.13e-05

TS (Fixed Index): 2.21
Ra Dec: 180.833 11.323
Photon Flux Upper Limit: 1.22e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.36e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/290054/likelihoodResults_414288001_414547201_4FGL_J1203.3+1119_daily_bin675.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): 0
logL (Free Index) = 4415.18540247
delta logL = 0.060550440151

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4415.1829071
delta logL = 0.0630458176884

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    94.858       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9833       1.0000          .0000       10.000    
     3 'Normalizat'    1.4243       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .49984       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=   4415.183     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      289 TOTAL
                     EDM=   .30E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     94.861        118.77        .41267E-04   -.15262E-04
   2  Index         1.9833        .96355        .88546E-02   -.20778E-04
   3  Normalizat    1.4242        .26172        .24481E-03    .67021E-04
   4  Prefactor     .49991        .22539        .33958E-03    .52663E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 94.8609
  Index      = 1.98332
  Normalizat = 1.42419
  Prefactor  = 0.499909
 **********
 **   18 **HESSE 
 **********

 FCN=   4415.183     FROM HESSE     STATUS=OK            25 CALLS      314 TOTAL
                     EDM=   .38E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     94.861        116.57        .82533E-05   -1.3757    
   2  Index         1.9833        .94574        .35418E-03   -.64768    
   3  Normalizat    1.4242        .26174        .48961E-04   -.79932    
   4  Prefactor     .49991        .22548        .13583E-04   -1.1198    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.81537e-11
Minuit parameter uncertainties:
  1  116.851
  2  0.954838
  3  0.261985
  4  0.225879
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/290054': 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) = 4415.18290705
delta logL = 0.0630458672149

Extracting fit parameters...

4FGL J1203.3+1119
   Spectrum: PowerLaw
314    Prefactor:  9.486e+01  1.169e+02  1.000e-04  1.000e+04 ( 1.000e-14)
315        Index:  1.983e+00  9.548e-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:  4.999e-01  2.259e-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.424e+00  2.620e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.33
Ra Dec: 180.833 11.323
Photon Index (Free Index): 1.98 +/- 0.95
Photon Flux (Free Index): 2.04e-08 +/- 3.14e-08
Energy Flux (Free Index): 1.47e-05 +/- 2.53e-05

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/290054/cmap_HighResolution_414288001_414547201_4FGL_J1203.3+1119_daily_bin675.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.36e-03', comment='SUCCESS', photon_flux='2.91e-08', energy_flux2='1.47e-05', photon_flux_error='3.17e-08', dlogl='6.30e-02', energy_flux='1.04e-05', photon_flux2='2.04e-08', job_status='DONE', time_completed='2021-09-04 22:21:55.677222', photon_index_error2='0.95', photon_index2='1.98', ts='2.21', fit_tolerance='1e-08', GAL='0.51', photon_index_error='0.00', photon_flux_upper_limit='1.22e-07', energy_flux_error2='2.53e-05', EG='1.41', time_epoch_completed='1630819315.68', return_code='0', job_id='290054', GAL2='0.50', EG2='1.42', return_code2='0', energy_flux_error='1.13e-05', photon_flux_error2='3.14e-08', ts2='2.33', photon_index='2.34' WHERE bin_id='675' AND source_name='4FGL J1203.3+1119' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 22:21:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0074>
Subject: Job 290054: <4FGL_J1203.3+1119_daily_bin675> in cluster <slac> Done

Job <4FGL_J1203.3+1119_daily_bin675> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sat Sep  4 22:10:31 2021
Job was executed on host(s) <bullet0074>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 22:10:33 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:10:33 2021
Terminated at Sat Sep  4 22:21:56 2021
Results reported at Sat Sep  4 22:21:56 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1203.3+1119_daily_bin675 180.833 11.3231 414288001 414547201 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 :                                   657.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             332.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   682 sec.
    Turnaround time :                            685 sec.

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

