/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 21 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 = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1230.8+1223_daily_bin1521
RA = 187.712, Dec = 12.3883
tmin = 633571201, tmax = 633830401
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='759497', job_status='RUN', time_executed='2021-09-05 21:42:02.661100', time_epoch_executed='1630903322.66' WHERE source_name='4FGL J1230.8+1223' and cadence='daily' and bin_id='1521'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/759497

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/759497/ft1_4FGL_J1230.8+1223_daily_bin1521.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/759497/ft2_4FGL_J1230.8+1223_daily_bin1521.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/759497/ft1_4FGL_J1230.8+1223_daily_bin1521.fits outfile=/scratch/kocevski/759497/ft1_filteredMKT_4FGL_J1230.8+1223_daily_bin1521.fits ra=187.712 dec=12.3883 rad=12.0 tmin=633571201.0 tmax=633830401.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.59
user 3.31
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/759497/ft2_4FGL_J1230.8+1223_daily_bin1521.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/759497/ft1_filteredMKT_4FGL_J1230.8+1223_daily_bin1521.fits evtable="EVENTS" outfile="/scratch/kocevski/759497/ft1_filtered_4FGL_J1230.8+1223_daily_bin1521.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.54
user 0.33
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/759497/ft1_filtered_4FGL_J1230.8+1223_daily_bin1521.fits" evtable="EVENTS" scfile=/scratch/kocevski/759497/ft2_4FGL_J1230.8+1223_daily_bin1521.fits sctable="SC_DATA" outfile=/scratch/kocevski/759497/ltcube_633571201_633830401_4FGL_J1230.8+1223_daily_bin1521.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/759497/ft2_4FGL_J1230.8+1223_daily_bin1521.fits
.....................!
real 12.46
user 12.05
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/759497/ft1_filtered_4FGL_J1230.8+1223_daily_bin1521.fits evtable="EVENTS" scfile=/scratch/kocevski/759497/ft2_4FGL_J1230.8+1223_daily_bin1521.fits sctable="SC_DATA" expcube=/scratch/kocevski/759497/ltcube_633571201_633830401_4FGL_J1230.8+1223_daily_bin1521.fits outfile=/scratch/kocevski/759497/expmap_633571201_633830401_4FGL_J1230.8+1223_daily_bin1521.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/759497/ltcube_633571201_633830401_4FGL_J1230.8+1223_daily_bin1521.fits
.....................!
real 192.46
user 186.39
sys 5.69

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/759497/ft1_filtered_4FGL_J1230.8+1223_daily_bin1521.fits scfile=/scratch/kocevski/759497/ft2_4FGL_J1230.8+1223_daily_bin1521.fits outfile=/scratch/kocevski/759497/cmap_633571201_633830401_4FGL_J1230.8+1223_daily_bin1521.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.56
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/759497/ft1_filtered_4FGL_J1230.8+1223_daily_bin1521.fits scfile=/scratch/kocevski/759497/ft2_4FGL_J1230.8+1223_daily_bin1521.fits outfile=/scratch/kocevski/759497/cmap_HighResolution_633571201_633830401_4FGL_J1230.8+1223_daily_bin1521.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 0.56
user 0.38
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/759497/ft1_filtered_4FGL_J1230.8+1223_daily_bin1521.fits', '/scratch/kocevski/759497/ft2_4FGL_J1230.8+1223_daily_bin1521.fits', expMap='/scratch/kocevski/759497/expmap_633571201_633830401_4FGL_J1230.8+1223_daily_bin1521.fits', expCube='/scratch/kocevski/759497/ltcube_633571201_633830401_4FGL_J1230.8+1223_daily_bin1521.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/759497/Model_4FGL_J1230.8+1223_daily_bin1521.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/759497/ft1_filtered_4FGL_J1230.8+1223_daily_bin1521.fits
Spacecraft file(s): /scratch/kocevski/759497/ft2_4FGL_J1230.8+1223_daily_bin1521.fits
Exposure map: /scratch/kocevski/759497/expmap_633571201_633830401_4FGL_J1230.8+1223_daily_bin1521.fits
Exposure cube: /scratch/kocevski/759497/ltcube_633571201_633830401_4FGL_J1230.8+1223_daily_bin1521.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/759497/Model_4FGL_J1230.8+1223_daily_bin1521.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) = 6550.26056957

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.2397       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.5397       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .48233       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    5.0252       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    11.874       1.0000         .10000E-03   10000.    
    16 'norm      '    3.6597       1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.6200       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    3.0245       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    23.039       1.0000         .10000E-03   10000.    
    22 'Prefactor '    8.5461       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10572E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    2.4294       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.1194       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.0265       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=   6550.175     FROM MIGRAD    STATUS=CONVERGED    610 CALLS     2629 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    11.293       -.90489E-07** at limit **
   2  Prefactor     .10000E-03    112.83       -.10358E-06** at limit **
   3  Prefactor     .10000E-03    4.4345       -.21439E-07** at limit **
   4  Prefactor     .10000E-03    3.3840        .16245E-07** at limit **
   5  Prefactor     5.2405        4.0890       -.43873E-07   -.16826E-04
   6  Prefactor     .10000E-03    19.872       -.79131E-06** at limit **
   7  Prefactor     2.5389        39.486        .15497E-04   -.25284E-03
   8  Prefactor     .48013        2.4219        .30162E-06   -.23018E-03
   9  Prefactor     .10000E-03    .90914       -.34616E-07** at limit **
  10  Prefactor     .10000E-03    8.6649       -.37107E-07** at limit **
  11  norm          5.0254        4.2620        .12538E-06   -.13715E-03
  12  Prefactor     .10000E-03    11.409       -.23646E-06** at limit **
  13  norm          .10000E-03    .68720E-01    .73727E-08** at limit **
  14  norm          .10000E-03    21.244       -.18287E-05** at limit **
  15  Prefactor     11.802        489.40       -.37051E-04   -.76628E-04
  16  norm          3.6597        .86834       -.59396E-09   -.38112E-05
  17  Prefactor     1.6209        5.5530        .19721E-05    .93854E-04
  18  Prefactor     .10000E-03    10.397        .12332E-06** at limit **
  19  norm          3.0245        2.2244        .18388E-06   -.74400E-04
  20  Prefactor     .10000E-03    25.930        .13694E-05** at limit **
  21  Prefactor     23.057        31.214        .23953E-05    .20887E-03
  22  Prefactor     8.5463        6.5938        .50535E-07   -.23152E-04
  23  Prefactor     .10000E-03    17.556        .19841E-05** at limit **
  24  Prefactor     2.4259        11.284        .10160E-05   -.78443E-04
  25  Normalizat    1.1194        .19271       -.10951E-05   -.89196E-04
  26  Prefactor     1.0265        .16788        .70835E-07   -.13800E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.24049
  Prefactor  = 0.0001
  Prefactor  = 2.53891
  Prefactor  = 0.480133
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.02539
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.000100002
  Prefactor  = 11.802
  norm       = 3.65973
  Prefactor  = 1.62095
  Prefactor  = 0.0001
  norm       = 3.02447
  Prefactor  = 0.000100001
  Prefactor  = 23.0573
  Prefactor  = 8.54626
  Prefactor  = 0.000100001
  Prefactor  = 2.4259
  Normalizat = 1.11936
  Prefactor  = 1.02652
 **********
 **   18 **HESSE 
 **********

 FCN=   6550.175     FROM HESSE     STATUS=OK           456 CALLS     3085 TOTAL
                     EDM=   .31E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    11.385        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    112.98        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    4.4475        .16643E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    3.3853        .14540E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     5.2405        4.0421        .13362E-03   -1.5250    
   6  Prefactor     .10000E-03    19.905        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     2.5389        44.309        .12813E-02   -1.5389    
   8  Prefactor     .48013        4.5581        .22228E-02   -1.5569    
   9  Prefactor     .10000E-03    .91374        .75206E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    8.6682        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          5.0254        4.2620        .13657E-03   -1.5260    
  12  Prefactor     .10000E-03    11.413        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    .75483E-01    .41179E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    21.417        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     11.802        559.71        .11626E-03   -1.5021    
  16  norm          3.6597        .86941        .32672E-04   -1.5325    
  17  Prefactor     1.6209        5.5221        .33254E-03   -1.5453    
  18  Prefactor     .10000E-03    10.409        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          3.0245        2.2117        .94803E-04   -1.5360    
  20  Prefactor     .10000E-03    26.034        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     23.057        31.427        .83452E-04   -1.4747    
  22  Prefactor     8.5463        6.5938        .13712E-03   -1.5123    
  23  Prefactor     .10000E-03    17.869        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     2.4259        11.259        .26255E-03   -1.5396    
  25  Normalizat    1.1194        .22275        .26778E-03   -.89133    
  26  Prefactor     1.0265        .19558        .25129E-03   -.91851    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.13079e-08
