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


Performing analysis on: 4FGL_J0203.7+3042_daily_bin1250
RA = 30.9327, Dec = 30.7139
tmin = 563328001, tmax = 563587201
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='74977', job_status='RUN', time_executed='2021-08-15 05:10:46.598493', time_epoch_executed='1629029446.6' WHERE source_name='4FGL J0203.7+3042' and cadence='daily' and bin_id='1250'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/74977

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/74977/ft1_4FGL_J0203.7+3042_daily_bin1250.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/74977/ft2_4FGL_J0203.7+3042_daily_bin1250.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/74977/ft1_4FGL_J0203.7+3042_daily_bin1250.fits outfile=/scratch/kocevski/74977/ft1_filteredMKT_4FGL_J0203.7+3042_daily_bin1250.fits ra=30.9327 dec=30.7139 rad=12.0 tmin=563328001.0 tmax=563587201.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 3.71
user 2.23
sys 1.45

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/74977/ft2_4FGL_J0203.7+3042_daily_bin1250.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/74977/ft1_filteredMKT_4FGL_J0203.7+3042_daily_bin1250.fits evtable="EVENTS" outfile="/scratch/kocevski/74977/ft1_filtered_4FGL_J0203.7+3042_daily_bin1250.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 1.76
user 0.29
sys 1.38

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/74977/ft1_filtered_4FGL_J0203.7+3042_daily_bin1250.fits" evtable="EVENTS" scfile=/scratch/kocevski/74977/ft2_4FGL_J0203.7+3042_daily_bin1250.fits sctable="SC_DATA" outfile=/scratch/kocevski/74977/ltcube_563328001_563587201_4FGL_J0203.7+3042_daily_bin1250.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/74977/ft2_4FGL_J0203.7+3042_daily_bin1250.fits
.....................!
real 12.82
user 11.08
sys 1.69

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/74977/ft1_filtered_4FGL_J0203.7+3042_daily_bin1250.fits evtable="EVENTS" scfile=/scratch/kocevski/74977/ft2_4FGL_J0203.7+3042_daily_bin1250.fits sctable="SC_DATA" expcube=/scratch/kocevski/74977/ltcube_563328001_563587201_4FGL_J0203.7+3042_daily_bin1250.fits outfile=/scratch/kocevski/74977/expmap_563328001_563587201_4FGL_J0203.7+3042_daily_bin1250.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/74977/ltcube_563328001_563587201_4FGL_J0203.7+3042_daily_bin1250.fits
.....................!
real 158.74
user 151.63
sys 6.40

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/74977/ft1_filtered_4FGL_J0203.7+3042_daily_bin1250.fits scfile=/scratch/kocevski/74977/ft2_4FGL_J0203.7+3042_daily_bin1250.fits outfile=/scratch/kocevski/74977/cmap_563328001_563587201_4FGL_J0203.7+3042_daily_bin1250.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 1.72
user 0.33
sys 1.37

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/74977/ft1_filtered_4FGL_J0203.7+3042_daily_bin1250.fits scfile=/scratch/kocevski/74977/ft2_4FGL_J0203.7+3042_daily_bin1250.fits outfile=/scratch/kocevski/74977/cmap_HighResolution_563328001_563587201_4FGL_J0203.7+3042_daily_bin1250.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 1.75
user 0.33
sys 1.41

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/74977/ft1_filtered_4FGL_J0203.7+3042_daily_bin1250.fits evtable="EVENTS" scfile=/scratch/kocevski/74977/ft2_4FGL_J0203.7+3042_daily_bin1250.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/74977/Model_4FGL_J0203.7+3042_daily_bin1250.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/74977/ft1_filtered_4FGL_J0203.7+3042_daily_bin1250.fits........................!
real 15.31
user 12.53
sys 2.67

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/74977/ft1_filtered_4FGL_J0203.7+3042_daily_bin1250.fits', '/scratch/kocevski/74977/ft2_4FGL_J0203.7+3042_daily_bin1250.fits', expMap='/scratch/kocevski/74977/expmap_563328001_563587201_4FGL_J0203.7+3042_daily_bin1250.fits', expCube='/scratch/kocevski/74977/ltcube_563328001_563587201_4FGL_J0203.7+3042_daily_bin1250.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/74977/Model_4FGL_J0203.7+3042_daily_bin1250.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/74977/ft1_filtered_4FGL_J0203.7+3042_daily_bin1250.fits
Spacecraft file(s): /scratch/kocevski/74977/ft2_4FGL_J0203.7+3042_daily_bin1250.fits
Exposure map: /scratch/kocevski/74977/expmap_563328001_563587201_4FGL_J0203.7+3042_daily_bin1250.fits
Exposure cube: /scratch/kocevski/74977/ltcube_563328001_563587201_4FGL_J0203.7+3042_daily_bin1250.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/74977/Model_4FGL_J0203.7+3042_daily_bin1250.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 303.283423942

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 299.00648514

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.4907       1.0000         .10000E-03   10000.    
     2 'Prefactor '    155.56       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .11128E-02   1.0000         .10000E-03   10000.    
     4 'Prefactor '    29.925       1.0000         .10000E-03   10000.    
     5 'Prefactor '    20.821       1.0000         .10000E-03   10000.    
     6 'norm      '    4.5200       1.0000         .10000E-03   10000.    
     7 'Prefactor '    328.32       1.0000         .10000E-03   10000.    
     8 'Prefactor '    45.801       1.0000         .10000E-03   10000.    
     9 'norm      '    .31527       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .24454E-02   1.0000         .10000E-03   10000.    
    11 'Prefactor '    83.572       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .31109E-02   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .95476E-01   1.0000         .10000E-03   10000.    
    15 'norm      '    .28138       1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.4550       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .22701       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10771       1.0000         .10000E-03   10000.    
    19 'norm      '    603.83       1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.4624       1.0000         .10000E-03   10000.    
    21 'norm      '    .66857E-01   1.0000         .10000E-03   10000.    
    22 'norm      '    4.3723       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .36464E-01   1.0000         .10000E-03   10000.    
    24 'Prefactor '    5.0540       1.0000         .10000E-03   10000.    
    25 'norm      '    3.6469       1.0000         .10000E-03   10000.    
    26 'Prefactor '    2.5701       1.0000         .10000E-03   10000.    
    27 'norm      '    8.8491       1.0000         .10000E-03   10000.    
    28 'Prefactor '    3.1506       1.0000         .10000E-03   10000.    
    29 'Prefactor '    8.2696       1.0000         .10000E-03   10000.    
    30 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    31 'Prefactor '    .45745       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5740E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   298.3638     FROM MIGRAD    STATUS=CONVERGED    583 CALLS     1210 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.8679        5.2024       -.12146E-05    .92834E-03
   2  Prefactor     154.25        143.42       -.18349E-04   -.19068E-03
   3  Prefactor     .10000E-03    47.791        .36412E-05** at limit **
   4  Prefactor     27.815        35.315       -.72315E-05    .34407E-03
   5  Prefactor     .10001E-03    148.68       -.33908E-04** at limit **
   6  norm          5.7886        7.8970       -.22068E-05    .60453E-03
   7  Prefactor     266.07        339.53       -.68803E-05   -.15168E-04
   8  Prefactor     768.83        863.31       -.60157E-04    .42126E-04
   9  norm          .10000E-03    4.3669        .41738E-05** at limit **
  10  Prefactor     .10000E-03    112.82        .37048E-05** at limit **
  11  Prefactor     85.700        89.500        .72452E-05    .12077E-03
  12  Prefactor     .10000E-03    16.260        .17477E-05** at limit **
  13  Prefactor     .10000E-03    479.01       -.16634E-06** at limit **
  14  Prefactor     .10000E-03    318.92       -.12022E-05** at limit **
  15  norm          .10000E-03    49.989       -.11517E-06** at limit **
  16  Prefactor     .10000E-03    6278.5       -.27367E-04** at limit **
  17  Prefactor     .10000E-03    114.23       -.13550E-05** at limit **
  18  Prefactor     .10000E-03    6809.6        .52428E-04** at limit **
  19  norm          320.45        611.23        .41212E-04   -.27473E-04
  20  Prefactor     .10015E-03    6333.3       -.47323E-04** at limit **
  21  norm          .10009E-03    180.35       -.56283E-05** at limit **
  22  norm          4.3723        5644.8         .0000         .0000    
  23  Prefactor     .10000E-03    6356.3       -.55784E-05** at limit **
  24  Prefactor     5.0540        5649.7         .0000         .0000    
  25  norm         10000.0        9688.8        .20865E-03** at limit **
  26  Prefactor     .10313E-03    9907.6       -.72006E-03** at limit **
  27  norm          8.8491        5672.5         .0000         .0000    
  28  Prefactor     3.1506        5634.8         .0000         .0000    
  29  Prefactor     8.2696        5669.4         .0000         .0000    
  30  Normalizat    .10000E-01    .79546        .82814E-04** at limit **
  31  Prefactor     .34337        .37784       -.34002E-05    .20321E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 7.86791
  Prefactor  = 154.251
  Prefactor  = 0.000100002
  Prefactor  = 27.8152
  Prefactor  = 0.000100015
  norm       = 5.78855
  Prefactor  = 266.071
  Prefactor  = 768.834
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 85.7001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  norm       = 320.45
  Prefactor  = 0.000100152
  norm       = 0.000100094
  norm       = 4.37233
  Prefactor  = 0.0001
  Prefactor  = 5.054
  norm       = 10000
  Prefactor  = 0.000103129
  norm       = 8.84905
  Prefactor  = 3.15065
  Prefactor  = 8.26963
  Normalizat = 0.01
  Prefactor  = 0.343373
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   298.3638     FROM HESSE     STATUS=FAILED        95 CALLS     1305 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.8679        4.7047        .36633E-02   -1.5147    
   2  Prefactor     154.25        139.44        .80809E-03   -1.3218    
   3  Prefactor     .10000E-03    48.487        .10345E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     27.815        30.587        .18310E-02   -1.4653    
   5  Prefactor     .10001E-03    186.52        .21945E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          5.7886        6.0818        .47341E-02   -1.5227    
   7  Prefactor     266.07        308.19        .56118E-03   -1.2431    
   8  Prefactor     768.83        767.59        .14811E-02   -1.0089    
   9  norm          .10000E-03    4.4070        .10492E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    112.79        .10020E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     85.700        87.520        .10985E-02   -1.3854    
  12  Prefactor     .10000E-03    16.042        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    513.69        .98943E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    317.42        .94897E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    49.977        .10343E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    6279.0        .47694E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    114.16        .10100E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    6806.2        .95479E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          320.45        601.68        .41983E-03   -1.2108    
  20  Prefactor     .10015E-03    6311.1        .88932E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10009E-03    179.40        .93520E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          538.04        533.61         .0000       -1.5290    
  23  Prefactor     .10000E-03    .21177       -.55784E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     5.0540        1.0050         .0000       -1.5258    
  25  norm         10000.0        .69917E-01    .20865E-03    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10313E-03    .10129       -.72006E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          8.8491        1.0016         .0000       -1.5113    
  28  Prefactor     3.1506        1.0132         .0000       -1.5353    
  29  Prefactor     8.2696        1.0018         .0000       -1.5133    
  30  Normalizat    .10000E-01    .25505        .82814E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .34337        .69353       -.34002E-05   -1.1980    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.53261e-09
