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


Performing analysis on: 4FGL_J0230.8+4032_daily_bin1604
RA = 37.7086, Dec = 40.5416
tmin = 655084801, tmax = 655344001
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='4295', job_status='RUN', time_executed='2021-10-08 00:05:40.043495', time_epoch_executed='1633676740.04' WHERE source_name='4FGL J0230.8+4032' and cadence='daily' and bin_id='1604'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/4295

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/4295/ft1_4FGL_J0230.8+4032_daily_bin1604.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/4295/ft2_4FGL_J0230.8+4032_daily_bin1604.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/4295/ft1_4FGL_J0230.8+4032_daily_bin1604.fits outfile=/scratch/kocevski/4295/ft1_filteredMKT_4FGL_J0230.8+4032_daily_bin1604.fits ra=37.7086 dec=40.5416 rad=12.0 tmin=655084801.0 tmax=655344001.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 2.91
user 2.67
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/4295/ft2_4FGL_J0230.8+4032_daily_bin1604.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/4295/ft1_filteredMKT_4FGL_J0230.8+4032_daily_bin1604.fits evtable="EVENTS" outfile="/scratch/kocevski/4295/ft1_filtered_4FGL_J0230.8+4032_daily_bin1604.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/4295/ft1_filtered_4FGL_J0230.8+4032_daily_bin1604.fits" evtable="EVENTS" scfile=/scratch/kocevski/4295/ft2_4FGL_J0230.8+4032_daily_bin1604.fits sctable="SC_DATA" outfile=/scratch/kocevski/4295/ltcube_655084801_655344001_4FGL_J0230.8+4032_daily_bin1604.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/4295/ft2_4FGL_J0230.8+4032_daily_bin1604.fits
.....................!
real 18.33
user 17.87
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/4295/ft1_filtered_4FGL_J0230.8+4032_daily_bin1604.fits evtable="EVENTS" scfile=/scratch/kocevski/4295/ft2_4FGL_J0230.8+4032_daily_bin1604.fits sctable="SC_DATA" expcube=/scratch/kocevski/4295/ltcube_655084801_655344001_4FGL_J0230.8+4032_daily_bin1604.fits outfile=/scratch/kocevski/4295/expmap_655084801_655344001_4FGL_J0230.8+4032_daily_bin1604.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/4295/ltcube_655084801_655344001_4FGL_J0230.8+4032_daily_bin1604.fits
.....................!
real 192.14
user 185.68
sys 5.64

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/4295/ft1_filtered_4FGL_J0230.8+4032_daily_bin1604.fits scfile=/scratch/kocevski/4295/ft2_4FGL_J0230.8+4032_daily_bin1604.fits outfile=/scratch/kocevski/4295/cmap_655084801_655344001_4FGL_J0230.8+4032_daily_bin1604.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 0.57
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/4295/ft1_filtered_4FGL_J0230.8+4032_daily_bin1604.fits scfile=/scratch/kocevski/4295/ft2_4FGL_J0230.8+4032_daily_bin1604.fits outfile=/scratch/kocevski/4295/cmap_HighResolution_655084801_655344001_4FGL_J0230.8+4032_daily_bin1604.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 0.55
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10741E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    93.735       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .30268E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .11850E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.4577       1.0000         .10000E-03   10000.    
     8 'norm      '    .22576E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10592E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .84071       1.0000         .10000E-03   10000.    
    11 'norm      '    .74296       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    14.737       1.0000         .10000E-03   10000.    
    16 'norm      '    .10170E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .13952E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    10.036       1.0000         .10000E-03   10000.    
    20 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .16434E-02   1.0000         .10000E-03   10000.    
    22 'Prefactor '    33.023       1.0000         .10000E-03   10000.    
    23 'norm      '    .10341E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .73613       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0803       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=   3685.242     FROM MIGRAD    STATUS=CONVERGED    607 CALLS     2959 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    27.374       -.22383E-05** at limit **
   2  Prefactor     93.950        203.00        .44023E-05    .29989E-04
   3  Prefactor     .10001E-03    30.617       -.46017E-05** at limit **
   4  Prefactor     .10000E-03    237.98       -.12532E-06** at limit **
   5  Prefactor     .10000E-03    238.67        .13474E-05** at limit **
   6  norm          .10000E-03    18.896       -.23695E-06** at limit **
   7  Prefactor     4.5310        143.37        .12187E-05   -.40801E-05
   8  norm          .10000E-03    19.753       -.44240E-05** at limit **
   9  Prefactor     .10000E-03    130.47       -.27863E-06** at limit **
  10  norm          .84512        2.5408       -.23820E-06   -.11479E-03
  11  norm          .74349        .80695        .67453E-07    .32211E-03
  12  Prefactor     .10000E-03    5.0286        .59457E-07** at limit **
  13  norm          .10000E-03    4.3551        .46622E-07** at limit **
  14  Prefactor     .10000E-03    56.812        .19903E-06** at limit **
  15  norm          14.737        10.046        .25325E-06    .50061E-04
  16  norm          .10000E-03    16.770        .24895E-06** at limit **
  17  Prefactor     .10001E-03    430.92       -.12409E-05** at limit **
  18  Prefactor     .10000E-03    3.1373        .30588E-06** at limit **
  19  norm          10.040        7.0520       -.27607E-06   -.12851E-03
  20  norm          .10000E-03    32.694        .59323E-06** at limit **
  21  Prefactor     .10136E-03    44.529       -.80376E-05** at limit **
  22  Prefactor     33.143        53.549        .30415E-05    .34705E-03
  23  norm          .10000E-03    .40459        .34499E-06** at limit **
  24  Normalizat    .73513        .49612       -.61638E-05    .52110E-05
  25  Prefactor     1.0804        .13814        .53701E-06    .13475E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100001
  Prefactor  = 93.9498
  Prefactor  = 0.000100007
  Prefactor  = 0.000100003
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 4.53098
  norm       = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.84512
  norm       = 0.743493
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 14.7371
  norm       = 0.0001
  Prefactor  = 0.000100008
  Prefactor  = 0.0001
  norm       = 10.0402
  norm       = 0.0001
  Prefactor  = 0.000101357
  Prefactor  = 33.1426
  norm       = 0.000100001
  Normalizat = 0.735127
  Prefactor  = 1.08037
 **********
 **   18 **HESSE 
 **********

 FCN=   3685.242     FROM HESSE     STATUS=OK           427 CALLS     3386 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    27.510        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     93.950        202.92        .20755E-03   -1.3766    
   3  Prefactor     .10001E-03    30.868        .21386E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    236.71        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    237.86        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    18.896        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     4.5310        142.26        .19072E-03   -1.5282    
   8  norm          .10000E-03    29.766        .34843E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    131.08        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .84512        2.0792        .13018E-03   -1.5524    
  11  norm          .74349        .77106        .54636E-03   -1.5536    
  12  Prefactor     .10000E-03    5.0324        .13296E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    4.3577        .12373E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    56.840        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          14.737        10.039        .10434E-03   -1.4940    
  16  norm          .10000E-03    16.845        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10001E-03    427.80        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    3.2865        .20994E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          10.040        7.0491        .63244E-03   -1.5074    
  20  norm          .10000E-03    32.772        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10136E-03    139.06        .37759E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     33.143        55.432        .69730E-04   -1.4556    
  23  norm          .10000E-03    .50025        .64234E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .73513        .50435        .60795E-03   -1.0252    
  25  Prefactor     1.0804        .14633        .14729E-03   -.90096    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.2409e-08