Minuit parameter uncertainties:
  1  1.27312e-05
  2  4.12587e-05
  3  1.59834e-06
  4  1.67932e-06
  5  4.04228
  6  0.000159875
  7  21.2308
  8  2.95872
  9  4.26396e-07
  10  6.13584e-06
  11  4.26228
  12  7.34439e-06
  13  2.29315e-07
  14  0.000372962
  15  164.207
  16  0.869411
  17  5.5238
  18  4.13563e-07
  19  2.21174
  20  0.000310003
  21  31.4498
  22  6.59433
  23  0.000198885
  24  10.4556
  25  0.222941
  26  0.195716
Done.

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

Extracting fit parameters...

4FGL J1230.8+1223
   Spectrum: PowerLaw
309    Prefactor:  1.621e+00  5.524e+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

GAL_V02
   Spectrum: PowerLaw
555    Prefactor:  1.027e+00  1.957e-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:  1.119e+00  2.229e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.11
Ra Dec: 187.712 12.388
Photon Flux Upper Limit: 5.71e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.30e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/759497/likelihoodResults_633571201_633830401_4FGL_J1230.8+1223_daily_bin1521.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) = 6550.17097016
delta logL = 0.00434364808643

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6550.17042529
delta logL = 0.00488852290346

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.8127       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9077       1.0000          .0000       10.000    
     3 'Normalizat'    1.1201       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0261       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6550.170     FROM MIGRAD    STATUS=CONVERGED    100 CALLS      266 TOTAL
                     EDM=   .89E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.8169        6.1310        .15514E-02   -.16931E-03
   2  Index         1.9051        1.4734        .82395E-02   -.77857E-04
   3  Normalizat    1.1202        .21240        .26769E-03   -.15319E-03
   4  Prefactor     1.0261        .19313        .25134E-03   -.22848E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.81694
  Index      = 1.90511
  Normalizat = 1.12016
  Prefactor  = 1.02608
 **********
 **   18 **HESSE 
 **********

 FCN=   6550.170     FROM HESSE     STATUS=OK            25 CALLS      291 TOTAL
                     EDM=   .91E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.8169        6.0523        .62056E-04   -1.5438    
   2  Index         1.9051        1.4560        .32958E-03   -.66744    
   3  Normalizat    1.1202        .21258        .10708E-04   -.89107    
   4  Prefactor     1.0261        .19330        .50268E-04   -.91865    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.07862e-10
