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


Performing analysis on: 4FGL_J1200.6+1229_daily_bin1607
RA = 180.173, Dec = 12.4922
tmin = 655862401, tmax = 656121601
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='325477', job_status='RUN', time_executed='2021-12-07 22:48:42.143184', time_epoch_executed='1638946122.14' WHERE source_name='4FGL J1200.6+1229' and cadence='daily' and bin_id='1607'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/325477

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/325477/ft1_4FGL_J1200.6+1229_daily_bin1607.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/325477/ft2_4FGL_J1200.6+1229_daily_bin1607.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/325477/ft1_4FGL_J1200.6+1229_daily_bin1607.fits outfile=/scratch/kocevski/325477/ft1_filteredMKT_4FGL_J1200.6+1229_daily_bin1607.fits ra=180.173 dec=12.4922 rad=12.0 tmin=655862401.0 tmax=656121601.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.76
user 3.52
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/325477/ft1_filtered_4FGL_J1200.6+1229_daily_bin1607.fits" evtable="EVENTS" scfile=/scratch/kocevski/325477/ft2_4FGL_J1200.6+1229_daily_bin1607.fits sctable="SC_DATA" outfile=/scratch/kocevski/325477/ltcube_655862401_656121601_4FGL_J1200.6+1229_daily_bin1607.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/325477/ft2_4FGL_J1200.6+1229_daily_bin1607.fits
.....................!
real 11.58
user 11.16
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/325477/ft1_filtered_4FGL_J1200.6+1229_daily_bin1607.fits evtable="EVENTS" scfile=/scratch/kocevski/325477/ft2_4FGL_J1200.6+1229_daily_bin1607.fits sctable="SC_DATA" expcube=/scratch/kocevski/325477/ltcube_655862401_656121601_4FGL_J1200.6+1229_daily_bin1607.fits outfile=/scratch/kocevski/325477/expmap_655862401_656121601_4FGL_J1200.6+1229_daily_bin1607.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/325477/ltcube_655862401_656121601_4FGL_J1200.6+1229_daily_bin1607.fits
.....................!
real 154.65
user 150.50
sys 3.61

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/325477/ft1_filtered_4FGL_J1200.6+1229_daily_bin1607.fits scfile=/scratch/kocevski/325477/ft2_4FGL_J1200.6+1229_daily_bin1607.fits outfile=/scratch/kocevski/325477/cmap_655862401_656121601_4FGL_J1200.6+1229_daily_bin1607.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.49
user 0.32
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/325477/ft1_filtered_4FGL_J1200.6+1229_daily_bin1607.fits scfile=/scratch/kocevski/325477/ft2_4FGL_J1200.6+1229_daily_bin1607.fits outfile=/scratch/kocevski/325477/cmap_HighResolution_655862401_656121601_4FGL_J1200.6+1229_daily_bin1607.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.48
user 0.34
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.0448       1.0000         .10000E-03   10000.    
     2 'Prefactor '    13.060       1.0000         .10000E-03   10000.    
     3 'Prefactor '    17.511       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .14575       1.0000         .10000E-03   10000.    
     5 'Prefactor '    31.627       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    8.9443       1.0000         .10000E-03   10000.    
     8 'Prefactor '    9.9617       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10070E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.3428       1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.4947       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    10.674       1.0000         .10000E-03   10000.    
    16 'Prefactor '    72.261       1.0000         .10000E-03   10000.    
    17 'norm      '    .34287       1.0000         .10000E-03   10000.    
    18 'norm      '    13.122       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10849E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    8.7100       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .92160       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.1526       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=   6265.464     FROM MIGRAD    STATUS=CONVERGED    507 CALLS     2552 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.0464        8.5015        .28202E-05   -.14826E-03
   2  Prefactor     13.060        9.6291        .92287E-06   -.33107E-04
   3  Prefactor     17.514        24.244        .21828E-05   -.34393E-04
   4  Prefactor     .19188        6.3446        .40540E-06    .16098E-03
   5  Prefactor     31.690        95.680        .10026E-03   -.68017E-05
   6  Prefactor     .10000E-03    4.7211       -.35515E-06** at limit **
   7  Prefactor     8.9449        7.4760       -.10664E-05   -.55238E-04
   8  Prefactor     9.9686        23.787        .40371E-05   -.72727E-04
   9  Prefactor     .10000E-03    2.7335        .16460E-06** at limit **
  10  Prefactor     .10000E-03    55.329        .47416E-05** at limit **
  11  Prefactor     .10000E-03    18.162       -.45118E-06** at limit **
  12  Prefactor     2.3425        4.4799        .85363E-06   -.78253E-03
  13  Prefactor     1.4959        4.9204       -.11265E-06   -.10897E-02
  14  Prefactor     .10000E-03    8.1659       -.19015E-06** at limit **
  15  norm          10.676        6.4770        .39996E-05   -.22914E-03
  16  Prefactor     72.266        44.575        .46675E-05   -.96294E-05
  17  norm          .34293        .30319        .15970E-06   -.12794E-02
  18  norm          13.099        113.52       -.51253E-04    .19588E-05
  19  Prefactor     .10000E-03    121.85       -.77797E-05** at limit **
  20  Prefactor     8.7121        13.841        .15105E-05   -.62709E-04
  21  Prefactor     .10000E-03    45.289       -.18385E-05** at limit **
  22  Normalizat    .92137        .20822       -.84214E-05    .95870E-04
  23  Prefactor     1.1527        .18061        .19324E-06   -.29154E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 5.04642
  Prefactor  = 13.0603
  Prefactor  = 17.5141
  Prefactor  = 0.191883
  Prefactor  = 31.6899
  Prefactor  = 0.0001
  Prefactor  = 8.94493
  Prefactor  = 9.96864
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.34253
  Prefactor  = 1.49587
  Prefactor  = 0.0001
  norm       = 10.6758
  Prefactor  = 72.2656
  norm       = 0.342925
  norm       = 13.0989
  Prefactor  = 0.0001
  Prefactor  = 8.71206
  Prefactor  = 0.0001
  Normalizat = 0.921372
  Prefactor  = 1.15272
 **********
 **   18 **HESSE 
 **********

 FCN=   6265.464     FROM HESSE     STATUS=OK           372 CALLS     2924 TOTAL
                     EDM=   .41E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.0464        8.4880        .17903E-03   -1.5259    
   2  Prefactor     13.060        9.6304        .11084E-03   -1.4985    
   3  Prefactor     17.514        24.249        .95710E-04   -1.4871    
   4  Prefactor     .19188        117.07        .37784E-02   -1.5620    
   5  Prefactor     31.690        95.394        .71249E-04   -1.4581    
   6  Prefactor     .10000E-03    4.7344        .16795E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     8.9449        7.4801        .13402E-03   -1.5110    
   8  Prefactor     9.9686        23.826        .12696E-03   -1.5076    
   9  Prefactor     .10000E-03    2.7707        .12747E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    55.337        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    18.177        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     2.3425        4.1904        .17836E-03   -1.5402    
  13  Prefactor     1.4959        4.6067        .24435E-03   -1.5463    
  14  Prefactor     .10000E-03    8.1676        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          10.676        6.4803        .11439E-03   -1.5054    
  16  Prefactor     72.266        44.586        .47227E-04   -1.4006    
  17  norm          .34293        .29059        .38487E-03   -1.5591    
  18  norm          13.099        114.13        .11057E-03   -1.4984    
  19  Prefactor     .10000E-03    121.91        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     8.7121        13.845        .13582E-03   -1.5118    
  21  Prefactor     .10000E-03    45.437        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .92137        .24667        .29216E-03   -.95713    
  23  Prefactor     1.1527        .21678        .24606E-03   -.87799    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.10733e-09
