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


Performing analysis on: 4FGL_J1203.1+6031_daily_bin767
RA = 180.788, Dec = 60.518
tmin = 438134401, tmax = 438393601
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='279392', job_status='RUN', time_executed='2021-09-04 21:39:33.376627', time_epoch_executed='1630816773.38' WHERE source_name='4FGL J1203.1+6031' and cadence='daily' and bin_id='767'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/279392

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/279392/ft1_4FGL_J1203.1+6031_daily_bin767.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/279392/ft2_4FGL_J1203.1+6031_daily_bin767.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/279392/ft1_4FGL_J1203.1+6031_daily_bin767.fits outfile=/scratch/kocevski/279392/ft1_filteredMKT_4FGL_J1203.1+6031_daily_bin767.fits ra=180.788 dec=60.518 rad=12.0 tmin=438134401.0 tmax=438393601.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 6.25
user 6.00
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/279392/ft2_4FGL_J1203.1+6031_daily_bin767.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/279392/ft2_4FGL_J1203.1+6031_daily_bin767.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/279392/ft1_filteredMKT_4FGL_J1203.1+6031_daily_bin767.fits evtable="EVENTS" outfile="/scratch/kocevski/279392/ft1_filtered_4FGL_J1203.1+6031_daily_bin767.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.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/279392/ft1_filtered_4FGL_J1203.1+6031_daily_bin767.fits" evtable="EVENTS" scfile=/scratch/kocevski/279392/ft2_4FGL_J1203.1+6031_daily_bin767.fits sctable="SC_DATA" outfile=/scratch/kocevski/279392/ltcube_438134401_438393601_4FGL_J1203.1+6031_daily_bin767.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/279392/ft2_4FGL_J1203.1+6031_daily_bin767.fits
.....................!
real 12.09
user 11.74
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/279392/ft1_filtered_4FGL_J1203.1+6031_daily_bin767.fits evtable="EVENTS" scfile=/scratch/kocevski/279392/ft2_4FGL_J1203.1+6031_daily_bin767.fits sctable="SC_DATA" expcube=/scratch/kocevski/279392/ltcube_438134401_438393601_4FGL_J1203.1+6031_daily_bin767.fits outfile=/scratch/kocevski/279392/expmap_438134401_438393601_4FGL_J1203.1+6031_daily_bin767.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/279392/ltcube_438134401_438393601_4FGL_J1203.1+6031_daily_bin767.fits
.....................!
real 189.91
user 185.35
sys 4.08

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 227 point sources and 0 extended sources

Setting source of interest to:
4FGL J1203.1+6031 @ 180.788 60.518

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/279392/ft1_filtered_4FGL_J1203.1+6031_daily_bin767.fits scfile=/scratch/kocevski/279392/ft2_4FGL_J1203.1+6031_daily_bin767.fits outfile=/scratch/kocevski/279392/cmap_438134401_438393601_4FGL_J1203.1+6031_daily_bin767.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.788 yref=60.518 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.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/279392/ft1_filtered_4FGL_J1203.1+6031_daily_bin767.fits scfile=/scratch/kocevski/279392/ft2_4FGL_J1203.1+6031_daily_bin767.fits outfile=/scratch/kocevski/279392/cmap_HighResolution_438134401_438393601_4FGL_J1203.1+6031_daily_bin767.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.788 yref=60.518 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.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/279392/ft1_filtered_4FGL_J1203.1+6031_daily_bin767.fits evtable="EVENTS" scfile=/scratch/kocevski/279392/ft2_4FGL_J1203.1+6031_daily_bin767.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/279392/Model_4FGL_J1203.1+6031_daily_bin767.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/279392/ft1_filtered_4FGL_J1203.1+6031_daily_bin767.fits.....................!
real 34.21
user 32.89
sys 1.14

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/279392/ft1_filtered_4FGL_J1203.1+6031_daily_bin767.fits', '/scratch/kocevski/279392/ft2_4FGL_J1203.1+6031_daily_bin767.fits', expMap='/scratch/kocevski/279392/expmap_438134401_438393601_4FGL_J1203.1+6031_daily_bin767.fits', expCube='/scratch/kocevski/279392/ltcube_438134401_438393601_4FGL_J1203.1+6031_daily_bin767.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/279392/Model_4FGL_J1203.1+6031_daily_bin767.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1203.1+6031'

