/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 115 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 = 7394
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1230.2+2517_daily_bin886
RA = 187.56, Dec = 25.2983
tmin = 468979201, tmax = 469238401
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='741737', job_status='RUN', time_executed='2021-09-05 20:52:31.099146', time_epoch_executed='1630900351.1' WHERE source_name='4FGL J1230.2+2517' and cadence='daily' and bin_id='886'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/741737

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/741737/ft1_4FGL_J1230.2+2517_daily_bin886.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/741737/ft2_4FGL_J1230.2+2517_daily_bin886.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/741737/ft1_4FGL_J1230.2+2517_daily_bin886.fits outfile=/scratch/kocevski/741737/ft1_filteredMKT_4FGL_J1230.2+2517_daily_bin886.fits ra=187.56 dec=25.2983 rad=12.0 tmin=468979201.0 tmax=469238401.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.70
user 3.24
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/741737/ft1_filtered_4FGL_J1230.2+2517_daily_bin886.fits evtable="EVENTS" scfile=/scratch/kocevski/741737/ft2_4FGL_J1230.2+2517_daily_bin886.fits sctable="SC_DATA" expcube=/scratch/kocevski/741737/ltcube_468979201_469238401_4FGL_J1230.2+2517_daily_bin886.fits outfile=/scratch/kocevski/741737/expmap_468979201_469238401_4FGL_J1230.2+2517_daily_bin886.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/741737/ltcube_468979201_469238401_4FGL_J1230.2+2517_daily_bin886.fits
.....................!
real 193.40
user 186.44
sys 4.15

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/741737/ft1_filtered_4FGL_J1230.2+2517_daily_bin886.fits scfile=/scratch/kocevski/741737/ft2_4FGL_J1230.2+2517_daily_bin886.fits outfile=/scratch/kocevski/741737/cmap_468979201_469238401_4FGL_J1230.2+2517_daily_bin886.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.37
sys 0.16

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.9041       1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.0710       1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.5388       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .11446E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    7.8094       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    11.571       1.0000         .10000E-03   10000.    
    11 'Prefactor '    22.394       1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.1139       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .66880E-01   1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.4908       1.0000         .10000E-03   10000.    
    15 'norm      '    .19605       1.0000         .10000E-03   10000.    
    16 'norm      '    3.1235       1.0000         .10000E-03   10000.    
    17 'Prefactor '    11.569       1.0000         .10000E-03   10000.    
    18 'Prefactor '    15.679       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    7.4631       1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10418E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10585E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    19.333       1.0000         .10000E-03   10000.    
    26 'norm      '    14.107       1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.0470       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .96867       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5900E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6969.045     FROM MIGRAD    STATUS=CONVERGED     90 CALLS     2445 TOTAL
                     EDM=   .95E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.9053        1.0169       -.15688E-07    .33265E-05
   2  Prefactor     2.0707        1.0410        .63091E-08    .33232E-04
   3  Prefactor     1.5386        1.5615        .10093E-06    .61308E-04
   4  Prefactor     .10005E-03    65.087        .13385E-04** at limit **
   5  norm          7.8097        1.6528       -.37535E-07   -.20848E-03
   6  Prefactor     .10000E-03    1.0691        .56892E-06** at limit **
   7  Prefactor     .10012E-03    4.5561       -.12526E-06** at limit **
   8  Prefactor     .10000E-03    1.5274        .37837E-06** at limit **
   9  Prefactor     .10000E-03    1.4247        .41106E-06** at limit **
  10  norm          11.572        4.0419       -.41606E-07    .10191E-02
  11  Prefactor     22.394        1.0064        .24783E-08    .58653E-04
  12  Prefactor     4.1144        2.7083       -.41846E-07   -.74393E-03
  13  Prefactor     .61058E-01    5.4634        .10889E-05    .22066E-02
  14  Prefactor     5.4909        1.2577       -.43755E-08    .74427E-03
  15  norm          .19605        .18072        .42221E-08    .19820E-04
  16  norm          3.1234        3.0081        .58408E-08   -.62016E-03
  17  Prefactor     11.572        1.0673       -.26643E-07    .10048E-02
  18  Prefactor     15.677        1.0137        .23606E-07    .26081E-03
  19  Prefactor     .10017E-03    14.863        .52631E-05** at limit **
  20  Prefactor     7.4629        1.0089        .63681E-08   -.33455E-03
  21  norm          .10000E-03    1.5978        .66066E-06** at limit **
  22  Prefactor     .10022E-03    8.5676       -.34142E-06** at limit **
  23  norm          .10000E-03    5.4873        .60664E-07** at limit **
  24  norm          .10025E-03    4.6516        .37626E-06** at limit **
  25  norm          19.324        1.4461       -.10852E-06   -.82861E-03
  26  norm          14.106        1.0014        .85359E-08   -.40895E-04
  27  Normalizat    1.0470        .19396       -.16770E-05   -.18861E-04
  28  Prefactor     .96870        .21363        .19530E-05    .28488E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.90527
  Prefactor  = 2.07074
  Prefactor  = 1.53865
  Prefactor  = 0.00010005
  norm       = 7.80969
  Prefactor  = 0.0001
  Prefactor  = 0.000100118
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 11.5725
  Prefactor  = 22.394
  Prefactor  = 4.11442
  Prefactor  = 0.0610584
  Prefactor  = 5.49094
  norm       = 0.196052
  norm       = 3.12344
  Prefactor  = 11.5723
  Prefactor  = 15.6772
  Prefactor  = 0.000100168
  Prefactor  = 7.4629
  norm       = 0.0001
  Prefactor  = 0.000100225
  norm       = 0.0001
  norm       = 0.000100254
  norm       = 19.324
  norm       = 14.1064
  Normalizat = 1.04701
  Prefactor  = 0.968697
 **********
 **   18 **HESSE 
 **********

 FCN=   6969.045     FROM HESSE     STATUS=OK           601 CALLS     3046 TOTAL
                     EDM=   .48E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.9053        32.532        .59608E-02   -1.5367    
   2  Prefactor     2.0707        9.6706        .71762E-02   -1.5420    
   3  Prefactor     1.5386        1.6229        .85944E-02   -1.5460    
   4  Prefactor     .10005E-03    64.411        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          7.8097        1.6677        .35872E-02   -1.5149    
   6  Prefactor     .10000E-03    1.0636        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10012E-03    13.525        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    1.4604        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    1.4010        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          11.572        4.0560        .29443E-02   -1.5027    
  11  Prefactor     22.394        9.0406        .21161E-02   -1.4761    
  12  Prefactor     4.1144        2.7231        .49688E-02   -1.5302    
  13  Prefactor     .61058E-01    .87380        .43184E-01   -1.5659    
  14  Prefactor     5.4909        3.9420        .42868E-02   -1.5239    
  15  norm          .19605        .19162        .73649E-02   -1.5619    
  16  norm          3.1234        3.1462        .57351E-02   -1.5354    
  17  Prefactor     11.572        9.9442        .29445E-02   -1.5027    
  18  Prefactor     15.677        21.059        .25288E-02   -1.4916    
  19  Prefactor     .10017E-03    17.364        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     7.4629        6.3391        .36702E-02   -1.5162    
  21  norm          .10000E-03    1.5845        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10022E-03    12.107        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    2.2806        .39451E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10025E-03    3.0815        .70733E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          19.324        9.5943        .22773E-02   -1.4829    
  26  norm          14.106        16.240        .26660E-02   -1.4957    
  27  Normalizat    1.0470        .17626        .40760E-01   -.91472    
  28  Prefactor     .96870        .18892        .45874E-01   -.93780    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.84587e-08
