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


Performing analysis on: 4FGL_J0203.7+3042_monthly_bin135
RA = 30.9327, Dec = 30.7139
tmin = 586915201, tmax = 589507201
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='745272', job_status='RUN', time_executed='2021-10-09 23:20:27.033614', time_epoch_executed='1633846827.03' WHERE source_name='4FGL J0203.7+3042' and cadence='monthly' and bin_id='135'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/745272

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

Retrieving the FT1 file...

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

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

Retrieving 457 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/745272/ft1_4FGL_J0203.7+3042_monthly_bin135.fits


Retrieving the FT1 file...

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

Retrieving 457 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/745272/ft2_4FGL_J0203.7+3042_monthly_bin135.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/745272/ft1_4FGL_J0203.7+3042_monthly_bin135.fits outfile=/scratch/kocevski/745272/ft1_filteredMKT_4FGL_J0203.7+3042_monthly_bin135.fits ra=30.9327 dec=30.7139 rad=12.0 tmin=586915201.0 tmax=589507201.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 30.71
user 29.84
sys 0.80

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/745272/ft2_4FGL_J0203.7+3042_monthly_bin135.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/745272/ft2_4FGL_J0203.7+3042_monthly_bin135.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/745272/ft1_filteredMKT_4FGL_J0203.7+3042_monthly_bin135.fits evtable="EVENTS" outfile="/scratch/kocevski/745272/ft1_filtered_4FGL_J0203.7+3042_monthly_bin135.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.83
user 0.64
sys 0.18

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/745272/ft1_filtered_4FGL_J0203.7+3042_monthly_bin135.fits" evtable="EVENTS" scfile=/scratch/kocevski/745272/ft2_4FGL_J0203.7+3042_monthly_bin135.fits sctable="SC_DATA" outfile=/scratch/kocevski/745272/ltcube_586915201_589507201_4FGL_J0203.7+3042_monthly_bin135.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/745272/ft2_4FGL_J0203.7+3042_monthly_bin135.fits
.....................!
real 113.48
user 112.89
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/745272/ft1_filtered_4FGL_J0203.7+3042_monthly_bin135.fits evtable="EVENTS" scfile=/scratch/kocevski/745272/ft2_4FGL_J0203.7+3042_monthly_bin135.fits sctable="SC_DATA" expcube=/scratch/kocevski/745272/ltcube_586915201_589507201_4FGL_J0203.7+3042_monthly_bin135.fits outfile=/scratch/kocevski/745272/expmap_586915201_589507201_4FGL_J0203.7+3042_monthly_bin135.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/745272/ltcube_586915201_589507201_4FGL_J0203.7+3042_monthly_bin135.fits
.....................!
real 191.56
user 186.55
sys 4.63

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

Setting source of interest to:
4FGL J0203.7+3042 @ 30.9327 30.7139

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/745272/ft1_filtered_4FGL_J0203.7+3042_monthly_bin135.fits scfile=/scratch/kocevski/745272/ft2_4FGL_J0203.7+3042_monthly_bin135.fits outfile=/scratch/kocevski/745272/cmap_586915201_589507201_4FGL_J0203.7+3042_monthly_bin135.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=30.9327 yref=30.7139 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.78
user 0.61
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/745272/ft1_filtered_4FGL_J0203.7+3042_monthly_bin135.fits scfile=/scratch/kocevski/745272/ft2_4FGL_J0203.7+3042_monthly_bin135.fits outfile=/scratch/kocevski/745272/cmap_HighResolution_586915201_589507201_4FGL_J0203.7+3042_monthly_bin135.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=30.9327 yref=30.7139 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.79
user 0.61
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/745272/ft1_filtered_4FGL_J0203.7+3042_monthly_bin135.fits evtable="EVENTS" scfile=/scratch/kocevski/745272/ft2_4FGL_J0203.7+3042_monthly_bin135.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/745272/Model_4FGL_J0203.7+3042_monthly_bin135.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/745272/ft1_filtered_4FGL_J0203.7+3042_monthly_bin135.fits.....................!
real 1052.19
user 1049.00
sys 1.24

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/745272/ft1_filtered_4FGL_J0203.7+3042_monthly_bin135.fits', '/scratch/kocevski/745272/ft2_4FGL_J0203.7+3042_monthly_bin135.fits', expMap='/scratch/kocevski/745272/expmap_586915201_589507201_4FGL_J0203.7+3042_monthly_bin135.fits', expCube='/scratch/kocevski/745272/ltcube_586915201_589507201_4FGL_J0203.7+3042_monthly_bin135.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/745272/Model_4FGL_J0203.7+3042_monthly_bin135.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0203.7+3042'

