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


Performing analysis on: 4FGL_J1200.6+1229_daily_bin1234
RA = 180.173, Dec = 12.4922
tmin = 559180801, tmax = 559440001
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='253955', job_status='RUN', time_executed='2021-09-04 20:24:58.578794', time_epoch_executed='1630812298.58' WHERE source_name='4FGL J1200.6+1229' and cadence='daily' and bin_id='1234'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/253955

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/253955/ft1_4FGL_J1200.6+1229_daily_bin1234.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/253955/ft2_4FGL_J1200.6+1229_daily_bin1234.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/253955/ft1_4FGL_J1200.6+1229_daily_bin1234.fits outfile=/scratch/kocevski/253955/ft1_filteredMKT_4FGL_J1200.6+1229_daily_bin1234.fits ra=180.173 dec=12.4922 rad=12.0 tmin=559180801.0 tmax=559440001.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.65
user 3.32
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/253955/ft2_4FGL_J1200.6+1229_daily_bin1234.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/253955/ft2_4FGL_J1200.6+1229_daily_bin1234.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/253955/ft1_filteredMKT_4FGL_J1200.6+1229_daily_bin1234.fits evtable="EVENTS" outfile="/scratch/kocevski/253955/ft1_filtered_4FGL_J1200.6+1229_daily_bin1234.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.53
user 0.35
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/253955/ft1_filtered_4FGL_J1200.6+1229_daily_bin1234.fits" evtable="EVENTS" scfile=/scratch/kocevski/253955/ft2_4FGL_J1200.6+1229_daily_bin1234.fits sctable="SC_DATA" outfile=/scratch/kocevski/253955/ltcube_559180801_559440001_4FGL_J1200.6+1229_daily_bin1234.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/253955/ft2_4FGL_J1200.6+1229_daily_bin1234.fits
.....................!
real 11.63
user 11.29
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/253955/ft1_filtered_4FGL_J1200.6+1229_daily_bin1234.fits evtable="EVENTS" scfile=/scratch/kocevski/253955/ft2_4FGL_J1200.6+1229_daily_bin1234.fits sctable="SC_DATA" expcube=/scratch/kocevski/253955/ltcube_559180801_559440001_4FGL_J1200.6+1229_daily_bin1234.fits outfile=/scratch/kocevski/253955/expmap_559180801_559440001_4FGL_J1200.6+1229_daily_bin1234.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/253955/ltcube_559180801_559440001_4FGL_J1200.6+1229_daily_bin1234.fits
.....................!
real 190.49
user 185.56
sys 4.58

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 193 point sources and 0 extended sources

Setting source of interest to:
4FGL J1200.6+1229 @ 180.173 12.4922

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/253955/ft1_filtered_4FGL_J1200.6+1229_daily_bin1234.fits scfile=/scratch/kocevski/253955/ft2_4FGL_J1200.6+1229_daily_bin1234.fits outfile=/scratch/kocevski/253955/cmap_559180801_559440001_4FGL_J1200.6+1229_daily_bin1234.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=180.173 yref=12.4922 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.53
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/253955/ft1_filtered_4FGL_J1200.6+1229_daily_bin1234.fits scfile=/scratch/kocevski/253955/ft2_4FGL_J1200.6+1229_daily_bin1234.fits outfile=/scratch/kocevski/253955/cmap_HighResolution_559180801_559440001_4FGL_J1200.6+1229_daily_bin1234.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=180.173 yref=12.4922 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.56
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/253955/ft1_filtered_4FGL_J1200.6+1229_daily_bin1234.fits evtable="EVENTS" scfile=/scratch/kocevski/253955/ft2_4FGL_J1200.6+1229_daily_bin1234.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/253955/Model_4FGL_J1200.6+1229_daily_bin1234.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/253955/ft1_filtered_4FGL_J1200.6+1229_daily_bin1234.fits......................!
real 32.81
user 31.33
sys 1.19

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/253955/ft1_filtered_4FGL_J1200.6+1229_daily_bin1234.fits', '/scratch/kocevski/253955/ft2_4FGL_J1200.6+1229_daily_bin1234.fits', expMap='/scratch/kocevski/253955/expmap_559180801_559440001_4FGL_J1200.6+1229_daily_bin1234.fits', expCube='/scratch/kocevski/253955/ltcube_559180801_559440001_4FGL_J1200.6+1229_daily_bin1234.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/253955/Model_4FGL_J1200.6+1229_daily_bin1234.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1200.6+1229'

4FGL J1200.6+1229
   Spectrum: PowerLaw
