/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 3 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 = 7396
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1203.3+1119_daily_bin291
RA = 180.833, Dec = 11.3231
tmin = 314755201, tmax = 315014401
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='285966', job_status='RUN', time_executed='2021-09-04 21:56:35.838697', time_epoch_executed='1630817795.84' WHERE source_name='4FGL J1203.3+1119' and cadence='daily' and bin_id='291'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/285966

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/285966/ft1_4FGL_J1203.3+1119_daily_bin291.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/285966/ft2_4FGL_J1203.3+1119_daily_bin291.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/285966/ft1_4FGL_J1203.3+1119_daily_bin291.fits outfile=/scratch/kocevski/285966/ft1_filteredMKT_4FGL_J1203.3+1119_daily_bin291.fits ra=180.833 dec=11.3231 rad=12.0 tmin=314755201.0 tmax=315014401.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.47
user 3.24
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/285966/ft1_filtered_4FGL_J1203.3+1119_daily_bin291.fits evtable="EVENTS" scfile=/scratch/kocevski/285966/ft2_4FGL_J1203.3+1119_daily_bin291.fits sctable="SC_DATA" expcube=/scratch/kocevski/285966/ltcube_314755201_315014401_4FGL_J1203.3+1119_daily_bin291.fits outfile=/scratch/kocevski/285966/expmap_314755201_315014401_4FGL_J1203.3+1119_daily_bin291.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/285966/ltcube_314755201_315014401_4FGL_J1203.3+1119_daily_bin291.fits
.....................!
real 190.82
user 186.02
sys 4.38

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

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

This is gtbin version HEAD
real 0.55
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/285966/ft1_filtered_4FGL_J1203.3+1119_daily_bin291.fits scfile=/scratch/kocevski/285966/ft2_4FGL_J1203.3+1119_daily_bin291.fits outfile=/scratch/kocevski/285966/cmap_HighResolution_314755201_315014401_4FGL_J1203.3+1119_daily_bin291.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.54
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.9321       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10099E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.4354       1.0000         .10000E-03   10000.    
     4 'Prefactor '    13.276       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10581E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10359E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.0096       1.0000         .10000E-03   10000.    
     8 'Prefactor '    37.780       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .31945       1.0000         .10000E-03   10000.    
    10 'Prefactor '    23.706       1.0000         .10000E-03   10000.    
    11 'Prefactor '    41.093       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10151E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.6521       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10354E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    10.525       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10385E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    3.6674       1.0000         .10000E-03   10000.    
    18 'norm      '    11.805       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .12457E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    5.3807       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10359E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    1.1459       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.0758       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .64372       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=   5532.943     FROM MIGRAD    STATUS=CONVERGED    658 CALLS     3688 TOTAL
                     EDM=   .49E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.9362        11.201       -.73736E-06   -.87339E-04
   2  Prefactor     .10000E-03    16.522       -.78210E-07** at limit **
   3  Prefactor     3.4491        16.887       -.10126E-05    .15445E-04
   4  Prefactor     13.272        18.892       -.12919E-06    .38597E-04
   5  Prefactor     .10000E-03    40.974       -.13742E-06** at limit **
   6  Prefactor     .10000E-03    4.5102       -.19352E-06** at limit **
   7  Prefactor     4.0106        4.5484        .51676E-07    .19097E-04
   8  Prefactor     37.777        23.820       -.16691E-06    .23343E-04
   9  Prefactor     .31788        16.897        .50384E-05   -.13354E-03
  10  Prefactor     23.725        111.32       -.15232E-06   -.92950E-05
  11  Prefactor     41.063        35.081       -.18704E-06   -.88217E-04
  12  Prefactor     .10000E-03    1.8626        .68795E-06** at limit **
  13  Prefactor     3.6518        2.8967       -.38081E-06   -.78797E-03
  14  Prefactor     .10000E-03    19.340       -.32915E-06** at limit **
  15  norm          10.537        6.1432       -.81154E-07    .14005E-03
  16  Prefactor     .10000E-03    38.947        .30702E-06** at limit **
  17  norm          3.6676        .54091       -.18652E-08    .19046E-04
  18  norm          11.566        74.620        .73201E-06    .21987E-04
  19  Prefactor     .10000E-03    155.85        .41839E-06** at limit **
  20  norm          5.3813        1.1885        .68941E-07    .68740E-03
  21  Prefactor     .10000E-03    4.2495        .15458E-06** at limit **
  22  Prefactor     .10000E-03    13.622        .26212E-06** at limit **
  23  norm          1.1451        1.9411       -.12301E-05   -.79781E-03
  24  Prefactor     .10000E-03    15.897        .79227E-07** at limit **
  25  Normalizat    1.0752        .23271        .15892E-05   -.14162E-03
  26  Prefactor     .64422        .18691       -.11118E-05    .14429E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 6.93617
  Prefactor  = 0.0001
  Prefactor  = 3.44912
  Prefactor  = 13.2723
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.01063
  Prefactor  = 37.7772
  Prefactor  = 0.317883
  Prefactor  = 23.7248
  Prefactor  = 41.0629
  Prefactor  = 0.000100001
  Prefactor  = 3.65176
  Prefactor  = 0.0001
  norm       = 10.5366
  Prefactor  = 0.0001
  norm       = 3.66756
  norm       = 11.5661
  Prefactor  = 0.0001
  norm       = 5.38131
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.14505
  Prefactor  = 0.0001
  Normalizat = 1.0752
  Prefactor  = 0.644222
 **********
 **   18 **HESSE 
 **********

 FCN=   5532.943     FROM HESSE     STATUS=OK           460 CALLS     4148 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.9362        11.202        .15238E-03   -1.5181    
   2  Prefactor     .10000E-03    16.523        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     3.4491        16.362        .21823E-03   -1.5337    
   4  Prefactor     13.272        18.886        .10993E-03   -1.4979    
   5  Prefactor     .10000E-03    40.984        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    4.5266        .15428E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     4.0106        4.5470        .16407E-03   -1.5307    
   8  Prefactor     37.777        23.820        .65206E-04   -1.4478    
   9  Prefactor     .31788        17.656        .21294E-02   -1.5595    
  10  Prefactor     23.725        110.75        .82271E-04   -1.4733    
  11  Prefactor     41.063        34.895        .62532E-04   -1.4425    
  12  Prefactor     .10000E-03    2.8353        .18281E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     3.6518        2.8664        .10714E-03   -1.5326    
  14  Prefactor     .10000E-03    19.368        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          10.537        6.1345        .11018E-03   -1.5059    
  16  Prefactor     .10000E-03    39.070        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          3.6676        .54214        .20126E-04   -1.5325    
  18  norm          11.566        74.569        .11659E-03   -1.5028    
  19  Prefactor     .10000E-03    155.96        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          5.3813        1.1963        .33392E-04   -1.5244    
  21  Prefactor     .10000E-03    4.2623        .14974E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    13.644        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          1.1451        1.9928        .13142E-03   -1.5494    
  24  Prefactor     .10000E-03    15.887        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.0752        .25519        .25633E-03   -.90552    
  26  Prefactor     .64422        .20908        .28776E-03   -1.0576    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.25464e-09
