/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


Waiting 2 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

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

number of points = 7484
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1230.2+2517_daily_bin395
RA = 187.56, Dec = 25.2983
tmin = 341712001, tmax = 341971201
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='738714', job_status='RUN', time_executed='2021-09-05 20:41:42.735945', time_epoch_executed='1630899702.74' WHERE source_name='4FGL J1230.2+2517' and cadence='daily' and bin_id='395'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/738714

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/738714/ft1_4FGL_J1230.2+2517_daily_bin395.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/738714/ft2_4FGL_J1230.2+2517_daily_bin395.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/738714/ft1_4FGL_J1230.2+2517_daily_bin395.fits outfile=/scratch/kocevski/738714/ft1_filteredMKT_4FGL_J1230.2+2517_daily_bin395.fits ra=187.56 dec=25.2983 rad=12.0 tmin=341712001.0 tmax=341971201.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.49
user 3.25
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/738714/ft2_4FGL_J1230.2+2517_daily_bin395.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/738714/ft2_4FGL_J1230.2+2517_daily_bin395.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/738714/ft1_filteredMKT_4FGL_J1230.2+2517_daily_bin395.fits evtable="EVENTS" outfile="/scratch/kocevski/738714/ft1_filtered_4FGL_J1230.2+2517_daily_bin395.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.54
user 0.36
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/738714/ft1_filtered_4FGL_J1230.2+2517_daily_bin395.fits" evtable="EVENTS" scfile=/scratch/kocevski/738714/ft2_4FGL_J1230.2+2517_daily_bin395.fits sctable="SC_DATA" outfile=/scratch/kocevski/738714/ltcube_341712001_341971201_4FGL_J1230.2+2517_daily_bin395.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/738714/ft2_4FGL_J1230.2+2517_daily_bin395.fits
.....................!
real 18.24
user 17.82
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/738714/ft1_filtered_4FGL_J1230.2+2517_daily_bin395.fits evtable="EVENTS" scfile=/scratch/kocevski/738714/ft2_4FGL_J1230.2+2517_daily_bin395.fits sctable="SC_DATA" expcube=/scratch/kocevski/738714/ltcube_341712001_341971201_4FGL_J1230.2+2517_daily_bin395.fits outfile=/scratch/kocevski/738714/expmap_341712001_341971201_4FGL_J1230.2+2517_daily_bin395.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/738714/ltcube_341712001_341971201_4FGL_J1230.2+2517_daily_bin395.fits
.....................!
real 194.27
user 187.52
sys 5.72

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

Setting source of interest to:
4FGL J1230.2+2517 @ 187.56 25.2983

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/738714/ft1_filtered_4FGL_J1230.2+2517_daily_bin395.fits scfile=/scratch/kocevski/738714/ft2_4FGL_J1230.2+2517_daily_bin395.fits outfile=/scratch/kocevski/738714/cmap_341712001_341971201_4FGL_J1230.2+2517_daily_bin395.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=187.56 yref=25.2983 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.58
user 0.38
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/738714/ft1_filtered_4FGL_J1230.2+2517_daily_bin395.fits scfile=/scratch/kocevski/738714/ft2_4FGL_J1230.2+2517_daily_bin395.fits outfile=/scratch/kocevski/738714/cmap_HighResolution_341712001_341971201_4FGL_J1230.2+2517_daily_bin395.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=187.56 yref=25.2983 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.58
user 0.42
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/738714/ft1_filtered_4FGL_J1230.2+2517_daily_bin395.fits evtable="EVENTS" scfile=/scratch/kocevski/738714/ft2_4FGL_J1230.2+2517_daily_bin395.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/738714/Model_4FGL_J1230.2+2517_daily_bin395.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/738714/ft1_filtered_4FGL_J1230.2+2517_daily_bin395.fits.....................!
real 54.90
user 53.37
sys 1.24

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/738714/ft1_filtered_4FGL_J1230.2+2517_daily_bin395.fits', '/scratch/kocevski/738714/ft2_4FGL_J1230.2+2517_daily_bin395.fits', expMap='/scratch/kocevski/738714/expmap_341712001_341971201_4FGL_J1230.2+2517_daily_bin395.fits', expCube='/scratch/kocevski/738714/ltcube_341712001_341971201_4FGL_J1230.2+2517_daily_bin395.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/738714/Model_4FGL_J1230.2+2517_daily_bin395.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1230.2+2517'

