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


Performing analysis on: 4FGL_J1230.8+1223_daily_bin362
RA = 187.712, Dec = 12.3883
tmin = 333158401, tmax = 333417601
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='751541', job_status='RUN', time_executed='2021-09-05 21:17:55.869429', time_epoch_executed='1630901875.87' WHERE source_name='4FGL J1230.8+1223' and cadence='daily' and bin_id='362'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/751541

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

Retrieving the FT1 file...

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

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

Retrieving 51 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/751541/ft1_4FGL_J1230.8+1223_daily_bin362.fits


Retrieving the FT1 file...

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

Retrieving 51 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/751541/ft2_4FGL_J1230.8+1223_daily_bin362.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/751541/ft1_4FGL_J1230.8+1223_daily_bin362.fits outfile=/scratch/kocevski/751541/ft1_filteredMKT_4FGL_J1230.8+1223_daily_bin362.fits ra=187.712 dec=12.3883 rad=12.0 tmin=333158401.0 tmax=333417601.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 7.66
user 5.83
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/751541/ft2_4FGL_J1230.8+1223_daily_bin362.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/751541/ft1_filteredMKT_4FGL_J1230.8+1223_daily_bin362.fits evtable="EVENTS" outfile="/scratch/kocevski/751541/ft1_filtered_4FGL_J1230.8+1223_daily_bin362.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 4.10
user 0.36
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/751541/ft1_filtered_4FGL_J1230.8+1223_daily_bin362.fits" evtable="EVENTS" scfile=/scratch/kocevski/751541/ft2_4FGL_J1230.8+1223_daily_bin362.fits sctable="SC_DATA" outfile=/scratch/kocevski/751541/ltcube_333158401_333417601_4FGL_J1230.8+1223_daily_bin362.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/751541/ft2_4FGL_J1230.8+1223_daily_bin362.fits
.....................!
real 13.96
user 13.16
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/751541/ft1_filtered_4FGL_J1230.8+1223_daily_bin362.fits evtable="EVENTS" scfile=/scratch/kocevski/751541/ft2_4FGL_J1230.8+1223_daily_bin362.fits sctable="SC_DATA" expcube=/scratch/kocevski/751541/ltcube_333158401_333417601_4FGL_J1230.8+1223_daily_bin362.fits outfile=/scratch/kocevski/751541/expmap_333158401_333417601_4FGL_J1230.8+1223_daily_bin362.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/751541/ltcube_333158401_333417601_4FGL_J1230.8+1223_daily_bin362.fits
.....................!
real 194.27
user 185.35
sys 4.66

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/751541/ft1_filtered_4FGL_J1230.8+1223_daily_bin362.fits scfile=/scratch/kocevski/751541/ft2_4FGL_J1230.8+1223_daily_bin362.fits outfile=/scratch/kocevski/751541/cmap_333158401_333417601_4FGL_J1230.8+1223_daily_bin362.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.54
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/751541/ft1_filtered_4FGL_J1230.8+1223_daily_bin362.fits scfile=/scratch/kocevski/751541/ft2_4FGL_J1230.8+1223_daily_bin362.fits outfile=/scratch/kocevski/751541/cmap_HighResolution_333158401_333417601_4FGL_J1230.8+1223_daily_bin362.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.41
sys 0.13

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    8.0683       1.0000         .10000E-03   10000.    
     4 'Prefactor '    24.109       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.0486       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    36.895       1.0000         .10000E-03   10000.    
     8 'Prefactor '    9.5425       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10109E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    5.9880       1.0000         .10000E-03   10000.    
    12 'Prefactor '    38.004       1.0000         .10000E-03   10000.    
    13 'norm      '    1.0354       1.0000         .10000E-03   10000.    
    14 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    147.08       1.0000         .10000E-03   10000.    
    16 'norm      '    .34937       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    6.5635       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10063E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .13184       1.0000         .10000E-03   10000.    
    24 'Prefactor '    17.153       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.1168       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .80683       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=   5426.858     FROM MIGRAD    STATUS=CONVERGED    630 CALLS     3096 TOTAL
                     EDM=   .84E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7.8583       -.56009E-07** at limit **
   2  Prefactor     .10000E-03    35.898       -.67879E-05** at limit **
   3  Prefactor     8.0652        10.596       -.72931E-06   -.50915E-04
   4  Prefactor     24.103        17.078        .92588E-06   -.13128E-04
   5  Prefactor     1.0472        3.7026       -.17901E-05   -.10403E-02
   6  Prefactor     .10000E-03    55.703        .12675E-04** at limit **
   7  Prefactor     36.865        49.601       -.26953E-04    .93249E-05
   8  Prefactor     9.5415        3.5232       -.12705E-06    .21491E-03
   9  Prefactor     .10000E-03    .99253       -.99814E-07** at limit **
  10  Prefactor     .10000E-03    16.060        .31072E-06** at limit **
  11  norm          5.9889        4.3031        .13967E-05   -.34941E-04
  12  Prefactor     38.001        36.806       -.98359E-06    .82366E-05
  13  norm          1.0353        .31120       -.53916E-07    .49786E-03
  14  norm          .10000E-03    24.080       -.47875E-06** at limit **
  15  Prefactor     147.01        161.17       -.52168E-04    .16421E-05
  16  norm          .34927        .45722       -.67491E-07   -.53642E-03
  17  Prefactor     .10000E-03    3.9734        .14723E-06** at limit **
  18  Prefactor     .10000E-03    11.874        .51773E-06** at limit **
  19  norm          6.5633        2.2907        .37269E-07    .13967E-03
  20  Prefactor     .10000E-03    52.771       -.13612E-04** at limit **
  21  Prefactor     .10000E-03    34.485        .77433E-05** at limit **
  22  Prefactor     .10000E-03    4.8785        .52721E-07** at limit **
  23  Prefactor     .10043E-03    10.547       -.50327E-06** at limit **
  24  Prefactor     17.170        13.793       -.17275E-05    .43851E-04
  25  Normalizat    1.1169        .21064        .29130E-05    .22084E-04
  26  Prefactor     .80693        .17719        .11592E-05    .14107E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.06523
  Prefactor  = 24.1031
  Prefactor  = 1.04724
  Prefactor  = 0.0001
  Prefactor  = 36.8646
  Prefactor  = 9.54146
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.9889
  Prefactor  = 38.001
  norm       = 1.03529
  norm       = 0.0001
  Prefactor  = 147.012
  norm       = 0.349272
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.56332
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100434
  Prefactor  = 17.1697
  Normalizat = 1.11693
  Prefactor  = 0.806934
 **********
 **   18 **HESSE 
 **********

 FCN=   5426.858     FROM HESSE     STATUS=OK           470 CALLS     3566 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7.8768        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    35.879        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     8.0652        10.595        .14115E-03   -1.5140    
   4  Prefactor     24.103        17.082        .81580E-04   -1.4726    
   5  Prefactor     1.0472        3.6927        .25222E-03   -1.5503    
   6  Prefactor     .10000E-03    55.710        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     36.865        49.659        .65981E-04   -1.4493    
   8  Prefactor     9.5415        3.5069        .79143E-04   -1.5090    
   9  Prefactor     .10000E-03    .99782        .71622E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    16.071        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          5.9889        4.2574        .11834E-03   -1.5218    
  12  Prefactor     38.001        36.819        .65015E-04   -1.4474    
  13  norm          1.0353        .31203        .21465E-04   -1.5504    
  14  norm          .10000E-03    24.089        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     147.01        160.85        .16614E-03   -1.3277    
  16  norm          .34927        .41868        .53360E-03   -1.5590    
  17  Prefactor     .10000E-03    3.9797        .14341E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    11.886        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          6.5633        2.2852        .62319E-04   -1.5196    
  20  Prefactor     .10000E-03    52.919        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    34.497        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    4.9081        .15888E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10043E-03    19.902        .65183E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     17.170        13.810        .96704E-04   -1.4879    
  25  Normalizat    1.1169        .24607        .26229E-03   -.89210    
  26  Prefactor     .80693        .20532        .26895E-03   -.99473    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.66365e-09
