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


Performing analysis on: 4FGL_J1230.2+2517_daily_bin352
RA = 187.56, Dec = 25.2983
tmin = 330566401, tmax = 330825601
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='738649', job_status='RUN', time_executed='2021-09-05 20:43:15.018688', time_epoch_executed='1630899795.02' WHERE source_name='4FGL J1230.2+2517' and cadence='daily' and bin_id='352'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/738649

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/738649/ft1_4FGL_J1230.2+2517_daily_bin352.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/738649/ft2_4FGL_J1230.2+2517_daily_bin352.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/738649/ft1_4FGL_J1230.2+2517_daily_bin352.fits outfile=/scratch/kocevski/738649/ft1_filteredMKT_4FGL_J1230.2+2517_daily_bin352.fits ra=187.56 dec=25.2983 rad=12.0 tmin=330566401.0 tmax=330825601.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 4.25
user 3.80
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/738649/ft1_filtered_4FGL_J1230.2+2517_daily_bin352.fits" evtable="EVENTS" scfile=/scratch/kocevski/738649/ft2_4FGL_J1230.2+2517_daily_bin352.fits sctable="SC_DATA" outfile=/scratch/kocevski/738649/ltcube_330566401_330825601_4FGL_J1230.2+2517_daily_bin352.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/738649/ft2_4FGL_J1230.2+2517_daily_bin352.fits
.....................!
real 16.71
user 16.28
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/738649/ft1_filtered_4FGL_J1230.2+2517_daily_bin352.fits evtable="EVENTS" scfile=/scratch/kocevski/738649/ft2_4FGL_J1230.2+2517_daily_bin352.fits sctable="SC_DATA" expcube=/scratch/kocevski/738649/ltcube_330566401_330825601_4FGL_J1230.2+2517_daily_bin352.fits outfile=/scratch/kocevski/738649/expmap_330566401_330825601_4FGL_J1230.2+2517_daily_bin352.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/738649/ltcube_330566401_330825601_4FGL_J1230.2+2517_daily_bin352.fits
.....................!
real 191.41
user 186.23
sys 4.52

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/738649/ft1_filtered_4FGL_J1230.2+2517_daily_bin352.fits scfile=/scratch/kocevski/738649/ft2_4FGL_J1230.2+2517_daily_bin352.fits outfile=/scratch/kocevski/738649/cmap_330566401_330825601_4FGL_J1230.2+2517_daily_bin352.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/738649/ft1_filtered_4FGL_J1230.2+2517_daily_bin352.fits scfile=/scratch/kocevski/738649/ft2_4FGL_J1230.2+2517_daily_bin352.fits outfile=/scratch/kocevski/738649/cmap_HighResolution_330566401_330825601_4FGL_J1230.2+2517_daily_bin352.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.40
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    42.363       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.3103       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .75116E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .33966E-01   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.7244       1.0000         .10000E-03   10000.    
    10 'norm      '    8.7292       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .87036E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.5335       1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.2478       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .71346       1.0000         .10000E-03   10000.    
    15 'norm      '    .19903       1.0000         .10000E-03   10000.    
    16 'norm      '    2.8483       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    142.79       1.0000         .10000E-03   10000.    
    19 'Prefactor '    52.585       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .14330E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10162E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    3.1382       1.0000         .10000E-03   10000.    
    26 'norm      '    25.914       1.0000         .10000E-03   10000.    
    27 'Normalizat'    .84392       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.3876       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=   5761.650     FROM MIGRAD    STATUS=CONVERGED    735 CALLS     3639 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     42.363        32.145       -.14675E-05   -.18142E-03
   2  Prefactor     .10000E-03    5.9519        .19006E-07** at limit **
   3  Prefactor     3.3100        2.7147        .15869E-08   -.33156E-03
   4  Prefactor     .10008E-03    223.94        .17519E-03** at limit **
   5  norm          .10000E-03    .54647       -.47112E-07** at limit **
   6  Prefactor     .10000E-03    2.8665       -.36681E-06** at limit **
   7  Prefactor     .10401E-03    33.427       -.91173E-05** at limit **
   8  Prefactor     .10000E-03    1.5152       -.22302E-07** at limit **
   9  Prefactor     2.7246        2.5459        .43295E-07    .87057E-04
  10  norm          8.7293        4.2443        .10249E-05    .21668E-03
  11  Prefactor     .10078E-03    6.8990       -.13194E-05** at limit **
  12  Prefactor     1.5333        2.5526       -.90744E-06   -.39433E-03
  13  Prefactor     4.2475        3.1174       -.15882E-06    .33825E-03
  14  Prefactor     .72209        4.4406       -.31942E-05    .93315E-03
  15  norm          .19901        .18392        .10627E-07    .75003E-03
  16  norm          2.8469        4.1388        .19542E-06    .26502E-03
  17  Prefactor     .10000E-03    10.492       -.77100E-06** at limit **
  18  Prefactor     142.78        59.422       -.42833E-05    .15896E-04
  19  Prefactor     52.579        78.681       -.56405E-05    .10537E-04
  20  Prefactor     .10000E-03    23.241       -.17454E-07** at limit **
  21  norm          .10000E-03    6.5677        .91995E-09** at limit **
  22  Prefactor     .10000E-03    10.902        .65551E-06** at limit **
  23  norm          .10000E-03    2.3380       -.26094E-07** at limit **
  24  norm          .10000E-03    2.9156        .36983E-06** at limit **
  25  norm          3.1357        4.9381       -.20451E-06   -.22643E-03
  26  norm          25.913        21.568       -.42960E-07    .61401E-05
  27  Normalizat    .84397        .20265        .95395E-06   -.44413E-05
  28  Prefactor     1.3877        .21365        .67342E-06    .92913E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 42.3626
  Prefactor  = 0.0001
  Prefactor  = 3.31005
  Prefactor  = 0.00010008
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000104011
  Prefactor  = 0.0001
  Prefactor  = 2.72456
  norm       = 8.72928
  Prefactor  = 0.000100783
  Prefactor  = 1.53328
  Prefactor  = 4.2475
  Prefactor  = 0.722091
  norm       = 0.199006
  norm       = 2.84692
  Prefactor  = 0.0001
  Prefactor  = 142.78
  Prefactor  = 52.5794
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 3.13574
  norm       = 25.9133
  Normalizat = 0.843973
  Prefactor  = 1.3877
 **********
 **   18 **HESSE 
 **********

 FCN=   5761.650     FROM HESSE     STATUS=OK           537 CALLS     4176 TOTAL
                     EDM=   .77E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     42.363        32.193        .61592E-04   -1.4405    
   2  Prefactor     .10000E-03    5.9827        .18086E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     3.3100        2.6977        .10144E-03   -1.5344    
   4  Prefactor     .10008E-03    224.48        .41879E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    .55816        .10935E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    2.9234        .12539E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10401E-03    35.024        .12301       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    2.4946        .17941E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     2.7246        2.5285        .11209E-03   -1.5378    
  10  norm          8.7293        4.2378        .95026E-04   -1.5117    
  11  Prefactor     .10078E-03    7.8061        .60669E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     1.5333        2.5120        .13823E-03   -1.5460    
  13  Prefactor     4.2475        3.0950        .10528E-03   -1.5296    
  14  Prefactor     .72209        14.450        .28643E-02   -1.5538    
  15  norm          .19901        .17279        .30006E-03   -1.5619    
  16  norm          2.8469        4.1704        .17154E-03   -1.5370    
  17  Prefactor     .10000E-03    10.611        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     142.78        59.410        .33716E-04   -1.3312    
  19  Prefactor     52.579        78.588        .55309E-04   -1.4256    
  20  Prefactor     .10000E-03    24.152        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    6.7750        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    10.924        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    2.3657        .11328E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    2.9374        .12592E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          3.1357        4.9028        .20519E-03   -1.5354    
  26  norm          25.913        21.567        .78694E-04   -1.4689    
  27  Normalizat    .84397        .24018        .29375E-03   -.98458    
  28  Prefactor     1.3877        .25487        .26155E-03   -.80735    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.66984e-09
