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


Performing analysis on: 4FGL_J1203.3+1119_daily_bin1013
RA = 180.833, Dec = 11.3231
tmin = 501897601, tmax = 502156801
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='292007', job_status='RUN', time_executed='2021-09-04 22:18:27.030642', time_epoch_executed='1630819107.03' WHERE source_name='4FGL J1203.3+1119' and cadence='daily' and bin_id='1013'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/292007

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/292007/ft1_4FGL_J1203.3+1119_daily_bin1013.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/292007/ft2_4FGL_J1203.3+1119_daily_bin1013.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/292007/ft1_4FGL_J1203.3+1119_daily_bin1013.fits outfile=/scratch/kocevski/292007/ft1_filteredMKT_4FGL_J1203.3+1119_daily_bin1013.fits ra=180.833 dec=11.3231 rad=12.0 tmin=501897601.0 tmax=502156801.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.78
user 3.27
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/292007/ft2_4FGL_J1203.3+1119_daily_bin1013.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/292007/ft1_filteredMKT_4FGL_J1203.3+1119_daily_bin1013.fits evtable="EVENTS" outfile="/scratch/kocevski/292007/ft1_filtered_4FGL_J1203.3+1119_daily_bin1013.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.67
user 0.34
sys 0.17

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/292007/ft1_filtered_4FGL_J1203.3+1119_daily_bin1013.fits evtable="EVENTS" scfile=/scratch/kocevski/292007/ft2_4FGL_J1203.3+1119_daily_bin1013.fits sctable="SC_DATA" expcube=/scratch/kocevski/292007/ltcube_501897601_502156801_4FGL_J1203.3+1119_daily_bin1013.fits outfile=/scratch/kocevski/292007/expmap_501897601_502156801_4FGL_J1203.3+1119_daily_bin1013.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/292007/ltcube_501897601_502156801_4FGL_J1203.3+1119_daily_bin1013.fits
.....................!
real 191.05
user 186.11
sys 4.43

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/292007/ft1_filtered_4FGL_J1203.3+1119_daily_bin1013.fits scfile=/scratch/kocevski/292007/ft2_4FGL_J1203.3+1119_daily_bin1013.fits outfile=/scratch/kocevski/292007/cmap_501897601_502156801_4FGL_J1203.3+1119_daily_bin1013.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.56
user 0.38
sys 0.14

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.1739       1.0000         .10000E-03   10000.    
     2 'Prefactor '    15.324       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    17.817       1.0000         .10000E-03   10000.    
     5 'Prefactor '    21.817       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10254E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .32239E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    10.774       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    20.839       1.0000         .10000E-03   10000.    
    11 'Prefactor '    13.888       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.8087       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .67597       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .48368       1.0000         .10000E-03   10000.    
    18 'norm      '    25.573       1.0000         .10000E-03   10000.    
    19 'Prefactor '    32.695       1.0000         .10000E-03   10000.    
    20 'norm      '    .79386       1.0000         .10000E-03   10000.    
    21 'Prefactor '    16.750       1.0000         .10000E-03   10000.    
    22 'Prefactor '    31.848       1.0000         .10000E-03   10000.    
    23 'norm      '    .10182E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .39348E-02   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.3514       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .70367       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=   5717.541     FROM MIGRAD    STATUS=CONVERGED    624 CALLS     3108 TOTAL
                     EDM=   .89E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.1723        27.073        .41263E-05   -.36816E-04
   2  Prefactor     15.306        42.294       -.77385E-06   -.22089E-04
   3  Prefactor     .10000E-03    5.2445        .25651E-06** at limit **
   4  Prefactor     17.814        29.084       -.76498E-06   -.16982E-05
   5  Prefactor     21.683        93.922       -.55945E-06   -.14372E-04
   6  Prefactor     .10000E-03    6.8123       -.29993E-06** at limit **
   7  Prefactor     .10000E-03    6.2496        .93156E-06** at limit **
   8  Prefactor     10.775        10.893        .49234E-07    .11359E-05
   9  Prefactor     .10000E-03    1.1792        .13555E-06** at limit **
  10  Prefactor     20.835        53.133        .23138E-06   -.52338E-06
  11  Prefactor     13.843        30.698       -.27651E-05    .10276E-04
  12  Prefactor     .10000E-03    .70038        .76701E-07** at limit **
  13  Prefactor     3.8086        2.6197        .85766E-07   -.24586E-04
  14  Prefactor     .10000E-03    10.049        .31822E-07** at limit **
  15  norm          .68070        3.2124        .10335E-05   -.11487E-03
  16  Prefactor     .10000E-03    10.908       -.13243E-06** at limit **
  17  norm          .48367        .24208        .11124E-07   -.31745E-04
  18  norm          25.548        36.225       -.12115E-05   -.49338E-04
  19  Prefactor     32.606        98.670       -.90944E-06   -.17088E-04
  20  norm          .79269        .58563       -.13234E-06   -.10826E-02
  21  Prefactor     16.753        12.235        .26155E-07   -.51989E-05
  22  Prefactor     31.847        27.702       -.21106E-07    .32049E-05
  23  norm          .10000E-03    .89672        .69256E-07** at limit **
  24  Prefactor     .10000E-03    431.29       -.26397E-05** at limit **
  25  Normalizat    1.3514        .19211       -.16658E-06   -.21220E-03
  26  Prefactor     .70360        .17039       -.18244E-05   -.45758E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.17225
  Prefactor  = 15.3063
  Prefactor  = 0.0001
  Prefactor  = 17.8138
  Prefactor  = 21.6827
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 10.7745
  Prefactor  = 0.0001
  Prefactor  = 20.8355
  Prefactor  = 13.8435
  Prefactor  = 0.0001
  Prefactor  = 3.80862
  Prefactor  = 0.0001
  norm       = 0.680699
  Prefactor  = 0.0001
  norm       = 0.483672
  norm       = 25.5476
  Prefactor  = 32.6058
  norm       = 0.792687
  Prefactor  = 16.7533
  Prefactor  = 31.8475
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.3514
  Prefactor  = 0.703598
 **********
 **   18 **HESSE 
 **********

 FCN=   5717.541     FROM HESSE     STATUS=OK           468 CALLS     3576 TOTAL
                     EDM=   .27E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.1723        27.102        .42302E-03   -1.5491    
   2  Prefactor     15.306        41.964        .10231E-03   -1.4925    
   3  Prefactor     .10000E-03    5.2787        .16917E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     17.814        28.982        .94887E-04   -1.4864    
   5  Prefactor     21.683        94.736        .85753E-04   -1.4776    
   6  Prefactor     .10000E-03    6.9391        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    28.045        .35845E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     10.775        10.891        .12206E-03   -1.5051    
   9  Prefactor     .10000E-03    1.1865        .80204E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     20.835        53.118        .87741E-04   -1.4795    
  11  Prefactor     13.843        30.446        .10748E-03   -1.4964    
  12  Prefactor     .10000E-03    .70676        .61771E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     3.8086        2.6179        .97458E-04   -1.5318    
  14  Prefactor     .10000E-03    10.055        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .68070        5.0423        .20336E-02   -1.5543    
  16  Prefactor     .10000E-03    10.912        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .48367        .23997        .25431E-04   -1.5569    
  18  norm          25.548        37.493        .79215E-04   -1.4697    
  19  Prefactor     32.606        98.641        .70078E-04   -1.4565    
  20  norm          .79269        .55775        .44359E-03   -1.5530    
  21  Prefactor     16.753        12.229        .97862E-04   -1.4889    
  22  Prefactor     31.847        27.710        .71001E-04   -1.4579    
  23  norm          .10000E-03    1.9153        .13838E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    440.23        .39029E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.3514        .22933        .22552E-03   -.82045    
  26  Prefactor     .70360        .19698        .27655E-03   -1.0339    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.67516e-08
