/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 128 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 = 7424
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1203.3+1119_daily_bin1
RA = 180.833, Dec = 11.3231
tmin = 239587201, tmax = 239846401
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='285474', job_status='RUN', time_executed='2021-09-04 21:57:55.388743', time_epoch_executed='1630817875.39' WHERE source_name='4FGL J1203.3+1119' and cadence='daily' and bin_id='1'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/285474

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

Retrieving the FT1 file...

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

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

Retrieving 41 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/285474/ft1_4FGL_J1203.3+1119_daily_bin1.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/285474/ft2_4FGL_J1203.3+1119_daily_bin1.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/285474/ft1_4FGL_J1203.3+1119_daily_bin1.fits outfile=/scratch/kocevski/285474/ft1_filteredMKT_4FGL_J1203.3+1119_daily_bin1.fits ra=180.833 dec=11.3231 rad=12.0 tmin=239587201.0 tmax=239846401.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 1.31
user 1.13
sys 0.16

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/285474/ft1_filtered_4FGL_J1203.3+1119_daily_bin1.fits evtable="EVENTS" scfile=/scratch/kocevski/285474/ft2_4FGL_J1203.3+1119_daily_bin1.fits sctable="SC_DATA" expcube=/scratch/kocevski/285474/ltcube_239587201_239846401_4FGL_J1203.3+1119_daily_bin1.fits outfile=/scratch/kocevski/285474/expmap_239587201_239846401_4FGL_J1203.3+1119_daily_bin1.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/285474/ltcube_239587201_239846401_4FGL_J1203.3+1119_daily_bin1.fits
.....................!
real 191.36
user 185.38
sys 4.41

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

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