4FGL J0203.7+3042
   Spectrum: LogParabola
255         norm:  3.872e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
256        alpha:  2.141e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
257         beta:  9.853e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
258           Eb:  8.799e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/745272/ft1_filtered_4FGL_J0203.7+3042_monthly_bin135.fits
Spacecraft file(s): /scratch/kocevski/745272/ft2_4FGL_J0203.7+3042_monthly_bin135.fits
Exposure map: /scratch/kocevski/745272/expmap_586915201_589507201_4FGL_J0203.7+3042_monthly_bin135.fits
Exposure cube: /scratch/kocevski/745272/ltcube_586915201_589507201_4FGL_J0203.7+3042_monthly_bin135.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/745272/Model_4FGL_J0203.7+3042_monthly_bin135.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) = 105215.019491

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.1714       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.3135       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.0401       1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.5761       1.0000         .10000E-03   10000.    
     6 'norm      '    1.1762       1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.2219       1.0000         .10000E-03   10000.    
     8 'Prefactor '    16.737       1.0000         .10000E-03   10000.    
     9 'norm      '    .70779       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .33844E-02   1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.2453       1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.0804       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    4.5411       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    10.506       1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.6048       1.0000         .10000E-03   10000.    
    19 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .81064       1.0000         .10000E-03   10000.    
    22 'norm      '    .10480E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    1.3680       1.0000         .10000E-03   10000.    
    25 'norm      '    1.7340       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    6.5603       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .43608E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.1595       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .99712       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5740E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   105214.9     FROM MIGRAD    STATUS=CONVERGED    835 CALLS     3643 TOTAL
                     EDM=   .39E-04    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.1714        .38336         .0000        .10797E-01
   2  Prefactor     .10000E-03    1.9945         .0000    ** at limit **
   3  Prefactor     2.3134        1.1330         .0000        .75534E-03
   4  Prefactor     1.0409        1.9173         .0000        .42571    
   5  Prefactor     3.5791        3.1373         .0000        .20618E-02
   6  norm          1.1762        .27034         .0000        .50599E-03
   7  Prefactor     3.2106        3.3327         .0000       -.65045E-02
   8  Prefactor     16.706        19.409         .0000        .14372E-02
   9  norm          .70786        .16107         .0000        .84545E-02
  10  Prefactor     .10000E-03    .40838         .0000    ** at limit **
  11  Prefactor     .10017E-03    .47866         .0000    ** at limit **
  12  Prefactor     1.2453        .69335         .0000        .11444E-01
  13  Prefactor     1.0793        2.4504         .0000        .15274    
  14  Prefactor     .10000E-03    4.0676         .0000    ** at limit **
  15  norm          4.5411        1.1961         .0000        .38341E-02
  16  Prefactor     .10000E-03    7.3386         .0000    ** at limit **
  17  Prefactor     10.505        2.3639         .0000        .33962E-02
  18  Prefactor     1.6045        .96398         .0000        .53497E-02
  19  norm          .10000E-03    .13570         .0000    ** at limit **
  20  Prefactor     .10000E-03    .96575         .0000    ** at limit **
  21  norm          .81060        .14073         .0000        .86787E-02
  22  norm          .10000E-03    5.7935         .0000    ** at limit **
  23  Prefactor     .10000E-03    .24021         .0000    ** at limit **
  24  Prefactor     1.3707        4.8394         .0000        .13873E-02
  25  norm          1.7342        1.1303         .0000        .67108E-02
  26  Prefactor     .10000E-03    1.4919         .0000    ** at limit **
  27  norm          6.5600        .65555         .0000       -.82351E-03
  28  Prefactor     .10000E-03    .77036         .0000    ** at limit **
  29  Prefactor     .10000E-03    31.493         .0000    ** at limit **
  30  Normalizat    1.1595        .60788E-01     .0000        .16225E-02
  31  Prefactor     .99713        .30454E-01     .0000        .28075E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 1.17135
  Prefactor  = 0.0001
  Prefactor  = 2.31343
  Prefactor  = 1.04088
  Prefactor  = 3.57913
  norm       = 1.17619
  Prefactor  = 3.21059
  Prefactor  = 16.7056
  norm       = 0.707857
  Prefactor  = 0.0001
  Prefactor  = 0.000100171
  Prefactor  = 1.24526
  Prefactor  = 1.07928
  Prefactor  = 0.0001
  norm       = 4.54115
  Prefactor  = 0.000100001
  Prefactor  = 10.5053
  Prefactor  = 1.60447
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.810602
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.37074
  norm       = 1.73424
  Prefactor  = 0.0001
  norm       = 6.56004
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.1595
  Prefactor  = 0.997131
 **********
 **   18 **HESSE 
 **********

 FCN=   105214.9     FROM HESSE     STATUS=OK           638 CALLS     4281 TOTAL
                     EDM=   .24E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.1714        .37069        .10677E-03   -1.5492    
   2  Prefactor     .10000E-03    1.9979        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     2.3134        1.1313        .23470E-03   -1.5404    
   4  Prefactor     1.0409        1.9032        .24566E-02   -1.5504    
   5  Prefactor     3.5791        3.1301        .21370E-03   -1.5330    
   6  norm          1.1762        .27099        .78728E-04   -1.5491    
   7  Prefactor     3.2106        3.3351        .11284E-02   -1.5350    
   8  Prefactor     16.706        19.314        .97898E-04   -1.4890    
   9  norm          .70786        .15880        .58620E-04   -1.5540    
  10  Prefactor     .10000E-03    1.6898        .39818E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10017E-03    .60163        .78165E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     1.2453        .68029        .18980E-03   -1.5485    
  13  Prefactor     1.0793        2.3986        .23181E-02   -1.5500    
  14  Prefactor     .10000E-03    4.0840        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          4.5411        1.1916        .16798E-03   -1.5282    
  16  Prefactor     .10000E-03    7.3487        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     10.505        2.3586        .12361E-03   -1.5060    
  18  Prefactor     1.6045        .95926        .23958E-03   -1.5455    
  19  norm          .10000E-03    .14067        .23220E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    .99200        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .81060        .13692        .48155E-04   -1.5528    
  22  norm          .10000E-03    5.8084        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    .57702        .29615E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     1.3707        4.8007        .37291E-03   -1.5474    
  25  norm          1.7342        1.0930        .26257E-03   -1.5445    
  26  Prefactor     .10000E-03    1.4960        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          6.5600        .65480        .78873E-04   -1.5196    
  28  Prefactor     .10000E-03    .78806        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    32.931        .42447E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    1.1595        .69605E-01    .32921E-03   -.87864    
  31  Prefactor     .99713        .35691E-01    .19166E-03   -.92825    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.39886e-08
