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


Performing analysis on: 4FGL_J1203.3+1119_weekly_bin712
RA = 180.833, Dec = 11.3231
tmin = 669600001, tmax = 670204801
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='430414', job_status='RUN', time_executed='2022-03-29 08:23:30.634169', time_epoch_executed='1648567410.63' WHERE source_name='4FGL J1203.3+1119' and cadence='weekly' and bin_id='712'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/430414

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/430414/ft1_4FGL_J1203.3+1119_weekly_bin712.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/430414/ft2_4FGL_J1203.3+1119_weekly_bin712.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/430414/ft1_4FGL_J1203.3+1119_weekly_bin712.fits outfile=/scratch/kocevski/430414/ft1_filteredMKT_4FGL_J1203.3+1119_weekly_bin712.fits ra=180.833 dec=11.3231 rad=12.0 tmin=669600001.0 tmax=670204801.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 8.67
user 8.30
sys 0.31

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/430414/ft2_4FGL_J1203.3+1119_weekly_bin712.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/430414/ft2_4FGL_J1203.3+1119_weekly_bin712.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/430414/ft1_filteredMKT_4FGL_J1203.3+1119_weekly_bin712.fits evtable="EVENTS" outfile="/scratch/kocevski/430414/ft1_filtered_4FGL_J1203.3+1119_weekly_bin712.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.58
user 0.38
sys 0.15

Number of photons that the gtmktime cut: 1174

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/430414/ft1_filtered_4FGL_J1203.3+1119_weekly_bin712.fits" evtable="EVENTS" scfile=/scratch/kocevski/430414/ft2_4FGL_J1203.3+1119_weekly_bin712.fits sctable="SC_DATA" outfile=/scratch/kocevski/430414/ltcube_669600001_670204801_4FGL_J1203.3+1119_weekly_bin712.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/430414/ft2_4FGL_J1203.3+1119_weekly_bin712.fits
.....................!
real 26.73
user 26.24
sys 0.40

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/430414/ft1_filtered_4FGL_J1203.3+1119_weekly_bin712.fits evtable="EVENTS" scfile=/scratch/kocevski/430414/ft2_4FGL_J1203.3+1119_weekly_bin712.fits sctable="SC_DATA" expcube=/scratch/kocevski/430414/ltcube_669600001_670204801_4FGL_J1203.3+1119_weekly_bin712.fits outfile=/scratch/kocevski/430414/expmap_669600001_670204801_4FGL_J1203.3+1119_weekly_bin712.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/430414/ltcube_669600001_670204801_4FGL_J1203.3+1119_weekly_bin712.fits
.....................!
real 190.94
user 185.68
sys 4.91

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

Setting source of interest to:
4FGL J1203.3+1119 @ 180.833 11.3231

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/430414/ft1_filtered_4FGL_J1203.3+1119_weekly_bin712.fits scfile=/scratch/kocevski/430414/ft2_4FGL_J1203.3+1119_weekly_bin712.fits outfile=/scratch/kocevski/430414/cmap_669600001_670204801_4FGL_J1203.3+1119_weekly_bin712.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.833 yref=11.3231 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.62
user 0.42
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/430414/ft1_filtered_4FGL_J1203.3+1119_weekly_bin712.fits scfile=/scratch/kocevski/430414/ft2_4FGL_J1203.3+1119_weekly_bin712.fits outfile=/scratch/kocevski/430414/cmap_HighResolution_669600001_670204801_4FGL_J1203.3+1119_weekly_bin712.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.833 yref=11.3231 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.58
user 0.41
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/430414/ft1_filtered_4FGL_J1203.3+1119_weekly_bin712.fits evtable="EVENTS" scfile=/scratch/kocevski/430414/ft2_4FGL_J1203.3+1119_weekly_bin712.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/430414/Model_4FGL_J1203.3+1119_weekly_bin712.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/430414/ft1_filtered_4FGL_J1203.3+1119_weekly_bin712.fits.....................!
real 113.62
user 112.19
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/430414/ft1_filtered_4FGL_J1203.3+1119_weekly_bin712.fits', '/scratch/kocevski/430414/ft2_4FGL_J1203.3+1119_weekly_bin712.fits', expMap='/scratch/kocevski/430414/expmap_669600001_670204801_4FGL_J1203.3+1119_weekly_bin712.fits', expCube='/scratch/kocevski/430414/ltcube_669600001_670204801_4FGL_J1203.3+1119_weekly_bin712.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/430414/Model_4FGL_J1203.3+1119_weekly_bin712.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1203.3+1119'

4FGL J1203.3+1119
   Spectrum: PowerLaw
