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


Performing analysis on: 4FGL_J1200.6+1229_daily_bin1010
RA = 180.173, Dec = 12.4922
tmin = 501120001, tmax = 501379201
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='253622', job_status='RUN', time_executed='2021-09-04 20:23:57.113760', time_epoch_executed='1630812237.11' WHERE source_name='4FGL J1200.6+1229' and cadence='daily' and bin_id='1010'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/253622

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/253622/ft1_4FGL_J1200.6+1229_daily_bin1010.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/253622/ft2_4FGL_J1200.6+1229_daily_bin1010.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/253622/ft1_4FGL_J1200.6+1229_daily_bin1010.fits outfile=/scratch/kocevski/253622/ft1_filteredMKT_4FGL_J1200.6+1229_daily_bin1010.fits ra=180.173 dec=12.4922 rad=12.0 tmin=501120001.0 tmax=501379201.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.49
user 3.26
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/253622/ft1_filtered_4FGL_J1200.6+1229_daily_bin1010.fits" evtable="EVENTS" scfile=/scratch/kocevski/253622/ft2_4FGL_J1200.6+1229_daily_bin1010.fits sctable="SC_DATA" outfile=/scratch/kocevski/253622/ltcube_501120001_501379201_4FGL_J1200.6+1229_daily_bin1010.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/253622/ft2_4FGL_J1200.6+1229_daily_bin1010.fits
.....................!
real 11.88
user 11.49
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/253622/ft1_filtered_4FGL_J1200.6+1229_daily_bin1010.fits evtable="EVENTS" scfile=/scratch/kocevski/253622/ft2_4FGL_J1200.6+1229_daily_bin1010.fits sctable="SC_DATA" expcube=/scratch/kocevski/253622/ltcube_501120001_501379201_4FGL_J1200.6+1229_daily_bin1010.fits outfile=/scratch/kocevski/253622/expmap_501120001_501379201_4FGL_J1200.6+1229_daily_bin1010.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/253622/ltcube_501120001_501379201_4FGL_J1200.6+1229_daily_bin1010.fits
.....................!
real 190.49
user 185.82
sys 4.14

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/253622/ft1_filtered_4FGL_J1200.6+1229_daily_bin1010.fits scfile=/scratch/kocevski/253622/ft2_4FGL_J1200.6+1229_daily_bin1010.fits outfile=/scratch/kocevski/253622/cmap_501120001_501379201_4FGL_J1200.6+1229_daily_bin1010.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/253622/ft1_filtered_4FGL_J1200.6+1229_daily_bin1010.fits scfile=/scratch/kocevski/253622/ft2_4FGL_J1200.6+1229_daily_bin1010.fits outfile=/scratch/kocevski/253622/cmap_HighResolution_501120001_501379201_4FGL_J1200.6+1229_daily_bin1010.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.54
user 0.38
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/253622/ft1_filtered_4FGL_J1200.6+1229_daily_bin1010.fits', '/scratch/kocevski/253622/ft2_4FGL_J1200.6+1229_daily_bin1010.fits', expMap='/scratch/kocevski/253622/expmap_501120001_501379201_4FGL_J1200.6+1229_daily_bin1010.fits', expCube='/scratch/kocevski/253622/ltcube_501120001_501379201_4FGL_J1200.6+1229_daily_bin1010.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/253622/Model_4FGL_J1200.6+1229_daily_bin1010.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/253622/ft1_filtered_4FGL_J1200.6+1229_daily_bin1010.fits
Spacecraft file(s): /scratch/kocevski/253622/ft2_4FGL_J1200.6+1229_daily_bin1010.fits
Exposure map: /scratch/kocevski/253622/expmap_501120001_501379201_4FGL_J1200.6+1229_daily_bin1010.fits
Exposure cube: /scratch/kocevski/253622/ltcube_501120001_501379201_4FGL_J1200.6+1229_daily_bin1010.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/253622/Model_4FGL_J1200.6+1229_daily_bin1010.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) = 6933.58629725

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    10.284       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    26.492       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.5197       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10331E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10476E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.0345       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .83026E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10082E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .52065       1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.3943       1.0000         .10000E-03   10000.    
    15 'norm      '    1.4074       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .19439       1.0000         .10000E-03   10000.    
    18 'norm      '    25.483       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10514E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .29941E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    28.941       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.2003       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0539       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=   6933.579     FROM MIGRAD    STATUS=CONVERGED    521 CALLS     2588 TOTAL
                     EDM=   .65E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          10.284        11.026        .51327E-06   -.16918E-05
   2  Prefactor     .10000E-03    4.7100        .21325E-07** at limit **
   3  Prefactor     26.471        36.534       -.11114E-05   -.36079E-04
   4  Prefactor     .10000E-03    5.1501        .75930E-07** at limit **
   5  Prefactor     .10000E-03    31.454       -.85882E-06** at limit **
   6  Prefactor     4.5140        9.3825       -.84766E-07    .41905E-04
   7  Prefactor     .10000E-03    9.0205        .11048E-06** at limit **
   8  Prefactor     .10000E-03    21.786        .99196E-06** at limit **
   9  Prefactor     2.0343        2.9578        .30908E-06   -.93825E-04
  10  Prefactor     .10000E-03    375.48       -.30751E-04** at limit **
  11  Prefactor     .10000E-03    20.006       -.63963E-06** at limit **
  12  Prefactor     .10000E-03    1.2735       -.27079E-07** at limit **
  13  Prefactor     .51884        1.9199        .65679E-06   -.28500E-03
  14  Prefactor     3.4098        35.669       -.32007E-05   -.24270E-04
  15  norm          1.4019        4.7826        .33348E-05   -.91106E-04
  16  Prefactor     .10000E-03    33.626       -.35348E-06** at limit **
  17  norm          .19436        .21086        .83299E-07   -.12970E-03
  18  norm          25.519        45.595       -.29383E-05    .24851E-05
  19  Prefactor     .10000E-03    86.866        .28678E-05** at limit **
  20  Prefactor     .10000E-03    7.2102        .57031E-06** at limit **
  21  Prefactor     28.988        27.683       -.37212E-06    .19234E-04
  22  Normalizat    1.2003        .18676       -.86792E-06   -.14408E-03
  23  Prefactor     1.0540        .16909       -.15141E-05   -.47487E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 10.2842
  Prefactor  = 0.0001
  Prefactor  = 26.471
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.51404
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.03429
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.518838
  Prefactor  = 3.40981
  norm       = 1.4019
  Prefactor  = 0.0001
  norm       = 0.194357
  norm       = 25.5193
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 28.9876
  Normalizat = 1.20027
  Prefactor  = 1.05403
 **********
 **   18 **HESSE 
 **********

 FCN=   6933.579     FROM HESSE     STATUS=OK           376 CALLS     2964 TOTAL
                     EDM=   .25E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          10.284        11.021        .12494E-03   -1.5066    
   2  Prefactor     .10000E-03    4.7368        .17649E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     26.471        36.699        .77832E-04   -1.4679    
   4  Prefactor     .10000E-03    5.1761        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    31.464        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     4.5140        9.3734        .18937E-03   -1.5283    
   7  Prefactor     .10000E-03    9.2555        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    22.140        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     2.0343        2.9375        .16538E-03   -1.5423    
  10  Prefactor     .10000E-03    380.51        .20880E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    20.073        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    1.2908        .91407E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .51884        2.9121        .20598E-02   -1.5564    
  14  Prefactor     3.4098        35.370        .21960E-03   -1.5339    
  15  norm          1.4019        4.8237        .25108E-03   -1.5471    
  16  Prefactor     .10000E-03    33.801        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .19436        .19908        .38052E-03   -1.5620    
  18  norm          25.519        45.445        .79355E-04   -1.4697    
  19  Prefactor     .10000E-03    87.003        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    25.662        .40869E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     28.988        26.360        .74472E-04   -1.4631    
  22  Normalizat    1.2003        .22399        .25603E-03   -.86594    
  23  Prefactor     1.0540        .20196        .25597E-03   -.90950    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.47427e-08
