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


Performing analysis on: 4FGL_J1203.3+1119_daily_bin73
RA = 180.833, Dec = 11.3231
tmin = 258249601, tmax = 258508801
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='285595', job_status='RUN', time_executed='2021-09-04 21:59:11.491791', time_epoch_executed='1630817951.49' WHERE source_name='4FGL J1203.3+1119' and cadence='daily' and bin_id='73'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/285595

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

Retrieving the FT1 file...

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

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

Retrieving 33 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/285595/ft1_4FGL_J1203.3+1119_daily_bin73.fits


Retrieving the FT1 file...

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

Retrieving 33 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/285595/ft2_4FGL_J1203.3+1119_daily_bin73.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/285595/ft1_4FGL_J1203.3+1119_daily_bin73.fits outfile=/scratch/kocevski/285595/ft1_filteredMKT_4FGL_J1203.3+1119_daily_bin73.fits ra=180.833 dec=11.3231 rad=12.0 tmin=258249601.0 tmax=258508801.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.17
user 1.00
sys 0.14

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/285595/ft1_filtered_4FGL_J1203.3+1119_daily_bin73.fits" evtable="EVENTS" scfile=/scratch/kocevski/285595/ft2_4FGL_J1203.3+1119_daily_bin73.fits sctable="SC_DATA" outfile=/scratch/kocevski/285595/ltcube_258249601_258508801_4FGL_J1203.3+1119_daily_bin73.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/285595/ft2_4FGL_J1203.3+1119_daily_bin73.fits
.....................!
real 9.26
user 8.93
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/285595/ft1_filtered_4FGL_J1203.3+1119_daily_bin73.fits evtable="EVENTS" scfile=/scratch/kocevski/285595/ft2_4FGL_J1203.3+1119_daily_bin73.fits sctable="SC_DATA" expcube=/scratch/kocevski/285595/ltcube_258249601_258508801_4FGL_J1203.3+1119_daily_bin73.fits outfile=/scratch/kocevski/285595/expmap_258249601_258508801_4FGL_J1203.3+1119_daily_bin73.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/285595/ltcube_258249601_258508801_4FGL_J1203.3+1119_daily_bin73.fits
.....................!
real 190.14
user 186.03
sys 3.80

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/285595/ft1_filtered_4FGL_J1203.3+1119_daily_bin73.fits scfile=/scratch/kocevski/285595/ft2_4FGL_J1203.3+1119_daily_bin73.fits outfile=/scratch/kocevski/285595/cmap_258249601_258508801_4FGL_J1203.3+1119_daily_bin73.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.51
user 0.38
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/285595/ft1_filtered_4FGL_J1203.3+1119_daily_bin73.fits scfile=/scratch/kocevski/285595/ft2_4FGL_J1203.3+1119_daily_bin73.fits outfile=/scratch/kocevski/285595/cmap_HighResolution_258249601_258508801_4FGL_J1203.3+1119_daily_bin73.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.39
sys 0.13

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10118E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    13.317       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10687E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10112E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10058E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10090E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    10.384       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10098E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .12318       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .11449E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .29138       1.0000         .10000E-03   10000.    
    15 'norm      '    .12017E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .11139E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .22227       1.0000         .10000E-03   10000.    
    18 'norm      '    .10088E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    210.06       1.0000         .10000E-03   10000.    
    20 'norm      '    4.9033       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10192E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    23.820       1.0000         .10000E-03   10000.    
    23 'norm      '    .98491       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10110E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .87562       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.1553       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=   3856.790     FROM MIGRAD    STATUS=CONVERGED    691 CALLS     3191 TOTAL
                     EDM=   .90E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10001E-03    16.053        .19231E-05** at limit **
   2  Prefactor     13.359        40.464       -.80246E-04    .65853E-05
   3  Prefactor     .10000E-03    12.431       -.34020E-06** at limit **
   4  Prefactor     .10000E-03    11.425        .30300E-06** at limit **
   5  Prefactor     .10000E-03    71.136        .11204E-05** at limit **
   6  Prefactor     .10000E-03    6.4690       -.26189E-07** at limit **
   7  Prefactor     .10000E-03    3.1394        .11016E-07** at limit **
   8  Prefactor     .10000E-03    9.7164       -.15913E-06** at limit **
   9  Prefactor     10.379        6.6660        .43526E-06    .28239E-03
  10  Prefactor     .10000E-03    213.84       -.17651E-04** at limit **
  11  Prefactor     .10000E-03    21.541        .71058E-06** at limit **
  12  Prefactor     .12841        2.0355       -.11932E-05    .37251E-03
  13  Prefactor     .10000E-03    3.6137       -.20759E-06** at limit **
  14  Prefactor     .59070E-02    35.548       -.48853E-05    .11246E-03
  15  norm          .10000E-03    2.7151       -.87434E-06** at limit **
  16  Prefactor     .10000E-03    32.511       -.58059E-06** at limit **
  17  norm          .22227        .20007       -.39581E-07    .12016E-04
  18  norm          .10000E-03    18.590       -.99970E-06** at limit **
  19  Prefactor     210.07        245.62        .22266E-04    .80385E-04
  20  norm          4.9029        1.1317       -.10061E-06    .24377E-02
  21  Prefactor     .10000E-03    6.6321       -.27911E-06** at limit **
  22  Prefactor     23.834        30.176        .11511E-04    .47683E-04
  23  norm          .98536        1.9433       -.76887E-06   -.73375E-03
  24  Prefactor     .10000E-03    18.677       -.12013E-08** at limit **
  25  Normalizat    .87534        .23784        .61793E-05    .34971E-03
  26  Prefactor     1.1554        .21701       -.62189E-06    .53704E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100005
  Prefactor  = 13.3591
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.3792
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.128409
  Prefactor  = 0.0001
  Prefactor  = 0.00590695
  norm       = 0.000100002
  Prefactor  = 0.0001
  norm       = 0.222266
  norm       = 0.0001
  Prefactor  = 210.073
  norm       = 4.90293
  Prefactor  = 0.0001
  Prefactor  = 23.8341
  norm       = 0.985362
  Prefactor  = 0.0001
  Normalizat = 0.875337
  Prefactor  = 1.1554
 **********
 **   18 **HESSE 
 **********

 FCN=   3856.790     FROM HESSE     STATUS=OK           456 CALLS     3647 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10001E-03    16.356        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     13.359        40.548        .10976E-03   -1.4977    
   3  Prefactor     .10000E-03    12.681        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    11.426        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    71.193        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    6.4934        .15426E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    3.1433        .10746E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    9.7275        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     10.379        6.6518        .11951E-03   -1.5064    
  10  Prefactor     .10000E-03    214.62        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    21.567        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .12841        15.332        .16641E-02   -1.5636    
  13  Prefactor     .10000E-03    3.7164        .22995E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .59070E-02    43.029        .10722       -1.5693    
  15  norm          .10000E-03    9.4186        .18665E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    32.551        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .22227        .19719        .25660E-04   -1.5614    
  18  norm          .10000E-03    18.593        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     210.07        243.71        .13946E-03   -1.2799    
  20  norm          4.9029        1.1110        .29541E-04   -1.5265    
  21  Prefactor     .10000E-03    6.6395        .15616E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     23.834        30.204        .82073E-04   -1.4731    
  23  norm          .98536        1.8844        .11527E-03   -1.5509    
  24  Prefactor     .10000E-03    18.678        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .87534        .27607        .27878E-03   -.97332    
  26  Prefactor     1.1554        .25493        .23429E-03   -.87715    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.62922e-09
