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


Performing analysis on: 4FGL_J1230.2+2517_daily_bin329
RA = 187.56, Dec = 25.2983
tmin = 324604801, tmax = 324864001
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='735767', job_status='RUN', time_executed='2021-09-05 20:33:27.826937', time_epoch_executed='1630899207.83' WHERE source_name='4FGL J1230.2+2517' and cadence='daily' and bin_id='329'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/735767

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/735767/ft1_4FGL_J1230.2+2517_daily_bin329.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/735767/ft2_4FGL_J1230.2+2517_daily_bin329.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/735767/ft1_4FGL_J1230.2+2517_daily_bin329.fits outfile=/scratch/kocevski/735767/ft1_filteredMKT_4FGL_J1230.2+2517_daily_bin329.fits ra=187.56 dec=25.2983 rad=12.0 tmin=324604801.0 tmax=324864001.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 9.83
user 9.43
sys 0.32

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/735767/ft1_filtered_4FGL_J1230.2+2517_daily_bin329.fits" evtable="EVENTS" scfile=/scratch/kocevski/735767/ft2_4FGL_J1230.2+2517_daily_bin329.fits sctable="SC_DATA" outfile=/scratch/kocevski/735767/ltcube_324604801_324864001_4FGL_J1230.2+2517_daily_bin329.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/735767/ft2_4FGL_J1230.2+2517_daily_bin329.fits
.....................!
real 12.29
user 11.94
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/735767/ft1_filtered_4FGL_J1230.2+2517_daily_bin329.fits evtable="EVENTS" scfile=/scratch/kocevski/735767/ft2_4FGL_J1230.2+2517_daily_bin329.fits sctable="SC_DATA" expcube=/scratch/kocevski/735767/ltcube_324604801_324864001_4FGL_J1230.2+2517_daily_bin329.fits outfile=/scratch/kocevski/735767/expmap_324604801_324864001_4FGL_J1230.2+2517_daily_bin329.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/735767/ltcube_324604801_324864001_4FGL_J1230.2+2517_daily_bin329.fits
.....................!
real 191.64
user 185.13
sys 6.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/735767/ft1_filtered_4FGL_J1230.2+2517_daily_bin329.fits scfile=/scratch/kocevski/735767/ft2_4FGL_J1230.2+2517_daily_bin329.fits outfile=/scratch/kocevski/735767/cmap_324604801_324864001_4FGL_J1230.2+2517_daily_bin329.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.54
user 0.39
sys 0.13

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    37.762       1.0000         .10000E-03   10000.    
     5 'norm      '    2.7472       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10391E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .65918       1.0000         .10000E-03   10000.    
    12 'Prefactor '    17.855       1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.7944       1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.8132       1.0000         .10000E-03   10000.    
    15 'norm      '    .77549       1.0000         .10000E-03   10000.    
    16 'norm      '    .10047E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .14022E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.8515       1.0000         .10000E-03   10000.    
    21 'norm      '    5.2213       1.0000         .10000E-03   10000.    
    22 'Prefactor '    2.3790       1.0000         .10000E-03   10000.    
    23 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    .97033       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.0671       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=   2268.405     FROM MIGRAD    STATUS=CONVERGED    705 CALLS     3494 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    13.682        .91080E-06** at limit **
   2  Prefactor     .10000E-03    15.797        .88069E-07** at limit **
   3  Prefactor     .10000E-03    1.4363       -.31903E-07** at limit **
   4  Prefactor     37.762        47.074        .53718E-06    .96274E-05
   5  norm          2.7465        1.9618        .46997E-07    .11568E-04
   6  Prefactor     .10000E-03    4.5955       -.21116E-07** at limit **
   7  Prefactor     .10000E-03    18.961       -.25835E-06** at limit **
   8  Prefactor     .10000E-03    6.4393        .51340E-06** at limit **
   9  Prefactor     .10000E-03    7.0849        .32758E-06** at limit **
  10  norm          .10000E-03    3.5018       -.14611E-07** at limit **
  11  Prefactor     .50154        129.15        .26365E-04   -.17054E-03
  12  Prefactor     17.856        6.8254        .85550E-07    .25616E-04
  13  Prefactor     2.7941        2.7767        .23514E-07   -.32390E-04
  14  Prefactor     1.8034        17.689        .86326E-06    .23313E-03
  15  norm          .77537        .53323        .66595E-07    .84606E-03
  16  norm          .10000E-03    12.532       -.64104E-06** at limit **
  17  Prefactor     .10000E-03    7.8469       -.21153E-06** at limit **
  18  Prefactor     .10000E-03    337.41        .49154E-05** at limit **
  19  Prefactor     .10004E-03    68.023        .14511E-04** at limit **
  20  Prefactor     1.8441        16.057        .14104E-05    .18576E-03
  21  norm          5.2235        8.3376       -.10168E-05    .96663E-03
  22  Prefactor     2.3532        276.54        .25932E-04    .87136E-04
  23  norm          .10000E-03    2.3376       -.11368E-07** at limit **
  24  norm          .10000E-03    6.8203       -.88032E-06** at limit **
  25  norm          .10000E-03    10.792       -.36891E-08** at limit **
  26  norm          .10000E-03    13.741        .10101E-05** at limit **
  27  Normalizat    .97115        .32094       -.27544E-05   -.67240E-05
  28  Prefactor     1.0669        .32214        .12508E-05    .82808E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 37.762
  norm       = 2.7465
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.501545
  Prefactor  = 17.8556
  Prefactor  = 2.7941
  Prefactor  = 1.80339
  norm       = 0.775375
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100005
  Prefactor  = 0.000100042
  Prefactor  = 1.8441
  norm       = 5.22346
  Prefactor  = 2.35324
  norm       = 0.0001
  norm       = 0.000100003
  norm       = 0.000100001
  norm       = 0.0001
  Normalizat = 0.971152
  Prefactor  = 1.06692
 **********
 **   18 **HESSE 
 **********

 FCN=   2268.405     FROM HESSE     STATUS=OK           519 CALLS     4013 TOTAL
                     EDM=   .42E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    13.708        .17218E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    15.821        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    1.4447        .55733E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     37.762        47.166        .65221E-04   -1.4478    
   5  norm          2.7465        1.9614        .54256E-04   -1.5377    
   6  Prefactor     .10000E-03    4.6187        .99676E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    18.965        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    12.831        .22943E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    7.2816        .24665E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    3.5198        .86915E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .50154        146.70        .44420E-02   -1.5566    
  12  Prefactor     17.856        6.8148        .73346E-04   -1.4863    
  13  Prefactor     2.7941        2.7822        .76229E-04   -1.5374    
  14  Prefactor     1.8034        17.625        .31023E-03   -1.5439    
  15  norm          .77537        .52497        .26683E-04   -1.5532    
  16  norm          .10000E-03    12.640        .16339E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    7.8527        .13032E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    341.04        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10004E-03    71.220        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     1.8441        16.310        .30639E-03   -1.5436    
  21  norm          5.2235        8.5846        .74757E-03   -1.5251    
  22  Prefactor     2.3532        273.25        .26560E-03   -1.5401    
  23  norm          .10000E-03    2.3424        .71110E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    7.0374        .24355E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    10.853        .15245E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    13.760        .17257E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    .97115        .37764        .26052E-03   -.94003    
  28  Prefactor     1.0669        .38527        .27024E-03   -.90531    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.16635e-09