Minuit parameter uncertainties:
  1  19.4566
  2  8.95209
  3  1.62297
  4  0.00359893
  5  1.66773
  6  5.94656e-06
  7  0.00252366
  8  4.02693e-06
  9  5.64964e-06
  10  4.05611
  11  9.04117
  12  2.72321
  13  0.461595
  14  3.94219
  15  0.191622
  16  3.14633
  17  9.9456
  18  21.0686
  19  0.00341575
  20  6.33966
  21  9.83703e-06
  22  0.00330114
  23  5.24448e-05
  24  0.0017696
  25  9.59505
  26  16.2446
  27  0.176355
  28  0.18905
Done.

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

Extracting fit parameters...

4FGL J1230.2+2517
   Spectrum: LogParabola
325         norm:  3.123e+00  3.146e+00  1.000e-04  1.000e+04 ( 1.000e-12)
326        alpha:  2.001e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
327         beta:  5.434e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
328           Eb:  8.113e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
587    Prefactor:  9.687e-01  1.891e-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.047e+00  1.764e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.09
Ra Dec: 187.560 25.298
Photon Index (Fixed Index): 2.00 +/- 0.00
Photon Flux (Fixed Index): 1.84e-08 +/- 1.85e-08
Energy Flux (Fixed Index): 1.09e-05 +/- 1.10e-05

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

