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


Performing analysis on: 4FGL_J1200.6+1229_daily_bin1462
RA = 180.173, Dec = 12.4922
tmin = 618278401, tmax = 618537601
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='255618', job_status='RUN', time_executed='2021-09-04 20:27:51.505458', time_epoch_executed='1630812471.51' WHERE source_name='4FGL J1200.6+1229' and cadence='daily' and bin_id='1462'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/255618

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/255618/ft1_4FGL_J1200.6+1229_daily_bin1462.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/255618/ft2_4FGL_J1200.6+1229_daily_bin1462.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/255618/ft1_4FGL_J1200.6+1229_daily_bin1462.fits outfile=/scratch/kocevski/255618/ft1_filteredMKT_4FGL_J1200.6+1229_daily_bin1462.fits ra=180.173 dec=12.4922 rad=12.0 tmin=618278401.0 tmax=618537601.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.81
user 3.53
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/255618/ft1_filtered_4FGL_J1200.6+1229_daily_bin1462.fits" evtable="EVENTS" scfile=/scratch/kocevski/255618/ft2_4FGL_J1200.6+1229_daily_bin1462.fits sctable="SC_DATA" outfile=/scratch/kocevski/255618/ltcube_618278401_618537601_4FGL_J1200.6+1229_daily_bin1462.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/255618/ft2_4FGL_J1200.6+1229_daily_bin1462.fits
.....................!
real 12.14
user 11.78
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/255618/ft1_filtered_4FGL_J1200.6+1229_daily_bin1462.fits evtable="EVENTS" scfile=/scratch/kocevski/255618/ft2_4FGL_J1200.6+1229_daily_bin1462.fits sctable="SC_DATA" expcube=/scratch/kocevski/255618/ltcube_618278401_618537601_4FGL_J1200.6+1229_daily_bin1462.fits outfile=/scratch/kocevski/255618/expmap_618278401_618537601_4FGL_J1200.6+1229_daily_bin1462.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/255618/ltcube_618278401_618537601_4FGL_J1200.6+1229_daily_bin1462.fits
.....................!
real 189.91
user 185.11
sys 4.17

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/255618/ft1_filtered_4FGL_J1200.6+1229_daily_bin1462.fits scfile=/scratch/kocevski/255618/ft2_4FGL_J1200.6+1229_daily_bin1462.fits outfile=/scratch/kocevski/255618/cmap_618278401_618537601_4FGL_J1200.6+1229_daily_bin1462.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.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/255618/ft1_filtered_4FGL_J1200.6+1229_daily_bin1462.fits scfile=/scratch/kocevski/255618/ft2_4FGL_J1200.6+1229_daily_bin1462.fits outfile=/scratch/kocevski/255618/cmap_HighResolution_618278401_618537601_4FGL_J1200.6+1229_daily_bin1462.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.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    11.271       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .64496       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10072E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10168E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .12201E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    10.579       1.0000         .10000E-03   10000.    
     8 'Prefactor '    8.7353       1.0000         .10000E-03   10000.    
     9 'Prefactor '    12.012       1.0000         .10000E-03   10000.    
    10 'Prefactor '    87.104       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .29952E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    5.0134       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .66618       1.0000         .10000E-03   10000.    
    18 'norm      '    16.017       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    9.4688       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10794E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .86671       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.1419       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=   6372.865     FROM MIGRAD    STATUS=CONVERGED    505 CALLS     2515 TOTAL
                     EDM=   .20E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          11.269        11.463        .13773E-06   -.42783E-05
   2  Prefactor     .64330        17.778        .30976E-05   -.14204E-04
   3  Prefactor     .10000E-03    37.618       -.58107E-06** at limit **
   4  Prefactor     .10000E-03    4.7333       -.54892E-07** at limit **
   5  Prefactor     .10000E-03    68.308       -.21567E-06** at limit **
   6  Prefactor     .10000E-03    5.7783        .19757E-05** at limit **
   7  Prefactor     10.578        7.0593        .37527E-07   -.39272E-05
   8  Prefactor     8.7074        18.376        .21472E-05   -.20695E-04
   9  Prefactor     12.006        6.2297        .40040E-07    .42995E-04
  10  Prefactor     86.891        101.18       -.53459E-05    .79647E-05
  11  Prefactor     .10000E-03    9.1874       -.62028E-08** at limit **
  12  Prefactor     .10000E-03    1.5749       -.65086E-07** at limit **
  13  Prefactor     .10000E-03    1.3301        .14318E-07** at limit **
  14  Prefactor     .10000E-03    7.3287       -.84454E-08** at limit **
  15  norm          5.0144        3.5715        .15360E-06   -.88809E-05
  16  Prefactor     .10000E-03    15.480        .57902E-07** at limit **
  17  norm          .66606        .31064        .10662E-07    .84456E-04
  18  norm          15.971        35.855       -.12501E-05    .97163E-05
  19  Prefactor     .10000E-03    57.666        .42396E-06** at limit **
  20  Prefactor     9.4729        8.5562       -.10846E-06    .98569E-05
  21  Prefactor     .10000E-03    49.348        .44614E-06** at limit **
  22  Normalizat    .86694        .18945       -.82705E-06    .26390E-04
  23  Prefactor     1.1417        .16862        .34130E-06   -.45738E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 11.2692
  Prefactor  = 0.643298
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.5782
  Prefactor  = 8.70738
  Prefactor  = 12.0063
  Prefactor  = 86.8907
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.0144
  Prefactor  = 0.0001
  norm       = 0.666058
  norm       = 15.9713
  Prefactor  = 0.0001
  Prefactor  = 9.4729
  Prefactor  = 0.0001
  Normalizat = 0.866938
  Prefactor  = 1.14172
 **********
 **   18 **HESSE 
 **********

 FCN=   6372.865     FROM HESSE     STATUS=OK           372 CALLS     2887 TOTAL
                     EDM=   .55E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          11.269        11.464        .11933E-03   -1.5036    
   2  Prefactor     .64330        17.726        .23698E-02   -1.5548    
   3  Prefactor     .10000E-03    37.764        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    4.7453        .16958E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    68.345        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    5.8047        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     10.578        7.0604        .12318E-03   -1.5057    
   8  Prefactor     8.7074        18.309        .13562E-03   -1.5118    
   9  Prefactor     12.006        5.9761        .11558E-03   -1.5015    
  10  Prefactor     86.891        101.62        .21524E-03   -1.3841    
  11  Prefactor     .10000E-03    9.1913        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    12.370        .18061E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    1.3413        .89809E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    7.3313        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          5.0144        3.5733        .55206E-03   -1.5260    
  16  Prefactor     .10000E-03    15.512        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .66606        .30554        .28909E-04   -1.5545    
  18  norm          15.971        35.852        .10008E-03   -1.4908    
  19  Prefactor     .10000E-03    57.680        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     9.4729        8.5584        .13024E-03   -1.5092    
  21  Prefactor     .10000E-03    49.758        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .86694        .22088        .29010E-03   -.97632    
  23  Prefactor     1.1417        .19789        .23963E-03   -.88144    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.45355e-09
