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


Performing analysis on: 4FGL_J1230.8+1223_daily_bin985
RA = 187.712, Dec = 12.3883
tmin = 494640001, tmax = 494899201
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='757497', job_status='RUN', time_executed='2021-09-05 21:36:25.214326', time_epoch_executed='1630902985.21' WHERE source_name='4FGL J1230.8+1223' and cadence='daily' and bin_id='985'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/757497

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/757497/ft1_4FGL_J1230.8+1223_daily_bin985.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/757497/ft2_4FGL_J1230.8+1223_daily_bin985.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/757497/ft1_4FGL_J1230.8+1223_daily_bin985.fits outfile=/scratch/kocevski/757497/ft1_filteredMKT_4FGL_J1230.8+1223_daily_bin985.fits ra=187.712 dec=12.3883 rad=12.0 tmin=494640001.0 tmax=494899201.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 4.34
user 4.00
sys 0.25

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/757497/ft1_filtered_4FGL_J1230.8+1223_daily_bin985.fits evtable="EVENTS" scfile=/scratch/kocevski/757497/ft2_4FGL_J1230.8+1223_daily_bin985.fits sctable="SC_DATA" expcube=/scratch/kocevski/757497/ltcube_494640001_494899201_4FGL_J1230.8+1223_daily_bin985.fits outfile=/scratch/kocevski/757497/expmap_494640001_494899201_4FGL_J1230.8+1223_daily_bin985.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/757497/ltcube_494640001_494899201_4FGL_J1230.8+1223_daily_bin985.fits
.....................!
real 190.99
user 186.12
sys 4.38

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/757497/ft1_filtered_4FGL_J1230.8+1223_daily_bin985.fits scfile=/scratch/kocevski/757497/ft2_4FGL_J1230.8+1223_daily_bin985.fits outfile=/scratch/kocevski/757497/cmap_494640001_494899201_4FGL_J1230.8+1223_daily_bin985.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/757497/ft1_filtered_4FGL_J1230.8+1223_daily_bin985.fits scfile=/scratch/kocevski/757497/ft2_4FGL_J1230.8+1223_daily_bin985.fits outfile=/scratch/kocevski/757497/cmap_HighResolution_494640001_494899201_4FGL_J1230.8+1223_daily_bin985.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.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.331       1.0000         .10000E-03   10000.    
     2 'Prefactor '    21.242       1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.2008       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10081E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10101E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .63634E-02   1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.6614       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.6792       1.0000         .10000E-03   10000.    
    11 'norm      '    1.5003       1.0000         .10000E-03   10000.    
    12 'Prefactor '    15.721       1.0000         .10000E-03   10000.    
    13 'norm      '    .55625       1.0000         .10000E-03   10000.    
    14 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10125E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    1.4151       1.0000         .10000E-03   10000.    
    17 'Prefactor '    8.5474       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    4.7048       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10120E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    68.197       1.0000         .10000E-03   10000.    
    22 'Prefactor '    10.091       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    17.112       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .87330       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.1569       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=   6623.826     FROM MIGRAD    STATUS=CONVERGED    619 CALLS     3570 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.329        10.902        .92815E-06   -.63176E-05
   2  Prefactor     21.314        123.31        .14440E-03    .34529E-05
   3  Prefactor     5.2009        7.6603       -.56677E-05   -.29115E-03
   4  Prefactor     .10000E-03    3.5887        .68045E-08** at limit **
   5  Prefactor     .10000E-03    1.5411        .63594E-07** at limit **
   6  Prefactor     .10000E-03    33.559        .10598E-04** at limit **
   7  Prefactor     .10000E-03    25.531       -.20010E-05** at limit **
   8  Prefactor     .32394E-01    1.3783        .14411E-07    .61501E-03
   9  Prefactor     1.6546        2.6871        .36087E-06   -.55658E-03
  10  Prefactor     1.6783        114.75        .96398E-05   -.34201E-04
  11  norm          1.5002        3.9599       -.10824E-05   -.74558E-03
  12  Prefactor     15.724        25.346        .52044E-05   -.68360E-05
  13  norm          .55623        .26671        .95496E-07   -.51787E-03
  14  norm          .10000E-03    104.65       -.42065E-04** at limit **
  15  Prefactor     .10000E-03    38.341       -.84791E-05** at limit **
  16  norm          1.4152        .60648        .15044E-06    .11091E-02
  17  Prefactor     8.5482        7.1931        .12751E-05   -.86295E-05
  18  Prefactor     .10000E-03    7.0974        .13676E-07** at limit **
  19  norm          4.7054        1.8443        .21253E-06    .99436E-04
  20  Prefactor     .10000E-03    50.484        .12908E-05** at limit **
  21  Prefactor     68.188        51.493       -.28239E-05   -.15238E-04
  22  Prefactor     10.094        9.9354        .10456E-05   -.74625E-04
  23  Prefactor     .10000E-03    9.7438        .34494E-06** at limit **
  24  Prefactor     17.120        14.848        .13904E-05   -.63811E-04
  25  Normalizat    .87283        .20350       -.76037E-05    .25539E-03
  26  Prefactor     1.1572        .17227        .11070E-05   -.14205E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.3286
  Prefactor  = 21.3138
  Prefactor  = 5.20092
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0323943
  Prefactor  = 1.65465
  Prefactor  = 1.6783
  norm       = 1.50017
  Prefactor  = 15.7243
  norm       = 0.556229
  norm       = 0.000100002
  Prefactor  = 0.0001
  norm       = 1.41521
  Prefactor  = 8.54824
  Prefactor  = 0.0001
  norm       = 4.70541
  Prefactor  = 0.0001
  Prefactor  = 68.1875
  Prefactor  = 10.0944
  Prefactor  = 0.0001
  Prefactor  = 17.1203
  Normalizat = 0.872831
  Prefactor  = 1.15716
 **********
 **   18 **HESSE 
 **********

 FCN=   6623.826     FROM HESSE     STATUS=OK           468 CALLS     4038 TOTAL
                     EDM=   .42E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.329        10.911        .11901E-03   -1.5035    
   2  Prefactor     21.314        123.09        .86905E-04   -1.4784    
   3  Prefactor     5.2009        7.6779        .17627E-03   -1.5252    
   4  Prefactor     .10000E-03    3.5901        .15057E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    1.5506        .98614E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    33.593        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    25.581        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .32394E-01    3.9573        .30586E-01   -1.5672    
   9  Prefactor     1.6546        2.6979        .15444E-03   -1.5451    
  10  Prefactor     1.6783        110.78        .32511E-03   -1.5449    
  11  norm          1.5002        3.7993        .21662E-03   -1.5463    
  12  Prefactor     15.724        25.345        .10102E-03   -1.4915    
  13  norm          .55623        .26492        .27689E-04   -1.5559    
  14  norm          .10000E-03    104.66        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    38.341        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.4152        .59514        .36703E-04   -1.5470    
  17  Prefactor     8.5482        7.1929        .68556E-03   -1.5123    
  18  Prefactor     .10000E-03    7.1018        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          4.7054        1.8415        .65142E-04   -1.5274    
  20  Prefactor     .10000E-03    50.705        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     68.188        51.489        .48605E-04   -1.4055    
  22  Prefactor     10.094        9.9426        .12614E-03   -1.5072    
  23  Prefactor     .10000E-03    9.8400        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     17.120        14.887        .96821E-04   -1.4880    
  25  Normalizat    .87283        .24144        .30184E-03   -.97421    
  26  Prefactor     1.1572        .20559        .24032E-03   -.87660    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.22867e-09
