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


Performing analysis on: 4FGL_J1200.6+1229_daily_bin139
RA = 180.173, Dec = 12.4922
tmin = 275356801, tmax = 275616001
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='248984', job_status='RUN', time_executed='2021-09-04 20:05:43.882973', time_epoch_executed='1630811143.88' WHERE source_name='4FGL J1200.6+1229' and cadence='daily' and bin_id='139'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/248984

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/248984/ft1_4FGL_J1200.6+1229_daily_bin139.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/248984/ft2_4FGL_J1200.6+1229_daily_bin139.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/248984/ft1_4FGL_J1200.6+1229_daily_bin139.fits outfile=/scratch/kocevski/248984/ft1_filteredMKT_4FGL_J1200.6+1229_daily_bin139.fits ra=180.173 dec=12.4922 rad=12.0 tmin=275356801.0 tmax=275616001.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.57
user 4.35
sys 0.19

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/248984/ft1_filtered_4FGL_J1200.6+1229_daily_bin139.fits evtable="EVENTS" scfile=/scratch/kocevski/248984/ft2_4FGL_J1200.6+1229_daily_bin139.fits sctable="SC_DATA" expcube=/scratch/kocevski/248984/ltcube_275356801_275616001_4FGL_J1200.6+1229_daily_bin139.fits outfile=/scratch/kocevski/248984/expmap_275356801_275616001_4FGL_J1200.6+1229_daily_bin139.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/248984/ltcube_275356801_275616001_4FGL_J1200.6+1229_daily_bin139.fits
.....................!
real 192.44
user 187.90
sys 4.09

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/248984/ft1_filtered_4FGL_J1200.6+1229_daily_bin139.fits scfile=/scratch/kocevski/248984/ft2_4FGL_J1200.6+1229_daily_bin139.fits outfile=/scratch/kocevski/248984/cmap_275356801_275616001_4FGL_J1200.6+1229_daily_bin139.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.75
user 0.38
sys 0.16

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.9807       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    15.842       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.9359       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .14390       1.0000         .10000E-03   10000.    
     8 'Prefactor '    15.183       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10115E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    42.880       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    4.4864       1.0000         .10000E-03   10000.    
    18 'norm      '    129.80       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    9.1182       1.0000         .10000E-03   10000.    
    21 'Prefactor '    11.074       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.3524       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.3479       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=   8509.671     FROM MIGRAD    STATUS=CONVERGED    517 CALLS     2522 TOTAL
                     EDM=   .87E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.9784        10.515       -.83699E-05   -.26114E-04
   2  Prefactor     .10000E-03    4.8575        .76286E-07** at limit **
   3  Prefactor     15.813        40.193       -.31946E-04    .18190E-04
   4  Prefactor     .10000E-03    5.9199       -.20303E-06** at limit **
   5  Prefactor     .10000E-03    85.780        .22570E-04** at limit **
   6  Prefactor     5.9345        6.0080       -.95118E-06    .14901E-03
   7  Prefactor     .10002E-03    8.8538       -.19934E-05** at limit **
   8  Prefactor     15.160        19.269        .60106E-06    .85352E-04
   9  Prefactor     .10000E-03    1.9083       -.45326E-07** at limit **
  10  Prefactor     .10000E-03    74.679       -.31143E-04** at limit **
  11  Prefactor     .10000E-03    57.339        .16084E-05** at limit **
  12  Prefactor     .10000E-03    1.3521       -.33105E-07** at limit **
  13  Prefactor     .10000E-03    .73398       -.14876E-07** at limit **
  14  Prefactor     .10000E-03    11.733        .93171E-06** at limit **
  15  norm          42.877        9.5295        .85810E-06    .32934E-03
  16  Prefactor     .10000E-03    11.939       -.10873E-05** at limit **
  17  norm          4.4861        .60569       -.43013E-07    .58261E-03
  18  norm          129.81        102.65        .33860E-05    .18227E-04
  19  Prefactor     .10000E-03    84.469        .15987E-04** at limit **
  20  Prefactor     9.1168        10.147        .21313E-05    .44585E-04
  21  Prefactor     11.050        32.784       -.16377E-04   -.61304E-05
  22  Normalizat    1.3529        .23183        .36429E-05    .13711E-03
  23  Prefactor     1.3477        .19986        .97724E-06    .27523E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 7.97839
  Prefactor  = 0.0001
  Prefactor  = 15.8127
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.93454
  Prefactor  = 0.000100021
  Prefactor  = 15.1601
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 42.8768
  Prefactor  = 0.0001
  norm       = 4.48613
  norm       = 129.807
  Prefactor  = 0.0001
  Prefactor  = 9.11685
  Prefactor  = 11.0504
  Normalizat = 1.35291
  Prefactor  = 1.34768
 **********
 **   18 **HESSE 
 **********

 FCN=   8509.671     FROM HESSE     STATUS=OK           372 CALLS     2894 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.9784        10.527        .14193E-03   -1.5143    
   2  Prefactor     .10000E-03    4.8650        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     15.813        40.295        .10063E-03   -1.4912    
   4  Prefactor     .10000E-03    5.9376        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    85.770        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     5.9345        6.0102        .16482E-03   -1.5221    
   7  Prefactor     .10002E-03    13.103        .75708E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     15.160        19.290        .10279E-03   -1.4929    
   9  Prefactor     .10000E-03    1.9215        .12441E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    74.740        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    57.478        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    1.3751        .10470E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    .73538        .77171E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    11.735        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          42.877        9.6057        .61221E-04   -1.4397    
  16  Prefactor     .10000E-03    11.945        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          4.4861        .60784        .25293E-04   -1.5284    
  18  norm          129.81        102.92        .35340E-04   -1.3424    
  19  Prefactor     .10000E-03    84.453        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     9.1168        10.130        .13273E-03   -1.5104    
  21  Prefactor     11.050        32.809        .12039E-03   -1.5043    
  22  Normalizat    1.3529        .28043        .34296E-03   -.82001    
  23  Prefactor     1.3477        .24077        .31166E-03   -.81900    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.00247e-10