Minuit parameter uncertainties:
  1  0.37069
  2  8.54475e-06
  3  1.13131
  4  1.90327
  5  3.13024
  6  0.270989
  7  3.33531
  8  19.3216
  9  0.158797
  10  1.9234e-05
  11  0.000642171
  12  0.680292
  13  2.3988
  14  2.34686e-06
  15  1.19163
  16  0.000176644
  17  2.35862
  18  0.959266
  19  5.57255e-07
  20  1.72668e-05
  21  0.136916
  22  5.57572e-07
  23  2.47185e-07
  24  4.80204
  25  1.09298
  26  4.17674e-06
  27  0.654804
  28  1.5809e-06
  29  3.47712e-05
  30  0.0696109
  31  0.035692
Done.

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

Extracting fit parameters...

4FGL J0203.7+3042
   Spectrum: LogParabola
255         norm:  4.541e+00  1.192e+00  1.000e-04  1.000e+04 ( 1.000e-12)
256        alpha:  2.141e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
257         beta:  9.853e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
258           Eb:  8.799e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
571    Prefactor:  9.971e-01  3.569e-02  0.000e+00  1.000e+01 ( 1.000e+00)
572        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
573        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
570   Normalization:  1.160e+00  6.961e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 32.12
Ra Dec: 30.933 30.714
Photon Index (Fixed Index): 2.14 +/- 0.00
Photon Flux (Fixed Index): 3.33e-08 +/- 8.73e-09
Energy Flux (Fixed Index): 1.53e-05 +/- 4.02e-06

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) = 105214.885447
delta logL = 0.0146200573799

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 105214.884418
delta logL = 0.0156492538808

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.5024       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1856       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1576       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99771       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5740E+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=   105214.9     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      248 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.5023        1.1757        .16584E-03    .11034E-02
   2  alpha         2.1856        .25869        .21784E-01    .13879E-03
   3  Normalizat    1.1576        .65213E-01    .32944E-03   -.14797E-03
   4  Prefactor     .99770        .35251E-01    .19161E-03   -.33132E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 4.50233
  alpha      = 2.18558
  Normalizat = 1.15759
  Prefactor  = 0.997703
 **********
 **   18 **HESSE 
 **********

 FCN=   105214.9     FROM HESSE     STATUS=OK            25 CALLS      273 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.5023        1.1556        .66337E-05   -1.5284    
   2  alpha         2.1856        .25403        .87136E-03   -.12610    
   3  Normalizat    1.1576        .65194E-01    .13178E-04   -.87924    
   4  Prefactor     .99770        .35258E-01    .76643E-05   -.92806    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.14395e-10
