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


Performing analysis on: 4FGL_J1230.8+1223_daily_bin267
RA = 187.712, Dec = 12.3883
tmin = 308534401, tmax = 308793601
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='751391', job_status='RUN', time_executed='2021-09-05 21:16:50.739798', time_epoch_executed='1630901810.74' WHERE source_name='4FGL J1230.8+1223' and cadence='daily' and bin_id='267'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/751391

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

Retrieving the FT1 file...

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

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

Retrieving 45 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/751391/ft1_4FGL_J1230.8+1223_daily_bin267.fits


Retrieving the FT1 file...

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

Retrieving 45 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/751391/ft2_4FGL_J1230.8+1223_daily_bin267.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/751391/ft1_4FGL_J1230.8+1223_daily_bin267.fits outfile=/scratch/kocevski/751391/ft1_filteredMKT_4FGL_J1230.8+1223_daily_bin267.fits ra=187.712 dec=12.3883 rad=12.0 tmin=308534401.0 tmax=308793601.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 6.57
user 5.15
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/751391/ft2_4FGL_J1230.8+1223_daily_bin267.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/751391/ft2_4FGL_J1230.8+1223_daily_bin267.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/751391/ft1_filteredMKT_4FGL_J1230.8+1223_daily_bin267.fits evtable="EVENTS" outfile="/scratch/kocevski/751391/ft1_filtered_4FGL_J1230.8+1223_daily_bin267.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 2.16
user 0.34
sys 0.19

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/751391/ft1_filtered_4FGL_J1230.8+1223_daily_bin267.fits" evtable="EVENTS" scfile=/scratch/kocevski/751391/ft2_4FGL_J1230.8+1223_daily_bin267.fits sctable="SC_DATA" outfile=/scratch/kocevski/751391/ltcube_308534401_308793601_4FGL_J1230.8+1223_daily_bin267.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/751391/ft2_4FGL_J1230.8+1223_daily_bin267.fits
.....................!
real 15.57
user 14.15
sys 0.39

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/751391/ft1_filtered_4FGL_J1230.8+1223_daily_bin267.fits evtable="EVENTS" scfile=/scratch/kocevski/751391/ft2_4FGL_J1230.8+1223_daily_bin267.fits sctable="SC_DATA" expcube=/scratch/kocevski/751391/ltcube_308534401_308793601_4FGL_J1230.8+1223_daily_bin267.fits outfile=/scratch/kocevski/751391/expmap_308534401_308793601_4FGL_J1230.8+1223_daily_bin267.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/751391/ltcube_308534401_308793601_4FGL_J1230.8+1223_daily_bin267.fits
.....................!
real 194.19
user 185.63
sys 5.67

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 173 point sources and 0 extended sources

Setting source of interest to:
4FGL J1230.8+1223 @ 187.712 12.3883

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/751391/ft1_filtered_4FGL_J1230.8+1223_daily_bin267.fits scfile=/scratch/kocevski/751391/ft2_4FGL_J1230.8+1223_daily_bin267.fits outfile=/scratch/kocevski/751391/cmap_308534401_308793601_4FGL_J1230.8+1223_daily_bin267.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.712 yref=12.3883 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.88
user 0.39
sys 0.18

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/751391/ft1_filtered_4FGL_J1230.8+1223_daily_bin267.fits scfile=/scratch/kocevski/751391/ft2_4FGL_J1230.8+1223_daily_bin267.fits outfile=/scratch/kocevski/751391/cmap_HighResolution_308534401_308793601_4FGL_J1230.8+1223_daily_bin267.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.712 yref=12.3883 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 1.06
user 0.40
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/751391/ft1_filtered_4FGL_J1230.8+1223_daily_bin267.fits evtable="EVENTS" scfile=/scratch/kocevski/751391/ft2_4FGL_J1230.8+1223_daily_bin267.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/751391/Model_4FGL_J1230.8+1223_daily_bin267.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/751391/ft1_filtered_4FGL_J1230.8+1223_daily_bin267.fits.....................!
real 75.80
user 69.20
sys 1.45

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/751391/ft1_filtered_4FGL_J1230.8+1223_daily_bin267.fits', '/scratch/kocevski/751391/ft2_4FGL_J1230.8+1223_daily_bin267.fits', expMap='/scratch/kocevski/751391/expmap_308534401_308793601_4FGL_J1230.8+1223_daily_bin267.fits', expCube='/scratch/kocevski/751391/ltcube_308534401_308793601_4FGL_J1230.8+1223_daily_bin267.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/751391/Model_4FGL_J1230.8+1223_daily_bin267.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1230.8+1223'