Minuit parameter uncertainties:
  1  11.0232
  2  5.77771e-06
  3  36.7298
  4  1.01685e-05
  5  2.43209e-05
  6  9.37643
  7  2.49498e-05
  8  0.000168474
  9  2.93775
  10  0.0016049
  11  4.97428e-06
  12  4.81148e-08
  13  2.45832
  14  21.9804
  15  4.82503
  16  1.15117e-05
  17  0.199081
  18  45.5071
  19  0.000206208
  20  5.9043e-05
  21  26.3706
  22  0.224172
  23  0.202106
Done.

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

Extracting fit parameters...

4FGL J1200.6+1229
   Spectrum: PowerLaw
299    Prefactor:  1.000e-04  1.685e-04  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.054e+00  2.021e-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:  1.200e+00  2.242e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 180.173 12.492
Photon Flux Upper Limit: 8.03e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.20e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/253622/likelihoodResults_501120001_501379201_4FGL_J1200.6+1229_daily_bin1010.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) = 6933.5790821
delta logL = -0.000215215465687

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6933.57886652
delta logL = 3.58912984666e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4779       1.0000          .0000       10.000    
     3 'Normalizat'    1.2003       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0540       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=   6933.579     FROM MIGRAD    STATUS=CONVERGED     63 CALLS      261 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    1963.9        .90712E-02** at limit **
   2  Index         2.5322        5.2974        .50000       -.20008E-04
   3  Normalizat    1.2003        .42776E-01    .57894E-01    .17438E-04
   4  Prefactor     1.0540        .40397E-01    .57885E-01    .12935E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100006
  Index      = 2.53216
  Normalizat = 1.20027
  Prefactor  = 1.05402
 **********
 **   18 **HESSE 
 **********

 FCN=   6933.579     FROM HESSE     STATUS=OK            33 CALLS      294 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    93.778        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5322        5.6429        .50000       -.51619    
   3  Normalizat    1.2003        .20956        .25603E-03   -.86594    
   4  Prefactor     1.0540        .19878        .25597E-03   -.90950    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.3213e-09
