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


Performing analysis on: 4FGL_J1230.8+1223_daily_bin702
RA = 187.712, Dec = 12.3883
tmin = 421286401, tmax = 421545601
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='754542', job_status='RUN', time_executed='2021-09-05 21:28:07.199545', time_epoch_executed='1630902487.2' WHERE source_name='4FGL J1230.8+1223' and cadence='daily' and bin_id='702'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/754542

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/754542/ft1_4FGL_J1230.8+1223_daily_bin702.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/754542/ft2_4FGL_J1230.8+1223_daily_bin702.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/754542/ft1_4FGL_J1230.8+1223_daily_bin702.fits outfile=/scratch/kocevski/754542/ft1_filteredMKT_4FGL_J1230.8+1223_daily_bin702.fits ra=187.712 dec=12.3883 rad=12.0 tmin=421286401.0 tmax=421545601.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.68
user 3.45
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/754542/ft1_filtered_4FGL_J1230.8+1223_daily_bin702.fits" evtable="EVENTS" scfile=/scratch/kocevski/754542/ft2_4FGL_J1230.8+1223_daily_bin702.fits sctable="SC_DATA" outfile=/scratch/kocevski/754542/ltcube_421286401_421545601_4FGL_J1230.8+1223_daily_bin702.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/754542/ft2_4FGL_J1230.8+1223_daily_bin702.fits
.....................!
real 16.83
user 16.44
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/754542/ft1_filtered_4FGL_J1230.8+1223_daily_bin702.fits evtable="EVENTS" scfile=/scratch/kocevski/754542/ft2_4FGL_J1230.8+1223_daily_bin702.fits sctable="SC_DATA" expcube=/scratch/kocevski/754542/ltcube_421286401_421545601_4FGL_J1230.8+1223_daily_bin702.fits outfile=/scratch/kocevski/754542/expmap_421286401_421545601_4FGL_J1230.8+1223_daily_bin702.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/754542/ltcube_421286401_421545601_4FGL_J1230.8+1223_daily_bin702.fits
.....................!
real 192.30
user 187.25
sys 4.51

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/754542/ft1_filtered_4FGL_J1230.8+1223_daily_bin702.fits scfile=/scratch/kocevski/754542/ft2_4FGL_J1230.8+1223_daily_bin702.fits outfile=/scratch/kocevski/754542/cmap_421286401_421545601_4FGL_J1230.8+1223_daily_bin702.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.57
user 0.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/754542/ft1_filtered_4FGL_J1230.8+1223_daily_bin702.fits scfile=/scratch/kocevski/754542/ft2_4FGL_J1230.8+1223_daily_bin702.fits outfile=/scratch/kocevski/754542/cmap_HighResolution_421286401_421545601_4FGL_J1230.8+1223_daily_bin702.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.40
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    15.451       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    8.6790       1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.7406       1.0000         .10000E-03   10000.    
     6 'Prefactor '    51.928       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.5156       1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.3411       1.0000         .10000E-03   10000.    
    10 'Prefactor '    15.061       1.0000         .10000E-03   10000.    
    11 'norm      '    3.3043       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .91815       1.0000         .10000E-03   10000.    
    14 'norm      '    70.163       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    2.1627       1.0000         .10000E-03   10000.    
    17 'Prefactor '    4.4726       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .84889       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    8.0288       1.0000         .10000E-03   10000.    
    22 'Prefactor '    6.8404       1.0000         .10000E-03   10000.    
    23 'Prefactor '    38.100       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .87451       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.0773       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=   6582.081     FROM MIGRAD    STATUS=CONVERGED    608 CALLS     3174 TOTAL
                     EDM=   .35E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     15.451        14.449        .15943E-07   -.40840E-05
   2  Prefactor     .10000E-03    32.258       -.16431E-05** at limit **
   3  Prefactor     .10000E-03    4.2649        .10313E-07** at limit **
   4  Prefactor     8.6771        19.343        .31458E-05   -.11983E-03
   5  Prefactor     3.7405        3.5803        .55445E-07   -.15700E-04
   6  Prefactor     51.926        108.98       -.34620E-05   -.12790E-04
   7  Prefactor     .10001E-03    46.349        .39088E-05** at limit **
   8  Prefactor     3.5157        2.9424        .50469E-06   -.43980E-03
   9  Prefactor     2.3410        4.5254        .13168E-06   -.19632E-03
  10  Prefactor     15.061        16.405        .82711E-07   -.96210E-05
  11  norm          3.3043        3.7187        .31278E-06   -.90463E-04
  12  Prefactor     .10000E-03    8.3549       -.19109E-08** at limit **
  13  norm          .91816        .35254       -.26413E-09   -.34862E-03
  14  norm          70.148        53.583       -.19470E-05   -.21263E-03
  15  Prefactor     .10000E-03    64.309       -.26048E-05** at limit **
  16  norm          2.1629        .74973        .38086E-07   -.60546E-03
  17  Prefactor     4.4729        6.9121        .10657E-07   -.70560E-04
  18  Prefactor     .10000E-03    35.620       -.50995E-06** at limit **
  19  norm          .84889        1.6971        .47139E-06   -.16217E-03
  20  Prefactor     .10000E-03    27.059        .78603E-06** at limit **
  21  Prefactor     8.0389        44.663        .28811E-05    .66764E-04
  22  Prefactor     6.8404        8.2981        .17831E-05   -.29466E-03
  23  Prefactor     38.101        17.431       -.21579E-07   -.56630E-04
  24  Prefactor     .10000E-03    5.6849        .56137E-08** at limit **
  25  Normalizat    .87448        .20910       -.10568E-05   -.54619E-04
  26  Prefactor     1.0773        .17216       -.20461E-06   -.84008E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 15.4508
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 8.67707
  Prefactor  = 3.74048
  Prefactor  = 51.9258
  Prefactor  = 0.000100008
  Prefactor  = 3.51566
  Prefactor  = 2.34105
  Prefactor  = 15.0613
  norm       = 3.30426
  Prefactor  = 0.0001
  norm       = 0.91816
  norm       = 70.1485
  Prefactor  = 0.000100004
  norm       = 2.16289
  Prefactor  = 4.47293
  Prefactor  = 0.0001
  norm       = 0.848886
  Prefactor  = 0.0001
  Prefactor  = 8.03889
  Prefactor  = 6.84043
  Prefactor  = 38.1011
  Prefactor  = 0.0001
  Normalizat = 0.874477
  Prefactor  = 1.07733
 **********
 **   18 **HESSE 
 **********

 FCN=   6582.081     FROM HESSE     STATUS=OK           462 CALLS     3636 TOTAL
                     EDM=   .75E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     15.451        14.447        .10189E-03   -1.4922    
   2  Prefactor     .10000E-03    32.676        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    4.2729        .16354E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     8.6771        19.426        .68031E-03   -1.5119    
   5  Prefactor     3.7405        3.5699        .14408E-03   -1.5321    
   6  Prefactor     51.926        108.81        .55656E-04   -1.4266    
   7  Prefactor     .10001E-03    48.639        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     3.5157        2.9188        .56748E-03   -1.5333    
   9  Prefactor     2.3410        4.4473        .20600E-03   -1.5402    
  10  Prefactor     15.061        16.400        .10321E-03   -1.4932    
  11  norm          3.3043        3.6958        .14091E-03   -1.5344    
  12  Prefactor     .10000E-03    8.3568        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .91816        .35073        .27712E-04   -1.5516    
  14  norm          70.148        54.771        .47923E-04   -1.4031    
  15  Prefactor     .10000E-03    65.318        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          2.1629        .74601        .35999E-04   -1.5414    
  17  Prefactor     4.4729        6.9071        .19039E-03   -1.5285    
  18  Prefactor     .10000E-03    35.946        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .84889        1.6766        .13604E-03   -1.5524    
  20  Prefactor     .10000E-03    27.233        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     8.0389        45.438        .14150E-03   -1.5141    
  22  Prefactor     6.8404        8.4045        .76703E-03   -1.5185    
  23  Prefactor     38.101        17.536        .64933E-04   -1.4473    
  24  Prefactor     .10000E-03    5.6965        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .87448        .24875        .30591E-03   -.97363    
  26  Prefactor     1.0773        .20558        .24749E-03   -.90194    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.53415e-10