Minuit parameter uncertainties:
  1  11.4661
  2  6.75533
  3  3.55182e-05
  4  1.86194e-06
  5  3.05829e-05
  6  1.86829e-05
  7  7.06091
  8  18.3211
  9  5.97635
  10  101.823
  11  1.44595e-06
  12  0.000287365
  13  1.07474e-06
  14  6.75778e-07
  15  3.57343
  16  9.54654e-07
  17  0.305545
  18  35.9004
  19  1.96191e-05
  20  8.55946
  21  3.7995e-05
  22  0.221105
  23  0.198022
Done.

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

Extracting fit parameters...

4FGL J1200.6+1229
   Spectrum: PowerLaw
299    Prefactor:  8.707e+00  1.832e+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.142e+00  1.980e-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:  8.669e-01  2.211e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/255618/likelihoodResults_618278401_618537601_4FGL_J1200.6+1229_daily_bin1462.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) = 6372.85410293
delta logL = 0.0108563915846

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6372.84951991
delta logL = 0.0154394164874

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.9782       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6313       1.0000          .0000       10.000    
     3 'Normalizat'    .86173       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1450       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=   6372.850     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      214 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.9690        1122.8        .37967E-02    .71975E-04
   2  Index         2.6319        7.7813        .23099E-01    .48572E-04
   3  Normalizat    .86162        .18760        .65760E-01    .22039E-04
   4  Prefactor     1.1451        .18723        .54129E-01    .21850E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.96901
  Index      = 2.63194
  Normalizat = 0.861623
  Prefactor  = 1.14506
 **********
 **   18 **HESSE 
 **********

 FCN=   6372.850     FROM HESSE     STATUS=OK            31 CALLS      245 TOTAL
                     EDM=   .17E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.9690        18.080        .15187E-03   -1.5180    
   2  Index         2.6319        1.4577        .92395E-03   -.49339    
   3  Normalizat    .86162        .21349        .29090E-03   -.97822    
   4  Prefactor     1.1451        .19812        .23932E-03   -.88039    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.68398e-12
Minuit parameter uncertainties:
  1  18.0942
  2  1.4857
  3  0.213694
  4  0.198249
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/255618': 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) = 6372.84951963
delta logL = 0.0154396896432

Extracting fit parameters...

4FGL J1200.6+1229
   Spectrum: PowerLaw
299    Prefactor:  6.969e+00  1.809e+01  1.000e-04  1.000e+04 ( 1.000e-13)
300        Index:  2.632e+00  1.486e+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.145e+00  1.982e-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:  8.616e-01  2.137e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

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/255618/cmap_HighResolution_618278401_618537601_4FGL_J1200.6+1229_daily_bin1462.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.11e-03', job_status='DONE', photon_flux_upper_limit='1.05e-07', time_completed='2021-09-04 20:40:29.402370', job_id='255618', GAL2='1.15', fit_tolerance='1e-08', EG2='0.86', EG='0.87', time_epoch_completed='1630813229.4', return_code2='0', ts='0.32', comment='SUCCESS', return_code='0', GAL='1.14', dlogl='1.54e-02', ts2='0.36', photon_index_error='0.00', photon_index='2.39' WHERE bin_id='1462' AND source_name='4FGL J1200.6+1229' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 20:40:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0258>
Subject: Job 255618: <4FGL_J1200.6+1229_daily_bin1462> in cluster <slac> Done

Job <4FGL_J1200.6+1229_daily_bin1462> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sat Sep  4 20:25:50 2021
Job was executed on host(s) <bullet0258>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 20:25:52 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:25:52 2021
Terminated at Sat Sep  4 20:40:30 2021
Results reported at Sat Sep  4 20:40:30 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1200.6+1229_daily_bin1462 180.173 12.4922 618278401 618537601 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 :                                   690.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             287.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   877 sec.
    Turnaround time :                            880 sec.

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