Minuit parameter uncertainties:
  1  0.000582213
  2  40.6315
  3  6.40555e-06
  4  7.62918e-06
  5  7.51432e-05
  6  8.75979e-06
  7  5.70546e-06
  8  5.85973e-06
  9  6.65225
  10  0.000405488
  11  3.55041e-05
  12  2.80594
  13  4.65652e-05
  14  1.00045
  15  0.000295344
  16  0.000218462
  17  0.197194
  18  1.12866e-05
  19  244.895
  20  1.11104
  21  8.83756e-05
  22  30.2237
  23  1.88447
  24  1.15923e-05
  25  0.276518
  26  0.255197
Done.

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

Extracting fit parameters...

4FGL J1203.3+1119
   Spectrum: PowerLaw
314    Prefactor:  1.000e-04  4.055e-04  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.155e+00  2.552e-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.753e-01  2.765e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/285595/likelihoodResults_258249601_258508801_4FGL_J1203.3+1119_daily_bin73.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): 102
logL (Free Index) = 3856.78976796
delta logL = -2.20579549932e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3856.78976796
delta logL = -2.2056911348e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96357E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3389       1.0000          .0000       10.000    
     3 'Normalizat'    .87534       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1554       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=   3856.790     FROM MIGRAD    STATUS=CONVERGED     61 CALLS      207 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    160.72        .90713E-02** at limit **
   2  Index         2.3065        5.4257        .50000        .11971E-05
   3  Normalizat    .87534        .48985E-02    .44586E-01    .10057E-04
   4  Prefactor     1.1554        .46835E-02    .52993E-01    .21234E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Index      = 2.30648
  Normalizat = 0.875338
  Prefactor  = 1.15539
 **********
 **   18 **HESSE 
 **********

 FCN=   3856.790     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      240 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    844.74        .18143E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3065        5.3438        .50000       -.56890    
   3  Normalizat    .87534        .11371E-01    .27877E-03   -.97332    
   4  Prefactor     1.1554        .10872E-01    .23429E-03   -.87715    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.59976e-08
Minuit parameter uncertainties:
  1  0.00178095
  2  431.193
  3  0.0113705
  4  0.0108724
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/285595': 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): 102
logL (Free Index) = 3856.78974589
delta logL = 9.73886926658e-09

Extracting fit parameters...

4FGL J1203.3+1119
   Spectrum: PowerLaw
314    Prefactor:  1.000e-04  1.781e-03  1.000e-04  1.000e+04 ( 1.000e-14)
315        Index:  2.306e+00  4.312e+02  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.155e+00  1.087e-02  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.753e-01  1.137e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
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/285595/cmap_HighResolution_258249601_258508801_4FGL_J1203.3+1119_daily_bin73.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.32e-03', job_status='DONE', photon_flux_upper_limit='1.08e-07', time_completed='2021-09-04 22:09:07.225690', job_id='285595', GAL2='1.16', fit_tolerance='1e-08', EG2='0.88', EG='0.88', time_epoch_completed='1630818547.23', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.16', dlogl='9.74e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.34' WHERE bin_id='73' AND source_name='4FGL J1203.3+1119' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 22:09:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0252>
Subject: Job 285595: <4FGL_J1203.3+1119_daily_bin73> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1203.3+1119_daily_bin73 180.833 11.3231 258249601 258508801 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 :                                   597.07 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             260.23 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   800 sec.
    Turnaround time :                            803 sec.

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