Minuit parameter uncertainties:
  1  0.00148908
  2  7.72406
  3  0.209711
  4  0.19892
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/253622': 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) = 6933.57886628
delta logL = 5.98793121753e-07

Extracting fit parameters...

4FGL J1200.6+1229
   Spectrum: PowerLaw
299    Prefactor:  1.000e-04  1.489e-03  1.000e-04  1.000e+04 ( 1.000e-13)
300        Index:  2.532e+00  7.724e+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.054e+00  1.989e-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:  1.200e+00  2.097e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 180.173 12.492

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/253622/cmap_HighResolution_501120001_501379201_4FGL_J1200.6+1229_daily_bin1010.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.20e-03', job_status='DONE', photon_flux_upper_limit='8.03e-08', time_completed='2021-09-04 20:36:31.765190', job_id='253622', GAL2='1.05', fit_tolerance='1e-08', EG2='1.20', EG='1.20', time_epoch_completed='1630812991.77', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.05', dlogl='5.99e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.39' WHERE bin_id='1010' AND source_name='4FGL J1200.6+1229' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 20:36:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0241>
Subject: Job 253622: <4FGL_J1200.6+1229_daily_bin1010> in cluster <slac> Done

Job <4FGL_J1200.6+1229_daily_bin1010> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sat Sep  4 20:20:42 2021
Job was executed on host(s) <bullet0241>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 20:20:43 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:20:43 2021
Terminated at Sat Sep  4 20:36:32 2021
Results reported at Sat Sep  4 20:36:32 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1200.6+1229_daily_bin1010 180.173 12.4922 501120001 501379201 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 :                                   748.19 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             281.59 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   949 sec.
    Turnaround time :                            950 sec.

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