Minuit parameter uncertainties:
  1  6.05435
  2  1.49164
  3  0.212743
  4  0.193427
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/759497': 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) = 6550.17042368
delta logL = 0.00489012737307

Extracting fit parameters...

4FGL J1230.8+1223
   Spectrum: PowerLaw
309    Prefactor:  1.817e+00  6.054e+00  1.000e-04  1.000e+04 ( 1.000e-13)
310        Index:  1.905e+00  1.492e+00  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.026e+00  1.934e-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:  1.120e+00  2.127e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.11
Ra Dec: 187.712 12.388

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/759497/cmap_HighResolution_633571201_633830401_4FGL_J1230.8+1223_daily_bin1521.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.30e-03', job_status='DONE', photon_flux_upper_limit='5.71e-08', time_completed='2021-09-05 21:54:41.261742', job_id='759497', GAL2='1.03', fit_tolerance='1e-08', EG2='1.12', EG='1.12', time_epoch_completed='1630904081.26', return_code2='0', ts='0.11', comment='SUCCESS', return_code='0', GAL='1.03', dlogl='4.89e-03', ts2='0.12', photon_index_error='0.00', photon_index='2.06' WHERE bin_id='1521' AND source_name='4FGL J1230.8+1223' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 21:54:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0137>
Subject: Job 759497: <4FGL_J1230.8+1223_daily_bin1521> in cluster <slac> Done

Job <4FGL_J1230.8+1223_daily_bin1521> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sun Sep  5 21:40:48 2021
Job was executed on host(s) <bullet0137>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 21:41:15 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:41:15 2021
Terminated at Sun Sep  5 21:54:42 2021
Results reported at Sun Sep  5 21:54:42 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1230.8+1223_daily_bin1521 187.712 12.3883 633571201 633830401 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 :                                   712.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             353.68 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   806 sec.
    Turnaround time :                            834 sec.

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

