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

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


Waiting 5 seconds before starting...
Proceeding.

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

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

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

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

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


Performing analysis on: 4FGL_J1230.2+2517_daily_bin365
RA = 187.56, Dec = 25.2983
tmin = 333936001, tmax = 334195201
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='738669', job_status='RUN', time_executed='2021-09-05 20:41:28.606637', time_epoch_executed='1630899688.61' WHERE source_name='4FGL J1230.2+2517' and cadence='daily' and bin_id='365'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/738669

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/738669/ft1_4FGL_J1230.2+2517_daily_bin365.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/738669/ft2_4FGL_J1230.2+2517_daily_bin365.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/738669/ft1_4FGL_J1230.2+2517_daily_bin365.fits outfile=/scratch/kocevski/738669/ft1_filteredMKT_4FGL_J1230.2+2517_daily_bin365.fits ra=187.56 dec=25.2983 rad=12.0 tmin=333936001.0 tmax=334195201.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.57
user 3.34
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/738669/ft1_filtered_4FGL_J1230.2+2517_daily_bin365.fits" evtable="EVENTS" scfile=/scratch/kocevski/738669/ft2_4FGL_J1230.2+2517_daily_bin365.fits sctable="SC_DATA" outfile=/scratch/kocevski/738669/ltcube_333936001_334195201_4FGL_J1230.2+2517_daily_bin365.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/738669/ft2_4FGL_J1230.2+2517_daily_bin365.fits
.....................!
real 15.94
user 15.55
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/738669/ft1_filtered_4FGL_J1230.2+2517_daily_bin365.fits evtable="EVENTS" scfile=/scratch/kocevski/738669/ft2_4FGL_J1230.2+2517_daily_bin365.fits sctable="SC_DATA" expcube=/scratch/kocevski/738669/ltcube_333936001_334195201_4FGL_J1230.2+2517_daily_bin365.fits outfile=/scratch/kocevski/738669/expmap_333936001_334195201_4FGL_J1230.2+2517_daily_bin365.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/738669/ltcube_333936001_334195201_4FGL_J1230.2+2517_daily_bin365.fits
.....................!
real 193.42
user 187.93
sys 4.89

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/738669/ft1_filtered_4FGL_J1230.2+2517_daily_bin365.fits scfile=/scratch/kocevski/738669/ft2_4FGL_J1230.2+2517_daily_bin365.fits outfile=/scratch/kocevski/738669/cmap_333936001_334195201_4FGL_J1230.2+2517_daily_bin365.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.57
user 0.41
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/738669/ft1_filtered_4FGL_J1230.2+2517_daily_bin365.fits scfile=/scratch/kocevski/738669/ft2_4FGL_J1230.2+2517_daily_bin365.fits outfile=/scratch/kocevski/738669/cmap_HighResolution_333936001_334195201_4FGL_J1230.2+2517_daily_bin365.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.57
user 0.40
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.8076       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .96457       1.0000         .10000E-03   10000.    
     4 'Prefactor '    56.334       1.0000         .10000E-03   10000.    
     5 'norm      '    2.4395       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.5733       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .36540E-01   1.0000         .10000E-03   10000.    
    10 'norm      '    2.4087       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.7137       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    2.2551       1.0000         .10000E-03   10000.    
    16 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    20.277       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.5609       1.0000         .10000E-03   10000.    
    21 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    2.4824       1.0000         .10000E-03   10000.    
    23 'norm      '    1.4829       1.0000         .10000E-03   10000.    
    24 'norm      '    28.008       1.0000         .10000E-03   10000.    
    25 'norm      '    8.2208       1.0000         .10000E-03   10000.    
    26 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.1576       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .93322       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=   6348.237     FROM MIGRAD    STATUS=CONVERGED    721 CALLS     3553 TOTAL
                     EDM=   .37E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.7565        38.951       -.11069E-05   -.68110E-04
   2  Prefactor     .10000E-03    7.6785       -.57683E-07** at limit **
   3  Prefactor     .97037        1.8306        .17016E-05   -.22078E-03
   4  Prefactor     56.365        39.948       -.23030E-05   -.12437E-03
   5  norm          2.4406        1.4432        .76724E-07   -.44285E-03
   6  Prefactor     .10000E-03    3.7881       -.15420E-06** at limit **
   7  Prefactor     .10000E-03    19.983       -.40840E-06** at limit **
   8  Prefactor     2.5561        4.0142        .25567E-06   -.11190E-04
   9  Prefactor     .82334E-01    2.8940       -.23088E-05    .70173E-03
  10  norm          2.4091        2.1944        .60074E-07    .97987E-05
  11  Prefactor     .10000E-03    2.6772        .11701E-07** at limit **
  12  Prefactor     .10000E-03    .85164        .11867E-07** at limit **
  13  Prefactor     3.7145        2.4492        .10823E-06   -.90144E-04
  14  Prefactor     .10000E-03    2.2349        .14499E-07** at limit **
  15  norm          2.2551        .42277        .13338E-07   -.41735E-03
  16  norm          .10000E-03    1.1860        .76137E-08** at limit **
  17  Prefactor     20.282        12.442        .19143E-06   -.24675E-04
  18  Prefactor     .10000E-03    9.9808       -.23996E-06** at limit **
  19  Prefactor     .10000E-03    36.935        .15525E-05** at limit **
  20  Prefactor     1.5626        7.6596        .59835E-05    .14581E-03
  21  norm          .10000E-03    2.0330        .18253E-07** at limit **
  22  Prefactor     2.4892        44.290        .62800E-06   -.28150E-05
  23  norm          1.4849        4.0201        .29091E-05    .16857E-03
  24  norm          28.020        11.629        .52380E-07   -.97632E-05
  25  norm          8.2053        17.117        .18376E-06    .60974E-05
  26  norm          .10000E-03    11.093        .36944E-06** at limit **
  27  Normalizat    1.1570        .20623       -.21086E-05   -.12624E-03
  28  Prefactor     .93364        .20120       -.39165E-06   -.18763E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.75654
  Prefactor  = 0.0001
  Prefactor  = 0.970372
  Prefactor  = 56.3649
  norm       = 2.44062
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 2.55614
  Prefactor  = 0.0823339
  norm       = 2.40909
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.71449
  Prefactor  = 0.0001
  norm       = 2.25511
  norm       = 0.0001
  Prefactor  = 20.282
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.56264
  norm       = 0.0001
  Prefactor  = 2.48919
  norm       = 1.48494
  norm       = 28.0196
  norm       = 8.20526
  norm       = 0.0001
  Normalizat = 1.15699
  Prefactor  = 0.933645
 **********
 **   18 **HESSE 
 **********

 FCN=   6348.237     FROM HESSE     STATUS=OK           527 CALLS     4080 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.7565        40.258        .18348E-03   -1.5272    
   2  Prefactor     .10000E-03    7.7015        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .97037        1.8406        .14683E-02   -1.5511    
   4  Prefactor     56.365        40.219        .53446E-04   -1.4205    
   5  norm          2.4406        1.4342        .68830E-04   -1.5396    
   6  Prefactor     .10000E-03    3.8602        .15102E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    19.958        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     2.5561        4.2233        .16957E-03   -1.5388    
   9  Prefactor     .82334E-01    47.057        .20335E-02   -1.5651    
  10  norm          2.4091        2.1974        .10816E-03   -1.5398    
  11  Prefactor     .10000E-03    2.6854        .12731E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    .85670        .71732E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     3.7145        2.4484        .47560E-03   -1.5322    
  14  Prefactor     .10000E-03    2.2432        .11631E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          2.2551        .42353        .21122E-04   -1.5408    
  16  norm          .10000E-03    1.1882        .84731E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     20.282        12.451        .88947E-04   -1.4807    
  18  Prefactor     .10000E-03    9.9858        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    36.966        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     1.5626        7.6398        .17029E-02   -1.5458    
  21  norm          .10000E-03    2.0373        .11085E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     2.4892        44.062        .25947E-03   -1.5392    
  23  norm          1.4849        3.9989        .12385E-02   -1.5464    
  24  norm          28.020        11.757        .75701E-04   -1.4649    
  25  norm          8.2053        17.277        .13983E-03   -1.5135    
  26  norm          .10000E-03    11.108        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    1.1570        .24972        .26615E-03   -.87943    
  28  Prefactor     .93364        .24147        .30747E-03   -.94975    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.74159e-08
