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


Performing analysis on: 4FGL_J1203.1+6031_daily_bin750
RA = 180.788, Dec = 60.518
tmin = 433728001, tmax = 433987201
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='279366', job_status='RUN', time_executed='2021-09-04 21:38:53.211989', time_epoch_executed='1630816733.21' WHERE source_name='4FGL J1203.1+6031' and cadence='daily' and bin_id='750'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/279366

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/279366/ft1_4FGL_J1203.1+6031_daily_bin750.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/279366/ft2_4FGL_J1203.1+6031_daily_bin750.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/279366/ft1_4FGL_J1203.1+6031_daily_bin750.fits outfile=/scratch/kocevski/279366/ft1_filteredMKT_4FGL_J1203.1+6031_daily_bin750.fits ra=180.788 dec=60.518 rad=12.0 tmin=433728001.0 tmax=433987201.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.11
user 5.84
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/279366/ft2_4FGL_J1203.1+6031_daily_bin750.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/279366/ft1_filteredMKT_4FGL_J1203.1+6031_daily_bin750.fits evtable="EVENTS" outfile="/scratch/kocevski/279366/ft1_filtered_4FGL_J1203.1+6031_daily_bin750.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/279366/ft1_filtered_4FGL_J1203.1+6031_daily_bin750.fits" evtable="EVENTS" scfile=/scratch/kocevski/279366/ft2_4FGL_J1203.1+6031_daily_bin750.fits sctable="SC_DATA" outfile=/scratch/kocevski/279366/ltcube_433728001_433987201_4FGL_J1203.1+6031_daily_bin750.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/279366/ft2_4FGL_J1203.1+6031_daily_bin750.fits
.....................!
real 12.73
user 11.96
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/279366/ft1_filtered_4FGL_J1203.1+6031_daily_bin750.fits evtable="EVENTS" scfile=/scratch/kocevski/279366/ft2_4FGL_J1203.1+6031_daily_bin750.fits sctable="SC_DATA" expcube=/scratch/kocevski/279366/ltcube_433728001_433987201_4FGL_J1203.1+6031_daily_bin750.fits outfile=/scratch/kocevski/279366/expmap_433728001_433987201_4FGL_J1203.1+6031_daily_bin750.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/279366/ltcube_433728001_433987201_4FGL_J1203.1+6031_daily_bin750.fits
.....................!
real 190.64
user 185.47
sys 3.98

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/279366/ft1_filtered_4FGL_J1203.1+6031_daily_bin750.fits scfile=/scratch/kocevski/279366/ft2_4FGL_J1203.1+6031_daily_bin750.fits outfile=/scratch/kocevski/279366/cmap_433728001_433987201_4FGL_J1203.1+6031_daily_bin750.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.63
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/279366/ft1_filtered_4FGL_J1203.1+6031_daily_bin750.fits scfile=/scratch/kocevski/279366/ft2_4FGL_J1203.1+6031_daily_bin750.fits outfile=/scratch/kocevski/279366/cmap_HighResolution_433728001_433987201_4FGL_J1203.1+6031_daily_bin750.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.40
sys 0.14

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/279366/ft1_filtered_4FGL_J1203.1+6031_daily_bin750.fits', '/scratch/kocevski/279366/ft2_4FGL_J1203.1+6031_daily_bin750.fits', expMap='/scratch/kocevski/279366/expmap_433728001_433987201_4FGL_J1203.1+6031_daily_bin750.fits', expCube='/scratch/kocevski/279366/ltcube_433728001_433987201_4FGL_J1203.1+6031_daily_bin750.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/279366/Model_4FGL_J1203.1+6031_daily_bin750.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/279366/ft1_filtered_4FGL_J1203.1+6031_daily_bin750.fits
Spacecraft file(s): /scratch/kocevski/279366/ft2_4FGL_J1203.1+6031_daily_bin750.fits
Exposure map: /scratch/kocevski/279366/expmap_433728001_433987201_4FGL_J1203.1+6031_daily_bin750.fits
Exposure cube: /scratch/kocevski/279366/ltcube_433728001_433987201_4FGL_J1203.1+6031_daily_bin750.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/279366/Model_4FGL_J1203.1+6031_daily_bin750.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) = 2366.64769149

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    5.6665       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10162E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    6.0027       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10124E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .20562E-01   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    70.973       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    7.5764       1.0000         .10000E-03   10000.    
    15 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .13644E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.7930       1.0000         .10000E-03   10000.    
    19 'Prefactor '    65.464       1.0000         .10000E-03   10000.    
    20 'norm      '    .14780       1.0000         .10000E-03   10000.    
    21 'Prefactor '    312.46       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10097E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .12105E-02   1.0000         .10000E-03   10000.    
    24 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    1.4142       1.0000         .10000E-03   10000.    
    26 'norm      '    7.3961       1.0000         .10000E-03   10000.    
    27 'norm      '    1.9566       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    40.405       1.0000         .10000E-03   10000.    
    31 'Prefactor '    10.474       1.0000         .10000E-03   10000.    
    32 'Normalizat'    .72886       1.0000         .10000E-01   10.000    
    33 'Prefactor '    1.2427       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=   2366.624     FROM MIGRAD    STATUS=CONVERGED    954 CALLS     5385 TOTAL
                     EDM=   .20E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    22.221       -.22399E-06** at limit **
   2  norm          .10000E-03    2.2066       -.13456E-06** at limit **
   3  norm          5.6664        2.8946        .54260E-07    .87149E-04
   4  Prefactor     .10000E-03    169.33        .34553E-05** at limit **
   5  norm          .10000E-03    .91897        .37362E-07** at limit **
   6  Prefactor     .10000E-03    208.24       -.36357E-05** at limit **
   7  norm          5.9958        4.3737        .88077E-06    .34916E-03
   8  Prefactor     .10000E-03    1.8993        .52830E-07** at limit **
   9  Prefactor     .10000E-03    141.21       -.28646E-06** at limit **
  10  Prefactor     .10380E-03    119.80       -.12146E-04** at limit **
  11  Prefactor     .10000E-03    4.4668       -.16697E-06** at limit **
  12  Prefactor     70.931        70.087        .17943E-05    .49868E-04
  13  Prefactor     .10000E-03    28.733        .99309E-06** at limit **
  14  Prefactor     7.5754        8.9907        .10823E-06    .49577E-04
  15  norm          .10000E-03    17.987       -.61146E-07** at limit **
  16  Prefactor     .10000E-03    10.754        .21191E-05** at limit **
  17  norm          .10000E-03    6.5647       -.57707E-07** at limit **
  18  Prefactor     2.7980        70.229        .64260E-06   -.32023E-05
  19  Prefactor     65.458        146.56       -.10202E-05    .11325E-04
  20  norm          .14695        3.3084       -.18600E-06   -.12618E-03
  21  Prefactor     312.42        152.88        .48381E-06    .22967E-05
  22  Prefactor     .10000E-03    137.73       -.78013E-06** at limit **
  23  norm          .10000E-03    17.001       -.14440E-05** at limit **
  24  norm          .10000E-03    9.1776       -.82323E-07** at limit **
  25  Prefactor     1.4185        41.275        .55717E-05    .80632E-04
  26  norm          7.3968        6.2842       -.54842E-06   -.20162E-04
  27  norm          1.9574        2.8524       -.11149E-06   -.34324E-05
  28  Prefactor     .10000E-03    65.862       -.31461E-07** at limit **
  29  Prefactor     .10000E-03    10.663       -.11235E-07** at limit **
  30  Prefactor     40.417        218.87       -.24278E-05    .62773E-05
  31  Prefactor     10.477        13.759       -.17716E-07    .53556E-05
  32  Normalizat    .72901        .27831        .20407E-05    .15416E-03
  33  Prefactor     1.2422        .33195       -.39219E-06    .12152E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 5.66645
  Prefactor  = 0.000100002
  norm       = 0.0001
  Prefactor  = 0.000100001
  norm       = 5.99575
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000103805
  Prefactor  = 0.0001
  Prefactor  = 70.9308
  Prefactor  = 0.0001
  Prefactor  = 7.57539
  norm       = 0.0001
  Prefactor  = 0.000100002
  norm       = 0.0001
  Prefactor  = 2.79796
  Prefactor  = 65.4582
  norm       = 0.146951
  Prefactor  = 312.423
  Prefactor  = 0.0001
  norm       = 0.000100003
  norm       = 0.0001
  Prefactor  = 1.41855
  norm       = 7.39683
  norm       = 1.95738
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 40.4169
  Prefactor  = 10.4771
  Normalizat = 0.729012
  Prefactor  = 1.24219
 **********
 **   18 **HESSE 
 **********

 FCN=   2366.624     FROM HESSE     STATUS=OK           701 CALLS     6086 TOTAL
                     EDM=   .79E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    22.366        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    2.3122        .14101E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          5.6664        2.8945        .57283E-04   -1.5232    
   4  Prefactor     .10000E-03    168.90        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    .91989        .45541E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    208.18        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          5.9958        4.7179        .82137E-04   -1.5218    
   8  Prefactor     .10000E-03    1.8997        .65474E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    141.60        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10380E-03    119.10        .10190       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    4.4720        .10041E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     70.931        71.666        .47651E-04   -1.4022    
  13  Prefactor     .10000E-03    28.647        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     7.5754        8.9907        .14570E-03   -1.5157    
  15  norm          .10000E-03    17.988        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    28.776        .21288E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    6.5766        .12172E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     2.7980        63.912        .24345E-03   -1.5373    
  19  Prefactor     65.458        139.95        .49602E-04   -1.4088    
  20  norm          .14695        38.118        .16409E-02   -1.5631    
  21  Prefactor     312.42        153.40        .11495E-03   -1.2154    
  22  Prefactor     .10000E-03    137.82        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    57.152        .37310E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    9.2171        .14393E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     1.4185        53.966        .18206E-02   -1.5470    
  26  norm          7.3968        6.5939        .93265E-04   -1.5164    
  27  norm          1.9574        2.8357        .95672E-04   -1.5428    
  28  Prefactor     .10000E-03    65.874        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    10.681        .15516E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     40.417        219.34        .63060E-04   -1.4436    
  31  Prefactor     10.477        13.747        .12380E-03   -1.5060    
  32  Normalizat    .72901        .34330        .27355E-03   -1.0276    
  33  Prefactor     1.2422        .39735        .27017E-03   -.85043    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.86434e-10