4FGL J1230.2+2517
   Spectrum: LogParabola
325         norm:  6.557e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
326        alpha:  2.001e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
327         beta:  5.434e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
328           Eb:  8.113e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/738714/ft1_filtered_4FGL_J1230.2+2517_daily_bin395.fits
Spacecraft file(s): /scratch/kocevski/738714/ft2_4FGL_J1230.2+2517_daily_bin395.fits
Exposure map: /scratch/kocevski/738714/expmap_341712001_341971201_4FGL_J1230.2+2517_daily_bin395.fits
Exposure cube: /scratch/kocevski/738714/ltcube_341712001_341971201_4FGL_J1230.2+2517_daily_bin395.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/738714/Model_4FGL_J1230.2+2517_daily_bin395.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) = 5899.1282742

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .66862       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .59575E-01   1.0000         .10000E-03   10000.    
     5 'norm      '    3.7798       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    15.958       1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.2317       1.0000         .10000E-03   10000.    
    10 'norm      '    5.2397       1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.1999       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .64206       1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.3887       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .39138       1.0000         .10000E-03   10000.    
    16 'norm      '    8.2085       1.0000         .10000E-03   10000.    
    17 'Prefactor '    10.097       1.0000         .10000E-03   10000.    
    18 'Prefactor '    49.136       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    1.4987       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    3.8633       1.0000         .10000E-03   10000.    
    24 'norm      '    3.2709       1.0000         .10000E-03   10000.    
    25 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.1309       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .83776       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5900E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5899.090     FROM MIGRAD    STATUS=CONVERGED    719 CALLS     3063 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.1542       -.15132E-08** at limit **
   2  Prefactor     .10000E-03    4.3541        .34231E-10** at limit **
   3  Prefactor     .66884        1.2342       -.21992E-07   -.52987E-04
   4  Prefactor     .10000E-03    23.291       -.15336E-07** at limit **
   5  norm          3.7800        1.4759       -.99824E-09   -.28840E-03
   6  Prefactor     .10000E-03    1.7976       -.18273E-08** at limit **
   7  Prefactor     .10000E-03    9.3565        .46577E-08** at limit **
   8  Prefactor     15.957        4.3622       -.61184E-08    .13023E-03
   9  Prefactor     5.2316        3.4367        .32869E-08   -.27158E-03
  10  norm          5.2396        3.5036        .10719E-07    .10657E-03
  11  Prefactor     5.1999        2.4009       -.31653E-06   -.51691E-03
  12  Prefactor     .64205        1.9528       -.55150E-07   -.11851E-03
  13  Prefactor     3.3887        2.9534       -.73340E-08   -.11396E-03
  14  Prefactor     .10000E-03    1.8001       -.58100E-09** at limit **
  15  norm          .39139        .22542       -.23191E-08    .79069E-04
  16  norm          8.2085        5.2620       -.20371E-08   -.29292E-03
  17  Prefactor     10.097        8.4192        .20075E-07   -.26261E-03
  18  Prefactor     49.136        35.219       -.22391E-06    .84540E-03
  19  Prefactor     .10000E-03    37.595        .22488E-07** at limit **
  20  Prefactor     .10000E-03    3.9974       -.38037E-08** at limit **
  21  norm          1.4998        4.3054       -.77123E-07   -.40581E-03
  22  Prefactor     .10000E-03    15.803        .15904E-08** at limit **
  23  norm          3.8630        3.4986       -.48180E-08   -.23848E-03
  24  norm          3.2710        3.6439       -.10153E-07   -.66533E-05
  25  norm          .10000E-03    2.7848        .14755E-08** at limit **
  26  norm          .10000E-03    9.7683        .85113E-09** at limit **
  27  Normalizat    1.1310        .18564        .76002E-07   -.72738E-04
  28  Prefactor     .83775        .19529        .51322E-07   -.38522E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.668837
  Prefactor  = 0.0001
  norm       = 3.78001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.9574
  Prefactor  = 5.23163
  norm       = 5.23962
  Prefactor  = 5.19994
  Prefactor  = 0.642053
  Prefactor  = 3.38869
  Prefactor  = 0.0001
  norm       = 0.391388
  norm       = 8.20847
  Prefactor  = 10.0967
  Prefactor  = 49.1365
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.49982
  Prefactor  = 0.0001
  norm       = 3.86303
  norm       = 3.27099
  norm       = 0.0001
  norm       = 0.0001
  Normalizat = 1.13097
  Prefactor  = 0.837755
 **********
 **   18 **HESSE 
 **********

 FCN=   5899.090     FROM HESSE     STATUS=OK           533 CALLS     3596 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.1640        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    4.3653        .15652E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .66884        1.0240        .11239E-02   -1.5544    
   4  Prefactor     .10000E-03    27.525        .10606       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          3.7800        1.4754        .55444E-04   -1.5319    
   6  Prefactor     .10000E-03    1.8538        .20101E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    9.3625        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     15.957        4.3616        .77186E-04   -1.4909    
   9  Prefactor     5.2316        3.4332        .10703E-03   -1.5250    
  10  norm          5.2396        3.4562        .10270E-03   -1.5250    
  11  Prefactor     5.1999        5.8490        .88142E-03   -1.5252    
  12  Prefactor     .64205        1.9013        .16431E-03   -1.5548    
  13  Prefactor     3.3887        2.9066        .11030E-03   -1.5340    
  14  Prefactor     .10000E-03    1.8016        .10061E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .39139        .22215        .26380E-04   -1.5583    
  16  norm          8.2085        5.2636        .13414E-03   -1.5135    
  17  Prefactor     10.097        8.4088        .12610E-03   -1.5072    
  18  Prefactor     49.136        35.094        .57207E-04   -1.4305    
  19  Prefactor     .10000E-03    37.613        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    4.0234        .14993E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          1.4998        4.3956        .25902E-03   -1.5463    
  22  Prefactor     .10000E-03    15.852        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          3.8630        3.5016        .13177E-03   -1.5315    
  24  norm          3.2710        3.6205        .14616E-03   -1.5346    
  25  norm          .10000E-03    2.7867        .12499E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    9.7785        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    1.1310        .22168        .24014E-03   -.88764    
  28  Prefactor     .83775        .23091        .30282E-03   -.98351    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.57897e-09