Saving results to:
/scratch/kocevski/741737/likelihoodResults_468979201_469238401_4FGL_J1230.2+2517_daily_bin886.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) = 6969.03304051
delta logL = 0.0120083844085

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6969.03284014
delta logL = 0.0122087584941

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.1741       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8973       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0484       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96805       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=   6969.033     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      260 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.1742        3.1749        .14436E-03   -.12870E-02
   2  alpha         1.8972        .64730        .18015E-01   -.88407E-04
   3  Normalizat    1.0488        .19132        .25043E-03    .69638E-04
   4  Prefactor     .96754        .21345        .28836E-03    .90798E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.17421
  alpha      = 1.89724
  Normalizat = 1.04882
  Prefactor  = 0.967536
 **********
 **   18 **HESSE 
 **********

 FCN=   6969.033     FROM HESSE     STATUS=OK            23 CALLS      283 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.1742        3.1706        .57744E-05   -1.5352    
   2  alpha         1.8972        .64657        .72060E-03   -.24350    
   3  Normalizat    1.0488        .19150        .10017E-04   -.91412    
   4  Prefactor     .96754        .21366        .11534E-04   -.93820    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.09568e-09
Minuit parameter uncertainties:
  1  3.17082
  2  0.654483
  3  0.191626
  4  0.213843
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/741737': 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) = 6969.03283705
delta logL = 0.0122118495083

Extracting fit parameters...

4FGL J1230.2+2517
   Spectrum: LogParabola
325         norm:  3.174e+00  3.171e+00  1.000e-04  1.000e+04 ( 1.000e-12)
326        alpha:  1.897e+00  6.545e-01  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.675e-01  2.138e-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.049e+00  1.916e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.11
Ra Dec: 187.560 25.298
Photon Index (Free Index): 1.90 +/- 0.65
Photon Flux (Free Index): 1.68e-08 +/- 1.97e-08
Energy Flux (Free Index): 1.24e-05 +/- 1.59e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/741737/cmap_HighResolution_468979201_469238401_4FGL_J1230.2+2517_daily_bin886.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.95e-05', comment='SUCCESS', photon_flux='1.84e-08', energy_flux2='1.24e-05', photon_flux_error='1.85e-08', dlogl='1.22e-02', energy_flux='1.09e-05', photon_flux2='1.68e-08', job_status='DONE', time_completed='2021-09-05 21:05:40.989782', photon_index_error2='0.65', photon_index2='1.90', ts='2.09', fit_tolerance='1e-08', GAL='0.97', photon_index_error='0.00', photon_flux_upper_limit='6.65e-08', energy_flux_error2='1.59e-05', EG='1.05', time_epoch_completed='1630901140.99', return_code='0', job_id='741737', GAL2='0.97', EG2='1.05', return_code2='0', energy_flux_error='1.10e-05', photon_flux_error2='1.97e-08', ts2='2.11', photon_index='2.00' WHERE bin_id='886' AND source_name='4FGL J1230.2+2517' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 21:05:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0044>
Subject: Job 741737: <4FGL_J1230.2+2517_daily_bin886> in cluster <slac> Done

Job <4FGL_J1230.2+2517_daily_bin886> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sun Sep  5 20:50:21 2021
Job was executed on host(s) <bullet0044>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 20:50:27 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:50:27 2021
Terminated at Sun Sep  5 21:05:41 2021
Results reported at Sun Sep  5 21:05:41 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1230.2+2517_daily_bin886 187.56 25.2983 468979201 469238401 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 :                                   779.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             330.90 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   914 sec.
    Turnaround time :                            920 sec.

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

