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


Performing analysis on: 4FGL_J1230.8+1223_daily_bin779
RA = 187.712, Dec = 12.3883
tmin = 441244801, tmax = 441504001
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='755790', job_status='RUN', time_executed='2021-09-05 21:31:00.224469', time_epoch_executed='1630902660.22' WHERE source_name='4FGL J1230.8+1223' and cadence='daily' and bin_id='779'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/755790

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/755790/ft1_4FGL_J1230.8+1223_daily_bin779.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/755790/ft2_4FGL_J1230.8+1223_daily_bin779.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/755790/ft1_4FGL_J1230.8+1223_daily_bin779.fits outfile=/scratch/kocevski/755790/ft1_filteredMKT_4FGL_J1230.8+1223_daily_bin779.fits ra=187.712 dec=12.3883 rad=12.0 tmin=441244801.0 tmax=441504001.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.51
user 3.26
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/755790/ft1_filtered_4FGL_J1230.8+1223_daily_bin779.fits" evtable="EVENTS" scfile=/scratch/kocevski/755790/ft2_4FGL_J1230.8+1223_daily_bin779.fits sctable="SC_DATA" outfile=/scratch/kocevski/755790/ltcube_441244801_441504001_4FGL_J1230.8+1223_daily_bin779.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/755790/ft2_4FGL_J1230.8+1223_daily_bin779.fits
.....................!
real 13.49
user 13.12
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/755790/ft1_filtered_4FGL_J1230.8+1223_daily_bin779.fits evtable="EVENTS" scfile=/scratch/kocevski/755790/ft2_4FGL_J1230.8+1223_daily_bin779.fits sctable="SC_DATA" expcube=/scratch/kocevski/755790/ltcube_441244801_441504001_4FGL_J1230.8+1223_daily_bin779.fits outfile=/scratch/kocevski/755790/expmap_441244801_441504001_4FGL_J1230.8+1223_daily_bin779.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/755790/ltcube_441244801_441504001_4FGL_J1230.8+1223_daily_bin779.fits
.....................!
real 190.01
user 185.05
sys 4.39

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/755790/ft1_filtered_4FGL_J1230.8+1223_daily_bin779.fits scfile=/scratch/kocevski/755790/ft2_4FGL_J1230.8+1223_daily_bin779.fits outfile=/scratch/kocevski/755790/cmap_441244801_441504001_4FGL_J1230.8+1223_daily_bin779.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.55
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/755790/ft1_filtered_4FGL_J1230.8+1223_daily_bin779.fits scfile=/scratch/kocevski/755790/ft2_4FGL_J1230.8+1223_daily_bin779.fits outfile=/scratch/kocevski/755790/cmap_HighResolution_441244801_441504001_4FGL_J1230.8+1223_daily_bin779.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.57
user 0.38
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.6255       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    8.1701       1.0000         .10000E-03   10000.    
     4 'Prefactor '    9.7646       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10056E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    21.458       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.4289       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    9.0331       1.0000         .10000E-03   10000.    
    12 'Prefactor '    32.670       1.0000         .10000E-03   10000.    
    13 'norm      '    .74536       1.0000         .10000E-03   10000.    
    14 'norm      '    105.08       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    3.6992       1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.6797       1.0000         .10000E-03   10000.    
    18 'Prefactor '    17.037       1.0000         .10000E-03   10000.    
    19 'norm      '    11.201       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    1.4442       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10165E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .93986       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .90777       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=   7579.396     FROM MIGRAD    STATUS=CONVERGED    593 CALLS     3049 TOTAL
                     EDM=   .82E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.6192        14.194        .45372E-07    .38658E-05
   2  Prefactor     .10000E-03    43.411       -.33902E-05** at limit **
   3  Prefactor     8.1652        11.224       -.67575E-07    .10935E-04
   4  Prefactor     9.7593        15.165        .10171E-06    .17710E-05
   5  Prefactor     .10000E-03    2.5398       -.97302E-07** at limit **
   6  Prefactor     .10000E-03    46.276        .41753E-06** at limit **
   7  Prefactor     21.436        37.843        .38903E-05   -.69265E-04
   8  Prefactor     .10000E-03    1.4637       -.10171E-06** at limit **
   9  Prefactor     3.4282        3.4262        .32320E-06    .63554E-04
  10  Prefactor     .10000E-03    7.3875       -.14916E-06** at limit **
  11  norm          9.0321        5.1952        .19628E-06   -.15257E-03
  12  Prefactor     32.672        25.269       -.23674E-06   -.63066E-05
  13  norm          .74525        .27648        .18659E-07    .49985E-03
  14  norm          105.10        77.796       -.15809E-05    .34723E-04
  15  Prefactor     .10000E-03    47.620        .19336E-05** at limit **
  16  norm          3.6990        .82187        .39006E-08   -.43699E-03
  17  Prefactor     1.6608        10.534        .80608E-05    .45087E-03
  18  Prefactor     17.079        30.612       -.10848E-04   -.62979E-04
  19  norm          11.201        2.3080        .16548E-07   -.69077E-04
  20  Prefactor     .10000E-03    19.582        .56507E-06** at limit **
  21  Prefactor     .10000E-03    12.069        .14003E-07** at limit **
  22  Prefactor     1.4445        3.8743        .61365E-05   -.64471E-03
  23  Prefactor     .10000E-03    2.6076        .52404E-07** at limit **
  24  Prefactor     .10000E-03    19.747       -.12565E-06** at limit **
  25  Normalizat    .94022        .19104       -.39258E-06   -.10823E-03
  26  Prefactor     .90745        .15794        .47386E-07   -.40210E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.61925
  Prefactor  = 0.0001
  Prefactor  = 8.16524
  Prefactor  = 9.75927
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 21.436
  Prefactor  = 0.0001
  Prefactor  = 3.42815
  Prefactor  = 0.0001
  norm       = 9.03209
  Prefactor  = 32.6723
  norm       = 0.745252
  norm       = 105.103
  Prefactor  = 0.0001
  norm       = 3.699
  Prefactor  = 1.66078
  Prefactor  = 17.0789
  norm       = 11.2011
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.44446
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.940222
  Prefactor  = 0.90745
 **********
 **   18 **HESSE 
 **********

 FCN=   7579.396     FROM HESSE     STATUS=OK           458 CALLS     3507 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.6192        14.180        .16937E-03   -1.5234    
   2  Prefactor     .10000E-03    43.347        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     8.1652        11.224        .14026E-03   -1.5136    
   4  Prefactor     9.7593        15.168        .12824E-03   -1.5083    
   5  Prefactor     .10000E-03    2.5881        .13527E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    46.286        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     21.436        37.815        .86467E-04   -1.4782    
   8  Prefactor     .10000E-03    1.4857        .20438E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     3.4282        3.4072        .14845E-03   -1.5338    
  10  Prefactor     .10000E-03    7.3901        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          9.0321        5.2092        .11590E-03   -1.5107    
  12  Prefactor     32.672        25.272        .70105E-04   -1.4564    
  13  norm          .74525        .27516        .26186E-04   -1.5535    
  14  norm          105.10        78.305        .39228E-04   -1.3654    
  15  Prefactor     .10000E-03    47.575        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          3.6990        .82611        .32828E-04   -1.5323    
  17  Prefactor     1.6608        10.608        .32506E-03   -1.5450    
  18  Prefactor     17.079        30.827        .97033E-04   -1.4881    
  19  norm          11.201        2.3082        .56716E-04   -1.5038    
  20  Prefactor     .10000E-03    19.590        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    12.075        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     1.4445        3.8930        .13849E-02   -1.5468    
  23  Prefactor     .10000E-03    2.6109        .13728E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    20.128        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .94022        .22154        .28446E-03   -.95061    
  26  Prefactor     .90745        .18248        .26010E-03   -.95881    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.49877e-09
