/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 186 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 = 7378
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1230.2+2517_daily_bin370
RA = 187.56, Dec = 25.2983
tmin = 335232001, tmax = 335491201
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='738676', job_status='RUN', time_executed='2021-09-05 20:44:28.133427', time_epoch_executed='1630899868.13' WHERE source_name='4FGL J1230.2+2517' and cadence='daily' and bin_id='370'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/738676

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/738676/ft1_4FGL_J1230.2+2517_daily_bin370.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/738676/ft2_4FGL_J1230.2+2517_daily_bin370.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/738676/ft1_4FGL_J1230.2+2517_daily_bin370.fits outfile=/scratch/kocevski/738676/ft1_filteredMKT_4FGL_J1230.2+2517_daily_bin370.fits ra=187.56 dec=25.2983 rad=12.0 tmin=335232001.0 tmax=335491201.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.82
user 3.57
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/738676/ft2_4FGL_J1230.2+2517_daily_bin370.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/738676/ft1_filteredMKT_4FGL_J1230.2+2517_daily_bin370.fits evtable="EVENTS" outfile="/scratch/kocevski/738676/ft1_filtered_4FGL_J1230.2+2517_daily_bin370.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.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/738676/ft1_filtered_4FGL_J1230.2+2517_daily_bin370.fits" evtable="EVENTS" scfile=/scratch/kocevski/738676/ft2_4FGL_J1230.2+2517_daily_bin370.fits sctable="SC_DATA" outfile=/scratch/kocevski/738676/ltcube_335232001_335491201_4FGL_J1230.2+2517_daily_bin370.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/738676/ft2_4FGL_J1230.2+2517_daily_bin370.fits
.....................!
real 18.12
user 17.72
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/738676/ft1_filtered_4FGL_J1230.2+2517_daily_bin370.fits evtable="EVENTS" scfile=/scratch/kocevski/738676/ft2_4FGL_J1230.2+2517_daily_bin370.fits sctable="SC_DATA" expcube=/scratch/kocevski/738676/ltcube_335232001_335491201_4FGL_J1230.2+2517_daily_bin370.fits outfile=/scratch/kocevski/738676/expmap_335232001_335491201_4FGL_J1230.2+2517_daily_bin370.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/738676/ltcube_335232001_335491201_4FGL_J1230.2+2517_daily_bin370.fits
.....................!
real 193.95
user 188.27
sys 5.06

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/738676/ft1_filtered_4FGL_J1230.2+2517_daily_bin370.fits scfile=/scratch/kocevski/738676/ft2_4FGL_J1230.2+2517_daily_bin370.fits outfile=/scratch/kocevski/738676/cmap_335232001_335491201_4FGL_J1230.2+2517_daily_bin370.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.40
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/738676/ft1_filtered_4FGL_J1230.2+2517_daily_bin370.fits scfile=/scratch/kocevski/738676/ft2_4FGL_J1230.2+2517_daily_bin370.fits outfile=/scratch/kocevski/738676/cmap_HighResolution_335232001_335491201_4FGL_J1230.2+2517_daily_bin370.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/738676/ft1_filtered_4FGL_J1230.2+2517_daily_bin370.fits evtable="EVENTS" scfile=/scratch/kocevski/738676/ft2_4FGL_J1230.2+2517_daily_bin370.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/738676/Model_4FGL_J1230.2+2517_daily_bin370.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/738676/ft1_filtered_4FGL_J1230.2+2517_daily_bin370.fits.....................!
real 54.25
user 52.63
sys 1.25

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/738676/ft1_filtered_4FGL_J1230.2+2517_daily_bin370.fits', '/scratch/kocevski/738676/ft2_4FGL_J1230.2+2517_daily_bin370.fits', expMap='/scratch/kocevski/738676/expmap_335232001_335491201_4FGL_J1230.2+2517_daily_bin370.fits', expCube='/scratch/kocevski/738676/ltcube_335232001_335491201_4FGL_J1230.2+2517_daily_bin370.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/738676/Model_4FGL_J1230.2+2517_daily_bin370.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/738676/ft1_filtered_4FGL_J1230.2+2517_daily_bin370.fits
Spacecraft file(s): /scratch/kocevski/738676/ft2_4FGL_J1230.2+2517_daily_bin370.fits
Exposure map: /scratch/kocevski/738676/expmap_335232001_335491201_4FGL_J1230.2+2517_daily_bin370.fits
Exposure cube: /scratch/kocevski/738676/ltcube_335232001_335491201_4FGL_J1230.2+2517_daily_bin370.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/738676/Model_4FGL_J1230.2+2517_daily_bin370.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) = 5905.82364251

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    6.1504       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .11803E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10413E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    6.2119       1.0000         .10000E-03   10000.    
    10 'norm      '    2.5500       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .44101E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.8154       1.0000         .10000E-03   10000.    
    15 'norm      '    .33895       1.0000         .10000E-03   10000.    
    16 'norm      '    3.5711       1.0000         .10000E-03   10000.    
    17 'Prefactor '    23.700       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10471E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    3.9459       1.0000         .10000E-03   10000.    
    21 'norm      '    .11540E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    8.4328       1.0000         .10000E-03   10000.    
    23 'norm      '    1.6230       1.0000         .10000E-03   10000.    
    24 'norm      '    8.3113       1.0000         .10000E-03   10000.    
    25 'norm      '    3.9101       1.0000         .10000E-03   10000.    
    26 'norm      '    4.0713       1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.2596       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .94835       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=   5905.768     FROM MIGRAD    STATUS=CONVERGED    702 CALLS     3022 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    10.392        .66542E-06** at limit **
   2  Prefactor     .10000E-03    14.489       -.83234E-05** at limit **
   3  Prefactor     .10000E-03    .69311        .36234E-07** at limit **
   4  Prefactor     .10000E-03    16.358        .12884E-04** at limit **
   5  norm          6.1500        1.8318       -.60705E-07   -.65917E-03
   6  Prefactor     .10000E-03    3.0121        .20735E-06** at limit **
   7  Prefactor     .10000E-03    45.779        .10021E-04** at limit **
   8  Prefactor     .10000E-03    2.2194        .34630E-07** at limit **
   9  Prefactor     6.2059        4.2511       -.52989E-06   -.34834E-04
  10  norm          2.5509        2.6725       -.17562E-06   -.51565E-03
  11  Prefactor     .10000E-03    3.2759       -.15358E-06** at limit **
  12  Prefactor     .10000E-03    1.8621       -.16364E-07** at limit **
  13  Prefactor     .10002E-03    1.4534        .89760E-06** at limit **
  14  Prefactor     1.8129        6.6653       -.39005E-06   -.16374E-03
  15  norm          .33897        .28517       -.30304E-07   -.46639E-03
  16  norm          3.5742        6.1871       -.69300E-07   -.15887E-02
  17  Prefactor     23.704        12.245       -.10990E-06   -.29464E-03
  18  Prefactor     .10000E-03    60.660       -.41112E-06** at limit **
  19  Prefactor     .10000E-03    23.694       -.91978E-05** at limit **
  20  Prefactor     3.9436        8.6391       -.28923E-06   -.57502E-03
  21  norm          .10000E-03    2.8087        .42113E-06** at limit **
  22  Prefactor     8.3752        21.926       -.19465E-04   -.40177E-04
  23  norm          1.6218        2.8606        .61428E-06   -.25715E-02
  24  norm          8.3129        5.8795        .31680E-06   -.26103E-04
  25  norm          3.9070        7.5108       -.95993E-06    .47064E-05
  26  norm          4.0693        15.179       -.44640E-06   -.16297E-03
  27  Normalizat    1.2600        .19246        .13062E-05   -.30406E-03
  28  Prefactor     .94799        .19607       -.71740E-07   -.85061E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.15002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.20588
  norm       = 2.55091
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.00010002
  Prefactor  = 1.81285
  norm       = 0.338966
  norm       = 3.57416
  Prefactor  = 23.7041
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.94356
  norm       = 0.0001
  Prefactor  = 8.37521
  norm       = 1.62177
  norm       = 8.31291
  norm       = 3.90696
  norm       = 4.06934
  Normalizat = 1.25999
  Prefactor  = 0.947993
 **********
 **   18 **HESSE 
 **********

 FCN=   5905.768     FROM HESSE     STATUS=OK           523 CALLS     3545 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    10.420        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    14.672        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    .70077        .62453E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    16.374        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          6.1500        1.8372        .54116E-04   -1.5212    
   6  Prefactor     .10000E-03    3.0883        .26023E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    46.218        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    3.9291        .20817E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     6.2059        4.0222        .11721E-03   -1.5210    
  10  norm          2.5509        2.6020        .12113E-03   -1.5389    
  11  Prefactor     .10000E-03    3.2841        .13583E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    1.9089        .20240E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10002E-03    5.2739        .17092E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     1.8129        6.5718        .29874E-03   -1.5439    
  15  norm          .33897        .27434        .34912E-03   -1.5592    
  16  norm          3.5742        6.5949        .10508E-02   -1.5330    
  17  Prefactor     23.704        12.107        .82281E-04   -1.4734    
  18  Prefactor     .10000E-03    61.015        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    23.675        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     3.9436        8.6036        .10154E-02   -1.5311    
  21  norm          .10000E-03    2.8532        .12583E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     8.3752        21.991        .13805E-03   -1.5129    
  23  norm          1.6218        5.2080        .14504E-02   -1.5453    
  24  norm          8.3129        6.0332        .12121E-03   -1.5131    
  25  norm          3.9070        7.6895        .20403E-03   -1.5313    
  26  norm          4.0693        15.142        .99910E-03   -1.5304    
  27  Normalizat    1.2600        .22790        .24758E-03   -.84769    
  28  Prefactor     .94799        .22987        .29639E-03   -.94484    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.69508e-08