Minuit parameter uncertainties:
  1  32.2064
  2  2.48967e-06
  3  2.69779
  4  0.00849178
  5  3.79258e-06
  6  1.78819e-06
  7  0.0237188
  8  3.21385e-06
  9  2.52856
  10  4.23796
  11  0.00494678
  12  2.51221
  13  3.09516
  14  6.46171
  15  0.172792
  16  4.17085
  17  8.71859e-06
  18  59.4344
  19  78.7435
  20  7.07251e-05
  21  3.31783e-05
  22  3.08853e-06
  23  3.52739e-06
  24  2.27472e-06
  25  4.90341
  26  21.5739
  27  0.240485
  28  0.255106
Done.

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

Extracting fit parameters...

4FGL J1230.2+2517
   Spectrum: LogParabola
325         norm:  2.847e+00  4.171e+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:  1.388e+00  2.551e-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:  8.440e-01  2.405e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/738649/likelihoodResults_330566401_330825601_4FGL_J1230.2+2517_daily_bin352.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) = 5761.19931516
delta logL = 0.451051164969

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5761.18690864
delta logL = 0.463457686566

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.2724       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.2550       1.0000          .0000       5.0000    
     3 'Normalizat'    .76514       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4388       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=   5761.187     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      225 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.2687        36.992        .68106E-02    .80190E-03
   2  alpha         3.2565        4.1133        .30387        .74844E-04
   3  Normalizat    .76510        .64035E-01    .69407E-01   -.89356E-05
   4  Prefactor     1.4389        .65539E-01    .58258E-01   -.67019E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.26873
  alpha      = 3.2565
  Normalizat = 0.765096
  Prefactor  = 1.43889
 **********
 **   18 **HESSE 
 **********

 FCN=   5761.187     FROM HESSE     STATUS=OK            31 CALLS      256 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.2687        9.0479        .88240E-04   -1.5407    
   2  alpha         3.2565        3.8915        .14702E-01    .30742    
   3  Normalizat    .76510        .27410        .30713E-03   -1.0138    
   4  Prefactor     1.4389        .28696        .25760E-03   -.79266    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.04539e-10