4FGL J1203.1+6031
   Spectrum: PowerLaw
391    Prefactor:  3.279e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
392        Index:  2.121e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
393        Scale:  1.582e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/279392/ft1_filtered_4FGL_J1203.1+6031_daily_bin767.fits
Spacecraft file(s): /scratch/kocevski/279392/ft2_4FGL_J1203.1+6031_daily_bin767.fits
Exposure map: /scratch/kocevski/279392/expmap_438134401_438393601_4FGL_J1203.1+6031_daily_bin767.fits
Exposure cube: /scratch/kocevski/279392/ltcube_438134401_438393601_4FGL_J1203.1+6031_daily_bin767.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/279392/Model_4FGL_J1203.1+6031_daily_bin767.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) = 2750.46463487

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10130E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    10.323       1.0000         .10000E-03   10000.    
     3 'norm      '    1.2546       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .42037E-02   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10026E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .56181       1.0000         .10000E-03   10000.    
     9 'Prefactor '    21.689       1.0000         .10000E-03   10000.    
    10 'Prefactor '    25.364       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    39.308       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10206E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    8.4024       1.0000         .10000E-03   10000.    
    17 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .13005E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    25.995       1.0000         .10000E-03   10000.    
    20 'norm      '    3.4243       1.0000         .10000E-03   10000.    
    21 'Prefactor '    461.15       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .15400E-02   1.0000         .10000E-03   10000.    
    23 'norm      '    6.1560       1.0000         .10000E-03   10000.    
    24 'norm      '    14.338       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    3.0751       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    12.300       1.0000         .10000E-03   10000.    
    32 'Normalizat'    .69627       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .96541       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7260E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   2750.430     FROM MIGRAD    STATUS=CONVERGED    886 CALLS     4709 TOTAL
                     EDM=   .29E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    22.896        .33170E-06** at limit **
   2  norm          10.320        3.5946       -.75682E-07   -.18412E-03
   3  norm          1.2545        1.1759        .53036E-08   -.46265E-04
   4  Prefactor     .10000E-03    150.30       -.40020E-06** at limit **
   5  norm          .10024E-03    2.8006        .12692E-05** at limit **
   6  Prefactor     .10000E-03    41.867        .28943E-06** at limit **
   7  norm          .10000E-03    .89755        .28563E-07** at limit **
   8  Prefactor     .56027        10.147       -.30775E-05   -.26708E-03
   9  Prefactor     21.690        56.924       -.56568E-07   -.25063E-05
  10  Prefactor     25.366        24.821       -.22338E-06   -.15318E-04
  11  Prefactor     .10000E-03    2.4026        .13642E-07** at limit **
  12  Prefactor     39.312        32.257       -.26515E-06   -.92253E-06
  13  Prefactor     .10000E-03    26.907       -.40528E-06** at limit **
  14  Prefactor     .10000E-03    2.2444        .46141E-08** at limit **
  15  norm          .10000E-03    11.434       -.14907E-06** at limit **
  16  Prefactor     8.4040        7.0880       -.17882E-06    .67665E-05
  17  norm          .10000E-03    3.9198       -.32334E-06** at limit **
  18  Prefactor     .10000E-03    17.767       -.12502E-05** at limit **
  19  Prefactor     25.920        42.859        .30499E-06    .39195E-05
  20  norm          3.4239        3.3688       -.61949E-07   -.20660E-04
  21  Prefactor     460.79        226.20        .31408E-06   -.63050E-04
  22  Prefactor     .10000E-03    314.32       -.10825E-05** at limit **
  23  norm          6.1575        7.0759       -.38624E-07   -.30028E-04
  24  norm          14.339        12.282        .51562E-08   -.60197E-05
  25  Prefactor     .10000E-03    6.2344       -.33815E-09** at limit **
  26  norm          .10000E-03    2.4151       -.13079E-08** at limit **
  27  norm          .10000E-03    2.1016        .58662E-07** at limit **
  28  Prefactor     .10000E-03    172.29       -.94418E-07** at limit **
  29  Prefactor     3.0589        62.254        .36239E-05    .56767E-04
  30  Prefactor     .10000E-03    63.517       -.14611E-06** at limit **
  31  Prefactor     12.302        17.395       -.11695E-06   -.11188E-04
  32  Normalizat    .69607        .30946        .42451E-05   -.15536E-03
  33  Prefactor     .96548        .34372       -.47213E-05   -.62914E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 10.32
  norm       = 1.25451
  Prefactor  = 0.0001
  norm       = 0.000100237
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.560275
  Prefactor  = 21.6896
  Prefactor  = 25.3656
  Prefactor  = 0.0001
  Prefactor  = 39.3118
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 8.40401
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 25.9202
  norm       = 3.42389
  Prefactor  = 460.786
  Prefactor  = 0.000100004
  norm       = 6.15748
  norm       = 14.3388
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.05895
  Prefactor  = 0.0001
  Prefactor  = 12.3021
  Normalizat = 0.696067
  Prefactor  = 0.965484
 **********
 **   18 **HESSE 
 **********

 FCN=   2750.430     FROM HESSE     STATUS=OK           697 CALLS     5406 TOTAL
                     EDM=   .63E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    22.975        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          10.320        3.5939        .54749E-04   -1.5065    
   3  norm          1.2545        1.1935        .53621E-04   -1.5484    
   4  Prefactor     .10000E-03    150.26        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10024E-03    38.635        .13427E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    41.862        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    .90326        .48502E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .56027        10.795        .31235E-02   -1.5558    
   9  Prefactor     21.690        56.948        .86005E-04   -1.4776    
  10  Prefactor     25.366        24.847        .79541E-04   -1.4700    
  11  Prefactor     .10000E-03    2.4061        .79373E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     39.312        32.259        .63931E-04   -1.4453    
  13  Prefactor     .10000E-03    27.005        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    2.2543        .76722E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    11.452        .17324E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     8.4040        7.1119        .11893E-03   -1.5128    
  17  norm          .10000E-03    3.9499        .10161E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    18.143        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     25.920        42.814        .78571E-04   -1.4689    
  20  norm          3.4239        3.3621        .91311E-04   -1.5338    
  21  Prefactor     460.79        227.46        .95359E-04   -1.1381    
  22  Prefactor     .10000E-03    315.91        .20450E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          6.1575        7.0716        .14390E-03   -1.5212    
  24  norm          14.339        12.281        .10578E-03   -1.4950    
  25  Prefactor     .10000E-03    6.2401        .12790E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    2.4187        .79612E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    2.1189        .74243E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    172.36        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     3.0589        65.911        .11565E-02   -1.5358    
  30  Prefactor     .10000E-03    63.525        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     12.302        17.390        .11422E-03   -1.5006    
  32  Normalizat    .69607        .32559        .25763E-03   -1.0405    
  33  Prefactor     .96548        .35719        .27491E-03   -.93889    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.272e-09