Minuit parameter uncertainties:
  1  2.39396e-05
  2  4.11591e-06
  3  2.89461
  4  0.00107423
  5  3.8453e-06
  6  0.000936151
  7  4.71816
  8  7.04712e-06
  9  2.95826e-06
  10  0.0426593
  11  1.19516e-05
  12  71.7534
  13  0.000184614
  14  8.99234
  15  7.69074e-06
  16  0.00051109
  17  6.63975e-06
  18  26.7767
  19  140.663
  20  4.73491
  21  153.598
  22  2.65369e-05
  23  0.000877366
  24  3.66782e-07
  25  17.5153
  26  6.59451
  27  2.83591
  28  3.20922e-05
  29  1.25344e-05
  30  189.396
  31  13.7512
  32  0.344315
  33  0.398316
Done.

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

Extracting fit parameters...

4FGL J1203.1+6031
   Spectrum: PowerLaw
391    Prefactor:  2.798e+00  2.678e+01  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:  1.242e+00  3.983e-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:  7.290e-01  3.443e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/279366/likelihoodResults_433728001_433987201_4FGL_J1203.1+6031_daily_bin750.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) = 2366.60744298
delta logL = 0.0166666801438

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2366.59787777
delta logL = 0.0262318857212

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.8542       1.0000         .10000E-03   10000.    
     2 'Index     '    1.6857       1.0000          .0000       10.000    
     3 'Normalizat'    .73190       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2379       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.

 FCN=   2366.598     FROM MIGRAD    STATUS=CONVERGED     99 CALLS      268 TOTAL
                     EDM=   .26E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.8603        23.374        .16598E-03    .27740E-05
   2  Index         1.6856        1.5264        .15508E-01   -.49482E-07
   3  Normalizat    .73188        .30540        .27304E-03   -.17758E-04
   4  Prefactor     1.2379        .38598        .27048E-03    .26543E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.86035
  Index      = 1.68562
  Normalizat = 0.731882
  Prefactor  = 1.23789
 **********
 **   18 **HESSE 
 **********

 FCN=   2366.598     FROM HESSE     STATUS=OK            25 CALLS      293 TOTAL
                     EDM=   .26E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.8603        23.225        .66392E-05   -1.5224    
   2  Index         1.6856        1.5181        .62033E-03   -.72465    
   3  Normalizat    .73188        .30565        .10922E-04   -1.0265    
   4  Prefactor     1.2379        .38630        .10819E-04   -.85173    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.56848e-11