Minuit parameter uncertainties:
  1  1.15562
  2  0.254479
  3  0.065199
  4  0.035259
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/745272': 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) = 105214.884418
delta logL = 0.0156492658134

Extracting fit parameters...

4FGL J0203.7+3042
   Spectrum: LogParabola
255         norm:  4.502e+00  1.156e+00  1.000e-04  1.000e+04 ( 1.000e-12)
256        alpha:  2.186e+00  2.545e-01  0.000e+00  5.000e+00 ( 1.000e+00)
257         beta:  9.853e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
258           Eb:  8.799e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
571    Prefactor:  9.977e-01  3.526e-02  0.000e+00  1.000e+01 ( 1.000e+00)
572        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
573        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
570   Normalization:  1.158e+00  6.520e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 32.20
Ra Dec: 30.933 30.714
Photon Index (Free Index): 2.19 +/- 0.25
Photon Flux (Free Index): 3.49e-08 +/- 1.25e-08
Energy Flux (Free Index): 1.51e-05 +/- 3.99e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  2.220e+00 [aplpy.core]
Saving /scratch/kocevski/745272/cmap_HighResolution_586915201_589507201_4FGL_J0203.7+3042_monthly_bin135.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.33e-08', energy_flux2='1.51e-05', photon_flux_error='8.73e-09', dlogl='1.56e-02', energy_flux='1.53e-05', photon_flux2='3.49e-08', job_status='DONE', time_completed='2021-10-10 01:34:33.037957', photon_index_error2='0.25', photon_index2='2.19', ts='32.12', fit_tolerance='1e-08', GAL='1.00', photon_index_error='0.00', energy_flux_error2='3.99e-06', EG='1.16', time_epoch_completed='1633854873.04', return_code='0', job_id='745272', GAL2='1.00', EG2='1.16', return_code2='0', energy_flux_error='4.02e-06', photon_flux_error2='1.25e-08', ts2='32.20', photon_index='2.14' WHERE bin_id='135' AND source_name='4FGL J0203.7+3042' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Sun Oct 10 01:34:33 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0039>
Subject: Job 745272: <4FGL_J0203.7+3042_monthly_bin135> in cluster <slac> Done

Job <4FGL_J0203.7+3042_monthly_bin135> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sat Oct  9 23:20:11 2021
Job was executed on host(s) <bullet0039>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Oct  9 23:20:13 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Oct  9 23:20:13 2021
Terminated at Sun Oct 10 01:34:33 2021
Results reported at Sun Oct 10 01:34:33 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0203.7+3042_monthly_bin135 30.9327 30.7139 586915201 589507201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0203.7+3042 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   7936.77 sec.
    Max Memory :                                 636 MB
    Average Memory :                             444.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   2951 MB
    Max Processes :                              6
    Max Threads :                                21
    Run time :                                   8060 sec.
    Turnaround time :                            8062 sec.

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