299    Prefactor:  3.077e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
300        Index:  2.387e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
301        Scale:  1.088e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/253955/ft1_filtered_4FGL_J1200.6+1229_daily_bin1234.fits
Spacecraft file(s): /scratch/kocevski/253955/ft2_4FGL_J1200.6+1229_daily_bin1234.fits
Exposure map: /scratch/kocevski/253955/expmap_559180801_559440001_4FGL_J1200.6+1229_daily_bin1234.fits
Exposure cube: /scratch/kocevski/253955/ltcube_559180801_559440001_4FGL_J1200.6+1229_daily_bin1234.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/253955/Model_4FGL_J1200.6+1229_daily_bin1234.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) = 2586.41872698

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.9652       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10410E-02   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .39181E-01   1.0000         .10000E-03   10000.    
     4 'Prefactor '    15.060       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .82708E-01   1.0000         .10000E-03   10000.    
     6 'Prefactor '    20.674       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .33780E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    35.703       1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.3060       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .25104E-02   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .43122E-01   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.0276       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .17343E-01   1.0000         .10000E-03   10000.    
    15 'norm      '    .19084E-02   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .22449E-01   1.0000         .10000E-03   10000.    
    17 'norm      '    .49397       1.0000         .10000E-03   10000.    
    18 'norm      '    341.77       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .44470E-02   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .27689E-02   1.0000         .10000E-03   10000.    
    21 'Prefactor '    61.572       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .42464       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.3699       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6190E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   2586.360     FROM MIGRAD    STATUS=CONVERGED    579 CALLS     2303 TOTAL
                     EDM=   .67E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.2038        20.379        .91901E-06   -.16492E-05
   2  Prefactor     .10000E-03    8.0712        .17925E-06** at limit **
   3  Prefactor     .10000E-03    149.99        .15326E-06** at limit **
   4  Prefactor     15.049        19.804       -.10117E-05   -.22459E-04
   5  Prefactor     .10000E-03    131.21        .18994E-07** at limit **
   6  Prefactor     21.269        32.698       -.14536E-05   -.44416E-04
   7  Prefactor     .10000E-03    22.506        .58286E-08** at limit **
   8  Prefactor     34.436        43.051       -.10453E-05    .21076E-04
   9  Prefactor     5.2809        6.2295        .31138E-05   -.26951E-05
  10  Prefactor     .10003E-03    390.06       -.75325E-05** at limit **
  11  Prefactor     .10000E-03    254.11        .42812E-06** at limit **
  12  Prefactor     .10000E-03    2.6585       -.17193E-06** at limit **
  13  Prefactor     2.0392        3.4540        .30362E-07    .16616E-04
  14  Prefactor     .10000E-03    88.711       -.11228E-06** at limit **
  15  norm          .10000E-03    26.069        .31011E-06** at limit **
  16  Prefactor     .10000E-03    41.231        .96547E-08** at limit **
  17  norm          .49373        .31237        .15517E-07   -.58541E-04
  18  norm          360.61        294.06        .38484E-06    .22929E-05
  19  Prefactor     .10000E-03    162.67       -.26559E-06** at limit **
  20  Prefactor     .10000E-03    13.516       -.19083E-06** at limit **
  21  Prefactor     58.967        45.539        .27500E-06   -.10504E-04
  22  Normalizat    .42734        .32953       -.63342E-05   -.16536E-05
  23  Prefactor     1.3686        .28564        .13830E-05   -.39218E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 6.20382
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.0486
  Prefactor  = 0.0001
  Prefactor  = 21.2687
  Prefactor  = 0.0001
  Prefactor  = 34.4362
  Prefactor  = 5.28085
  Prefactor  = 0.000100035
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 2.03925
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.493728
  norm       = 360.613
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 58.9667
  Normalizat = 0.427337
  Prefactor  = 1.36857
 **********
 **   18 **HESSE 
 **********

 FCN=   2586.360     FROM HESSE     STATUS=OK           362 CALLS     2665 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.2038        20.334        .16441E-03   -1.5210    
   2  Prefactor     .10000E-03    8.0973        .14112E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    150.64        .18434E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     15.049        19.726        .10321E-03   -1.4932    
   5  Prefactor     .10000E-03    131.23        .18857E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     21.269        32.674        .88090E-04   -1.4785    
   7  Prefactor     .10000E-03    22.507        .21339E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     34.436        42.952        .67069E-04   -1.4534    
   9  Prefactor     5.2809        6.2535        .61478E-03   -1.5248    
  10  Prefactor     .10003E-03    394.39        .20014E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    254.83        .18473E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    2.7043        .80857E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     2.0392        3.4197        .11699E-03   -1.5422    
  14  Prefactor     .10000E-03    88.807        .18219E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    26.246        .20271E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    41.243        .18269E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .49373        .30890        .21035E-04   -1.5567    
  18  norm          360.61        293.13        .11008E-03   -1.1887    
  19  Prefactor     .10000E-03    162.69        .19360E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    13.536        .18252E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     58.967        45.502        .51136E-04   -1.4171    
  22  Normalizat    .42734        .34845        .39169E-03   -1.1591    
  23  Prefactor     1.3686        .31250        .21962E-03   -.81290    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.52303e-10
Minuit parameter uncertainties:
  1  20.3565
  2  1.6729e-05
  3  0.000121529
  4  19.7345
  5  0.000223868
  6  32.7017
  7  4.32868e-06
  8  42.991
  9  6.25425
  10  0.00746136
  11  0.000816363
  12  1.86522e-05
  13  3.42005
  14  9.79893e-05
  15  2.91826e-05
  16  1.90672e-05
  17  0.308898
  18  294.349
  19  0.00034465
  20  8.98005e-06
  21  45.5284
  22  0.350244
  23  0.312933
