/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 132 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 = 7566
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1230.2+2517_daily_bin40
RA = 187.56, Dec = 25.2983
tmin = 249696001, tmax = 249955201
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='734647', job_status='RUN', time_executed='2021-09-05 20:27:46.735675', time_epoch_executed='1630898866.74' WHERE source_name='4FGL J1230.2+2517' and cadence='daily' and bin_id='40'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/734647

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/734647/ft1_4FGL_J1230.2+2517_daily_bin40.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/734647/ft2_4FGL_J1230.2+2517_daily_bin40.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/734647/ft1_4FGL_J1230.2+2517_daily_bin40.fits outfile=/scratch/kocevski/734647/ft1_filteredMKT_4FGL_J1230.2+2517_daily_bin40.fits ra=187.56 dec=25.2983 rad=12.0 tmin=249696001.0 tmax=249955201.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 1.50
user 1.28
sys 0.17

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/734647/ft1_filtered_4FGL_J1230.2+2517_daily_bin40.fits evtable="EVENTS" scfile=/scratch/kocevski/734647/ft2_4FGL_J1230.2+2517_daily_bin40.fits sctable="SC_DATA" expcube=/scratch/kocevski/734647/ltcube_249696001_249955201_4FGL_J1230.2+2517_daily_bin40.fits outfile=/scratch/kocevski/734647/expmap_249696001_249955201_4FGL_J1230.2+2517_daily_bin40.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/734647/ltcube_249696001_249955201_4FGL_J1230.2+2517_daily_bin40.fits
.....................!
real 191.66
user 186.74
sys 4.40

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/734647/ft1_filtered_4FGL_J1230.2+2517_daily_bin40.fits scfile=/scratch/kocevski/734647/ft2_4FGL_J1230.2+2517_daily_bin40.fits outfile=/scratch/kocevski/734647/cmap_249696001_249955201_4FGL_J1230.2+2517_daily_bin40.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.65
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/734647/ft1_filtered_4FGL_J1230.2+2517_daily_bin40.fits scfile=/scratch/kocevski/734647/ft2_4FGL_J1230.2+2517_daily_bin40.fits outfile=/scratch/kocevski/734647/cmap_HighResolution_249696001_249955201_4FGL_J1230.2+2517_daily_bin40.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.70
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.8512       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .25069E-01   1.0000         .10000E-03   10000.    
     5 'norm      '    3.8333       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .11646E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.1110       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    5.8419       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .26734E-01   1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.0543       1.0000         .10000E-03   10000.    
    13 'Prefactor '    8.1427       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .36283       1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    13.662       1.0000         .10000E-03   10000.    
    18 'Prefactor '    16.335       1.0000         .10000E-03   10000.    
    19 'Prefactor '    11.198       1.0000         .10000E-03   10000.    
    20 'Prefactor '    8.5966       1.0000         .10000E-03   10000.    
    21 'norm      '    8.0509       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10241E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    20.141       1.0000         .10000E-03   10000.    
    25 'norm      '    10.290       1.0000         .10000E-03   10000.    
    26 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.0406       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .79586       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=   5522.757     FROM MIGRAD    STATUS=CONVERGED   1273 CALLS     3605 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    14.871        .18142E-02** at limit **
   2  Prefactor     .10000E-03    6.8652        .18142E-02** at limit **
   3  Prefactor     1.8508        1.7053        .89848E-04    .10970E-03
   4  Prefactor     .10000E-03    272.35        .74662E-02** at limit **
   5  norm          3.8328        1.4403        .52412E-04    .14381E-03
   6  Prefactor     .10000E-03    1.2712        .81548E-03** at limit **
   7  Prefactor     .10000E-03    83.526        .18142E-02** at limit **
   8  Prefactor     3.1111        2.8668        .11486E-03    .22963E-04
   9  Prefactor     .10000E-03    2.7200        .23449E-03** at limit **
  10  norm          5.8422        3.2775        .93357E-04   -.45057E-04
  11  Prefactor     .10000E-03    6.2793        .53061E-01** at limit **
  12  Prefactor     5.0543        2.8365        .87126E-04   -.96559E-05
  13  Prefactor     8.1423        3.0655        .74411E-04    .85558E-05
  14  Prefactor     .10000E-03    2.0480        .10370E-02** at limit **
  15  norm          .36277        .22755        .27101E-04    .23744E-03
  16  norm          .10000E-03    1.5431        .89983E-03** at limit **
  17  Prefactor     13.661        11.402        .10836E-03    .26228E-05
  18  Prefactor     16.329        33.384        .99096E-04    .51626E-05
  19  Prefactor     11.097        115.82        .11972E-03    .71221E-05
  20  Prefactor     8.5949        7.4394        .13672E-03    .43240E-04
  21  norm          8.0554        6.4934        .14130E-03    .40067E-04
  22  Prefactor     .10000E-03    48.657        .18142E-02** at limit **
  23  norm          .10000E-03    1.4204        .86166E-03** at limit **
  24  norm          20.138        9.6701        .89248E-04    .16433E-04
  25  norm          10.294        15.307        .12491E-03    .39318E-04
  26  norm          .10000E-03    8.0446        .18142E-02** at limit **
  27  Normalizat    1.0408        .21686        .23761E-03    .34736E-04
  28  Prefactor     .79584        .23185        .29495E-03    .64254E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.85077
  Prefactor  = 0.0001
  norm       = 3.83281
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 3.11107
  Prefactor  = 0.0001
  norm       = 5.84218
  Prefactor  = 0.0001
  Prefactor  = 5.05434
  Prefactor  = 8.14233
  Prefactor  = 0.0001
  norm       = 0.362773
  norm       = 0.0001
  Prefactor  = 13.6614
  Prefactor  = 16.3285
  Prefactor  = 11.0971
  Prefactor  = 8.59491
  norm       = 8.05535
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 20.1384
  norm       = 10.2941
  norm       = 0.0001
  Normalizat = 1.04075
  Prefactor  = 0.795839
 **********
 **   18 **HESSE 
 **********

 FCN=   5522.757     FROM HESSE     STATUS=OK           503 CALLS     4108 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    14.874        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    6.8662        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.8508        1.7052        .35939E-05   -1.5436    
   4  Prefactor     .10000E-03    282.71        .29865E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          3.8328        1.4400        .20965E-05   -1.5316    
   6  Prefactor     .10000E-03    1.2712        .16310E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    83.581        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     3.1111        2.8666        .45944E-05   -1.5355    
   9  Prefactor     .10000E-03    2.7201        .46898E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          5.8422        3.2776        .37343E-05   -1.5225    
  11  Prefactor     .10000E-03    6.0775        .54337E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     5.0543        2.8366        .34851E-05   -1.5258    
  13  Prefactor     8.1423        3.0654        .29764E-05   -1.5137    
  14  Prefactor     .10000E-03    2.0481        .20740E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .36277        .22753        .10840E-05   -1.5588    
  16  norm          .10000E-03    1.5431        .17997E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     13.661        11.402        .43346E-05   -1.4969    
  18  Prefactor     16.329        33.371        .39639E-05   -1.4900    
  19  Prefactor     11.097        115.65        .47887E-05   -1.5042    
  20  Prefactor     8.5949        7.4390        .54687E-05   -1.5122    
  21  norm          8.0554        6.4918        .56522E-05   -1.5140    
  22  Prefactor     .10000E-03    48.668        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    1.4204        .17233E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          20.138        9.6766        .35699E-05   -1.4810    
  25  norm          10.294        15.318        .49965E-05   -1.5066    
  26  norm          .10000E-03    8.0449        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    1.0408        .21684        .95044E-05   -.91677    
  28  Prefactor     .79584        .23201        .11798E-04   -.99882    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.47204e-10