4FGL J1230.8+1223
   Spectrum: PowerLaw
309    Prefactor:  6.672e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
310        Index:  2.057e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
311        Scale:  1.570e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/751391/ft1_filtered_4FGL_J1230.8+1223_daily_bin267.fits
Spacecraft file(s): /scratch/kocevski/751391/ft2_4FGL_J1230.8+1223_daily_bin267.fits
Exposure map: /scratch/kocevski/751391/expmap_308534401_308793601_4FGL_J1230.8+1223_daily_bin267.fits
Exposure cube: /scratch/kocevski/751391/ltcube_308534401_308793601_4FGL_J1230.8+1223_daily_bin267.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/751391/Model_4FGL_J1230.8+1223_daily_bin267.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) = 7345.46414014

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    13.388       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10140E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    16.049       1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.7421       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .22671E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    51.120       1.0000         .10000E-03   10000.    
     7 'Prefactor '    16.060       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10104E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    6.6963       1.0000         .10000E-03   10000.    
    10 'Prefactor '    19.608       1.0000         .10000E-03   10000.    
    11 'norm      '    5.1433       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10844E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    11.372       1.0000         .10000E-03   10000.    
    14 'norm      '    .14896       1.0000         .10000E-03   10000.    
    15 'Prefactor '    102.36       1.0000         .10000E-03   10000.    
    16 'norm      '    2.6895       1.0000         .10000E-03   10000.    
    17 'Prefactor '    20.323       1.0000         .10000E-03   10000.    
    18 'Prefactor '    57.032       1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10158E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10109E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    20.387       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .87438       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.3627       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5580E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7345.430     FROM MIGRAD    STATUS=CONVERGED    695 CALLS     3683 TOTAL
                     EDM=   .28E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.396        16.706       -.44277E-06   -.18577E-04
   2  Prefactor     .10000E-03    172.63       -.87390E-05** at limit **
   3  Prefactor     16.043        12.734       -.13767E-06    .25104E-04
   4  Prefactor     3.7429        21.041        .51521E-06    .18960E-04
   5  Prefactor     .10000E-03    20.692       -.66113E-05** at limit **
   6  Prefactor     51.151        100.28       -.61314E-06    .14108E-05
   7  Prefactor     16.221        59.606       -.27568E-05   -.39308E-05
   8  Prefactor     .10000E-03    2.2640       -.14997E-05** at limit **
   9  Prefactor     6.6957        3.9917        .98747E-08    .27396E-04
  10  Prefactor     19.604        22.392       -.21872E-06   -.12000E-05
  11  norm          5.1429        4.9222       -.26611E-06   -.17488E-03
  12  Prefactor     .10000E-03    32.186        .76842E-07** at limit **
  13  norm          11.372        .83266       -.98210E-08   -.11571E-03
  14  norm          .10000E-03    6625.7        .20369E-05** at limit **
  15  Prefactor     102.40        165.11       -.38838E-06   -.17356E-05
  16  norm          2.6897        .93468       -.37534E-07   -.39470E-03
  17  Prefactor     20.323        13.623       -.79939E-07    .32250E-05
  18  Prefactor     57.054        38.352       -.12219E-06   -.21000E-05
  19  norm          .10000E-03    2.1315        .85179E-06** at limit **
  20  Prefactor     .10000E-03    22.874        .10310E-07** at limit **
  21  Prefactor     .10000E-03    59.618       -.75246E-07** at limit **
  22  Prefactor     .10000E-03    9.0903        .29298E-06** at limit **
  23  Prefactor     .10000E-03    6.9647       -.62898E-06** at limit **
  24  Prefactor     20.377        15.217       -.11341E-06    .17540E-04
  25  Normalizat    .87456        .30122       -.25755E-05   -.21670E-04
  26  Prefactor     1.3625        .25121        .29401E-05   -.38230E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.3959
  Prefactor  = 0.0001
  Prefactor  = 16.0428
  Prefactor  = 3.74294
  Prefactor  = 0.0001
  Prefactor  = 51.1506
  Prefactor  = 16.2214
  Prefactor  = 0.000100001
  Prefactor  = 6.69572
  Prefactor  = 19.6043
  norm       = 5.1429
  Prefactor  = 0.0001
  norm       = 11.3717
  norm       = 0.0001
  Prefactor  = 102.397
  norm       = 2.68975
  Prefactor  = 20.3227
  Prefactor  = 57.0543
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 20.3771
  Normalizat = 0.874563
  Prefactor  = 1.36251
 **********
 **   18 **HESSE 
 **********

 FCN=   7345.430     FROM HESSE     STATUS=OK           478 CALLS     4161 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.396        16.576        .10947E-03   -1.4976    
   2  Prefactor     .10000E-03    172.94        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     16.043        12.724        .99975E-04   -1.4907    
   4  Prefactor     3.7429        20.747        .20873E-03   -1.5321    
   5  Prefactor     .10000E-03    22.167        .31815E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     51.151        99.620        .56091E-04   -1.4276    
   7  Prefactor     16.221        59.731        .99943E-04   -1.4902    
   8  Prefactor     .10000E-03    8.2344        .19564E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     6.6957        3.9441        .12502E-03   -1.5190    
  10  Prefactor     19.604        22.388        .90450E-04   -1.4822    
  11  norm          5.1429        5.5750        .16522E-03   -1.5254    
  12  Prefactor     .10000E-03    32.242        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          11.372        .83178        .20029E-04   -1.5033    
  14  norm          .10000E-03    77.453        .18352       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     102.40        165.06        .19871E-03   -1.3681    
  16  norm          2.6897        .94211        .44115E-04   -1.5380    
  17  Prefactor     20.323        13.618        .88846E-04   -1.4806    
  18  Prefactor     57.054        38.343        .53120E-04   -1.4196    
  19  norm          .10000E-03    2.1426        .17180E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    22.883        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    59.872        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    9.4035        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    7.0047        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     20.377        15.216        .88706E-04   -1.4805    
  25  Normalizat    .87456        .30414        .40290E-03   -.97360    
  26  Prefactor     1.3625        .25489        .29902E-03   -.81467    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.67869e-10
