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


Performing analysis on: 4FGL_J1200.2+0201_daily_bin573
RA = 180.055, Dec = 2.0172
tmin = 387849601, tmax = 388108801
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='241377', job_status='RUN', time_executed='2021-09-04 19:43:51.565269', time_epoch_executed='1630809831.57' WHERE source_name='4FGL J1200.2+0201' and cadence='daily' and bin_id='573'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/241377

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/241377/ft1_4FGL_J1200.2+0201_daily_bin573.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/241377/ft2_4FGL_J1200.2+0201_daily_bin573.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/241377/ft1_4FGL_J1200.2+0201_daily_bin573.fits outfile=/scratch/kocevski/241377/ft1_filteredMKT_4FGL_J1200.2+0201_daily_bin573.fits ra=180.055 dec=2.0172 rad=12.0 tmin=387849601.0 tmax=388108801.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.46
user 4.20
sys 0.25

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/241377/ft2_4FGL_J1200.2+0201_daily_bin573.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/241377/ft2_4FGL_J1200.2+0201_daily_bin573.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/241377/ft1_filteredMKT_4FGL_J1200.2+0201_daily_bin573.fits evtable="EVENTS" outfile="/scratch/kocevski/241377/ft1_filtered_4FGL_J1200.2+0201_daily_bin573.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/241377/ft1_filtered_4FGL_J1200.2+0201_daily_bin573.fits" evtable="EVENTS" scfile=/scratch/kocevski/241377/ft2_4FGL_J1200.2+0201_daily_bin573.fits sctable="SC_DATA" outfile=/scratch/kocevski/241377/ltcube_387849601_388108801_4FGL_J1200.2+0201_daily_bin573.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/241377/ft2_4FGL_J1200.2+0201_daily_bin573.fits
.....................!
real 11.60
user 11.23
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/241377/ft1_filtered_4FGL_J1200.2+0201_daily_bin573.fits evtable="EVENTS" scfile=/scratch/kocevski/241377/ft2_4FGL_J1200.2+0201_daily_bin573.fits sctable="SC_DATA" expcube=/scratch/kocevski/241377/ltcube_387849601_388108801_4FGL_J1200.2+0201_daily_bin573.fits outfile=/scratch/kocevski/241377/expmap_387849601_388108801_4FGL_J1200.2+0201_daily_bin573.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/241377/ltcube_387849601_388108801_4FGL_J1200.2+0201_daily_bin573.fits
.....................!
real 190.87
user 186.55
sys 3.97

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

Setting source of interest to:
4FGL J1200.2+0201 @ 180.055 2.0172

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/241377/ft1_filtered_4FGL_J1200.2+0201_daily_bin573.fits scfile=/scratch/kocevski/241377/ft2_4FGL_J1200.2+0201_daily_bin573.fits outfile=/scratch/kocevski/241377/cmap_387849601_388108801_4FGL_J1200.2+0201_daily_bin573.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.055 yref=2.0172 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.66
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/241377/ft1_filtered_4FGL_J1200.2+0201_daily_bin573.fits scfile=/scratch/kocevski/241377/ft2_4FGL_J1200.2+0201_daily_bin573.fits outfile=/scratch/kocevski/241377/cmap_HighResolution_387849601_388108801_4FGL_J1200.2+0201_daily_bin573.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.055 yref=2.0172 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.70
user 0.38
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/241377/ft1_filtered_4FGL_J1200.2+0201_daily_bin573.fits evtable="EVENTS" scfile=/scratch/kocevski/241377/ft2_4FGL_J1200.2+0201_daily_bin573.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/241377/Model_4FGL_J1200.2+0201_daily_bin573.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/241377/ft1_filtered_4FGL_J1200.2+0201_daily_bin573.fits.....................!
real 48.14
user 45.01
sys 1.17

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/241377/ft1_filtered_4FGL_J1200.2+0201_daily_bin573.fits', '/scratch/kocevski/241377/ft2_4FGL_J1200.2+0201_daily_bin573.fits', expMap='/scratch/kocevski/241377/expmap_387849601_388108801_4FGL_J1200.2+0201_daily_bin573.fits', expCube='/scratch/kocevski/241377/ltcube_387849601_388108801_4FGL_J1200.2+0201_daily_bin573.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/241377/Model_4FGL_J1200.2+0201_daily_bin573.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1200.2+0201'