Minuit parameter uncertainties:
  1  1.60997e-05
  2  9.62431e-06
  3  1.70525
  4  0.000112406
  5  1.43998
  6  6.63985e-06
  7  0.000479001
  8  2.86673
  9  5.52093e-05
  10  3.27767
  11  2.01233e-05
  12  2.83669
  13  3.06541
  14  4.78215e-07
  15  0.227533
  16  1.13987e-06
  17  11.4041
  18  33.4094
  19  71.8267
  20  7.43977
  21  6.49235
  22  0.000274354
  23  4.79815e-07
  24  9.67736
  25  15.3239
  26  9.46513e-07
  27  0.217028
  28  0.232299
Done.

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

Extracting fit parameters...

4FGL J1230.2+2517
   Spectrum: LogParabola
325         norm:  1.000e-04  1.140e-06  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:  7.958e-01  2.323e-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.041e+00  2.170e-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: 4.56e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.71e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/734647/likelihoodResults_249696001_249955201_4FGL_J1230.2+2517_daily_bin40.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) = 5522.76021539
delta logL = -0.00303315615838

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5522.75718216
delta logL = 6.92816684023e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0102       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0408       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .79584       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=   5522.757     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      202 TOTAL
                     EDM=   .51E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 13.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.6646        .22990E-05** at limit **
   2  alpha         2.6516        3.7380        .39112E-01   -.20347E-06
   3  Normalizat    1.0408        .17746       -.16380E-05   -.64250E-03
   4  Prefactor     .79584        .19617       -.45527E-06   -.51557E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.65159
  Normalizat = 1.04075
  Prefactor  = 0.795838
 **********
 **   18 **HESSE 
 **********

 FCN=   5522.757     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      231 TOTAL
                     EDM=   .36E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    84.327        .90290E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.6516        2.9884        .16879        .60674E-01
   3  Normalizat    1.0408        .33517E-01    .23761E-03   -.91677    
   4  Prefactor     .79584        .36918E-01    .29495E-03   -.99882    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.6026e-08
Minuit parameter uncertainties:
  1  1.15571e-06
  2  2282.62
  3  0.0335174
  4  0.0369187
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/734647': 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): 102
logL (Free Index) = 5522.75717891
delta logL = 3.31743103743e-06

Extracting fit parameters...

4FGL J1230.2+2517
   Spectrum: LogParabola
325         norm:  1.000e-04  1.156e-06  1.000e-04  1.000e+04 ( 1.000e-12)
326        alpha:  2.652e+00  2.283e+03  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:  7.958e-01  3.692e-02  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.041e+00  3.352e-02  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/734647/cmap_HighResolution_249696001_249955201_4FGL_J1230.2+2517_daily_bin40.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.71e-05', job_status='DONE', photon_flux_upper_limit='4.56e-08', time_completed='2021-09-05 20:40:26.534086', job_id='734647', GAL2='0.80', fit_tolerance='1e-08', EG2='1.04', EG='1.04', time_epoch_completed='1630899626.53', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.80', dlogl='3.32e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.00' WHERE bin_id='40' AND source_name='4FGL J1230.2+2517' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 20:40:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0123>
Subject: Job 734647: <4FGL_J1230.2+2517_daily_bin40> in cluster <slac> Done

Job <4FGL_J1230.2+2517_daily_bin40> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sun Sep  5 20:25:20 2021
Job was executed on host(s) <bullet0123>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 20:25:24 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:25:24 2021
Terminated at Sun Sep  5 20:40:27 2021
Results reported at Sun Sep  5 20:40:27 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1230.2+2517_daily_bin40 187.56 25.2983 249696001 249955201 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 :                                   756.34 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             331.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   902 sec.
    Turnaround time :                            907 sec.

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

