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


Performing analysis on: 4FGL_J1203.3+1119_daily_bin1306
RA = 180.833, Dec = 11.3231
tmin = 577843201, tmax = 578102401
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='293340', job_status='RUN', time_executed='2021-09-04 22:23:10.376318', time_epoch_executed='1630819390.38' WHERE source_name='4FGL J1203.3+1119' and cadence='daily' and bin_id='1306'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/293340

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/293340/ft1_4FGL_J1203.3+1119_daily_bin1306.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/293340/ft2_4FGL_J1203.3+1119_daily_bin1306.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/293340/ft1_4FGL_J1203.3+1119_daily_bin1306.fits outfile=/scratch/kocevski/293340/ft1_filteredMKT_4FGL_J1203.3+1119_daily_bin1306.fits ra=180.833 dec=11.3231 rad=12.0 tmin=577843201.0 tmax=578102401.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.43
user 3.07
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/293340/ft1_filtered_4FGL_J1203.3+1119_daily_bin1306.fits" evtable="EVENTS" scfile=/scratch/kocevski/293340/ft2_4FGL_J1203.3+1119_daily_bin1306.fits sctable="SC_DATA" outfile=/scratch/kocevski/293340/ltcube_577843201_578102401_4FGL_J1203.3+1119_daily_bin1306.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/293340/ft2_4FGL_J1203.3+1119_daily_bin1306.fits
.....................!
real 12.49
user 12.00
sys 0.39

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/293340/ft1_filtered_4FGL_J1203.3+1119_daily_bin1306.fits evtable="EVENTS" scfile=/scratch/kocevski/293340/ft2_4FGL_J1203.3+1119_daily_bin1306.fits sctable="SC_DATA" expcube=/scratch/kocevski/293340/ltcube_577843201_578102401_4FGL_J1203.3+1119_daily_bin1306.fits outfile=/scratch/kocevski/293340/expmap_577843201_578102401_4FGL_J1203.3+1119_daily_bin1306.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/293340/ltcube_577843201_578102401_4FGL_J1203.3+1119_daily_bin1306.fits
.....................!
real 193.54
user 187.86
sys 4.85

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/293340/ft1_filtered_4FGL_J1203.3+1119_daily_bin1306.fits scfile=/scratch/kocevski/293340/ft2_4FGL_J1203.3+1119_daily_bin1306.fits outfile=/scratch/kocevski/293340/cmap_577843201_578102401_4FGL_J1203.3+1119_daily_bin1306.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.68
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/293340/ft1_filtered_4FGL_J1203.3+1119_daily_bin1306.fits scfile=/scratch/kocevski/293340/ft2_4FGL_J1203.3+1119_daily_bin1306.fits outfile=/scratch/kocevski/293340/cmap_HighResolution_577843201_578102401_4FGL_J1203.3+1119_daily_bin1306.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.68
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10095E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    21.122       1.0000         .10000E-03   10000.    
     3 'Prefactor '    9.5388       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .20397E-01   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10292E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10098E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    10.989       1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.4926       1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.6836       1.0000         .10000E-03   10000.    
    10 'Prefactor '    91.587       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10538E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.0668       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    19.013       1.0000         .10000E-03   10000.    
    15 'norm      '    .10742E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10479E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .22257       1.0000         .10000E-03   10000.    
    18 'norm      '    .10323E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .13922E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    1.5067       1.0000         .10000E-03   10000.    
    21 'Prefactor '    2.8220       1.0000         .10000E-03   10000.    
    22 'Prefactor '    16.097       1.0000         .10000E-03   10000.    
    23 'norm      '    .11572E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    28.704       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.3405       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .60717       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=   4294.457     FROM MIGRAD    STATUS=CONVERGED    655 CALLS     3588 TOTAL
                     EDM=   .24E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    3.8538        .13230E-06** at limit **
   2  Prefactor     21.147        46.682       -.14413E-04    .96967E-05
   3  Prefactor     9.5399        9.2765       -.23774E-05   -.23152E-05
   4  Prefactor     .10014E-03    35.439       -.77750E-06** at limit **
   5  Prefactor     .10000E-03    43.377       -.13447E-05** at limit **
   6  Prefactor     .10000E-03    10.609        .55889E-07** at limit **
   7  Prefactor     10.982        10.187        .65631E-06    .16016E-04
   8  Prefactor     4.4938        21.709        .54597E-05   -.17638E-04
   9  Prefactor     2.6845        4.0534       -.35448E-06   -.33442E-03
  10  Prefactor     91.552        92.737       -.17131E-04    .38757E-05
  11  Prefactor     .10000E-03    124.50        .10139E-05** at limit **
  12  Prefactor     2.0670        2.2118       -.15514E-06   -.11675E-03
  13  Prefactor     .10000E-03    1.3671       -.36246E-07** at limit **
  14  Prefactor     19.006        31.295        .40778E-05    .94000E-05
  15  norm          .10000E-03    4.4982       -.14413E-06** at limit **
  16  Prefactor     .10000E-03    15.250       -.57079E-06** at limit **
  17  norm          .22259        .24122       -.10750E-06   -.14726E-02
  18  norm          .10000E-03    16.669        .48733E-06** at limit **
  19  Prefactor     .10000E-03    72.130       -.23883E-05** at limit **
  20  norm          1.5065        .96411       -.15551E-06   -.32680E-04
  21  Prefactor     2.8240        12.950       -.26646E-05   -.15617E-03
  22  Prefactor     16.092        27.814        .22346E-05    .19574E-04
  23  norm          .10000E-03    1.1933       -.16438E-06** at limit **
  24  Prefactor     28.746        61.307        .21959E-05    .37525E-05
  25  Normalizat    1.3404        .22365        .34558E-05   -.38682E-04
  26  Prefactor     .60706        .18641        .27724E-07    .13294E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 21.1473
  Prefactor  = 9.53994
  Prefactor  = 0.000100136
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.9817
  Prefactor  = 4.49375
  Prefactor  = 2.6845
  Prefactor  = 91.5516
  Prefactor  = 0.000100001
  Prefactor  = 2.06701
  Prefactor  = 0.0001
  Prefactor  = 19.006
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.222585
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.50645
  Prefactor  = 2.82401
  Prefactor  = 16.0919
  norm       = 0.0001
  Prefactor  = 28.7461
  Normalizat = 1.34036
  Prefactor  = 0.607059
 **********
 **   18 **HESSE 
 **********

 FCN=   4294.457     FROM HESSE     STATUS=OK           474 CALLS     4062 TOTAL
                     EDM=   .53E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    3.8596        .12564E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     21.147        46.931        .87151E-04   -1.4788    
   3  Prefactor     9.5399        9.2698        .12975E-03   -1.5090    
   4  Prefactor     .10014E-03    37.971        .12462       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    43.382        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    10.691        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     10.982        10.187        .12085E-03   -1.5045    
   8  Prefactor     4.4938        21.376        .18996E-03   -1.5284    
   9  Prefactor     2.6845        4.0448        .15246E-03   -1.5380    
  10  Prefactor     91.552        91.948        .20995E-03   -1.3791    
  11  Prefactor     .10000E-03    125.15        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     2.0670        2.1926        .96328E-04   -1.5420    
  13  Prefactor     .10000E-03    1.3838        .74768E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     19.006        31.274        .91855E-04   -1.4836    
  15  norm          .10000E-03    4.6069        .27059E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    15.255        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .22259        .22962        .32083E-03   -1.5614    
  18  norm          .10000E-03    16.669        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    72.136        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          1.5065        .95019        .49276E-04   -1.5462    
  21  Prefactor     2.8240        12.963        .24211E-03   -1.5372    
  22  Prefactor     16.092        27.741        .99826E-04   -1.4905    
  23  norm          .10000E-03    32.092        .13827E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     28.746        61.333        .74779E-04   -1.4635    
  25  Normalizat    1.3404        .26444        .22785E-03   -.82370    
  26  Prefactor     .60706        .21894        .28292E-03   -1.0729    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.28534e-10
