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


Performing analysis on: 4FGL_J0230.8+4032_daily_bin1322
RA = 37.7086, Dec = 40.5416
tmin = 581990401, tmax = 582249601
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='482589', job_status='RUN', time_executed='2021-08-16 02:59:26.687569', time_epoch_executed='1629107966.69' WHERE source_name='4FGL J0230.8+4032' and cadence='daily' and bin_id='1322'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/482589

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/482589/ft1_4FGL_J0230.8+4032_daily_bin1322.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/482589/ft2_4FGL_J0230.8+4032_daily_bin1322.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/482589/ft1_4FGL_J0230.8+4032_daily_bin1322.fits outfile=/scratch/kocevski/482589/ft1_filteredMKT_4FGL_J0230.8+4032_daily_bin1322.fits ra=37.7086 dec=40.5416 rad=12.0 tmin=581990401.0 tmax=582249601.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 10.30
user 2.20
sys 8.03

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/482589/ft2_4FGL_J0230.8+4032_daily_bin1322.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/482589/ft1_filteredMKT_4FGL_J0230.8+4032_daily_bin1322.fits evtable="EVENTS" outfile="/scratch/kocevski/482589/ft1_filtered_4FGL_J0230.8+4032_daily_bin1322.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 8.46
user 0.35
sys 8.07

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/482589/ft1_filtered_4FGL_J0230.8+4032_daily_bin1322.fits" evtable="EVENTS" scfile=/scratch/kocevski/482589/ft2_4FGL_J0230.8+4032_daily_bin1322.fits sctable="SC_DATA" outfile=/scratch/kocevski/482589/ltcube_581990401_582249601_4FGL_J0230.8+4032_daily_bin1322.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/482589/ft2_4FGL_J0230.8+4032_daily_bin1322.fits
.....................!
real 23.39
user 13.94
sys 9.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/482589/ft1_filtered_4FGL_J0230.8+4032_daily_bin1322.fits evtable="EVENTS" scfile=/scratch/kocevski/482589/ft2_4FGL_J0230.8+4032_daily_bin1322.fits sctable="SC_DATA" expcube=/scratch/kocevski/482589/ltcube_581990401_582249601_4FGL_J0230.8+4032_daily_bin1322.fits outfile=/scratch/kocevski/482589/expmap_581990401_582249601_4FGL_J0230.8+4032_daily_bin1322.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/482589/ltcube_581990401_582249601_4FGL_J0230.8+4032_daily_bin1322.fits
.....................!
real 201.69
user 186.33
sys 14.83

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/482589/ft1_filtered_4FGL_J0230.8+4032_daily_bin1322.fits scfile=/scratch/kocevski/482589/ft2_4FGL_J0230.8+4032_daily_bin1322.fits outfile=/scratch/kocevski/482589/cmap_581990401_582249601_4FGL_J0230.8+4032_daily_bin1322.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 8.36
user 0.39
sys 7.93

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/482589/ft1_filtered_4FGL_J0230.8+4032_daily_bin1322.fits scfile=/scratch/kocevski/482589/ft2_4FGL_J0230.8+4032_daily_bin1322.fits outfile=/scratch/kocevski/482589/cmap_HighResolution_581990401_582249601_4FGL_J0230.8+4032_daily_bin1322.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 8.37
user 0.38
sys 7.96

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/482589/ft1_filtered_4FGL_J0230.8+4032_daily_bin1322.fits evtable="EVENTS" scfile=/scratch/kocevski/482589/ft2_4FGL_J0230.8+4032_daily_bin1322.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/482589/Model_4FGL_J0230.8+4032_daily_bin1322.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/482589/ft1_filtered_4FGL_J0230.8+4032_daily_bin1322.fits.....................!
real 54.38
user 42.11
sys 11.77

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/482589/ft1_filtered_4FGL_J0230.8+4032_daily_bin1322.fits', '/scratch/kocevski/482589/ft2_4FGL_J0230.8+4032_daily_bin1322.fits', expMap='/scratch/kocevski/482589/expmap_581990401_582249601_4FGL_J0230.8+4032_daily_bin1322.fits', expCube='/scratch/kocevski/482589/ltcube_581990401_582249601_4FGL_J0230.8+4032_daily_bin1322.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/482589/Model_4FGL_J0230.8+4032_daily_bin1322.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/482589/ft1_filtered_4FGL_J0230.8+4032_daily_bin1322.fits
Spacecraft file(s): /scratch/kocevski/482589/ft2_4FGL_J0230.8+4032_daily_bin1322.fits
Exposure map: /scratch/kocevski/482589/expmap_581990401_582249601_4FGL_J0230.8+4032_daily_bin1322.fits
Exposure cube: /scratch/kocevski/482589/ltcube_581990401_582249601_4FGL_J0230.8+4032_daily_bin1322.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/482589/Model_4FGL_J0230.8+4032_daily_bin1322.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) = 2891.14819791

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.5088       1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.1830       1.0000         .10000E-03   10000.    
     4 'Prefactor '    34.291       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .56109E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    2.0424       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .22203E-02   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    1.5740       1.0000         .10000E-03   10000.    
    11 'norm      '    .58177       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10042E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10528E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    1.5188       1.0000         .10000E-03   10000.    
    16 'norm      '    48.122       1.0000         .10000E-03   10000.    
    17 'Prefactor '    119.44       1.0000         .10000E-03   10000.    
    18 'Prefactor '    5.8902       1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    112.79       1.0000         .10000E-03   10000.    
    21 'Prefactor '    51.515       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .22113E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    5.3194       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .97320       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.2581       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=   2891.058     FROM MIGRAD    STATUS=CONVERGED    577 CALLS     3349 TOTAL
                     EDM=   .83E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .65680       -.14016E-06** at limit **
   2  Prefactor     2.5078        14.418        .20685E-04   -.14980E-03
   3  Prefactor     1.1805        7.2253       -.23541E-05   -.20585E-03
   4  Prefactor     34.289        40.878        .14006E-06   -.12593E-04
   5  Prefactor     .10000E-03    405.08       -.42587E-05** at limit **
   6  norm          2.0421        5.2422        .53435E-06   -.18312E-05
   7  Prefactor     .10000E-03    6.4943       -.13723E-06** at limit **
   8  norm          .10000E-03    5.3914       -.82567E-06** at limit **
   9  Prefactor     .10000E-03    9.0652       -.87279E-07** at limit **
  10  norm          1.5720        1.4664        .30331E-06    .79108E-03
  11  norm          .58171        .53266        .35730E-07    .89376E-04
  12  Prefactor     .10000E-03    4.5992        .73553E-08** at limit **
  13  norm          .10000E-03    9.7806       -.17444E-06** at limit **
  14  Prefactor     .10000E-03    34.946        .95748E-07** at limit **
  15  norm          1.5157        6.4850        .27914E-05   -.10363E-03
  16  norm          48.246        224.08        .87472E-05    .25959E-04
  17  Prefactor     119.98        258.22        .80043E-05    .15638E-03
  18  Prefactor     5.8826        19.476        .52517E-06    .94372E-05
  19  norm          .10000E-03    16.417       -.85932E-07** at limit **
  20  norm          112.77        126.65        .17835E-05    .60857E-04
  21  Prefactor     51.510        67.032        .46508E-06   -.15998E-04
  22  Prefactor     .10000E-03    238.89        .16733E-06** at limit **
  23  norm          5.3187        3.4111        .11503E-06   -.44390E-04
  24  Normalizat    .97338        .46859        .60927E-05   -.34246E-04
  25  Prefactor     1.2580        .21117       -.57613E-05    .21132E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 2.50779
  Prefactor  = 1.18049
  Prefactor  = 34.2887
  Prefactor  = 0.0001
  norm       = 2.04207
  Prefactor  = 0.0001
  norm       = 0.000100003
  Prefactor  = 0.0001
  norm       = 1.57203
  norm       = 0.581711
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.51574
  norm       = 48.2457
  Prefactor  = 119.977
  Prefactor  = 5.88257
  norm       = 0.0001
  norm       = 112.765
  Prefactor  = 51.5103
  Prefactor  = 0.0001
  norm       = 5.31866
  Normalizat = 0.973381
  Prefactor  = 1.258
 **********
 **   18 **HESSE 
 **********

 FCN=   2891.058     FROM HESSE     STATUS=OK           427 CALLS     3776 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .66482        .42548E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     2.5078        14.576        .12899E-02   -1.5391    
   3  Prefactor     1.1805        7.0739        .25264E-03   -1.5491    
   4  Prefactor     34.289        40.856        .68432E-04   -1.4536    
   5  Prefactor     .10000E-03    408.42        .21099E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          2.0421        5.2103        .18916E-03   -1.5422    
   7  Prefactor     .10000E-03    6.5262        .13371E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    30.372        .21192E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    9.0878        .15808E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.5720        1.3043        .52074E-04   -1.5457    
  11  norm          .58171        .53891        .36270E-04   -1.5555    
  12  Prefactor     .10000E-03    4.6151        .11259E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    9.8434        .16421E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    34.953        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.5157        6.3823        .24898E-03   -1.5462    
  16  norm          48.246        223.03        .28902E-03   -1.4318    
  17  Prefactor     119.98        257.48        .18411E-03   -1.3513    
  18  Prefactor     5.8826        19.432        .16547E-03   -1.5223    
  19  norm          .10000E-03    16.442        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          112.77        126.53        .18939E-03   -1.3580    
  21  Prefactor     51.510        67.063        .55877E-04   -1.4271    
  22  Prefactor     .10000E-03    238.92        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          5.3187        3.4150        .72443E-04   -1.5247    
  24  Normalizat    .97338        .49872        .43597E-03   -.93928    
  25  Prefactor     1.2580        .22963        .18968E-03   -.84565    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.81869e-09