Minuit parameter uncertainties:
  1  14.4507
  2  0.000462503
  3  2.60466e-06
  4  19.4398
  5  3.57015
  6  109.231
  7  0.00127589
  8  2.91893
  9  4.44791
  10  16.4048
  11  3.69604
  12  8.0038e-08
  13  0.35073
  14  54.8103
  15  0.00102307
  16  0.746014
  17  6.90836
  18  0.000114853
  19  1.67665
  20  0.000191421
  21  38.2683
  22  8.40591
  23  17.5382
  24  3.04955e-06
  25  0.249081
  26  0.205733
Done.

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

Extracting fit parameters...

4FGL J1230.8+1223
   Spectrum: PowerLaw
309    Prefactor:  4.473e+00  6.908e+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.077e+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.745e-01  2.491e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/754542/likelihoodResults_421286401_421545601_4FGL_J1230.8+1223_daily_bin702.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) = 6581.68035376
delta logL = 0.400864049631

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6581.62097495
delta logL = 0.460242858257

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.3148       1.0000         .10000E-03   10000.    
     2 'Index     '    3.4330       1.0000          .0000       10.000    
     3 'Normalizat'    .80221       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1152       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=   6581.621     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      258 TOTAL
                     EDM=   .39E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.3149        29.296        .96048E-03    .17344E-02
   2  Index         3.4332        3.3500        .98183E-01    .16097E-03
   3  Normalizat    .80211        .77384E-01    .71920E-01    .26045E-04
   4  Prefactor     1.1153        .59040E-01    .55131E-01    .12829E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.31491
  Index      = 3.43323
  Normalizat = 0.802113
  Prefactor  = 1.11532
 **********
 **   18 **HESSE 
 **********

 FCN=   6581.621     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      291 TOTAL
                     EDM=   .51E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.3149        46.660        .38419E-04   -1.5479    
   2  Index         3.4332        6.7166        .56070E-02   -.31872    
   3  Normalizat    .80211        .29252        .31828E-03   -.99990    
   4  Prefactor     1.1153        .22884        .24376E-03   -.88978    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.09144e-07