Minuit parameter uncertainties:
  1  10.9133
  2  102.761
  3  7.67937
  4  3.00982e-06
  5  7.12374e-06
  6  1.18739e-05
  7  0.000323129
  8  0.715029
  9  2.69806
  10  27.3227
  11  3.79993
  12  25.362
  13  0.264919
  14  0.00083664
  15  1.56775e-06
  16  0.595139
  17  7.19366
  18  1.09957e-05
  19  1.8415
  20  0.00011445
  21  51.5231
  22  9.94422
  23  0.000101556
  24  14.8904
  25  0.241742
  26  0.205729
Done.

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

Extracting fit parameters...

4FGL J1230.8+1223
   Spectrum: PowerLaw
309    Prefactor:  8.548e+00  7.194e+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.157e+00  2.057e-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.728e-01  2.417e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.62
Ra Dec: 187.712 12.388
Photon Index (Fixed Index): 2.06 +/- 0.00
Photon Flux (Fixed Index): 2.33e-08 +/- 1.96e-08
Energy Flux (Fixed Index): 1.41e-05 +/- 1.18e-05

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

Saving results to:
/scratch/kocevski/757497/likelihoodResults_494640001_494899201_4FGL_J1230.8+1223_daily_bin985.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) = 6622.37113935
delta logL = 1.45510355675

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6622.34837955
delta logL = 1.47786335306

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.1043       1.0000         .10000E-03   10000.    
     2 'Index     '    1.2024       1.0000          .0000       10.000    
     3 'Normalizat'    .88264       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1549       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=   6622.348     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      216 TOTAL
                     EDM=   .65E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.1097        6.9524        .33207E-02    .39055E-03
   2  Index         1.2028        .36130        .21340       -.21499E-03
   3  Normalizat    .88266        .18669        .67844E-01    .35992E-04
   4  Prefactor     1.1549        .16945        .54365E-01    .97676E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.10966
  Index      = 1.20277
  Normalizat = 0.882661
  Prefactor  = 1.15493
 **********
 **   18 **HESSE 
 **********

 FCN=   6622.348     FROM HESSE     STATUS=OK            33 CALLS      249 TOTAL
                     EDM=   .43E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.1097        8.2423        .13283E-03   -1.5104    
   2  Index         1.2028        .45700        .88391E-02   -.86246    
   3  Normalizat    .88266        .22201        .30015E-03   -.97072    
   4  Prefactor     1.1549        .20179        .24037E-03   -.87730    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.27962e-10