Minuit parameter uncertainties:
  1  23.261
  2  1.56308
  3  0.306361
  4  0.387188
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/279366': 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) = 2366.59787773
delta logL = 0.026231924986

Extracting fit parameters...

4FGL J1203.1+6031
   Spectrum: PowerLaw
391    Prefactor:  5.860e+00  2.326e+01  1.000e-04  1.000e+04 ( 1.000e-13)
392        Index:  1.686e+00  1.563e+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:  1.238e+00  3.872e-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:  7.319e-01  3.064e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.02
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/279366/cmap_HighResolution_433728001_433987201_4FGL_J1203.1+6031_daily_bin750.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.59e-02', job_status='DONE', photon_flux_upper_limit='2.10e-07', time_completed='2021-09-04 21:49:58.963991', job_id='279366', GAL2='1.24', fit_tolerance='1e-08', EG2='0.73', EG='0.73', time_epoch_completed='1630817398.96', return_code2='0', ts='0.02', comment='SUCCESS', return_code='0', GAL='1.24', dlogl='2.62e-02', ts2='0.08', photon_index_error='0.00', photon_index='2.12' WHERE bin_id='750' AND source_name='4FGL J1203.1+6031' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 21:49:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0040>
Subject: Job 279366: <4FGL_J1203.1+6031_daily_bin750> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1203.1+6031_daily_bin750 180.788 60.518 433728001 433987201 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 :                                   662.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             264.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   865 sec.
    Turnaround time :                            867 sec.

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