Minuit parameter uncertainties:
  1  4.70491
  2  139.743
  3  0.000599137
  4  30.6039
  5  0.00330346
  6  6.08246
  7  310.101
  8  778.628
  9  6.16782e-05
  10  0.000119821
  11  87.6525
  12  2.71107e-05
  13  0.000160888
  14  6.97549e-05
  15  6.25005e-06
  16  0.00182752
  17  1.25439e-05
  18  0.00826078
  19  614.041
  20  0.0419045
  21  0.00823245
  22  1.00669
  23  8.00831e-06
  24  1.00498
  25  0.000714935
  26  0.00112602
  27  1.0016
  28  1.01318
  29  1.00184
  30  1.26989e-05
  31  0.711494
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 298.363750152

Extracting fit parameters...

4FGL J0203.7+3042
   Spectrum: LogParabola
255         norm:  1.000e-04  6.250e-06  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:  3.434e-01  7.115e-01  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.000e-02  1.270e-05  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 30.933 30.714
Photon Flux Upper Limit: 2.05e-06 ph cm-2 s-1
Energy Flux Upper Limit: 9.45e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/74977/likelihoodResults_563328001_563587201_4FGL_J0203.7+3042_daily_bin1250.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) = 298.363843529
delta logL = -9.33771911491e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 298.363751474
delta logL = -1.32193531499e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10106E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    3.1836       1.0000          .0000       5.0000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .34340       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=   298.3638     FROM MIGRAD    STATUS=CONVERGED    107 CALLS      288 TOTAL
                     EDM=   .27E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    6604.7        .80245E-02** at limit **
   2  alpha         1.8113        3.7517        .17315       -.10464E-08
   3  Normalizat    .10000E-01    .13276        .82677E-02** at limit **
   4  Prefactor     .34337        .99287E-01    .23171E-03   -.64214E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.81128
  Normalizat = 0.01
  Prefactor  = 0.343366
 **********
 **   18 **HESSE 
 **********

 FCN=   298.3638     FROM HESSE     STATUS=OK            23 CALLS      311 TOTAL
                     EDM=   .42E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    52.966        .12290E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.8113        3.5920        .69260E-02   -.27910    
   3  Normalizat    .10000E-01    .81932        .16535E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .34337        .24886        .92683E-05   -1.1980    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.21963e-12