Minuit parameter uncertainties:
  1  8.2433
  2  0.458518
  3  0.222237
  4  0.201923
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/757497': 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) = 6622.34837917
delta logL = 1.47786373254

Extracting fit parameters...

4FGL J1230.8+1223
   Spectrum: PowerLaw
309    Prefactor:  9.110e+00  8.243e+00  1.000e-04  1.000e+04 ( 1.000e-13)
310        Index:  1.203e+00  4.585e-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.155e+00  2.019e-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.827e-01  2.222e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.57
Ra Dec: 187.712 12.388
Photon Index (Free Index): 1.20 +/- 0.46
Photon Flux (Free Index): 9.29e-09 +/- 8.59e-09
Energy Flux (Free Index): 7.69e-05 +/- 8.83e-05

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/757497/cmap_HighResolution_494640001_494899201_4FGL_J1230.8+1223_daily_bin985.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.80e-03', comment='SUCCESS', photon_flux='2.33e-08', energy_flux2='7.69e-05', photon_flux_error='1.96e-08', dlogl='1.48e+00', energy_flux='1.41e-05', photon_flux2='9.29e-09', job_status='DONE', time_completed='2021-09-05 21:49:29.878902', photon_index_error2='0.46', photon_index2='1.20', ts='3.62', fit_tolerance='1e-08', GAL='1.16', photon_index_error='0.00', photon_flux_upper_limit='7.70e-08', energy_flux_error2='8.83e-05', EG='0.87', time_epoch_completed='1630903769.88', return_code='0', job_id='757497', GAL2='1.15', EG2='0.88', return_code2='0', energy_flux_error='1.18e-05', photon_flux_error2='8.59e-09', ts2='6.57', photon_index='2.06' WHERE bin_id='985' AND source_name='4FGL J1230.8+1223' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 21:49:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0216>
Subject: Job 757497: <4FGL_J1230.8+1223_daily_bin985> in cluster <slac> Done

Job <4FGL_J1230.8+1223_daily_bin985> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Sep  5 21:35:30 2021
Job was executed on host(s) <bullet0216>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 21:36:09 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:36:09 2021
Terminated at Sun Sep  5 21:49:30 2021
Results reported at Sun Sep  5 21:49:30 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1230.8+1223_daily_bin985 187.712 12.3883 494640001 494899201 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 :                                   779.16 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             362.20 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   801 sec.
    Turnaround time :                            840 sec.

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