Minuit parameter uncertainties:
  1  1.28061e-05
  2  3.59397
  3  1.19353
  4  0.00027081
  5  0.00605803
  6  4.35486e-05
  7  1.72693e-06
  8  4.91929
  9  57.0914
  10  24.8566
  11  6.08139e-09
  12  32.2733
  13  5.80039e-07
  14  2.9866e-07
  15  1.61358e-05
  16  7.11265
  17  2.52118e-05
  18  0.000210944
  19  42.8649
  20  3.36226
  21  227.906
  22  0.00230433
  23  7.07261
  24  12.2827
  25  8.98001e-06
  26  6.01256e-06
  27  2.26928e-06
  28  0.000233922
  29  28.4336
  30  8.43296e-06
  31  17.3975
  32  0.326502
  33  0.358063
Done.

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

Extracting fit parameters...

4FGL J1203.1+6031
   Spectrum: PowerLaw
391    Prefactor:  1.000e-04  2.109e-04  1.000e-04  1.000e+04 ( 1.000e-13)
392        Index:  2.121e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
393        Scale:  1.582e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
723    Prefactor:  9.655e-01  3.581e-01  0.000e+00  1.000e+01 ( 1.000e+00)
724        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
725        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
722   Normalization:  6.961e-01  3.265e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 180.788 60.518
Photon Flux Upper Limit: 1.34e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.02e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/279392/likelihoodResults_438134401_438393601_4FGL_J1203.1+6031_daily_bin767.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) = 2750.43060596
delta logL = -0.000262470194684

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2750.43034391
delta logL = -4.19033767685e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1630       1.0000          .0000       10.000    
     3 'Normalizat'    .69609       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96549       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7260E+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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   2750.404     FROM MIGRAD    STATUS=FAILED       138 CALLS      328 TOTAL
                     EDM=   .67E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.1872        1681.9        .18142E-01    .26305E-03
   2  Index         1.2935        8.2856        .42788       -.12801E-04
   3  Normalizat    .69803        .66342E-01    .25760E-03   -.26259E-05
   4  Prefactor     .96106        .80933E-01    .27492E-03   -.51484E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   2750.404     FROM SIMPLEX   STATUS=UNCHANGED     89 CALLS      417 TOTAL
                     EDM=   .97E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.1872        1681.9        .56885E-03    .26305E-03
   2  Index         1.2935        8.2856        .18307E-02   -.12801E-04
   3  Normalizat    .69803        .66342E-01    .58177E-04   -.26259E-05
   4  Prefactor     .96106        .80933E-01    .81584E-04   -.51484E-05
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   2750.404     FROM MIGRAD    STATUS=CONVERGED     34 CALLS      451 TOTAL
                     EDM=   .44E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.1872        18.059        .43469E-03   -.66823E-05
   2  Index         1.2935        1.3232        .14995E-01   -.51396E-04
   3  Normalizat    .69803        .27701        .10304E-04   -.26480E-05
   4  Prefactor     .96106        .34569        .10997E-04   -.51690E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.18725
  Index      = 1.2935
  Normalizat = 0.698027
  Prefactor  = 0.961055
 **********
 **   18 **HESSE 
 **********

 FCN=   2750.404     FROM HESSE     STATUS=OK            25 CALLS      476 TOTAL
                     EDM=   .14E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.1872        18.496        .17387E-04   -1.5351    
   2  Index         1.2935        1.3388        .29989E-02   -.83500    
   3  Normalizat    .69803        .27721        .20608E-05   -1.0397    
   4  Prefactor     .96106        .34599        .21994E-05   -.94039    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.35403e-12