Minuit parameter uncertainties:
  1  2.10294e-05
  2  989.929
  3  3.01082e-06
  4  0.249645
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/74977': 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) = 298.363750096
delta logL = 5.56924533157e-08

Extracting fit parameters...

4FGL J0203.7+3042
   Spectrum: LogParabola
255         norm:  1.000e-04  2.103e-05  1.000e-04  1.000e+04 ( 1.000e-12)
256        alpha:  1.811e+00  9.899e+02  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:  3.434e-01  2.496e-01  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.000e-02  3.011e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 30.933 30.714

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/74977/cmap_HighResolution_563328001_563587201_4FGL_J0203.7+3042_daily_bin1250.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.45e-04', job_status='DONE', photon_flux_upper_limit='2.05e-06', time_completed='2021-08-15 05:15:41.396526', job_id='74977', GAL2='0.34', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1629029741.4', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='101', GAL='0.34', dlogl='5.57e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.14' WHERE bin_id='1250' AND source_name='4FGL J0203.7+3042' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 15 05:15:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0135>
Subject: Job 74977: <4FGL_J0203.7+3042_daily_bin1250> in cluster <slac> Done

Job <4FGL_J0203.7+3042_daily_bin1250> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Sun Aug 15 05:05:20 2021
Job was executed on host(s) <bullet0135>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 15 05:08:09 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Aug 15 05:08:09 2021
Terminated at Sun Aug 15 05:15:42 2021
Results reported at Sun Aug 15 05:15:42 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0203.7+3042_daily_bin1250 30.9327 30.7139 563328001 563587201 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 :                                   309.02 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             386.94 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   452 sec.
    Turnaround time :                            622 sec.

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