This is gtbin version HEAD
real 0.53
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/285474/ft1_filtered_4FGL_J1203.3+1119_daily_bin1.fits scfile=/scratch/kocevski/285474/ft2_4FGL_J1203.3+1119_daily_bin1.fits outfile=/scratch/kocevski/285474/cmap_HighResolution_239587201_239846401_4FGL_J1203.3+1119_daily_bin1.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=180.833 yref=11.3231 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.53
user 0.37
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    14.537       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10171E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.8576       1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.0480       1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.0748       1.0000         .10000E-03   10000.    
    10 'Prefactor '    90.631       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10128E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.3551       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    6.6819       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    2.8369       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    3.6135       1.0000         .10000E-03   10000.    
    23 'norm      '    .13337       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .99655       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .62511       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=   4592.832     FROM MIGRAD    STATUS=CONVERGED    608 CALLS     3081 TOTAL
                     EDM=   .30E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    3.9746       -.70372E-07** at limit **
   2  Prefactor     .10000E-03    28.285       -.35158E-05** at limit **
   3  Prefactor     14.537        12.786        .35394E-08   -.15462E-04
   4  Prefactor     .10000E-03    11.365        .13026E-04** at limit **
   5  Prefactor     .10000E-03    26.144       -.98412E-05** at limit **
   6  Prefactor     .10000E-03    3.8102        .96291E-07** at limit **
   7  Prefactor     3.8564        4.3128       -.25719E-07    .13604E-03
   8  Prefactor     6.0403        18.045        .96795E-06   -.27717E-04
   9  Prefactor     3.0740        4.2692       -.40922E-06   -.33792E-03
  10  Prefactor     90.626        97.084       -.45641E-05    .66914E-05
  11  Prefactor     .10000E-03    59.628       -.33549E-04** at limit **
  12  Prefactor     2.3555        3.3890       -.25923E-06   -.47146E-03
  13  Prefactor     .10000E-03    1.0066       -.10156E-06** at limit **
  14  Prefactor     .10000E-03    36.876        .27820E-04** at limit **
  15  norm          6.6812        3.5743       -.12455E-06   -.25933E-03
  16  Prefactor     .10000E-03    11.036       -.11323E-04** at limit **
  17  norm          .10000E-03    .13382        .14776E-07** at limit **
  18  norm          .10000E-03    20.734        .48589E-05** at limit **
  19  Prefactor     .10000E-03    51.690        .11143E-04** at limit **
  20  norm          2.8369        .76520        .21138E-07    .24984E-03
  21  Prefactor     .10000E-03    5.3576       -.12997E-06** at limit **
  22  Prefactor     3.6185        28.703        .16991E-05   -.40226E-04
  23  norm          .13740        1.3295       -.38526E-06   -.78975E-03
  24  Prefactor     .10000E-03    22.479       -.66039E-05** at limit **
  25  Normalizat    .99671        .18222        .11813E-05    .60500E-04
  26  Prefactor     .62493        .15940       -.80586E-06    .76539E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.5371
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.85645
  Prefactor  = 6.0403
  Prefactor  = 3.07402
  Prefactor  = 90.6258
  Prefactor  = 0.0001
  Prefactor  = 2.35546
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.68124
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 2.83686
  Prefactor  = 0.0001
  Prefactor  = 3.6185
  norm       = 0.137404
  Prefactor  = 0.0001
  Normalizat = 0.99671
  Prefactor  = 0.624925
 **********
 **   18 **HESSE 
 **********

 FCN=   4592.832     FROM HESSE     STATUS=OK           456 CALLS     3537 TOTAL
                     EDM=   .73E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    3.9822        .13195E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    28.386        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     14.537        12.773        .10505E-03   -1.4945    
   4  Prefactor     .10000E-03    11.377        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    26.146        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    3.8168        .12914E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     3.8564        4.3126        .14478E-03   -1.5315    
   8  Prefactor     6.0403        17.925        .16326E-03   -1.5216    
   9  Prefactor     3.0740        4.2358        .15048E-03   -1.5357    
  10  Prefactor     90.626        96.710        .42209E-04   -1.3801    
  11  Prefactor     .10000E-03    59.931        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     2.3555        3.3466        .13542E-03   -1.5401    
  13  Prefactor     .10000E-03    1.0093        .66320E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    37.083        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          6.6812        3.5736        .86749E-04   -1.5191    
  16  Prefactor     .10000E-03    11.042        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    .85632        .47808E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    20.745        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    51.694        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          2.8369        .76346        .28497E-04   -1.5371    
  21  Prefactor     .10000E-03    5.3672        .15303E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     3.6185        28.661        .21255E-03   -1.5327    
  23  norm          .13740        3.0239        .14717E-02   -1.5634    
  24  Prefactor     .10000E-03    22.489        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .99671        .21152        .21983E-03   -.93141    
  26  Prefactor     .62493        .18477        .24612E-03   -1.0655    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.31713e-10
Minuit parameter uncertainties:
  1  1.05226e-06
  2  9.61744e-06
  3  12.775
  4  9.80171e-06
  5  4.8111e-06
  6  8.65057e-06
  7  4.31299
  8  17.9409
  9  4.23624
  10  96.8789
  11  0.000126587
  12  3.34688
  13  1.00841e-06
  14  0.000155076
  15  3.57376
  16  1.39002e-06
  17  8.61852e-06
  18  1.91157e-06
  19  1.89633e-06
  20  0.763467
  21  8.52034e-06
  22  20.3807
  23  1.28878
  24  1.6288e-06
  25  0.211695
  26  0.184954
Done.

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

Extracting fit parameters...

4FGL J1203.3+1119
   Spectrum: PowerLaw
314    Prefactor:  9.063e+01  9.688e+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:  6.249e-01  1.850e-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:  9.967e-01  2.117e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.45
Ra Dec: 180.833 11.323
Photon Index (Fixed Index): 2.34 +/- 0.00
Photon Flux (Fixed Index): 3.74e-08 +/- 3.99e-08
Energy Flux (Fixed Index): 1.33e-05 +/- 1.43e-05

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

