/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


Waiting 2 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

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

number of points = 7474
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1203.3+1119_daily_bin177
RA = 180.833, Dec = 11.3231
tmin = 285206401, tmax = 285465601
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='285746', job_status='RUN', time_executed='2021-09-04 21:56:09.491860', time_epoch_executed='1630817769.49' WHERE source_name='4FGL J1203.3+1119' and cadence='daily' and bin_id='177'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/285746

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/285746/ft1_4FGL_J1203.3+1119_daily_bin177.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/285746/ft2_4FGL_J1203.3+1119_daily_bin177.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/285746/ft1_4FGL_J1203.3+1119_daily_bin177.fits outfile=/scratch/kocevski/285746/ft1_filteredMKT_4FGL_J1203.3+1119_daily_bin177.fits ra=180.833 dec=11.3231 rad=12.0 tmin=285206401.0 tmax=285465601.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.51
user 3.32
sys 0.17

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/285746/ft1_filtered_4FGL_J1203.3+1119_daily_bin177.fits" evtable="EVENTS" scfile=/scratch/kocevski/285746/ft2_4FGL_J1203.3+1119_daily_bin177.fits sctable="SC_DATA" outfile=/scratch/kocevski/285746/ltcube_285206401_285465601_4FGL_J1203.3+1119_daily_bin177.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/285746/ft2_4FGL_J1203.3+1119_daily_bin177.fits
.....................!
real 11.73
user 11.38
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/285746/ft1_filtered_4FGL_J1203.3+1119_daily_bin177.fits evtable="EVENTS" scfile=/scratch/kocevski/285746/ft2_4FGL_J1203.3+1119_daily_bin177.fits sctable="SC_DATA" expcube=/scratch/kocevski/285746/ltcube_285206401_285465601_4FGL_J1203.3+1119_daily_bin177.fits outfile=/scratch/kocevski/285746/expmap_285206401_285465601_4FGL_J1203.3+1119_daily_bin177.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/285746/ltcube_285206401_285465601_4FGL_J1203.3+1119_daily_bin177.fits
.....................!
real 189.76
user 185.06
sys 4.15

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/285746/ft1_filtered_4FGL_J1203.3+1119_daily_bin177.fits scfile=/scratch/kocevski/285746/ft2_4FGL_J1203.3+1119_daily_bin177.fits outfile=/scratch/kocevski/285746/cmap_285206401_285465601_4FGL_J1203.3+1119_daily_bin177.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.14

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10241E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    10.248       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    51.794       1.0000         .10000E-03   10000.    
     5 'Prefactor '    79.264       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.2342       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .50971E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    219.79       1.0000         .10000E-03   10000.    
    11 'Prefactor '    14.049       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10060E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.2079       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    7.4588       1.0000         .10000E-03   10000.    
    16 'Prefactor '    23.256       1.0000         .10000E-03   10000.    
    17 'norm      '    2.0713       1.0000         .10000E-03   10000.    
    18 'norm      '    .10211E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    3.9901       1.0000         .10000E-03   10000.    
    21 'Prefactor '    21.569       1.0000         .10000E-03   10000.    
    22 'Prefactor '    10.174       1.0000         .10000E-03   10000.    
    23 'norm      '    5.8295       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .83739       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.0686       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=   5220.942     FROM MIGRAD    STATUS=CONVERGED    615 CALLS     3129 TOTAL
                     EDM=   .43E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10001E-03    5.9448        .43066E-06** at limit **
   2  Prefactor     10.265        29.927        .40923E-05    .10876E-03
   3  Prefactor     .10000E-03    4.8363        .16537E-07** at limit **
   4  Prefactor     51.793        32.975       -.51678E-07   -.15607E-04
   5  Prefactor     79.240        86.153       -.42056E-05   -.12240E-03
   6  Prefactor     .10000E-03    3.6928        .91153E-07** at limit **
   7  Prefactor     .10000E-03    5.6615        .65752E-07** at limit **
   8  Prefactor     4.2376        55.250        .15501E-05    .17133E-04
   9  Prefactor     .10002E-03    2.1409       -.14328E-06** at limit **
  10  Prefactor     219.77        165.01       -.12243E-05   -.31062E-04
  11  Prefactor     14.051        41.315        .96759E-06    .25470E-05
  12  Prefactor     .10000E-03    1.9637       -.11429E-05** at limit **
  13  Prefactor     5.2060        3.7305        .16898E-05   -.89594E-03
  14  Prefactor     .10000E-03    13.683       -.15879E-07** at limit **
  15  norm          7.4601        4.8453        .29416E-06    .39976E-05
  16  Prefactor     23.256        25.448       -.33669E-08   -.25432E-05
  17  norm          2.0712        .45939       -.37537E-08    .95308E-03
  18  norm          .10000E-03    46.277        .31556E-05** at limit **
  19  Prefactor     .10000E-03    59.331       -.14837E-05** at limit **
  20  norm          3.9900        1.0642       -.13098E-07   -.12652E-03
  21  Prefactor     21.566        18.267       -.83058E-06   -.40928E-04
  22  Prefactor     10.189        38.383        .44420E-05    .93600E-04
  23  norm          5.8296        2.4797       -.87450E-09   -.56203E-04
  24  Prefactor     .10000E-03    33.889       -.18476E-05** at limit **
  25  Normalizat    .83749        .22429       -.10031E-05    .15526E-03
  26  Prefactor     1.0685        .19162        .19634E-06    .96585E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.00010001
  Prefactor  = 10.2653
  Prefactor  = 0.0001
  Prefactor  = 51.7929
  Prefactor  = 79.2399
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.23756
  Prefactor  = 0.000100024
  Prefactor  = 219.774
  Prefactor  = 14.0508
  Prefactor  = 0.0001
  Prefactor  = 5.20598
  Prefactor  = 0.0001
  norm       = 7.46007
  Prefactor  = 23.2557
  norm       = 2.07123
  norm       = 0.000100001
  Prefactor  = 0.0001
  norm       = 3.99004
  Prefactor  = 21.5659
  Prefactor  = 10.1888
  norm       = 5.8296
  Prefactor  = 0.000100001
  Normalizat = 0.837494
  Prefactor  = 1.06846
 **********
 **   18 **HESSE 
 **********

 FCN=   5220.942     FROM HESSE     STATUS=OK           458 CALLS     3587 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10001E-03    23.202        .34007E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     10.265        30.216        .12517E-03   -1.5067    
   3  Prefactor     .10000E-03    4.8479        .15517E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     51.793        32.974        .55727E-04   -1.4267    
   5  Prefactor     79.240        88.185        .22554E-03   -1.3925    
   6  Prefactor     .10000E-03    3.6959        .13563E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    5.6934        .16785E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     4.2376        51.828        .19582E-03   -1.5296    
   9  Prefactor     .10002E-03    35.283        .20037E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     219.77        160.54        .27283E-04   -1.2732    
  11  Prefactor     14.051        41.245        .10686E-03   -1.4958    
  12  Prefactor     .10000E-03    7.3744        .18402E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     5.2060        3.9652        .59068E-03   -1.5252    
  14  Prefactor     .10000E-03    13.691        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          7.4601        4.8256        .11622E-03   -1.5162    
  16  Prefactor     23.256        25.448        .83061E-04   -1.4743    
  17  norm          2.0712        .46020        .22113E-04   -1.5420    
  18  norm          .10000E-03    46.613        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    59.439        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          3.9900        1.0640        .20191E-04   -1.5308    
  21  Prefactor     21.566        18.296        .86244E-04   -1.4779    
  22  Prefactor     10.189        38.772        .12562E-03   -1.5069    
  23  norm          5.8296        2.4784        .71097E-04   -1.5225    
  24  Prefactor     .10000E-03    34.083        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .83749        .26061        .30778E-03   -.98693    
  26  Prefactor     1.0685        .22625        .25322E-03   -.90481    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.89657e-09
