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


Performing analysis on: 4FGL_J1200.2+0201_daily_bin505
RA = 180.055, Dec = 2.0172
tmin = 370224001, tmax = 370483201
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='241285', job_status='RUN', time_executed='2021-09-04 19:44:56.044370', time_epoch_executed='1630809896.04' WHERE source_name='4FGL J1200.2+0201' and cadence='daily' and bin_id='505'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/241285

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/241285/ft1_4FGL_J1200.2+0201_daily_bin505.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/241285/ft2_4FGL_J1200.2+0201_daily_bin505.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/241285/ft1_4FGL_J1200.2+0201_daily_bin505.fits outfile=/scratch/kocevski/241285/ft1_filteredMKT_4FGL_J1200.2+0201_daily_bin505.fits ra=180.055 dec=2.0172 rad=12.0 tmin=370224001.0 tmax=370483201.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 16.18
user 15.73
sys 0.41

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/241285/ft2_4FGL_J1200.2+0201_daily_bin505.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/241285/ft1_filteredMKT_4FGL_J1200.2+0201_daily_bin505.fits evtable="EVENTS" outfile="/scratch/kocevski/241285/ft1_filtered_4FGL_J1200.2+0201_daily_bin505.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.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/241285/ft1_filtered_4FGL_J1200.2+0201_daily_bin505.fits" evtable="EVENTS" scfile=/scratch/kocevski/241285/ft2_4FGL_J1200.2+0201_daily_bin505.fits sctable="SC_DATA" outfile=/scratch/kocevski/241285/ltcube_370224001_370483201_4FGL_J1200.2+0201_daily_bin505.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/241285/ft2_4FGL_J1200.2+0201_daily_bin505.fits
.....................!
real 10.55
user 10.21
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/241285/ft1_filtered_4FGL_J1200.2+0201_daily_bin505.fits evtable="EVENTS" scfile=/scratch/kocevski/241285/ft2_4FGL_J1200.2+0201_daily_bin505.fits sctable="SC_DATA" expcube=/scratch/kocevski/241285/ltcube_370224001_370483201_4FGL_J1200.2+0201_daily_bin505.fits outfile=/scratch/kocevski/241285/expmap_370224001_370483201_4FGL_J1200.2+0201_daily_bin505.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/241285/ltcube_370224001_370483201_4FGL_J1200.2+0201_daily_bin505.fits
.....................!
real 190.81
user 185.30
sys 5.14

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 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/241285/ft1_filtered_4FGL_J1200.2+0201_daily_bin505.fits scfile=/scratch/kocevski/241285/ft2_4FGL_J1200.2+0201_daily_bin505.fits outfile=/scratch/kocevski/241285/cmap_370224001_370483201_4FGL_J1200.2+0201_daily_bin505.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.55
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/241285/ft1_filtered_4FGL_J1200.2+0201_daily_bin505.fits scfile=/scratch/kocevski/241285/ft2_4FGL_J1200.2+0201_daily_bin505.fits outfile=/scratch/kocevski/241285/cmap_HighResolution_370224001_370483201_4FGL_J1200.2+0201_daily_bin505.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.54
user 0.39
sys 0.14

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/241285/ft1_filtered_4FGL_J1200.2+0201_daily_bin505.fits', '/scratch/kocevski/241285/ft2_4FGL_J1200.2+0201_daily_bin505.fits', expMap='/scratch/kocevski/241285/expmap_370224001_370483201_4FGL_J1200.2+0201_daily_bin505.fits', expCube='/scratch/kocevski/241285/ltcube_370224001_370483201_4FGL_J1200.2+0201_daily_bin505.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/241285/Model_4FGL_J1200.2+0201_daily_bin505.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/241285/ft1_filtered_4FGL_J1200.2+0201_daily_bin505.fits
Spacecraft file(s): /scratch/kocevski/241285/ft2_4FGL_J1200.2+0201_daily_bin505.fits
Exposure map: /scratch/kocevski/241285/expmap_370224001_370483201_4FGL_J1200.2+0201_daily_bin505.fits
Exposure cube: /scratch/kocevski/241285/ltcube_370224001_370483201_4FGL_J1200.2+0201_daily_bin505.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/241285/Model_4FGL_J1200.2+0201_daily_bin505.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) = 2175.83663483

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.3611       1.0000         .10000E-03   10000.    
     2 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10875E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    50.860       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    28.513       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10414E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10184E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .11965E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    82.669       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10497E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    110.17       1.0000         .10000E-03   10000.    
    17 'Prefactor '    103.99       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10642E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    8.8875       1.0000         .10000E-03   10000.    
    21 'norm      '    28.480       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10065E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    126.90       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .33270E-01   1.0000         .10000E-03   10000.    
    25 'norm      '    .10077E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    13.242       1.0000         .10000E-03   10000.    
    28 'Prefactor '    24.105       1.0000         .10000E-03   10000.    
    29 'Prefactor '    146.82       1.0000         .10000E-03   10000.    
    30 'Normalizat'    .79561       1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.2729       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=   2175.424     FROM MIGRAD    STATUS=CONVERGED    837 CALLS     4228 TOTAL
                     EDM=   .12E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.3667        14.588       -.12967E-07   -.20888E-04
   2  norm          .10000E-03    34.347        .15944E-06** at limit **
   3  Prefactor     .10000E-03    3.1341        .49736E-07** at limit **
   4  Prefactor     .10000E-03    59.305       -.37998E-06** at limit **
   5  norm          50.864        34.657        .81846E-06    .89556E-06
   6  Prefactor     .10000E-03    7.8919        .65042E-07** at limit **
   7  Prefactor     28.534        68.494       -.36815E-04    .22869E-05
   8  Prefactor     .10000E-03    131.90        .91754E-06** at limit **
   9  Prefactor     .10000E-03    11.007       -.39127E-07** at limit **
  10  Prefactor     .10000E-03    83.673        .12846E-04** at limit **
  11  Prefactor     .10000E-03    16.420        .19466E-06** at limit **
  12  Prefactor     .10000E-03    21.079       -.13436E-07** at limit **
  13  Prefactor     82.698        79.176       -.11160E-04    .54012E-05
  14  Prefactor     .10000E-03    59.135        .19190E-05** at limit **
  15  Prefactor     .10000E-03    199.43       -.36463E-05** at limit **
  16  Prefactor     110.52        116.31        .28146E-04    .15898E-04
  17  Prefactor     104.00        87.365       -.20982E-04    .97987E-05
  18  Prefactor     .10000E-03    80.168       -.13896E-04** at limit **
  19  Prefactor     .10000E-03    28.070        .17751E-07** at limit **
  20  norm          8.8882        8.0054        .10134E-05    .24578E-04
  21  norm          28.472        14.722       -.29701E-06    .12657E-03
  22  Prefactor     .10000E-03    42.211       -.58033E-06** at limit **
  23  norm          126.86        148.71       -.44781E-05    .27486E-04
  24  Prefactor     .10000E-03    2211.0        .18227E-03** at limit **
  25  norm          .10000E-03    1.2795       -.43061E-06** at limit **
  26  Prefactor     .10000E-03    20.647       -.11075E-06** at limit **
  27  norm          13.241        5.9874       -.12802E-05    .11195E-03
  28  Prefactor     24.104        33.196       -.22947E-05    .41585E-05
  29  Prefactor     147.03        161.62        .83956E-04    .80789E-05
  30  Normalizat    .79542        .40030       -.16991E-05    .21446E-04
  31  Prefactor     1.2728        .33441        .13428E-05   -.28366E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.36671
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 50.8643
  Prefactor  = 0.0001
  Prefactor  = 28.5336
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 82.6979
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 110.525
  Prefactor  = 103.996
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 8.88821
  norm       = 28.4719
  Prefactor  = 0.0001
  norm       = 126.865
  Prefactor  = 0.000100002
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 13.2409
  Prefactor  = 24.1036
  Prefactor  = 147.029
  Normalizat = 0.795424
  Prefactor  = 1.27285
 **********
 **   18 **HESSE 
 **********

 FCN=   2175.424     FROM HESSE     STATUS=OK           610 CALLS     4838 TOTAL
                     EDM=   .32E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.3667        14.583        .13099E-03   -1.5096    
   2  norm          .10000E-03    34.349        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    3.1743        .80599E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    59.338        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          50.864        34.656        .56234E-04   -1.4280    
   6  Prefactor     .10000E-03    7.8929        .12796E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     28.534        68.491        .75028E-04   -1.4639    
   8  Prefactor     .10000E-03    131.94        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    11.065        .15113E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    83.686        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    16.441        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    21.182        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     82.698        79.143        .44177E-04   -1.3887    
  14  Prefactor     .10000E-03    59.146        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    199.53        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     110.52        116.53        .38322E-04   -1.3601    
  17  Prefactor     104.00        87.340        .19715E-03   -1.3665    
  18  Prefactor     .10000E-03    80.289        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    28.093        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          8.8882        8.0071        .12012E-03   -1.5112    
  21  norm          28.472        14.684        .75072E-04   -1.4640    
  22  Prefactor     .10000E-03    42.233        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          126.86        148.56        .35736E-04   -1.3450    
  24  Prefactor     .10000E-03    2219.0        .18376E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    1.9546        .99776E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    20.670        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          13.241        5.9738        .73079E-04   -1.4980    
  28  Prefactor     24.104        33.202        .81588E-04   -1.4726    
  29  Prefactor     147.03        161.68        .16628E-03   -1.3277    
  30  Normalizat    .79542        .46870        .38070E-03   -1.0024    
  31  Prefactor     1.2728        .39443        .26233E-03   -.84118    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.18688e-10