4FGL J1200.2+0201
   Spectrum: PowerLaw
285    Prefactor:  1.346e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
286        Index:  2.109e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
287        Scale:  1.748e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/241377/ft1_filtered_4FGL_J1200.2+0201_daily_bin573.fits
Spacecraft file(s): /scratch/kocevski/241377/ft2_4FGL_J1200.2+0201_daily_bin573.fits
Exposure map: /scratch/kocevski/241377/expmap_387849601_388108801_4FGL_J1200.2+0201_daily_bin573.fits
Exposure cube: /scratch/kocevski/241377/ltcube_387849601_388108801_4FGL_J1200.2+0201_daily_bin573.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/241377/Model_4FGL_J1200.2+0201_daily_bin573.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) = 4726.5423087

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10120E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.0539       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10141E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .36989E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    26.142       1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.2749       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10621E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    9.5187       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    67.997       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10119E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10668E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    1.6873       1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10210E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10367E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    1.2749       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .13002E-01   1.0000         .10000E-03   10000.    
    27 'norm      '    9.0194       1.0000         .10000E-03   10000.    
    28 'Prefactor '    9.0329       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    .99048       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .94817       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6010E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4726.536     FROM MIGRAD    STATUS=CONVERGED    784 CALLS     4037 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.8185       -.43555E-07** at limit **
   2  norm          .10000E-03    30.698        .67483E-05** at limit **
   3  Prefactor     5.0526        2.8819        .73689E-07   -.72868E-04
   4  Prefactor     .10000E-03    14.400        .76234E-05** at limit **
   5  norm          .10000E-03    2.6974       -.14280E-07** at limit **
   6  Prefactor     .10000E-03    2.3816       -.14967E-05** at limit **
   7  Prefactor     .10000E-03    11.881       -.92355E-05** at limit **
   8  Prefactor     26.145        103.27        .53891E-05    .14046E-05
   9  Prefactor     4.2734        10.248       -.14359E-06   -.13744E-03
  10  Prefactor     .10000E-03    58.131       -.67761E-05** at limit **
  11  Prefactor     9.5176        9.3720       -.79254E-06   -.10255E-02
  12  Prefactor     .10000E-03    6.7417       -.49839E-06** at limit **
  13  Prefactor     .10000E-03    5.2140       -.14594E-06** at limit **
  14  Prefactor     .10000E-03    23.203       -.76752E-05** at limit **
  15  Prefactor     68.029        48.465        .28083E-04    .92565E-04
  16  Prefactor     .10000E-03    20.220       -.21522E-05** at limit **
  17  Prefactor     .10000E-03    19.618       -.45071E-06** at limit **
  18  Prefactor     .10000E-03    8.6974        .24207E-05** at limit **
  19  Prefactor     .10000E-03    3.6018        .25193E-07** at limit **
  20  norm          1.6869        1.9445        .50671E-07    .25731E-04
  21  norm          .10000E-03    1.0263        .15234E-06** at limit **
  22  Prefactor     .10000E-03    18.650        .30310E-05** at limit **
  23  norm          .10000E-03    13.857        .51556E-05** at limit **
  24  Prefactor     .10000E-03    49.808        .25769E-04** at limit **
  25  norm          1.2743        .67925        .85297E-08    .87507E-04
  26  Prefactor     .10058E-03    6.2832       -.14560E-05** at limit **
  27  norm          9.0204        2.7923        .43863E-07   -.16956E-05
  28  Prefactor     9.0277        8.5151        .33403E-06    .14480E-03
  29  Prefactor     .10000E-03    21.496       -.53664E-05** at limit **
  30  Normalizat    .99080        .22860        .14515E-06    .15993E-03
  31  Prefactor     .94790        .17970       -.20133E-05    .35754E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 5.05263
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 26.1449
  Prefactor  = 4.27341
  Prefactor  = 0.000100005
  Prefactor  = 9.51758
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 68.0295
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.68686
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.27428
  Prefactor  = 0.000100576
  norm       = 9.02036
  Prefactor  = 9.0277
  Prefactor  = 0.0001
  Normalizat = 0.990804
  Prefactor  = 0.947898
 **********
 **   18 **HESSE 
 **********

 FCN=   4726.536     FROM HESSE     STATUS=OK           612 CALLS     4649 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.8503        .11269E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    30.865        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     5.0526        2.8865        .84233E-04   -1.5258    
   4  Prefactor     .10000E-03    14.425        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    2.7054        .11022E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    13.385        .20398E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    11.873        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     26.145        104.04        .78350E-04   -1.4685    
   9  Prefactor     4.2734        10.228        .19486E-03   -1.5294    
  10  Prefactor     .10000E-03    58.451        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     9.5176        9.4215        .64946E-03   -1.5091    
  12  Prefactor     .10000E-03    6.7524        .17433E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    5.2268        .15332E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    23.196        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     68.029        48.369        .24338E-03   -1.4056    
  16  Prefactor     .10000E-03    20.248        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    19.703        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    8.7006        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    3.6051        .12741E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          1.6869        1.9356        .99736E-04   -1.5448    
  21  norm          .10000E-03    1.0317        .67967E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    18.667        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    13.860        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    49.740        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          1.2743        .66721        .37858E-04   -1.5482    
  26  Prefactor     .10058E-03    59.508        .32958E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          9.0204        2.7925        .59671E-04   -1.5107    
  28  Prefactor     9.0277        8.4778        .13336E-03   -1.5107    
  29  Prefactor     .10000E-03    21.502        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    .99080        .26662        .27389E-03   -.93339    
  31  Prefactor     .94790        .20811        .23096E-03   -.94487    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.07644e-08