Minuit parameter uncertainties:
  1  14.1881
  2  0.000157525
  3  11.2274
  4  15.174
  5  7.82105e-06
  6  2.06568e-05
  7  37.8575
  8  6.05404e-06
  9  3.40737
  10  1.85183e-05
  11  5.20943
  12  25.2798
  13  0.275165
  14  78.3818
  15  0.000179907
  16  0.826116
  17  8.3964
  18  30.8556
  19  2.30825
  20  4.79255e-05
  21  8.7489e-06
  22  3.89365
  23  6.69752e-06
  24  8.666e-05
  25  0.221756
  26  0.182605
Done.

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

Extracting fit parameters...

4FGL J1230.8+1223
   Spectrum: PowerLaw
309    Prefactor:  1.661e+00  8.396e+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:  9.074e-01  1.826e-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:  9.402e-01  2.218e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/755790/likelihoodResults_441244801_441504001_4FGL_J1230.8+1223_daily_bin779.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) = 7579.1008413
delta logL = 0.294957690629

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7579.07777482
delta logL = 0.318024166059

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.1063       1.0000         .10000E-03   10000.    
     2 'Index     '    3.1386       1.0000          .0000       10.000    
     3 'Normalizat'    .91525       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91731       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=   7579.078     FROM MIGRAD    STATUS=CONVERGED     60 CALLS      237 TOTAL
                     EDM=   .75E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.1015        33.148        .11254E-01    .99511E-03
   2  Index         3.1408        3.1567        .14140        .14421E-03
   3  Normalizat    .91535        .38622E-01    .65117E-01    .15867E-04
   4  Prefactor     .91720        .34378E-01    .45225E-01    .54923E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.10155
  Index      = 3.14075
  Normalizat = 0.915354
  Prefactor  = 0.917203
 **********
 **   18 **HESSE 
 **********

 FCN=   7579.078     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      270 TOTAL
                     EDM=   .13E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.1015        103.33        .12134E-03   -1.5498    
   2  Index         3.1408        5.9257        .78725E-02   -.38100    
   3  Normalizat    .91535        .22538        .28803E-03   -.95923    
   4  Prefactor     .91720        .20000        .25874E-03   -.95543    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.31073e-06