Minuit parameter uncertainties:
  1  10.5293
  2  1.16759e-06
  3  40.3648
  4  5.75331e-06
  5  0.000144257
  6  6.01083
  7  0.00104384
  8  19.2975
  9  6.83218e-06
  10  9.31888e-05
  11  0.000253399
  12  5.61717e-06
  13  7.91694e-07
  14  3.02626e-05
  15  9.60602
  16  1.66567e-05
  17  0.60784
  18  103.06
  19  8.93561e-05
  20  10.1323
  21  32.8628
  22  0.280751
  23  0.240965
Done.

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

Extracting fit parameters...

4FGL J1200.6+1229
   Spectrum: PowerLaw
299    Prefactor:  1.516e+01  1.930e+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.348e+00  2.410e-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.353e+00  2.808e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.83
Ra Dec: 180.173 12.492
Photon Flux Upper Limit: 1.27e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.84e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/248984/likelihoodResults_275356801_275616001_4FGL_J1200.6+1229_daily_bin139.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) = 8509.63698954
delta logL = 0.0343525568005

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8509.63430294
delta logL = 0.0370391498927

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    18.307       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1629       1.0000          .0000       10.000    
     3 'Normalizat'    1.3611       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3421       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8509.634     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      293 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     18.305        24.178        .93608E-04    .49576E-03
   2  Index         2.1630        .78797        .11285E-01    .18653E-03
   3  Normalizat    1.3612        .26341        .34204E-03   -.24496E-03
   4  Prefactor     1.3420        .23899        .31217E-03   -.32488E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 18.3051
  Index      = 2.16295
  Normalizat = 1.36117
  Prefactor  = 1.34203
 **********
 **   18 **HESSE 
 **********

 FCN=   8509.634     FROM HESSE     STATUS=OK            23 CALLS      316 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     18.305        23.667        .18722E-04   -1.4852    
   2  Index         2.1630        .77114        .45139E-03   -.60336    
   3  Normalizat    1.3612        .26350        .13682E-04   -.81758    
   4  Prefactor     1.3420        .23910        .62434E-04   -.82066    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.58413e-09
Minuit parameter uncertainties:
  1  23.6786
  2  0.775726
  3  0.26376
  4  0.239296
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/248984': 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) = 8509.63430293
delta logL = 0.0370391603155

Extracting fit parameters...

4FGL J1200.6+1229
   Spectrum: PowerLaw
299    Prefactor:  1.831e+01  2.368e+01  1.000e-04  1.000e+04 ( 1.000e-13)
300        Index:  2.163e+00  7.757e-01  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.342e+00  2.393e-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.361e+00  2.638e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.83
Ra Dec: 180.173 12.492

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/248984/cmap_HighResolution_275356801_275616001_4FGL_J1200.6+1229_daily_bin139.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.84e-03', job_status='DONE', photon_flux_upper_limit='1.27e-07', time_completed='2021-09-04 20:20:13.006478', job_id='248984', GAL2='1.34', fit_tolerance='1e-08', EG2='1.36', EG='1.35', time_epoch_completed='1630812013.01', return_code2='0', ts='0.83', comment='SUCCESS', return_code='0', GAL='1.35', dlogl='3.70e-02', ts2='0.90', photon_index_error='0.00', photon_index='2.39' WHERE bin_id='139' AND source_name='4FGL J1200.6+1229' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 20:20:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0230>
Subject: Job 248984: <4FGL_J1200.6+1229_daily_bin139> in cluster <slac> Done

Job <4FGL_J1200.6+1229_daily_bin139> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sat Sep  4 20:05:30 2021
Job was executed on host(s) <bullet0230>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 20:05:31 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:05:31 2021
Terminated at Sat Sep  4 20:20:13 2021
Results reported at Sat Sep  4 20:20:13 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1200.6+1229_daily_bin139 180.173 12.4922 275356801 275616001 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 :                                   865.00 sec.
    Max Memory :                                 1050 MB
    Average Memory :                             314.61 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   882 sec.
    Turnaround time :                            883 sec.

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