Minuit parameter uncertainties:
  1  16.5817
  2  2.78514e-05
  3  12.7264
  4  17.6336
  5  0.000159781
  6  99.9471
  7  59.9524
  8  0.000185235
  9  3.94424
  10  22.3977
  11  5.5756
  12  1.0387e-05
  13  0.831781
  14  0.000212358
  15  165.805
  16  0.942119
  17  13.6196
  18  38.3597
  19  2.97996e-06
  20  3.10902e-07
  21  2.9325e-05
  22  4.55355e-05
  23  6.01247e-06
  24  15.2192
  25  0.304741
  26  0.255123
Done.

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

Extracting fit parameters...

4FGL J1230.8+1223
   Spectrum: PowerLaw
309    Prefactor:  2.032e+01  1.362e+01  1.000e-04  1.000e+04 ( 1.000e-13)
310        Index:  2.057e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
311        Scale:  1.570e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
555    Prefactor:  1.363e+00  2.551e-01  0.000e+00  1.000e+01 ( 1.000e+00)
556        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
557        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
554   Normalization:  8.746e-01  3.047e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 12.38
Ra Dec: 187.712 12.388
Photon Index (Fixed Index): 2.06 +/- 0.00
Photon Flux (Fixed Index): 5.54e-08 +/- 3.71e-08
Energy Flux (Fixed Index): 3.34e-05 +/- 2.24e-05

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) = 7345.2531271
delta logL = 0.177073122352

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7345.25021525
delta logL = 0.179984967089

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    20.909       1.0000         .10000E-03   10000.    
     2 'Index     '    1.6873       1.0000          .0000       10.000    
     3 'Normalizat'    .89819       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3541       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5580E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7345.250     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      235 TOTAL
                     EDM=   .90E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     20.909        22.031        .21898E-02    .15557E-02
   2  Index         1.6873        .74847        .19045       -.11988E-03
   3  Normalizat    .89830        .24155        .89906E-01    .28490E-04
   4  Prefactor     1.3540        .21297        .67812E-01    .21878E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 20.9095
  Index      = 1.68733
  Normalizat = 0.898296
  Prefactor  = 1.35399
 **********
 **   18 **HESSE 
 **********

 FCN=   7345.250     FROM HESSE     STATUS=OK            31 CALLS      266 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     20.909        14.847        .87593E-04   -1.4793    
   2  Index         1.6873        .58628        .10725E-01   -.72420    
   3  Normalizat    .89830        .27751        .39822E-03   -.96520    
   4  Prefactor     1.3540        .25094        .29993E-03   -.81715    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.4955e-09