Minuit parameter uncertainties:
  1  1.99946e-06
  2  1.43308e-05
  3  2.88658
  4  1.22073e-06
  5  4.42341e-06
  6  0.000262583
  7  1.16583e-05
  8  104.631
  9  10.2322
  10  0.00104805
  11  9.42292
  12  5.60146e-06
  13  5.70058e-05
  14  5.69692e-06
  15  48.3965
  16  1.4239e-05
  17  1.80027e-05
  18  2.92922e-06
  19  2.14279e-06
  20  1.93569
  21  1.15592e-06
  22  8.96592e-06
  23  3.3837e-06
  24  4.21442e-06
  25  0.667215
  26  0.0117196
  27  2.79258
  28  8.47891
  29  9.70889e-06
  30  0.266978
  31  0.208281
Done.

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

Extracting fit parameters...

4FGL J1200.2+0201
   Spectrum: PowerLaw
285    Prefactor:  9.518e+00  9.423e+00  1.000e-04  1.000e+04 ( 1.000e-13)
286        Index:  2.109e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
287        Scale:  1.748e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
598    Prefactor:  9.479e-01  2.083e-01  0.000e+00  1.000e+01 ( 1.000e+00)
599        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
600        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
597   Normalization:  9.908e-01  2.670e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.95
Ra Dec: 180.055 2.017
Photon Index (Fixed Index): 2.11 +/- 0.00
Photon Flux (Fixed Index): 3.58e-08 +/- 3.54e-08
Energy Flux (Fixed Index): 1.93e-05 +/- 1.91e-05