Minuit parameter uncertainties:
  1  0.000391381
  2  204.451
  3  0.000916329
  4  0.00157842
  5  0.000701927
  6  2.80849e-05
  7  50.91
  8  0.000308505
  9  0.000313645
  10  2.07935
  11  0.771069
  12  9.9761e-06
  13  6.12241e-06
  14  7.04675e-05
  15  10.0399
  16  3.77172e-05
  17  0.00365482
  18  1.84189e-05
  19  7.04971
  20  7.78426e-05
  21  0.0275373
  22  55.5187
  23  4.25792e-05
  24  0.507586
  25  0.146389
Done.

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

Extracting fit parameters...

4FGL J0230.8+4032
   Spectrum: LogParabola
305         norm:  1.000e-04  6.122e-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.080e+00  1.464e-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:  7.351e-01  5.076e-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.32e-07 ph cm-2 s-1
Energy Flux Upper Limit: 4.68e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/4295/likelihoodResults_655084801_655344001_4FGL_J0230.8+4032_daily_bin1604.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) = 3685.24354567
delta logL = -0.00106461340147

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3685.24248102
delta logL = 3.73370312445e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2955       1.0000          .0000       5.0000    
     3 'Normalizat'    .73506       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0804       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=   3685.242     FROM MIGRAD    STATUS=CONVERGED     96 CALLS      240 TOTAL
                     EDM=   .48E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    221.48        .12427E-01** at limit **
   2  alpha         1.9069        4.0386        .16531        .33699E-08
   3  Normalizat    .73513        .85363E-01    .60796E-03    .12005E-04
   4  Prefactor     1.0804        .24893E-01    .14730E-03    .53990E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.90694
  Normalizat = 0.735127
  Prefactor  = 1.08037
 **********
 **   18 **HESSE 
 **********

 FCN=   3685.242     FROM HESSE     STATUS=OK            23 CALLS      263 TOTAL
                     EDM=   .20E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    4.7648        .12927E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.9069        3.7755        .66123E-02   -.23951    
   3  Normalizat    .73513        .48653        .24318E-04   -1.0252    
   4  Prefactor     1.0804        .14266        .58918E-05   -.90096    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.99938e-12
Minuit parameter uncertainties:
  1  7.8718e-07
  2  287.165
  3  0.489437
  4  0.142715
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/4295': 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) = 3685.24248009
delta logL = 9.63531419984e-07

Extracting fit parameters...

4FGL J0230.8+4032
   Spectrum: LogParabola
305         norm:  1.000e-04  7.872e-07  1.000e-04  1.000e+04 ( 1.000e-12)
306        alpha:  1.907e+00  2.872e+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:  1.080e+00  1.427e-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:  7.351e-01  4.894e-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/4295/cmap_HighResolution_655084801_655344001_4FGL_J0230.8+4032_daily_bin1604.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.68e-05', job_status='DONE', photon_flux_upper_limit='1.32e-07', time_completed='2021-10-08 00:15:24.515618', job_id='4295', GAL2='1.08', fit_tolerance='1e-08', EG2='0.74', EG='0.74', time_epoch_completed='1633677324.52', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.08', dlogl='9.64e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.31' WHERE bin_id='1604' AND source_name='4FGL J0230.8+4032' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Oct  8 00:15:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0158>
Subject: Job 4295: <4FGL_J0230.8+4032_daily_bin1604> in cluster <slac> Done

Job <4FGL_J0230.8+4032_daily_bin1604> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Fri Oct  8 00:00:45 2021
Job was executed on host(s) <bullet0158>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Oct  8 00:02:54 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Oct  8 00:02:54 2021
Terminated at Fri Oct  8 00:15:25 2021
Results reported at Fri Oct  8 00:15:25 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0230.8+4032_daily_bin1604 37.7086 40.5416 655084801 655344001 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 :                                   584.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             268.70 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   750 sec.
    Turnaround time :                            880 sec.

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