Minuit parameter uncertainties:
  1  11.2784
  2  42.0455
  3  2.47007e-06
  4  29.0047
  5  90.8882
  6  2.76993e-05
  7  0.000383176
  8  10.8932
  9  3.19548e-07
  10  53.2391
  11  30.4802
  12  2.0136e-07
  13  2.61799
  14  1.13252e-06
  15  3.70544
  16  1.10673e-05
  17  0.239966
  18  37.5276
  19  99.1397
  20  0.557751
  21  12.2312
  22  27.7212
  23  2.04533e-05
  24  0.000896698
  25  0.229508
  26  0.197175
Done.

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

Extracting fit parameters...

4FGL J1203.3+1119
   Spectrum: PowerLaw
314    Prefactor:  2.084e+01  5.324e+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:  7.036e-01  1.972e-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.351e+00  2.295e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.21
Ra Dec: 180.833 11.323
Photon Flux Upper Limit: 7.26e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.59e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/292007/likelihoodResults_501897601_502156801_4FGL_J1203.3+1119_daily_bin1013.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) = 5717.51740021
delta logL = 0.0238372941658

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5717.50614098
delta logL = 0.0350965219122

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    13.558       1.0000         .10000E-03   10000.    
     2 'Index     '    2.7940       1.0000          .0000       10.000    
     3 'Normalizat'    1.3447       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .70712       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=   5717.506     FROM MIGRAD    STATUS=CONVERGED     98 CALLS      278 TOTAL
                     EDM=   .91E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.547        60.314        .10878E-03   -.23306E-04
   2  Index         2.7942        2.1661        .92305E-02    .18410E-03
   3  Normalizat    1.3448        .21488        .22596E-03    .36728E-05
   4  Prefactor     .70704        .19541        .27591E-03   -.88341E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.5473
  Index      = 2.79422
  Normalizat = 1.34483
  Prefactor  = 0.707035
 **********
 **   18 **HESSE 
 **********

 FCN=   5717.506     FROM HESSE     STATUS=OK            25 CALLS      303 TOTAL
                     EDM=   .53E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.547        46.828        .43512E-05   -1.4972    
   2  Index         2.7942        1.8004        .18461E-02   -.45689    
   3  Normalizat    1.3448        .21459        .90385E-05   -.82238    
   4  Prefactor     .70704        .19531        .11037E-04   -1.0325    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.2574e-11