Minuit parameter uncertainties:
  1  14.8495
  2  0.588702
  3  0.277954
  4  0.251166
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/751391': 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) = 7345.25021517
delta logL = 0.179985053996

Extracting fit parameters...

4FGL J1230.8+1223
   Spectrum: PowerLaw
309    Prefactor:  2.091e+01  1.485e+01  1.000e-04  1.000e+04 ( 1.000e-13)
310        Index:  1.687e+00  5.887e-01  0.000e+00  1.000e+01 (-1.000e+00)
311        Scale:  1.570e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
555    Prefactor:  1.354e+00  2.512e-01  0.000e+00  1.000e+01 ( 1.000e+00)
556        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
557        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
554   Normalization:  8.983e-01  2.780e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 12.72
Ra Dec: 187.712 12.388
Photon Index (Free Index): 1.69 +/- 0.59
Photon Flux (Free Index): 3.14e-08 +/- 3.69e-08
Energy Flux (Free Index): 5.34e-05 +/- 6.28e-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/751391/cmap_HighResolution_308534401_308793601_4FGL_J1230.8+1223_daily_bin267.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.54e-08', energy_flux2='5.34e-05', photon_flux_error='3.71e-08', dlogl='1.80e-01', energy_flux='3.34e-05', photon_flux2='3.14e-08', job_status='DONE', time_completed='2021-09-05 21:30:56.217165', photon_index_error2='0.59', photon_index2='1.69', ts='12.38', fit_tolerance='1e-08', GAL='1.36', photon_index_error='0.00', energy_flux_error2='6.28e-05', EG='0.87', time_epoch_completed='1630902656.22', return_code='0', job_id='751391', GAL2='1.35', EG2='0.90', return_code2='0', energy_flux_error='2.24e-05', photon_flux_error2='3.69e-08', ts2='12.72', photon_index='2.06' WHERE bin_id='267' AND source_name='4FGL J1230.8+1223' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 21:30:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0154>
Subject: Job 751391: <4FGL_J1230.8+1223_daily_bin267> in cluster <slac> Done

Job <4FGL_J1230.8+1223_daily_bin267> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sun Sep  5 21:15:45 2021
Job was executed on host(s) <bullet0154>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 21:16:21 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep  5 21:16:21 2021
Terminated at Sun Sep  5 21:30:57 2021
Results reported at Sun Sep  5 21:30:57 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1230.8+1223_daily_bin267 187.712 12.3883 308534401 308793601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1230.8+1223 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   829.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             320.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   875 sec.
    Turnaround time :                            912 sec.

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