Minuit parameter uncertainties:
  1  14.5886
  2  1.26019e-05
  3  1.25933e-05
  4  0.000124012
  5  34.6702
  6  1.45657e-05
  7  68.681
  8  0.000417763
  9  1.89343e-05
  10  0.000116722
  11  9.11606e-05
  12  1.25078e-05
  13  79.2444
  14  1.6633e-05
  15  0.000932609
  16  116.776
  17  87.4485
  18  0.000276696
  19  7.10314e-05
  20  8.00805
  21  14.6857
  22  2.78043e-05
  23  149
  24  0.00431519
  25  5.86731e-05
  26  4.31947e-05
  27  5.97409
  28  33.2272
  29  162.174
  30  0.471103
  31  0.39536
Done.

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

Extracting fit parameters...

4FGL J1200.2+0201
   Spectrum: PowerLaw
285    Prefactor:  1.000e-04  9.116e-05  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:  1.273e+00  3.954e-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:  7.954e-01  4.711e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 180.055 2.017
Photon Flux Upper Limit: 2.17e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.64e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/241285/likelihoodResults_370224001_370483201_4FGL_J1200.2+0201_daily_bin505.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2175.42380901
delta logL = -0.000288451814868

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2175.42352072
delta logL = -1.65170604305e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10662E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.8601       1.0000          .0000       10.000    
     3 'Normalizat'    .79539       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2729       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=   2175.424     FROM MIGRAD    STATUS=CONVERGED     60 CALLS      243 TOTAL
                     EDM=   .25E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .81218        .90712E-02** at limit **
   2  Index         2.8567        5.2171        .50000        .18204E-05
   3  Normalizat    .79542        .22649E-02    .85956E-01    .13367E-04
   4  Prefactor     1.2728        .19346E-02    .59326E-01   -.41430E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.85671
  Normalizat = 0.79542
  Prefactor  = 1.27285
 **********
 **   18 **HESSE 
 **********

 FCN=   2175.424     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      276 TOTAL
                     EDM=   .19E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    643.08        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.8567        6.0282        .50000       -.44301    
   3  Normalizat    .79542        .66860E-01    .38071E-03   -1.0024    
   4  Prefactor     1.2728        .56479E-01    .26233E-03   -.84118    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.91637e-07