Minuit parameter uncertainties:
  1  46.9553
  2  1.85254
  3  0.214731
  4  0.195496
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/292007': 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) = 5717.50614085
delta logL = 0.0350966531396

Extracting fit parameters...

4FGL J1203.3+1119
   Spectrum: PowerLaw
314    Prefactor:  1.355e+01  4.696e+01  1.000e-04  1.000e+04 ( 1.000e-14)
315        Index:  2.794e+00  1.853e+00  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:  7.070e-01  1.955e-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.345e+00  2.147e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.21
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/292007/cmap_HighResolution_501897601_502156801_4FGL_J1203.3+1119_daily_bin1013.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.59e-03', job_status='DONE', photon_flux_upper_limit='7.26e-08', time_completed='2021-09-04 22:31:44.996435', job_id='292007', GAL2='0.71', fit_tolerance='1e-08', EG2='1.34', EG='1.35', time_epoch_completed='1630819905.0', return_code2='0', ts='0.21', comment='SUCCESS', return_code='0', GAL='0.70', dlogl='3.51e-02', ts2='0.28', photon_index_error='0.00', photon_index='2.34' WHERE bin_id='1013' AND source_name='4FGL J1203.3+1119' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 22:31:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0046>
Subject: Job 292007: <4FGL_J1203.3+1119_daily_bin1013> in cluster <slac> Done

Job <4FGL_J1203.3+1119_daily_bin1013> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Sat Sep  4 22:16:19 2021
Job was executed on host(s) <bullet0046>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 22:16:21 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:16:21 2021
Terminated at Sat Sep  4 22:31:45 2021
Results reported at Sat Sep  4 22:31:45 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1203.3+1119_daily_bin1013 180.833 11.3231 501897601 502156801 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 :                                   754.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             290.69 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   924 sec.
    Turnaround time :                            926 sec.

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