Minuit parameter uncertainties:
  1  2.93502e-06
  2  1.84e-06
  3  1.02408
  4  4.10204e-05
  5  1.47543
  6  3.52775e-07
  7  8.83466e-06
  8  4.3617
  9  3.43336
  10  3.45633
  11  5.84962
  12  1.90151
  13  2.9067
  14  1.54831e-07
  15  0.222152
  16  5.26385
  17  8.40978
  18  35.1089
  19  0.00011459
  20  1.98921e-06
  21  4.39656
  22  1.84494e-05
  23  3.50182
  24  3.62071
  25  5.94584e-07
  26  7.37921e-06
  27  0.221862
  28  0.23118
Done.

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

Extracting fit parameters...

4FGL J1230.2+2517
   Spectrum: LogParabola
325         norm:  8.208e+00  5.264e+00  1.000e-04  1.000e+04 ( 1.000e-12)
326        alpha:  2.001e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
327         beta:  5.434e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
328           Eb:  8.113e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
587    Prefactor:  8.378e-01  2.312e-01  0.000e+00  1.000e+01 ( 1.000e+00)
588        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
589        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
586   Normalization:  1.131e+00  2.219e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.67
Ra Dec: 187.560 25.298
Photon Index (Fixed Index): 2.00 +/- 0.00
Photon Flux (Fixed Index): 4.82e-08 +/- 3.09e-08
Energy Flux (Fixed Index): 2.87e-05 +/- 1.84e-05

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) = 5897.27951692
delta logL = 1.81037320822

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5897.27871268
delta logL = 1.81117745436

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.0497       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.9657       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0551       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88674       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5900E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5897.279     FROM MIGRAD    STATUS=CONVERGED     46 CALLS      249 TOTAL
                     EDM=   .60E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.0497        39.345        .44734E-02    .16054E-02
   2  alpha         2.9657        3.9192        .20092        .88221E-04
   3  Normalizat    1.0551        .85849E-01    .40226E-01    .21754E-03
   4  Prefactor     .88673        .90503E-01    .66675E-01    .21551E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 5.04974
  alpha      = 2.9657
  Normalizat = 1.05513
  Prefactor  = 0.886731
 **********
 **   18 **HESSE 
 **********

 FCN=   5897.279     FROM HESSE     STATUS=OK            33 CALLS      282 TOTAL
                     EDM=   .45E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.0497        4.4590        .73674E-04   -1.5258    
   2  alpha         2.9657        .58693        .84150E-02    .18738    
   3  Normalizat    1.0551        .21232        .12335E-02   -.91206    
   4  Prefactor     .88673        .23179        .29493E-03   -.96606    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.46178e-10