TS (Fixed Index): 1.95
Ra Dec: 180.055 2.017
Photon Flux Upper Limit: 1.22e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.23e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/241377/likelihoodResults_387849601_388108801_4FGL_J1200.2+0201_daily_bin573.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) = 4725.82822898
delta logL = 0.708242710564

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4725.81178002
delta logL = 0.724691674458

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.4861       1.0000         .10000E-03   10000.    
     2 'Index     '    3.3428       1.0000          .0000       10.000    
     3 'Normalizat'    .90353       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99788       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6010E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4725.812     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      251 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.4774        17.572        .87961E-02    .12249E-03
   2  Index         3.3456        2.4358        .90282E-01    .10656E-03
   3  Normalizat    .90357        .69563E-01    .64527E-01   -.25558E-04
   4  Prefactor     .99784        .55715E-01    .46241E-01   -.62050E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.47739
  Index      = 3.34557
  Normalizat = 0.903572
  Prefactor  = 0.997841
 **********
 **   18 **HESSE 
 **********

 FCN=   4725.812     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      284 TOTAL
                     EDM=   .24E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.4774        32.355        .53739E-04   -1.5465    
   2  Index         3.3456        3.6057        .34712E-02   -.33724    
   3  Normalizat    .90357        .26908        .28542E-03   -.96335    
   4  Prefactor     .99784        .21609        .22581E-03   -.92802    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.43416e-07
Minuit parameter uncertainties:
  1  13.8357
  2  4.10389
  3  0.269479
  4  0.21628
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/241377': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4725.81177721
delta logL = 0.724694476993

Extracting fit parameters...

4FGL J1200.2+0201
   Spectrum: PowerLaw
285    Prefactor:  1.477e+00  1.384e+01  1.000e-04  1.000e+04 ( 1.000e-13)
286        Index:  3.346e+00  4.104e+00  0.000e+00  1.000e+01 (-1.000e+00)
287        Scale:  1.748e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
598    Prefactor:  9.978e-01  2.163e-01  0.000e+00  1.000e+01 ( 1.000e+00)
599        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
600        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
597   Normalization:  9.036e-01  2.695e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.55
Ra Dec: 180.055 2.017
Photon Index (Free Index): 3.35 +/- 4.10
Photon Flux (Free Index): 9.06e-08 +/- 8.45e-08
Energy Flux (Free Index): 1.58e-05 +/- 1.47e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/241377/cmap_HighResolution_387849601_388108801_4FGL_J1200.2+0201_daily_bin573.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.23e-03', comment='SUCCESS', photon_flux='3.58e-08', energy_flux2='1.58e-05', photon_flux_error='3.54e-08', dlogl='7.25e-01', energy_flux='1.93e-05', photon_flux2='9.06e-08', job_status='DONE', time_completed='2021-09-04 19:56:44.991545', photon_index_error2='4.10', photon_index2='3.35', ts='1.95', fit_tolerance='1e-08', GAL='0.95', photon_index_error='0.00', photon_flux_upper_limit='1.22e-07', energy_flux_error2='1.47e-05', EG='0.99', time_epoch_completed='1630810604.99', return_code='0', job_id='241377', GAL2='1.00', EG2='0.90', return_code2='102', energy_flux_error='1.91e-05', photon_flux_error2='8.45e-08', ts2='3.55', photon_index='2.11' WHERE bin_id='573' AND source_name='4FGL J1200.2+0201' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 19:56:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0104>
Subject: Job 241377: <4FGL_J1200.2+0201_daily_bin573> in cluster <slac> Done

Job <4FGL_J1200.2+0201_daily_bin573> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sat Sep  4 19:40:57 2021
Job was executed on host(s) <bullet0104>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 19:40:58 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep  4 19:40:58 2021
Terminated at Sat Sep  4 19:56:45 2021
Results reported at Sat Sep  4 19:56:45 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1200.2+0201_daily_bin573 180.055 2.0172 387849601 388108801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1200.2+0201 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   769.09 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             254.73 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   947 sec.
    Turnaround time :                            948 sec.

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