Minuit parameter uncertainties:
  1  9.72444e-05
  2  1.48087e-05
  3  9.25086e-07
  4  47.2131
  5  1.96148
  6  2.27867e-06
  7  5.07698e-05
  8  0.000351414
  9  4.12654e-05
  10  1.12656e-05
  11  17.1964
  12  6.8151
  13  2.7823
  14  11.2795
  15  0.524978
  16  7.86999e-05
  17  2.41279e-05
  18  0.00254551
  19  0.00346981
  20  10.9721
  21  8.58662
  22  50.9547
  23  2.36719e-06
  24  0.000268466
  25  0.000179602
  26  0.000107922
  27  0.378687
  28  0.386272
Done.

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

Extracting fit parameters...

4FGL J1230.2+2517
   Spectrum: LogParabola
325         norm:  1.000e-04  7.870e-05  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.067e+00  3.863e-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:  9.712e-01  3.787e-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: 1.33e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.89e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/735767/likelihoodResults_324604801_324864001_4FGL_J1230.2+2517_daily_bin329.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): 102
logL (Free Index) = 2268.40580072
delta logL = -0.000377182339889

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2268.40542502
delta logL = -1.48433309732e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .12617E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0294       1.0000          .0000       5.0000    
     3 'Normalizat'    .97153       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0665       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=   2268.405     FROM MIGRAD    STATUS=CONVERGED     96 CALLS      248 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    296.35        .33508E-02** at limit **
   2  alpha         2.2728        3.4205        .50000       -.96736E-07
   3  Normalizat    .97115        .33912E-01    .26052E-03   -.30085E-03
   4  Prefactor     1.0669        .36851E-01    .27024E-03   -.29062E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.27282
  Normalizat = 0.97115
  Prefactor  = 1.06692
 **********
 **   18 **HESSE 
 **********

 FCN=   2268.405     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      277 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1245.8        .67016E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.2728        3.8177        .50000       -.90999E-01
   3  Normalizat    .97115        .77354E-01    .52104E-04   -.94003    
   4  Prefactor     1.0669        .84059E-01    .54048E-04   -.90531    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.08768e-08
Minuit parameter uncertainties:
  1  0.000953954
  2  1841.06
  3  0.0773627
  4  0.084069
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/735767': 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) = 2268.40542296
delta logL = 5.81318090553e-07

Extracting fit parameters...

4FGL J1230.2+2517
   Spectrum: LogParabola
325         norm:  1.000e-04  9.540e-04  1.000e-04  1.000e+04 ( 1.000e-12)
326        alpha:  2.273e+00  1.841e+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:  1.067e+00  8.407e-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:  9.712e-01  7.736e-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/735767/cmap_HighResolution_324604801_324864001_4FGL_J1230.2+2517_daily_bin329.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.89e-05', job_status='DONE', photon_flux_upper_limit='1.33e-07', time_completed='2021-09-05 20:42:14.802260', job_id='735767', GAL2='1.07', fit_tolerance='1e-08', EG2='0.97', EG='0.97', time_epoch_completed='1630899734.8', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.07', dlogl='5.81e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.00' WHERE bin_id='329' AND source_name='4FGL J1230.2+2517' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 20:42:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0256>
Subject: Job 735767: <4FGL_J1230.2+2517_daily_bin329> in cluster <slac> Done

Job <4FGL_J1230.2+2517_daily_bin329> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sun Sep  5 20:30:38 2021
Job was executed on host(s) <bullet0256>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 20:30:41 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:30:41 2021
Terminated at Sun Sep  5 20:42:15 2021
Results reported at Sun Sep  5 20:42:15 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1230.2+2517_daily_bin329 187.56 25.2983 324604801 324864001 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 :                                   524.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             249.72 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   694 sec.
    Turnaround time :                            697 sec.

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