Minuit parameter uncertainties:
  1  8.49004
  2  9.63151
  3  24.2623
  4  9.49528
  5  95.8579
  6  5.58942e-05
  7  7.48091
  8  23.849
  9  2.64677e-05
  10  0.000111124
  11  0.000139648
  12  4.19092
  13  4.60777
  14  2.33236e-05
  15  6.48073
  16  44.607
  17  0.29059
  18  77.5278
  19  0.000116776
  20  13.85
  21  0.000167102
  22  0.246978
  23  0.216952
Done.

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

Extracting fit parameters...

4FGL J1200.6+1229
   Spectrum: PowerLaw
299    Prefactor:  9.969e+00  2.385e+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.153e+00  2.170e-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:  9.214e-01  2.470e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/325477/likelihoodResults_655862401_656121601_4FGL_J1200.6+1229_daily_bin1607.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) = 6265.32310647
delta logL = 0.141321757095

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6265.31643874
delta logL = 0.147989486589

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.3152       1.0000         .10000E-03   10000.    
     2 'Index     '    2.8799       1.0000          .0000       10.000    
     3 'Normalizat'    .90003       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1618       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=   6265.316     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      257 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.3194        19.707        .13903E-03   -.40445E-03
   2  Index         2.8792        1.0571        .85766E-02   -.15682E-03
   3  Normalizat    .90013        .23386        .29526E-03    .13040E-02
   4  Prefactor     1.1617        .21376        .24521E-03    .14326E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.31941
  Index      = 2.87918
  Normalizat = 0.900126
  Prefactor  = 1.16167
 **********
 **   18 **HESSE 
 **********

 FCN=   6265.316     FROM HESSE     STATUS=OK            25 CALLS      282 TOTAL
                     EDM=   .42E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.3194        17.051        .55610E-05   -1.5131    
   2  Index         2.8792        .91494        .34307E-03   -.43804    
   3  Normalizat    .90013        .23420        .59052E-04   -.96456    
   4  Prefactor     1.1617        .21379        .49041E-04   -.87519    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.22897e-09