Minuit parameter uncertainties:
  1  15.6784
  2  5.93811
  3  0.2931
  4  0.229043
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/754542': 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) = 6581.62097406
delta logL = 0.460243747828

Extracting fit parameters...

4FGL J1230.8+1223
   Spectrum: PowerLaw
309    Prefactor:  1.315e+00  1.568e+01  1.000e-04  1.000e+04 ( 1.000e-13)
310        Index:  3.433e+00  5.938e+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.115e+00  2.290e-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.021e-01  2.931e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.72
Ra Dec: 187.712 12.388
Photon Index (Free Index): 3.43 +/- 5.94
Photon Flux (Free Index): 6.90e-08 +/- 1.52e-07
Energy Flux (Free Index): 1.17e-05 +/- 1.10e-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/754542/cmap_HighResolution_421286401_421545601_4FGL_J1230.8+1223_daily_bin702.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.42e-03', comment='SUCCESS', energy_flux2='1.17e-05', dlogl='4.60e-01', photon_flux2='6.90e-08', job_status='DONE', time_completed='2021-09-05 21:40:51.060674', photon_index_error2='5.94', photon_index2='3.43', ts='0.73', fit_tolerance='1e-08', GAL='1.08', photon_index_error='0.00', photon_flux_upper_limit='7.19e-08', energy_flux_error2='1.10e-05', EG='0.87', time_epoch_completed='1630903251.06', return_code='0', job_id='754542', GAL2='1.12', EG2='0.80', return_code2='102', photon_flux_error2='1.52e-07', ts2='1.72', photon_index='2.06' WHERE bin_id='702' AND source_name='4FGL J1230.8+1223' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 21:40:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0302>
Subject: Job 754542: <4FGL_J1230.8+1223_daily_bin702> in cluster <slac> Done

Job <4FGL_J1230.8+1223_daily_bin702> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sun Sep  5 21:25:37 2021
Job was executed on host(s) <bullet0302>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 21:27:40 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:27:40 2021
Terminated at Sun Sep  5 21:40:51 2021
Results reported at Sun Sep  5 21:40:51 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1230.8+1223_daily_bin702 187.712 12.3883 421286401 421545601 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 :                                   759.52 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             334.68 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   791 sec.
    Turnaround time :                            914 sec.

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