Minuit parameter uncertainties:
  1  9.26979e-06
  2  3.06525e-07
  3  1.40667e-06
  4  2.78071e-05
  5  1.83718
  6  2.80121e-06
  7  9.70248e-05
  8  8.01651e-05
  9  4.02236
  10  2.60216
  11  3.26585e-06
  12  2.37551e-06
  13  0.000646315
  14  6.57443
  15  0.27434
  16  6.59624
  17  12.1078
  18  4.10451e-05
  19  5.25934e-06
  20  8.60626
  21  7.04315e-05
  22  22.0124
  23  5.20944
  24  6.03359
  25  7.69144
  26  15.1566
  27  0.228082
  28  0.230105
Done.

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

Extracting fit parameters...

4FGL J1230.2+2517
   Spectrum: LogParabola
325         norm:  3.574e+00  6.596e+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:  9.480e-01  2.301e-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.260e+00  2.281e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.53
Ra Dec: 187.560 25.298
Photon Flux Upper Limit: 9.28e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.52e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/738676/likelihoodResults_335232001_335491201_4FGL_J1230.2+2517_daily_bin370.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) = 5905.08416749
delta logL = 0.68368212771

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5905.06316473
delta logL = 0.704684887713

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.7132       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.1428       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1977       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98434       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=   5905.063     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      221 TOTAL
                     EDM=   .62E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.7079        42.296        .61816E-02    .66265E-03
   2  alpha         3.1443        4.0716        .37262        .61412E-04
   3  Normalizat    1.1976        .60687E-01    .57159E-01   -.13007E-04
   4  Prefactor     .98443        .60203E-01    .65864E-01   -.36731E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.70789
  alpha      = 3.1443
  Normalizat = 1.19759
  Prefactor  = 0.984432
 **********
 **   18 **HESSE 
 **********

 FCN=   5905.063     FROM HESSE     STATUS=OK            33 CALLS      254 TOTAL
                     EDM=   .47E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.7079        5.3123        .97409E-04   -1.5379    
   2  alpha         3.1443        1.2735        .13451E-01    .26066    
   3  Normalizat    1.1976        .22659        .25277E-03   -.86677    
   4  Prefactor     .98443        .23371        .29130E-03   -.93250    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.69307e-11