Minuit parameter uncertainties:
  1  27.701
  2  1.09638e-05
  3  1.84074
  4  40.2384
  5  1.4342
  6  2.59113e-06
  7  0.000262065
  8  4.2238
  9  3.93741
  10  2.19745
  11  8.19982e-06
  12  1.79877e-06
  13  2.44843
  14  3.82206e-07
  15  0.423536
  16  2.10513e-07
  17  12.4528
  18  3.4145e-06
  19  9.51234e-05
  20  6.91154
  21  4.50368e-06
  22  20.9631
  23  3.99964
  24  11.7576
  25  17.2877
  26  1.62822e-05
  27  0.249975
  28  0.241748
Done.

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

Extracting fit parameters...

4FGL J1230.2+2517
   Spectrum: LogParabola
325         norm:  1.000e-04  2.105e-07  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.336e-01  2.417e-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.157e+00  2.500e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/738669/likelihoodResults_333936001_334195201_4FGL_J1230.2+2517_daily_bin365.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) = 6348.24111938
delta logL = -0.00362849413432

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6348.23749087
delta logL = 1.19680407806e-08

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 'alpha     '    2.0035       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1570       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93365       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6348.237     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      236 TOTAL
                     EDM=   .53E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.8030        .84757E-03** at limit **
   2  alpha         2.1148        2.7363        .16891       -.22413E-07
   3  Normalizat    1.1570        .22484        .26615E-03   -.64784E-03
   4  Prefactor     .93365        .23709        .30747E-03   -.56295E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.1148
  Normalizat = 1.15699
  Prefactor  = 0.933645
 **********
 **   18 **HESSE 
 **********

 FCN=   6348.237     FROM HESSE     STATUS=OK            23 CALLS      259 TOTAL
                     EDM=   .53E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.1961        .16951E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.1148        2.5257        .67563E-02   -.15470    
   3  Normalizat    1.1570        .22503        .53231E-04   -.87943    
   4  Prefactor     .93365        .23729        .61494E-04   -.94975    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.31535e-10