314    Prefactor:  8.766e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
315        Index:  2.339e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
316        Scale:  1.487e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/430414/ft1_filtered_4FGL_J1203.3+1119_weekly_bin712.fits
Spacecraft file(s): /scratch/kocevski/430414/ft2_4FGL_J1203.3+1119_weekly_bin712.fits
Exposure map: /scratch/kocevski/430414/expmap_669600001_670204801_4FGL_J1203.3+1119_weekly_bin712.fits
Exposure cube: /scratch/kocevski/430414/ltcube_669600001_670204801_4FGL_J1203.3+1119_weekly_bin712.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/430414/Model_4FGL_J1203.3+1119_weekly_bin712.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) = 13452.0406154

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.2068       1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.9612       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .63612E-02   1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.9122       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .12175E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10385E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10248E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.3164       1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.7551       1.0000         .10000E-03   10000.    
    15 'norm      '    .79932       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10811E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .28796E-01   1.0000         .10000E-03   10000.    
    18 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    42.960       1.0000         .10000E-03   10000.    
    20 'norm      '    1.0896       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    32.677       1.0000         .10000E-03   10000.    
    23 'norm      '    2.1200       1.0000         .10000E-03   10000.    
    24 'Prefactor '    51.063       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .98952       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.1449       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6260E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   13452.04     FROM MIGRAD    STATUS=CONVERGED    631 CALLS     3124 TOTAL
                     EDM=   .13E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.2063        5.9461        .17258E-06    .57766E-05
   2  Prefactor     3.9586        16.171        .82768E-06    .10112E-04
   3  Prefactor     .10000E-03    2.2211        .57301E-07** at limit **
   4  Prefactor     .10000E-03    3.3422        .11023E-07** at limit **
   5  Prefactor     .10000E-03    424.33        .92991E-06** at limit **
   6  Prefactor     1.9102        5.8635        .14483E-05   -.52564E-04
   7  Prefactor     .10000E-03    3.7124        .12508E-06** at limit **
   8  Prefactor     .10000E-03    2.9406        .38059E-08** at limit **
   9  Prefactor     .10000E-03    .77081        .36515E-07** at limit **
  10  Prefactor     .10000E-03    26.279        .15048E-06** at limit **
  11  Prefactor     .10000E-03    22.228        .12499E-06** at limit **
  12  Prefactor     .10000E-03    .89788       -.27145E-07** at limit **
  13  Prefactor     3.3168        2.2761        .71236E-07   -.24082E-03
  14  Prefactor     1.7561        9.2253        .10416E-05   -.34224E-05
  15  norm          .79944        1.7677        .11389E-05   -.64067E-04
  16  Prefactor     .10000E-03    29.157       -.66474E-06** at limit **
  17  norm          .28720E-01    .83503E-01    .27489E-06   -.49462E-03
  18  norm          .10000E-03    7.7824       -.12714E-06** at limit **
  19  Prefactor     42.892        57.901       -.11007E-05   -.11259E-03
  20  norm          1.0895        .40330       -.57644E-07   -.11397E-02
  21  Prefactor     .10000E-03    1.8419       -.22301E-06** at limit **
  22  Prefactor     32.688        19.245       -.20615E-06   -.31027E-03
  23  norm          2.1200        1.0816        .16165E-07   -.25526E-03
  24  Prefactor     51.027        43.032        .23747E-06    .46104E-05
  25  Normalizat    .98955        .12973       -.82086E-06   -.28767E-03
  26  Prefactor     1.1450        .11759       -.92271E-07   -.29386E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 6.20626
  Prefactor  = 3.95862
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.9102
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.31683
  Prefactor  = 1.75609
  norm       = 0.799438
  Prefactor  = 0.0001
  norm       = 0.0287202
  norm       = 0.0001
  Prefactor  = 42.8921
  norm       = 1.08949
  Prefactor  = 0.0001
  Prefactor  = 32.6879
  norm       = 2.11995
  Prefactor  = 51.0274
  Normalizat = 0.989552
  Prefactor  = 1.14502
 **********
 **   18 **HESSE 
 **********

 FCN=   13452.04     FROM HESSE     STATUS=OK           452 CALLS     3576 TOTAL
                     EDM=   .25E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.2063        5.9404        .16113E-03   -1.5210    
   2  Prefactor     3.9586        16.140        .20267E-03   -1.5310    
   3  Prefactor     .10000E-03    2.2308        .16880E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    3.3429        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    443.13        .37702E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     1.9102        5.8498        .30061E-03   -1.5432    
   7  Prefactor     .10000E-03    3.7849        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    2.9454        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    .77934        .99398E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    26.324        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    22.367        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    1.9512        .20348E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     3.3168        2.1830        .13197E-03   -1.5344    
  14  Prefactor     1.7561        9.0456        .31639E-03   -1.5443    
  15  norm          .79944        1.7500        .21121E-03   -1.5529    
  16  Prefactor     .10000E-03    29.436        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .28720E-01    .83786E-01    .55144E-04   -1.5674    
  18  norm          .10000E-03    7.7912        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     42.892        58.288        .61164E-04   -1.4397    
  20  norm          1.0895        .39440        .41340E-04   -1.5499    
  21  Prefactor     .10000E-03    1.8425        .15358E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     32.688        19.366        .70097E-04   -1.4564    
  23  norm          2.1200        1.0747        .82595E-04   -1.5417    
  24  Prefactor     51.027        43.047        .56123E-04   -1.4278    
  25  Normalizat    .98955        .15284        .27114E-03   -.93381    
  26  Prefactor     1.1450        .13935        .23535E-03   -.88040    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.49988e-10