Minuit parameter uncertainties:
  1  0.000940956
  2  30.2612
  3  2.02315e-06
  4  32.986
  5  88.3307
  6  9.88218e-06
  7  7.53946e-06
  8  29.671
  9  0.00183515
  10  160.866
  11  41.3292
  12  6.17542e-05
  13  3.96538
  14  5.96005e-06
  15  4.82588
  16  25.4598
  17  0.460198
  18  0.000443201
  19  0.000307662
  20  1.064
  21  18.3009
  22  38.8679
  23  2.47846
  24  0.00029118
  25  0.261
  26  0.226457
Done.

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

Extracting fit parameters...

4FGL J1203.3+1119
   Spectrum: PowerLaw
314    Prefactor:  2.198e+02  1.609e+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.068e+00  2.265e-01  0.000e+00  1.000e+01 ( 1.000e+00)
624        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
625        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
622   Normalization:  8.375e-01  2.610e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.37
Ra Dec: 180.833 11.323
Photon Index (Fixed Index): 2.34 +/- 0.00
Photon Flux (Fixed Index): 9.06e-08 +/- 6.63e-08
Energy Flux (Fixed Index): 3.23e-05 +/- 2.37e-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) = 5220.87833836
delta logL = 0.0640652690199

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5220.87410195
delta logL = 0.0683016812045

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    174.70       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5316       1.0000          .0000       10.000    
     3 'Normalizat'    .81885       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0791       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=   5220.874     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      289 TOTAL
                     EDM=   .31E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     174.68        174.39        .30531E-04    .85048E-04
   2  Index         2.5316        .58316        .41597E-02    .92515E-04
   3  Normalizat    .81905        .25128        .31078E-03   -.25186E-03
   4  Prefactor     1.0791        .22695        .25213E-03   -.40879E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 174.681
  Index      = 2.53162
  Normalizat = 0.819048
  Prefactor  = 1.07906
 **********
 **   18 **HESSE 
 **********

 FCN=   5220.874     FROM HESSE     STATUS=OK            25 CALLS      314 TOTAL
                     EDM=   .30E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     174.68        159.04        .61062E-05   -1.3057    
   2  Index         2.5316        .53126        .16639E-03   -.51631    
   3  Normalizat    .81905        .25081        .12431E-04   -.99366    
   4  Prefactor     1.0791        .22675        .50425E-04   -.90139    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.97282e-10