Minuit parameter uncertainties:
  1  21.3745
  2  8.93194
  3  0.22561
  4  0.20016
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/755790': 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) = 7579.07777331
delta logL = 0.318025673029

Extracting fit parameters...

4FGL J1230.8+1223
   Spectrum: PowerLaw
309    Prefactor:  1.102e+00  2.137e+01  1.000e-04  1.000e+04 ( 1.000e-13)
310        Index:  3.141e+00  8.932e+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:  9.172e-01  2.002e-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:  9.154e-01  2.256e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

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/755790/cmap_HighResolution_441244801_441504001_4FGL_J1230.8+1223_daily_bin779.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.77e-03', job_status='DONE', photon_flux_upper_limit='6.33e-08', time_completed='2021-09-05 21:44:35.266168', job_id='755790', GAL2='0.92', fit_tolerance='1e-08', EG2='0.92', EG='0.94', time_epoch_completed='1630903475.27', return_code2='102', ts='0.06', comment='SUCCESS', return_code='0', GAL='0.91', dlogl='3.18e-01', ts2='0.71', photon_index_error='0.00', photon_index='2.06' WHERE bin_id='779' AND source_name='4FGL J1230.8+1223' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 21:44:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0260>
Subject: Job 755790: <4FGL_J1230.8+1223_daily_bin779> in cluster <slac> Done

Job <4FGL_J1230.8+1223_daily_bin779> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sun Sep  5 21:30:24 2021
Job was executed on host(s) <bullet0260>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 21:30:44 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:30:44 2021
Terminated at Sun Sep  5 21:44:39 2021
Results reported at Sun Sep  5 21:44:39 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1230.8+1223_daily_bin779 187.712 12.3883 441244801 441504001 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 :                                   812.31 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             351.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   831 sec.
    Turnaround time :                            855 sec.

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