Minuit parameter uncertainties:
  1  17.0607
  2  0.92128
  3  0.234464
  4  0.213947
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/325477': 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) = 6265.31643828
delta logL = 0.147989944617

Extracting fit parameters...

4FGL J1200.6+1229
   Spectrum: PowerLaw
299    Prefactor:  8.319e+00  1.706e+01  1.000e-04  1.000e+04 ( 1.000e-13)
300        Index:  2.879e+00  9.213e-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.162e+00  2.139e-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:  9.001e-01  2.345e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.20
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/325477/cmap_HighResolution_655862401_656121601_4FGL_J1200.6+1229_daily_bin1607.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.94e-03', job_status='DONE', photon_flux_upper_limit='1.29e-07', time_completed='2021-12-07 22:58:12.070409', job_id='325477', GAL2='1.16', fit_tolerance='1e-08', EG2='0.90', EG='0.92', time_epoch_completed='1638946692.07', return_code2='0', ts='0.20', comment='SUCCESS', return_code='0', GAL='1.15', dlogl='1.48e-01', ts2='0.50', photon_index_error='0.00', photon_index='2.39' WHERE bin_id='1607' AND source_name='4FGL J1200.6+1229' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Dec  7 22:58:12 PST 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0095>
Subject: Job 325477: <4FGL_J1200.6+1229_daily_bin1607> in cluster <slac> Done

Job <4FGL_J1200.6+1229_daily_bin1607> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Dec  7 22:45:17 2021
Job was executed on host(s) <bullet0095>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Dec  7 22:46:17 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Dec  7 22:46:17 2021
Terminated at Tue Dec  7 22:58:12 2021
Results reported at Tue Dec  7 22:58:12 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1200.6+1229_daily_bin1607 180.173 12.4922 655862401 656121601 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 :                                   568.15 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             329.24 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   715 sec.
    Turnaround time :                            775 sec.

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