Done.

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

Extracting fit parameters...

4FGL J1200.6+1229
   Spectrum: PowerLaw
299    Prefactor:  3.444e+01  4.299e+01  1.000e-04  1.000e+04 ( 1.000e-13)
300        Index:  2.387e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
301        Scale:  1.088e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
616    Prefactor:  1.369e+00  3.129e-01  0.000e+00  1.000e+01 ( 1.000e+00)
617        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
618        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
615   Normalization:  4.273e-01  3.502e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.03
Ra Dec: 180.173 12.492
Photon Index (Fixed Index): 2.39 +/- 0.00
Photon Flux (Fixed Index): 7.41e-08 +/- 9.25e-08
Energy Flux (Fixed Index): 2.47e-05 +/- 3.08e-05

TS (Fixed Index): 1.03
Ra Dec: 180.173 12.492
Photon Flux Upper Limit: 2.65e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.05e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/253955/likelihoodResults_559180801_559440001_4FGL_J1200.6+1229_daily_bin1234.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) = 2585.67407181
delta logL = 0.685523161459

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2585.42261361
delta logL = 0.936981361067

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .46349E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    7.1472       1.0000          .0000       10.000    
     3 'Normalizat'    .30223       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4783       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6190E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   2585.423     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      353 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .45728E-02    .88041E-01    .61279E-03   -.37734E-01
   2  Index         7.1537        3.2342        .83721E-01   -.21557E-03
   3  Normalizat    .30202        .97207E-01    .10453       -.13150E-03
   4  Prefactor     1.4784        .93698E-01    .48148E-01   -.36566E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00457278
  Index      = 7.15366
  Normalizat = 0.302023
  Prefactor  = 1.47844
 **********
 **   18 **HESSE 
 **********

 FCN=   2585.423     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      384 TOTAL
                     EDM=   .68E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .45728E-02    .14615        .26256E-05   -1.5695    
   2  Index         7.1537        7.5939        .35342E-02    .44530    
   3  Normalizat    .30202        .29653        .46287E-03   -1.2272    
   4  Prefactor     1.4784        .28281        .21282E-03   -.78145    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.77876e-10
Minuit parameter uncertainties:
  1  0.0511356
  2  4.95169
  3  0.298081
  4  0.283109
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/253955': 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) = 2585.42261168
delta logL = 0.936983286181

Extracting fit parameters...

4FGL J1200.6+1229
   Spectrum: PowerLaw
299    Prefactor:  4.573e-03  5.114e-02  1.000e-04  1.000e+04 ( 1.000e-13)
300        Index:  7.154e+00  4.952e+00  0.000e+00  1.000e+01 (-1.000e+00)
301        Scale:  1.088e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
616    Prefactor:  1.478e+00  2.831e-01  0.000e+00  1.000e+01 ( 1.000e+00)
617        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
618        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
615   Normalization:  3.020e-01  2.981e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.16
Ra Dec: 180.173 12.492
Photon Index (Free Index): 7.15 +/- 4.95
Photon Flux (Free Index): 1.97e-07 +/- 1.52e-07
Energy Flux (Free Index): 2.34e-05 +/- 1.92e-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/253955/cmap_HighResolution_559180801_559440001_4FGL_J1200.6+1229_daily_bin1234.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.05e-02', comment='SUCCESS', photon_flux='7.41e-08', energy_flux2='2.34e-05', photon_flux_error='9.25e-08', dlogl='9.37e-01', energy_flux='2.47e-05', photon_flux2='1.97e-07', job_status='DONE', time_completed='2021-09-04 20:32:43.597867', photon_index_error2='4.95', photon_index2='7.15', ts='1.03', fit_tolerance='1e-08', GAL='1.37', photon_index_error='0.00', photon_flux_upper_limit='2.65e-07', energy_flux_error2='1.92e-05', EG='0.43', time_epoch_completed='1630812763.6', return_code='0', job_id='253955', GAL2='1.48', EG2='0.30', return_code2='102', energy_flux_error='3.08e-05', photon_flux_error2='1.52e-07', ts2='3.16', photon_index='2.39' WHERE bin_id='1234' AND source_name='4FGL J1200.6+1229' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 20:32:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0088>
Subject: Job 253955: <4FGL_J1200.6+1229_daily_bin1234> in cluster <slac> Done

Job <4FGL_J1200.6+1229_daily_bin1234> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sat Sep  4 20:21:11 2021
Job was executed on host(s) <bullet0088>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 20:21:13 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep  4 20:21:13 2021
Terminated at Sat Sep  4 20:32:44 2021
Results reported at Sat Sep  4 20:32:44 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1200.6+1229_daily_bin1234 180.173 12.4922 559180801 559440001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1200.6+1229 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   461.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             259.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   690 sec.
    Turnaround time :                            693 sec.

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