Minuit parameter uncertainties:
  1  9.05338
  2  2.98473
  3  0.274593
  4  0.287283
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/738649': 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) = 5761.18690791
delta logL = 0.463458409599

Extracting fit parameters...

4FGL J1230.2+2517
   Spectrum: LogParabola
325         norm:  2.269e+00  9.053e+00  1.000e-04  1.000e+04 ( 1.000e-12)
326        alpha:  3.257e+00  2.985e+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:  1.439e+00  2.873e-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:  7.651e-01  2.746e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.91
Ra Dec: 187.560 25.298
Photon Index (Free Index): 3.26 +/- 2.98
Photon Flux (Free Index): 7.87e-08 +/- 9.91e-08
Energy Flux (Free Index): 1.46e-05 +/- 1.24e-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/738649/cmap_HighResolution_330566401_330825601_4FGL_J1230.2+2517_daily_bin352.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.87e-05', comment='SUCCESS', energy_flux2='1.46e-05', dlogl='4.63e-01', photon_flux2='7.87e-08', job_status='DONE', time_completed='2021-09-05 20:56:13.626028', photon_index_error2='2.98', photon_index2='3.26', ts='0.90', fit_tolerance='1e-08', GAL='1.39', photon_index_error='0.00', photon_flux_upper_limit='8.20e-08', energy_flux_error2='1.24e-05', EG='0.84', time_epoch_completed='1630900573.63', return_code='0', job_id='738649', GAL2='1.44', EG2='0.77', return_code2='0', photon_flux_error2='9.91e-08', ts2='1.91', photon_index='2.00' WHERE bin_id='352' AND source_name='4FGL J1230.2+2517' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 20:56:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0096>
Subject: Job 738649: <4FGL_J1230.2+2517_daily_bin352> in cluster <slac> Done

Job <4FGL_J1230.2+2517_daily_bin352> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Sun Sep  5 20:40:48 2021
Job was executed on host(s) <bullet0096>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 20:40:53 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:40:53 2021
Terminated at Sun Sep  5 20:56:14 2021
Results reported at Sun Sep  5 20:56:14 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1230.2+2517_daily_bin352 187.56 25.2983 330566401 330825601 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 :                                   775.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             284.23 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   922 sec.
    Turnaround time :                            926 sec.

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