Minuit parameter uncertainties:
  1  15.3628
  2  1.37716
  3  0.277763
  4  0.346789
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/279392': 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) = 2750.40419537
delta logL = 0.0261481162361

Extracting fit parameters...

4FGL J1203.1+6031
   Spectrum: PowerLaw
391    Prefactor:  3.187e+00  1.536e+01  1.000e-04  1.000e+04 ( 1.000e-13)
392        Index:  1.294e+00  1.377e+00  0.000e+00  1.000e+01 (-1.000e+00)
393        Scale:  1.582e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
723    Prefactor:  9.611e-01  3.468e-01  0.000e+00  1.000e+01 ( 1.000e+00)
724        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
725        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
722   Normalization:  6.980e-01  2.778e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 180.788 60.518

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/279392/cmap_HighResolution_438134401_438393601_4FGL_J1203.1+6031_daily_bin767.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.02e-02', job_status='DONE', photon_flux_upper_limit='1.34e-07', time_completed='2021-09-04 21:51:16.520584', job_id='279392', GAL2='0.96', fit_tolerance='1e-08', EG2='0.70', EG='0.70', time_epoch_completed='1630817476.52', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.97', dlogl='2.61e-02', ts2='0.05', photon_index_error='0.00', photon_index='2.12' WHERE bin_id='767' AND source_name='4FGL J1203.1+6031' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 21:51:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0240>
Subject: Job 279392: <4FGL_J1203.1+6031_daily_bin767> in cluster <slac> Done

Job <4FGL_J1203.1+6031_daily_bin767> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sat Sep  4 21:35:34 2021
Job was executed on host(s) <bullet0240>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 21:35:35 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:35:35 2021
Terminated at Sat Sep  4 21:51:17 2021
Results reported at Sat Sep  4 21:51:17 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1203.1+6031_daily_bin767 180.788 60.518 438134401 438393601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1203.1+6031 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   701.07 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             259.41 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   941 sec.
    Turnaround time :                            943 sec.

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