Minuit parameter uncertainties:
  1  5.94097
  2  15.9935
  3  1.14043e-06
  4  1.76023e-07
  5  2.47582e-05
  6  5.85153
  7  2.32852e-06
  8  8.07622e-07
  9  4.92406e-07
  10  7.96803e-05
  11  1.24825e-05
  12  3.01093e-06
  13  2.18301
  14  7.97285
  15  1.75013
  16  5.23239e-05
  17  0.083786
  18  1.8424e-05
  19  58.3658
  20  0.394402
  21  2.35386e-06
  22  19.3695
  23  1.07473
  24  43.0735
  25  0.152903
  26  0.139392
Done.

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

Extracting fit parameters...

4FGL J1203.3+1119
   Spectrum: PowerLaw
314    Prefactor:  1.000e-04  7.968e-05  1.000e-04  1.000e+04 ( 1.000e-14)
315        Index:  2.339e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
316        Scale:  1.487e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
623    Prefactor:  1.145e+00  1.394e-01  0.000e+00  1.000e+01 ( 1.000e+00)
624        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
625        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
622   Normalization:  9.896e-01  1.529e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 180.833 11.323
Photon Flux Upper Limit: 3.75e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.89e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/430414/likelihoodResults_669600001_670204801_4FGL_J1203.3+1119_weekly_bin712.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) = 13452.0373183
delta logL = -0.000180968214408

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 13452.0371382
delta logL = -8.15594830783e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10327E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6521       1.0000          .0000       10.000    
     3 'Normalizat'    .98955       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    .6260E+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=   13452.04     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      273 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10211E-03    129.73        .18142E-02** at limit **
   2  Index         2.5845        8.3534        .50000        .12639E-04
   3  Normalizat    .98955        .80287E-02    .27114E-03   -.73963E-04
   4  Prefactor     1.1450        .74690E-02    .23535E-03   -.76227E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000102109
  Index      = 2.58454
  Normalizat = 0.989552
  Prefactor  = 1.14502
 **********
 **   18 **HESSE 
 **********

 FCN=   13452.04     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      302 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10211E-03    556.66        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5845        6.5465        .50000       -.50418    
   3  Normalizat    .98955        .17144E-01    .10846E-04   -.93381    
   4  Prefactor     1.1450        .15948E-01    .94138E-05   -.88040    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.77631e-08
Minuit parameter uncertainties:
  1  0.0691779
  2  617.291
  3  0.0171438
  4  0.0159483
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/430414': 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) = 13452.0371379
delta logL = -5.74795194552e-07

Extracting fit parameters...

4FGL J1203.3+1119
   Spectrum: PowerLaw
314    Prefactor:  1.021e-04  6.918e-02  1.000e-04  1.000e+04 ( 1.000e-14)
315        Index:  2.585e+00  6.173e+02  0.000e+00  1.000e+01 (-1.000e+00)
316        Scale:  1.487e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
623    Prefactor:  1.145e+00  1.595e-02  0.000e+00  1.000e+01 ( 1.000e+00)
624        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
625        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
622   Normalization:  9.896e-01  1.714e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 180.833 11.323

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/430414/cmap_HighResolution_669600001_670204801_4FGL_J1203.3+1119_weekly_bin712.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.89e-03', job_status='DONE', photon_flux_upper_limit='3.75e-08', time_completed='2022-03-29 08:45:39.662410', job_id='430414', GAL2='1.15', fit_tolerance='1e-08', EG2='0.99', EG='0.99', time_epoch_completed='1648568739.66', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.15', dlogl='-5.75e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.34' WHERE bin_id='712' AND source_name='4FGL J1203.3+1119' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Mar 29 08:45:39 PDT 2022

er <slac> at Tue Mar 29 00:07:38 2022
Job was executed on host(s) <bullet0042>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Mar 29 00:07:42 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Mar 29 00:07:42 2022
Terminated at Tue Mar 29 00:33:45 2022
Results reported at Tue Mar 29 00:33:45 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1203.3+1119_weekly_bin712 180.833 11.3231 669600001 670204801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1203.3+1119 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   1352.00 sec.
    Max Memory :                                 621 MB
    Average Memory :                             293.71 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   1563 sec.
    Turnaround time :                            1567 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0218>
Subject: Job 430414: <4FGL_J1203.3+1119_weekly_bin712> in cluster <slac> Done

Job <4FGL_J1203.3+1119_weekly_bin712> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Mar 29 00:07:10 2022
Job was executed on host(s) <bullet0218>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Mar 29 00:07:12 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Mar 29 00:07:12 2022
Terminated at Tue Mar 29 08:45:40 2022
Results reported at Tue Mar 29 08:45:40 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1203.3+1119_weekly_bin712 180.833 11.3231 669600001 670204801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1203.3+1119 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   1325.00 sec.
    Max Memory :                                 1096 MB
    Average Memory :                             60.40 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   31107 sec.
    Turnaround time :                            31110 sec.

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

