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


Performing analysis on: 4FGL_J0230.8+4032_daily_bin1319
RA = 37.7086, Dec = 40.5416
tmin = 581212801, tmax = 581472001
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='482580', job_status='RUN', time_executed='2021-08-16 02:57:21.295603', time_epoch_executed='1629107841.3' WHERE source_name='4FGL J0230.8+4032' and cadence='daily' and bin_id='1319'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/482580

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/482580/ft1_4FGL_J0230.8+4032_daily_bin1319.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/482580/ft2_4FGL_J0230.8+4032_daily_bin1319.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/482580/ft1_4FGL_J0230.8+4032_daily_bin1319.fits outfile=/scratch/kocevski/482580/ft1_filteredMKT_4FGL_J0230.8+4032_daily_bin1319.fits ra=37.7086 dec=40.5416 rad=12.0 tmin=581212801.0 tmax=581472001.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.68
user 2.78
sys 0.87

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/482580/ft2_4FGL_J0230.8+4032_daily_bin1319.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/482580/ft2_4FGL_J0230.8+4032_daily_bin1319.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/482580/ft1_filteredMKT_4FGL_J0230.8+4032_daily_bin1319.fits evtable="EVENTS" outfile="/scratch/kocevski/482580/ft1_filtered_4FGL_J0230.8+4032_daily_bin1319.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.18
user 0.36
sys 0.80

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/482580/ft1_filtered_4FGL_J0230.8+4032_daily_bin1319.fits" evtable="EVENTS" scfile=/scratch/kocevski/482580/ft2_4FGL_J0230.8+4032_daily_bin1319.fits sctable="SC_DATA" outfile=/scratch/kocevski/482580/ltcube_581212801_581472001_4FGL_J0230.8+4032_daily_bin1319.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/482580/ft2_4FGL_J0230.8+4032_daily_bin1319.fits
.....................!
real 14.38
user 13.25
sys 1.08

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/482580/ft1_filtered_4FGL_J0230.8+4032_daily_bin1319.fits evtable="EVENTS" scfile=/scratch/kocevski/482580/ft2_4FGL_J0230.8+4032_daily_bin1319.fits sctable="SC_DATA" expcube=/scratch/kocevski/482580/ltcube_581212801_581472001_4FGL_J0230.8+4032_daily_bin1319.fits outfile=/scratch/kocevski/482580/expmap_581212801_581472001_4FGL_J0230.8+4032_daily_bin1319.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/482580/ltcube_581212801_581472001_4FGL_J0230.8+4032_daily_bin1319.fits
.....................!
real 191.20
user 185.46
sys 5.25

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
Extended source W 3 in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/W3.fits is the correct path to the extended template.
Added 185 point sources and 1 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J0230.8+4032 @ 37.7086 40.5416

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/482580/ft1_filtered_4FGL_J0230.8+4032_daily_bin1319.fits scfile=/scratch/kocevski/482580/ft2_4FGL_J0230.8+4032_daily_bin1319.fits outfile=/scratch/kocevski/482580/cmap_581212801_581472001_4FGL_J0230.8+4032_daily_bin1319.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=37.7086 yref=40.5416 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.20
user 0.37
sys 0.81

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/482580/ft1_filtered_4FGL_J0230.8+4032_daily_bin1319.fits scfile=/scratch/kocevski/482580/ft2_4FGL_J0230.8+4032_daily_bin1319.fits outfile=/scratch/kocevski/482580/cmap_HighResolution_581212801_581472001_4FGL_J0230.8+4032_daily_bin1319.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=37.7086 yref=40.5416 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.22
user 0.40
sys 0.80

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/482580/ft1_filtered_4FGL_J0230.8+4032_daily_bin1319.fits evtable="EVENTS" scfile=/scratch/kocevski/482580/ft2_4FGL_J0230.8+4032_daily_bin1319.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/482580/Model_4FGL_J0230.8+4032_daily_bin1319.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
adding source W 3
Working on...
/scratch/kocevski/482580/ft1_filtered_4FGL_J0230.8+4032_daily_bin1319.fits.....................!
real 70.54
user 68.06
sys 2.12

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/482580/ft1_filtered_4FGL_J0230.8+4032_daily_bin1319.fits', '/scratch/kocevski/482580/ft2_4FGL_J0230.8+4032_daily_bin1319.fits', expMap='/scratch/kocevski/482580/expmap_581212801_581472001_4FGL_J0230.8+4032_daily_bin1319.fits', expCube='/scratch/kocevski/482580/ltcube_581212801_581472001_4FGL_J0230.8+4032_daily_bin1319.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/482580/Model_4FGL_J0230.8+4032_daily_bin1319.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0230.8+4032'