Minuit parameter uncertainties:
  1  5.69422e-06
  2  47.0129
  3  9.27116
  4  0.00453956
  5  1.54088e-05
  6  3.06402e-05
  7  10.1888
  8  19.6131
  9  4.0452
  10  92.0916
  11  0.000610768
  12  2.19269
  13  3.95475e-06
  14  31.3011
  15  4.1593e-05
  16  1.01024e-05
  17  0.229624
  18  4.98521e-06
  19  2.30771e-05
  20  0.950196
  21  12.1051
  22  27.7631
  23  0.000158149
  24  61.4675
  25  0.264712
  26  0.219246
Done.

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

Extracting fit parameters...

4FGL J1203.3+1119
   Spectrum: PowerLaw
314    Prefactor:  9.155e+01  9.209e+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.071e-01  2.192e-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.340e+00  2.647e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.75
Ra Dec: 180.833 11.323
Photon Index (Fixed Index): 2.34 +/- 0.00
Photon Flux (Fixed Index): 3.78e-08 +/- 3.80e-08
Energy Flux (Fixed Index): 1.35e-05 +/- 1.36e-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) = 4293.25066146
delta logL = 1.20622201847

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4293.24210124
delta logL = 1.21478223778

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    83.150       1.0000         .10000E-03   10000.    
     2 'Index     '    1.2460       1.0000          .0000       10.000    
     3 'Normalizat'    1.3637       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .60079       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=   4293.242     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      213 TOTAL
                     EDM=   .95E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 12.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     83.072        111.13       -.27587E-04   -.24088E-04
   2  Index         1.2457        .68157       -.82016E-04    .12313E-04
   3  Normalizat    1.3635        .21110        .59917E-06    .35352E-03
   4  Prefactor     .60080        .18442        .51007E-06    .23725E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 83.0717
  Index      = 1.24567
  Normalizat = 1.36346
  Prefactor  = 0.6008
 **********
 **   18 **HESSE 
 **********

 FCN=   4293.242     FROM HESSE     STATUS=OK            31 CALLS      244 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     83.072        107.83        .22025E-03   -1.3883    
   2  Index         1.2457        .66202        .91965E-02   -.84937    
   3  Normalizat    1.3635        .24799        .22619E-03   -.81691    
   4  Prefactor     .60080        .21630        .28437E-03   -1.0755    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.63918e-10