Minuit parameter uncertainties:
  1  1.37541e-06
  2  1086.25
  3  0.0668665
  4  0.0564822
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/241285': 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) = 2175.42352052
delta logL = 3.79850462195e-08

Extracting fit parameters...

4FGL J1200.2+0201
   Spectrum: PowerLaw
285    Prefactor:  1.000e-04  1.375e-06  1.000e-04  1.000e+04 ( 1.000e-13)
286        Index:  2.857e+00  1.086e+03  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:  1.273e+00  5.648e-02  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:  7.954e-01  6.687e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 180.055 2.017

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/241285/cmap_HighResolution_370224001_370483201_4FGL_J1200.2+0201_daily_bin505.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.64e-02', job_status='DONE', photon_flux_upper_limit='2.17e-07', time_completed='2021-09-04 19:54:35.753578', job_id='241285', GAL2='1.27', fit_tolerance='1e-08', EG2='0.80', EG='0.80', time_epoch_completed='1630810475.75', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.27', dlogl='3.80e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.11' WHERE bin_id='505' AND source_name='4FGL J1200.2+0201' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 19:54:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0260>
Subject: Job 241285: <4FGL_J1200.2+0201_daily_bin505> in cluster <slac> Done

Job <4FGL_J1200.2+0201_daily_bin505> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sat Sep  4 19:40:48 2021
Job was executed on host(s) <bullet0260>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 19:40:49 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:49 2021
Terminated at Sat Sep  4 19:54:38 2021
Results reported at Sat Sep  4 19:54:38 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1200.2+0201_daily_bin505 180.055 2.0172 370224001 370483201 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 :                                   575.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             234.38 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   827 sec.
    Turnaround time :                            830 sec.

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