4FGL J0230.8+4032
   Spectrum: LogParabola
305         norm:  3.060e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
306        alpha:  2.306e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
307         beta:  1.406e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
308           Eb:  7.188e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/482580/ft1_filtered_4FGL_J0230.8+4032_daily_bin1319.fits
Spacecraft file(s): /scratch/kocevski/482580/ft2_4FGL_J0230.8+4032_daily_bin1319.fits
Exposure map: /scratch/kocevski/482580/expmap_581212801_581472001_4FGL_J0230.8+4032_daily_bin1319.fits
Exposure cube: /scratch/kocevski/482580/ltcube_581212801_581472001_4FGL_J0230.8+4032_daily_bin1319.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/482580/Model_4FGL_J0230.8+4032_daily_bin1319.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) = 5508.9296405

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .60042       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    13.230       1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.1506       1.0000         .10000E-03   10000.    
     8 'norm      '    2.5700       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10133E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .11562E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .63362       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    14.385       1.0000         .10000E-03   10000.    
    15 'norm      '    10.860       1.0000         .10000E-03   10000.    
    16 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .49651       1.0000         .10000E-03   10000.    
    19 'norm      '    10.165       1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    21.666       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.4650       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .91093       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6280E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5508.909     FROM MIGRAD    STATUS=CONVERGED    595 CALLS     2955 TOTAL
                     EDM=   .40E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .60047        .54818       -.69115E-08   -.81066E-04
   2  Prefactor     .10000E-03    5.5933       -.96125E-08** at limit **
   3  Prefactor     .10000E-03    1.8259        .37433E-07** at limit **
   4  Prefactor     .10000E-03    8.3026       -.14565E-05** at limit **
   5  Prefactor     .10000E-03    30.464        .45660E-06** at limit **
   6  norm          13.218        10.301       -.19590E-06   -.82078E-04
   7  Prefactor     1.1506        46.701        .31107E-05    .33091E-04
   8  norm          2.5767        3.6400        .15833E-05    .26427E-03
   9  Prefactor     .10000E-03    10.722       -.17646E-06** at limit **
  10  norm          .10000E-03    .67709       -.36385E-06** at limit **
  11  norm          .63360        .34446        .92610E-08   -.17335E-04
  12  Prefactor     .10000E-03    2.6911       -.84637E-08** at limit **
  13  norm          .10000E-03    2.2687       -.59215E-07** at limit **
  14  Prefactor     14.359        36.077        .35191E-05    .17642E-04
  15  norm          10.859        6.4221       -.80935E-09   -.56775E-04
  16  norm          .10000E-03    8.6610        .14328E-05** at limit **
  17  Prefactor     .10000E-03    87.603        .26582E-05** at limit **
  18  Prefactor     .47014        3.5463       -.16839E-05    .68324E-03
  19  norm          10.166        9.3327        .24749E-06    .73958E-04
  20  norm          .10000E-03    51.268        .78797E-06** at limit **
  21  Prefactor     21.661        26.919        .54541E-06    .63114E-05
  22  Prefactor     .10000E-03    63.514       -.34838E-05** at limit **
  23  norm          .10000E-03    .55649       -.11980E-08** at limit **
  24  Normalizat    1.4651        .28565       -.24106E-05   -.58918E-04
  25  Prefactor     .91095        .11163        .20087E-06   -.12546E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.600466
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 13.2179
  Prefactor  = 1.15062
  norm       = 2.57673
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.633601
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 14.3593
  norm       = 10.8588
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.470143
  norm       = 10.1662
  norm       = 0.0001
  Prefactor  = 21.661
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.4651
  Prefactor  = 0.91095
 **********
 **   18 **HESSE 
 **********

 FCN=   5508.909     FROM HESSE     STATUS=OK           427 CALLS     3382 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .60047        .60219        .51249E-03   -1.5553    
   2  Prefactor     .10000E-03    5.6019        .17142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    1.8419        .97867E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    8.3109        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    30.500        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          13.218        9.4500        .11012E-03   -1.4981    
   7  Prefactor     1.1506        40.544        .43144E-03   -1.5493    
   8  norm          2.5767        3.8098        .84156E-03   -1.5387    
   9  Prefactor     .10000E-03    10.770        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    1.6933        .11362E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .63360        .34422        .31100E-04   -1.5549    
  12  Prefactor     .10000E-03    2.7041        .11887E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    2.2703        .10918E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     14.359        36.035        .10560E-03   -1.4950    
  15  norm          10.859        6.4263        .12157E-03   -1.5049    
  16  norm          .10000E-03    8.6909        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    87.684        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .47014        11.006        .21508E-02   -1.5571    
  19  norm          10.166        9.3559        .12568E-03   -1.5070    
  20  norm          .10000E-03    51.328        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     21.661        26.862        .86051E-04   -1.4777    
  22  Prefactor     .10000E-03    63.553        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    .55973        .53880E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.4651        .31474        .35986E-03   -.78764    
  25  Prefactor     .91095        .12730        .17669E-03   -.95760    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.98673e-09