Minuit parameter uncertainties:
  1  9.38148e-07
  2  12.096
  3  5.78028
  4  40.8888
  5  0.000367099
  6  5.21148
  7  1.68811e-05
  8  0.000584515
  9  1.29365e-05
  10  1.30429
  11  0.53891
  12  3.00884e-06
  13  7.02438e-06
  14  6.38108e-06
  15  6.22152
  16  208.756
  17  259.941
  18  19.4533
  19  2.03822e-05
  20  126.839
  21  67.1619
  22  0.000384858
  23  3.41512
  24  0.501126
  25  0.229814
Done.

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

Extracting fit parameters...

4FGL J0230.8+4032
   Spectrum: LogParabola
305         norm:  1.000e-04  7.024e-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:  1.258e+00  2.298e-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:  9.734e-01  5.011e-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: 1.75e-07 ph cm-2 s-1
Energy Flux Upper Limit: 6.21e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/482589/likelihoodResults_581990401_582249601_4FGL_J0230.8+4032_daily_bin1322.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) = 2891.05858979
delta logL = -0.000482654532789

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2891.05810711
delta logL = 3.04212335323e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3190       1.0000          .0000       5.0000    
     3 'Normalizat'    .97339       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2580       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.

 FCN=   2891.058     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      200 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10001E-03    10.441        .90712E-02** at limit **
   2  alpha         2.3324        3.5275        .41289       -.68561E-05
   3  Normalizat    .97338        .40346        .98401E-01   -.11668E-03
   4  Prefactor     1.2580        .19844        .33385E-01    .32493E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.00010001
  alpha      = 2.33245
  Normalizat = 0.973379
  Prefactor  = 1.258
 **********
 **   18 **HESSE 
 **********

 FCN=   2891.058     FROM HESSE     STATUS=OK            31 CALLS      231 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10001E-03    9.9841        .16537E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.3324        3.5121        .50000       -.67070E-01
   3  Normalizat    .97338        .43819        .43597E-03   -.93928    
   4  Prefactor     1.2580        .21628        .18968E-03   -.84565    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.46256e-09