Minuit parameter uncertainties:
  1  11.205
  2  6.91187e-05
  3  15.031
  4  18.8948
  5  4.059e-05
  6  1.08628e-05
  7  4.54741
  8  23.8264
  9  4.73894
  10  102.832
  11  34.9123
  12  9.56636e-05
  13  2.86647
  14  1.45826e-05
  15  6.13484
  16  3.1872e-05
  17  0.542136
  18  58.8429
  19  0.00018189
  20  1.19628
  21  4.18653e-06
  22  2.98492e-06
  23  1.99291
  24  5.20867e-05
  25  0.255483
  26  0.209329
Done.

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

Extracting fit parameters...

4FGL J1203.3+1119
   Spectrum: PowerLaw
314    Prefactor:  2.372e+01  1.028e+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:  6.442e-01  2.093e-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.075e+00  2.555e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/285966/likelihoodResults_314755201_315014401_4FGL_J1203.3+1119_daily_bin291.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) = 5532.64058886
delta logL = 0.302212295867

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5532.63923597
delta logL = 0.303565185339

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    85.802       1.0000         .10000E-03   10000.    
     2 'Index     '    1.5477       1.0000          .0000       10.000    
     3 'Normalizat'    1.0887       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .62840       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6260E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5532.639     FROM MIGRAD    STATUS=CONVERGED     65 CALLS      282 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     85.224        7722.7        .10843E-02   -.14679E-06
   2  Index         1.5436        6.0039        .29287       -.21869E-04
   3  Normalizat    1.0883        .12643        .57641E-01    .69044E-05
   4  Prefactor     .62886        .10384        .65703E-01    .21301E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 85.2238
  Index      = 1.54356
  Normalizat = 1.08831
  Prefactor  = 0.628859
 **********
 **   18 **HESSE 
 **********

 FCN=   5532.639     FROM HESSE     STATUS=OK            31 CALLS      313 TOTAL
                     EDM=   .37E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     85.224        127.58        .43370E-04   -1.3859    
   2  Index         1.5436        .74327        .11009E-01   -.76327    
   3  Normalizat    1.0883        .22692        .25489E-03   -.90128    
   4  Prefactor     .62886        .20273        .29074E-03   -1.0638    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.69483e-10
Minuit parameter uncertainties:
  1  127.992
  2  0.74861
  3  0.22712
  4  0.202961
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/285966': 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) = 5532.6392135
delta logL = 0.303587649575

Extracting fit parameters...

4FGL J1203.3+1119
   Spectrum: PowerLaw
314    Prefactor:  8.522e+01  1.280e+02  1.000e-04  1.000e+04 ( 1.000e-14)
315        Index:  1.544e+00  7.486e-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.289e-01  2.030e-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.088e+00  2.271e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.08
Ra Dec: 180.833 11.323

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/285966/cmap_HighResolution_314755201_315014401_4FGL_J1203.3+1119_daily_bin291.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.75e-03', job_status='DONE', photon_flux_upper_limit='1.01e-07', time_completed='2021-09-04 22:09:52.643705', job_id='285966', GAL2='0.63', fit_tolerance='1e-08', EG2='1.09', EG='1.08', time_epoch_completed='1630818592.64', return_code2='0', ts='0.08', comment='SUCCESS', return_code='0', GAL='0.64', dlogl='3.04e-01', ts2='0.69', photon_index_error='0.00', photon_index='2.34' WHERE bin_id='291' AND source_name='4FGL J1203.3+1119' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 22:09:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0203>
Subject: Job 285966: <4FGL_J1203.3+1119_daily_bin291> in cluster <slac> Done

Job <4FGL_J1203.3+1119_daily_bin291> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sat Sep  4 21:56:22 2021
Job was executed on host(s) <bullet0203>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 21:56:23 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:56:23 2021
Terminated at Sat Sep  4 22:09:53 2021
Results reported at Sat Sep  4 22:09:53 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1203.3+1119_daily_bin291 180.833 11.3231 314755201 315014401 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 :                                   790.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             335.64 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   809 sec.
    Turnaround time :                            811 sec.

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