Minuit parameter uncertainties:
  1  108.08
  2  0.666535
  3  0.248208
  4  0.216601
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/293340': 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) = 4293.2420997
delta logL = 1.21478377266

Extracting fit parameters...

4FGL J1203.3+1119
   Spectrum: PowerLaw
314    Prefactor:  8.307e+01  1.081e+02  1.000e-04  1.000e+04 ( 1.000e-14)
315        Index:  1.246e+00  6.665e-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.008e-01  2.166e-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.363e+00  2.482e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.18
Ra Dec: 180.833 11.323
Photon Index (Free Index): 1.25 +/- 0.67
Photon Flux (Free Index): 7.97e-09 +/- 1.10e-08
Energy Flux (Free Index): 5.79e-05 +/- 8.67e-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/293340/cmap_HighResolution_577843201_578102401_4FGL_J1203.3+1119_daily_bin1306.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.78e-08', energy_flux2='5.79e-05', photon_flux_error='3.80e-08', dlogl='1.21e+00', energy_flux='1.35e-05', photon_flux2='7.97e-09', job_status='DONE', time_completed='2021-09-04 22:33:19.759442', photon_index_error2='0.67', photon_index2='1.25', ts='4.75', fit_tolerance='1e-08', GAL='0.61', photon_index_error='0.00', energy_flux_error2='8.67e-05', EG='1.34', time_epoch_completed='1630819999.76', return_code='0', job_id='293340', GAL2='0.60', EG2='1.36', return_code2='0', energy_flux_error='1.36e-05', photon_flux_error2='1.10e-08', ts2='7.18', photon_index='2.34' WHERE bin_id='1306' AND source_name='4FGL J1203.3+1119' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 22:33:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0230>
Subject: Job 293340: <4FGL_J1203.3+1119_daily_bin1306> in cluster <slac> Done

Job <4FGL_J1203.3+1119_daily_bin1306> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sat Sep  4 22:20:33 2021
Job was executed on host(s) <bullet0230>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 22:20:34 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep  4 22:20:34 2021
Terminated at Sat Sep  4 22:33:20 2021
Results reported at Sat Sep  4 22:33:20 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1203.3+1119_daily_bin1306 180.833 11.3231 577843201 578102401 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 :                                   599.17 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             289.73 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   766 sec.
    Turnaround time :                            767 sec.

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