Minuit parameter uncertainties:
  1  3.74061e-07
  2  0.000100617
  3  10.5972
  4  17.0857
  5  3.69352
  6  4.06852e-05
  7  49.7147
  8  3.50696
  9  1.99904e-06
  10  0.000108076
  11  4.25759
  12  36.841
  13  0.312027
  14  2.00613e-05
  15  161.337
  16  0.418681
  17  3.72165e-06
  18  1.53437e-05
  19  2.28525
  20  4.42819e-05
  21  3.38102e-05
  22  1.67785e-05
  23  0.00588026
  24  13.8123
  25  0.246325
  26  0.205516
Done.

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

Extracting fit parameters...

4FGL J1230.8+1223
   Spectrum: PowerLaw
309    Prefactor:  1.000e-04  3.722e-06  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:  8.069e-01  2.055e-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.117e+00  2.463e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/751541/likelihoodResults_333158401_333417601_4FGL_J1230.8+1223_daily_bin362.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5426.85872249
delta logL = -0.0011887286737

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5426.85753368
delta logL = 7.88286342868e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0430       1.0000          .0000       10.000    
     3 'Normalizat'    1.1169       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .80695       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5426.858     FROM MIGRAD    STATUS=FAILED        86 CALLS      234 TOTAL
                     EDM=   .24E-03    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    358.21        .14458E-02** at limit **
   2  Index         2.0287        8.9674        .20000        .27733E-04
   3  Normalizat    1.1169        .54284E-01    .26229E-03    .86255E-05
   4  Prefactor     .80693        .48366E-01    .26895E-03    .11033E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5426.858     FROM SIMPLEX   STATUS=UNCHANGED    173 CALLS      407 TOTAL
                     EDM=   .78E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    358.21        .28734E-03** at limit **
   2  Index         2.0287        8.9674        .21433E-05    .27733E-04
   3  Normalizat    1.1169        .54284E-01    .31896E-07    .86255E-05
   4  Prefactor     .80693        .48366E-01    .23187E-07    .11033E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5426.858     FROM MIGRAD    STATUS=CONVERGED     45 CALLS      452 TOTAL
                     EDM=   .36E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    726.88        .28917E-02** at limit **
   2  Index         1.6587        9.1389        .80000E-01    .14211E-08
   3  Normalizat    1.1169        .87934E-01    .10492E-04    .52013E-05
   4  Prefactor     .80693        .78351E-01    .10758E-04    .99337E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.65874
  Normalizat = 1.11693
  Prefactor  = 0.806932
 **********
 **   18 **HESSE 
 **********

 FCN=   5426.858     FROM HESSE     STATUS=OK            23 CALLS      475 TOTAL
                     EDM=   .50E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.5431        .57834E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.6587        5.3174        .32000E-02   -.73186    
   3  Normalizat    1.1169        .22948        .20983E-05   -.89210    
   4  Prefactor     .80693        .20443        .21516E-05   -.99473    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.00796e-13