Minuit parameter uncertainties:
  1  5.42151e-06
  2  155.152
  3  0.22522
  4  0.237553
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/738669': 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) = 6348.23749061
delta logL = 2.79309460893e-07

Extracting fit parameters...

4FGL J1230.2+2517
   Spectrum: LogParabola
325         norm:  1.000e-04  5.422e-06  1.000e-04  1.000e+04 ( 1.000e-12)
326        alpha:  2.115e+00  1.552e+02  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.336e-01  2.376e-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.157e+00  2.252e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 187.560 25.298

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/738669/cmap_HighResolution_333936001_334195201_4FGL_J1230.2+2517_daily_bin365.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.29e-05', job_status='DONE', photon_flux_upper_limit='3.85e-08', time_completed='2021-09-05 20:55:20.471522', job_id='738669', GAL2='0.93', fit_tolerance='1e-08', EG2='1.16', EG='1.16', time_epoch_completed='1630900520.47', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.93', dlogl='2.79e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.00' WHERE bin_id='365' AND source_name='4FGL J1230.2+2517' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 20:55:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0214>
Subject: Job 738669: <4FGL_J1230.2+2517_daily_bin365> in cluster <slac> Done

Job <4FGL_J1230.2+2517_daily_bin365> 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) <bullet0214>, 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:55:21 2021
Results reported at Sun Sep  5 20:55:21 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1230.2+2517_daily_bin365 187.56 25.2983 333936001 334195201 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 :                                   828.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             347.59 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   847 sec.
    Turnaround time :                            871 sec.

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