Minuit parameter uncertainties:
  1  4.45928
  2  0.592666
  3  0.212493
  4  0.232048
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/738714': 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) = 5897.27871268
delta logL = 1.81117745497

Extracting fit parameters...

4FGL J1230.2+2517
   Spectrum: LogParabola
325         norm:  5.050e+00  4.459e+00  1.000e-04  1.000e+04 ( 1.000e-12)
326        alpha:  2.966e+00  5.927e-01  0.000e+00  5.000e+00 ( 1.000e+00)
327         beta:  5.434e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
328           Eb:  8.113e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
587    Prefactor:  8.867e-01  2.320e-01  0.000e+00  1.000e+01 ( 1.000e+00)
588        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
589        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
586   Normalization:  1.055e+00  2.125e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.40
Ra Dec: 187.560 25.298
Photon Index (Free Index): 2.97 +/- 0.59
Photon Flux (Free Index): 1.10e-07 +/- 5.27e-08
Energy Flux (Free Index): 2.32e-05 +/- 1.10e-05

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/738714/cmap_HighResolution_341712001_341971201_4FGL_J1230.2+2517_daily_bin395.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.82e-08', energy_flux2='2.32e-05', photon_flux_error='3.09e-08', dlogl='1.81e+00', energy_flux='2.87e-05', photon_flux2='1.10e-07', job_status='DONE', time_completed='2021-09-05 20:53:16.209501', photon_index_error2='0.59', photon_index2='2.97', ts='4.67', fit_tolerance='1e-08', GAL='0.84', photon_index_error='0.00', energy_flux_error2='1.10e-05', EG='1.13', time_epoch_completed='1630900396.21', return_code='0', job_id='738714', GAL2='0.89', EG2='1.06', return_code2='0', energy_flux_error='1.84e-05', photon_flux_error2='5.27e-08', ts2='8.40', photon_index='2.00' WHERE bin_id='395' AND source_name='4FGL J1230.2+2517' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 20:53:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0122>
Subject: Job 738714: <4FGL_J1230.2+2517_daily_bin395> in cluster <slac> Done

Job <4FGL_J1230.2+2517_daily_bin395> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Sun Sep  5 20:40:53 2021
Job was executed on host(s) <bullet0122>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 20:41:31 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep  5 20:41:31 2021
Terminated at Sun Sep  5 20:53:16 2021
Results reported at Sun Sep  5 20:53:16 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1230.2+2517_daily_bin395 187.56 25.2983 341712001 341971201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1230.2+2517 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   689.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             331.75 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   705 sec.
    Turnaround time :                            743 sec.

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