Minuit parameter uncertainties:
  1  4.99601e-06
  2  209.748
  3  0.229685
  4  0.204619
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/751541': 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) = 5426.85753221
delta logL = 1.55424913828e-06

Extracting fit parameters...

4FGL J1230.8+1223
   Spectrum: PowerLaw
309    Prefactor:  1.000e-04  4.996e-06  1.000e-04  1.000e+04 ( 1.000e-13)
310        Index:  1.659e+00  2.097e+02  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:  8.069e-01  2.046e-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.117e+00  2.297e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
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/751541/cmap_HighResolution_333158401_333417601_4FGL_J1230.8+1223_daily_bin362.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.05e-03', job_status='DONE', photon_flux_upper_limit='5.37e-08', time_completed='2021-09-05 21:29:41.961347', job_id='751541', GAL2='0.81', fit_tolerance='1e-08', EG2='1.12', EG='1.12', time_epoch_completed='1630902581.96', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.81', dlogl='1.55e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.06' WHERE bin_id='362' AND source_name='4FGL J1230.8+1223' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 21:29:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0124>
Subject: Job 751541: <4FGL_J1230.8+1223_daily_bin362> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1230.8+1223_daily_bin362 187.712 12.3883 333158401 333417601 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 :                                   692.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             320.10 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   790 sec.
    Turnaround time :                            823 sec.

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