Minuit parameter uncertainties:
  1  0.000618606
  2  2.49904
  3  0.439814
  4  0.216437
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/482589': 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) = 2891.05810707
delta logL = 7.24166966393e-08

Extracting fit parameters...

4FGL J0230.8+4032
   Spectrum: LogParabola
305         norm:  1.000e-04  6.186e-04  1.000e-04  1.000e+04 ( 1.000e-12)
306        alpha:  2.332e+00  2.499e+00  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:  1.258e+00  2.164e-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:  9.734e-01  4.398e-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/482589/cmap_HighResolution_581990401_582249601_4FGL_J0230.8+4032_daily_bin1322.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.21e-05', job_status='DONE', photon_flux_upper_limit='1.75e-07', time_completed='2021-08-16 03:10:30.359424', job_id='482589', GAL2='1.26', fit_tolerance='1e-08', EG2='0.97', EG='0.97', time_epoch_completed='1629108630.36', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.26', dlogl='7.24e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.31' WHERE bin_id='1322' AND source_name='4FGL J0230.8+4032' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 16 03:10:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0255>
Subject: Job 482589: <4FGL_J0230.8+4032_daily_bin1322> in cluster <slac> Done

Job <4FGL_J0230.8+4032_daily_bin1322> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Mon Aug 16 02:55:35 2021
Job was executed on host(s) <bullet0255>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Aug 16 02:57:03 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:57:03 2021
Terminated at Mon Aug 16 03:10:32 2021
Results reported at Mon Aug 16 03:10:32 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0230.8+4032_daily_bin1322 37.7086 40.5416 581990401 582249601 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 :                                   786.32 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             269.11 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   808 sec.
    Turnaround time :                            897 sec.

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