Minuit parameter uncertainties:
  1  159.431
  2  0.532595
  3  0.251163
  4  0.226951
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/285746': 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) = 5220.87410095
delta logL = 0.0683026800953

Extracting fit parameters...

4FGL J1203.3+1119
   Spectrum: PowerLaw
314    Prefactor:  1.747e+02  1.594e+02  1.000e-04  1.000e+04 ( 1.000e-14)
315        Index:  2.532e+00  5.326e-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.079e+00  2.270e-01  0.000e+00  1.000e+01 ( 1.000e+00)
624        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
625        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
622   Normalization:  8.190e-01  2.512e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.48
Ra Dec: 180.833 11.323
Photon Index (Free Index): 2.53 +/- 0.53
Photon Flux (Free Index): 1.06e-07 +/- 6.92e-08
Energy Flux (Free Index): 2.97e-05 +/- 1.73e-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/285746/cmap_HighResolution_285206401_285465601_4FGL_J1203.3+1119_daily_bin177.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.06e-08', energy_flux2='2.97e-05', photon_flux_error='6.63e-08', dlogl='6.83e-02', energy_flux='3.23e-05', photon_flux2='1.06e-07', job_status='DONE', time_completed='2021-09-04 22:06:49.511793', photon_index_error2='0.53', photon_index2='2.53', ts='5.37', fit_tolerance='1e-08', GAL='1.07', photon_index_error='0.00', energy_flux_error2='1.73e-05', EG='0.84', time_epoch_completed='1630818409.51', return_code='0', job_id='285746', GAL2='1.08', EG2='0.82', return_code2='0', energy_flux_error='2.37e-05', photon_flux_error2='6.92e-08', ts2='5.48', photon_index='2.34' WHERE bin_id='177' AND source_name='4FGL J1203.3+1119' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 22:06:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0125>
Subject: Job 285746: <4FGL_J1203.3+1119_daily_bin177> in cluster <slac> Done

Job <4FGL_J1203.3+1119_daily_bin177> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sat Sep  4 21:55:57 2021
Job was executed on host(s) <bullet0125>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 21:55:58 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep  4 21:55:58 2021
Terminated at Sat Sep  4 22:06:50 2021
Results reported at Sat Sep  4 22:06:50 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1203.3+1119_daily_bin177 180.833 11.3231 285206401 285465601 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 :                                   637.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             320.91 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   651 sec.
    Turnaround time :                            653 sec.

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