Minuit parameter uncertainties:
  1  5.31325
  2  1.34135
  3  0.226776
  4  0.23395
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/738676': 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) = 5905.06316358
delta logL = 0.70468603423

Extracting fit parameters...

4FGL J1230.2+2517
   Spectrum: LogParabola
325         norm:  2.708e+00  5.313e+00  1.000e-04  1.000e+04 ( 1.000e-12)
326        alpha:  3.144e+00  1.341e+00  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:  9.844e-01  2.340e-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.198e+00  2.268e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.99
Ra Dec: 187.560 25.298
Photon Index (Free Index): 3.14 +/- 1.34
Photon Flux (Free Index): 7.83e-08 +/- 7.10e-08
Energy Flux (Free Index): 1.52e-05 +/- 1.29e-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/738676/cmap_HighResolution_335232001_335491201_4FGL_J1230.2+2517_daily_bin370.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.52e-05', comment='SUCCESS', energy_flux2='1.52e-05', dlogl='7.05e-01', photon_flux2='7.83e-08', job_status='DONE', time_completed='2021-09-05 20:57:03.970113', photon_index_error2='1.34', photon_index2='3.14', ts='0.53', fit_tolerance='1e-08', GAL='0.95', photon_index_error='0.00', photon_flux_upper_limit='9.28e-08', energy_flux_error2='1.29e-05', EG='1.26', time_epoch_completed='1630900623.97', return_code='0', job_id='738676', GAL2='0.98', EG2='1.20', return_code2='0', photon_flux_error2='7.10e-08', ts2='1.99', photon_index='2.00' WHERE bin_id='370' AND source_name='4FGL J1230.2+2517' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 20:57:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0143>
Subject: Job 738676: <4FGL_J1230.2+2517_daily_bin370> in cluster <slac> Done

Job <4FGL_J1230.2+2517_daily_bin370> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Sun Sep  5 20:40:50 2021
Job was executed on host(s) <bullet0143>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 20:41:13 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:13 2021
Terminated at Sun Sep  5 20:57:06 2021
Results reported at Sun Sep  5 20:57:06 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1230.2+2517_daily_bin370 187.56 25.2983 335232001 335491201 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 :                                   754.08 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             263.16 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   953 sec.
    Turnaround time :                            976 sec.

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