Saving results to:
/scratch/kocevski/285474/likelihoodResults_239587201_239846401_4FGL_J1203.3+1119_daily_bin1.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) = 4592.31761466
delta logL = 0.513992431549

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4592.29928041
delta logL = 0.53232668303

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    26.297       1.0000         .10000E-03   10000.    
     2 'Index     '    3.1938       1.0000          .0000       10.000    
     3 'Normalizat'    .96161       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .64589       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=   4592.299     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      279 TOTAL
                     EDM=   .72E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     26.289        85.313        .78120E-04   -.68646E-03
   2  Index         3.1940        1.5001        .40794E-02   -.32752E-03
   3  Normalizat    .96162        .20922        .22316E-03   -.24342E-03
   4  Prefactor     .64586        .18663        .24232E-03   -.19662E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 26.2888
  Index      = 3.19398
  Normalizat = 0.961621
  Prefactor  = 0.645856
 **********
 **   18 **HESSE 
 **********

 FCN=   4592.299     FROM HESSE     STATUS=OK            25 CALLS      304 TOTAL
                     EDM=   .71E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     26.289        53.384        .15624E-04   -1.4682    
   2  Index         3.1940        .94534        .16317E-03   -.36956    
   3  Normalizat    .96162        .20826        .44631E-04   -.94328    
   4  Prefactor     .64586        .18574        .96930E-05   -1.0569    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.09086e-10
Minuit parameter uncertainties:
  1  53.4808
  2  0.951935
  3  0.208439
  4  0.185917
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/285474': 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) = 4592.29928035
delta logL = 0.532326748567

Extracting fit parameters...

4FGL J1203.3+1119
   Spectrum: PowerLaw
314    Prefactor:  2.629e+01  5.348e+01  1.000e-04  1.000e+04 ( 1.000e-14)
315        Index:  3.194e+00  9.519e-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:  6.459e-01  1.859e-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:  9.616e-01  2.084e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.56
Ra Dec: 180.833 11.323
Photon Index (Free Index): 3.19 +/- 0.95
Photon Flux (Free Index): 6.66e-08 +/- 5.40e-08
Energy Flux (Free Index): 1.22e-05 +/- 9.52e-06

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/285474/cmap_HighResolution_239587201_239846401_4FGL_J1203.3+1119_daily_bin1.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.23e-03', comment='SUCCESS', photon_flux='3.74e-08', energy_flux2='1.22e-05', photon_flux_error='3.99e-08', dlogl='5.32e-01', energy_flux='1.33e-05', photon_flux2='6.66e-08', job_status='DONE', time_completed='2021-09-04 22:08:44.401575', photon_index_error2='0.95', photon_index2='3.19', ts='1.45', fit_tolerance='1e-08', GAL='0.62', photon_index_error='0.00', photon_flux_upper_limit='1.20e-07', energy_flux_error2='9.52e-06', EG='1.00', time_epoch_completed='1630818524.4', return_code='0', job_id='285474', GAL2='0.65', EG2='0.96', return_code2='0', energy_flux_error='1.43e-05', photon_flux_error2='5.40e-08', ts2='2.56', photon_index='2.34' WHERE bin_id='1' AND source_name='4FGL J1203.3+1119' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 22:08:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0069>
Subject: Job 285474: <4FGL_J1203.3+1119_daily_bin1> in cluster <slac> Done

Job <4FGL_J1203.3+1119_daily_bin1> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sat Sep  4 21:55:34 2021
Job was executed on host(s) <bullet0069>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 21:55:36 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:36 2021
Terminated at Sat Sep  4 22:08:45 2021
Results reported at Sat Sep  4 22:08:45 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1203.3+1119_daily_bin1 180.833 11.3231 239587201 239846401 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 :                                   646.43 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             295.19 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   788 sec.
    Turnaround time :                            791 sec.

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