Minuit parameter uncertainties:
  1  0.602201
  2  6.35661e-06
  3  6.34968e-06
  4  3.45416e-05
  5  4.17816e-05
  6  9.45111
  7  13.6698
  8  3.81012
  9  3.80873e-06
  10  5.47166e-05
  11  0.344217
  12  3.36812e-06
  13  1.32331e-06
  14  36.0892
  15  6.42674
  16  4.84547e-05
  17  0.000217201
  18  4.55
  19  9.35724
  20  5.99719e-05
  21  26.8772
  22  0.000230148
  23  3.83469e-07
  24  0.315162
  25  0.127338
Done.

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

Extracting fit parameters...

4FGL J0230.8+4032
   Spectrum: LogParabola
305         norm:  1.000e-04  1.323e-06  1.000e-04  1.000e+04 ( 1.000e-12)
306        alpha:  2.306e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
307         beta:  1.406e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
308           Eb:  7.188e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
621    Prefactor:  9.109e-01  1.273e-01  0.000e+00  1.000e+01 ( 1.000e+00)
622        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
623        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
620   Normalization:  1.465e+00  3.152e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 37.709 40.542
Photon Flux Upper Limit: 6.98e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.48e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/482580/likelihoodResults_581212801_581472001_4FGL_J0230.8+4032_daily_bin1319.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) = 5508.91079557
delta logL = -0.00203085785415

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5508.90876469
delta logL = 1.34214133141e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2993       1.0000          .0000       5.0000    
     3 'Normalizat'    1.4651       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91096       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6280E+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=   5508.909     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      234 TOTAL
                     EDM=   .43E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    151.04        .10937E-01** at limit **
   2  alpha         1.9344        4.0122        .16528       -.23662E-07
   3  Normalizat    1.4651        .66986E-01    .35986E-03    .19303E-04
   4  Prefactor     .91095        .26886E-01    .17669E-03    .46931E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.93441
  Normalizat = 1.4651
  Prefactor  = 0.91095
 **********
 **   18 **HESSE 
 **********

 FCN=   5508.909     FROM HESSE     STATUS=OK            23 CALLS      257 TOTAL
                     EDM=   .66E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.3955        .11212E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.9344        3.9522        .66113E-02   -.22821    
   3  Normalizat    1.4651        .29375        .14394E-04   -.78764    
   4  Prefactor     .91095        .11802        .35338E-04   -.95760    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.59264e-12
Minuit parameter uncertainties:
  1  1.57153e-06
  2  239.551
  3  0.294095
  4  0.118053
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/482580': 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) = 5508.90876357
delta logL = 1.13550777314e-06

Extracting fit parameters...

4FGL J0230.8+4032
   Spectrum: LogParabola
305         norm:  1.000e-04  1.572e-06  1.000e-04  1.000e+04 ( 1.000e-12)
306        alpha:  1.934e+00  2.396e+02  0.000e+00  5.000e+00 ( 1.000e+00)
307         beta:  1.406e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
308           Eb:  7.188e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
621    Prefactor:  9.109e-01  1.181e-01  0.000e+00  1.000e+01 ( 1.000e+00)
622        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
623        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
620   Normalization:  1.465e+00  2.941e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 37.709 40.542

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/482580/cmap_HighResolution_581212801_581472001_4FGL_J0230.8+4032_daily_bin1319.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.48e-05', job_status='DONE', photon_flux_upper_limit='6.98e-08', time_completed='2021-08-16 03:09:28.950062', job_id='482580', GAL2='0.91', fit_tolerance='1e-08', EG2='1.47', EG='1.47', time_epoch_completed='1629108568.95', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.91', dlogl='1.14e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.31' WHERE bin_id='1319' AND source_name='4FGL J0230.8+4032' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 16 03:09:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0009>
Subject: Job 482580: <4FGL_J0230.8+4032_daily_bin1319> in cluster <slac> Done

Job <4FGL_J0230.8+4032_daily_bin1319> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Mon Aug 16 02:55:34 2021
Job was executed on host(s) <bullet0009>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Aug 16 02:56:56 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Aug 16 02:56:56 2021
Terminated at Mon Aug 16 03:09:29 2021
Results reported at Mon Aug 16 03:09:29 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0230.8+4032_daily_bin1319 37.7086 40.5416 581212801 581472001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0230.8+4032 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   736.42 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             371.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   753 sec.
    Turnaround time :                            835 sec.

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

