/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 3 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 = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2121.0+1901_daily_bin1207
RA = 320.26, Dec = 19.0324
tmin = 552182401, tmax = 552441601
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='470942', job_status='RUN', time_executed='2021-09-26 12:25:33.766020', time_epoch_executed='1632684333.77' WHERE source_name='4FGL J2121.0+1901' and cadence='daily' and bin_id='1207'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/470942

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/470942/ft1_4FGL_J2121.0+1901_daily_bin1207.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/470942/ft2_4FGL_J2121.0+1901_daily_bin1207.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/470942/ft1_4FGL_J2121.0+1901_daily_bin1207.fits outfile=/scratch/kocevski/470942/ft1_filteredMKT_4FGL_J2121.0+1901_daily_bin1207.fits ra=320.26 dec=19.0324 rad=12.0 tmin=552182401.0 tmax=552441601.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.73
user 3.51
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/470942/ft2_4FGL_J2121.0+1901_daily_bin1207.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/470942/ft2_4FGL_J2121.0+1901_daily_bin1207.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/470942/ft1_filteredMKT_4FGL_J2121.0+1901_daily_bin1207.fits evtable="EVENTS" outfile="/scratch/kocevski/470942/ft1_filtered_4FGL_J2121.0+1901_daily_bin1207.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.50
user 0.33
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/470942/ft1_filtered_4FGL_J2121.0+1901_daily_bin1207.fits" evtable="EVENTS" scfile=/scratch/kocevski/470942/ft2_4FGL_J2121.0+1901_daily_bin1207.fits sctable="SC_DATA" outfile=/scratch/kocevski/470942/ltcube_552182401_552441601_4FGL_J2121.0+1901_daily_bin1207.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/470942/ft2_4FGL_J2121.0+1901_daily_bin1207.fits
.....................!
real 14.05
user 13.63
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/470942/ft1_filtered_4FGL_J2121.0+1901_daily_bin1207.fits evtable="EVENTS" scfile=/scratch/kocevski/470942/ft2_4FGL_J2121.0+1901_daily_bin1207.fits sctable="SC_DATA" expcube=/scratch/kocevski/470942/ltcube_552182401_552441601_4FGL_J2121.0+1901_daily_bin1207.fits outfile=/scratch/kocevski/470942/expmap_552182401_552441601_4FGL_J2121.0+1901_daily_bin1207.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/470942/ltcube_552182401_552441601_4FGL_J2121.0+1901_daily_bin1207.fits
.....................!
real 192.43
user 186.48
sys 5.16

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
Extended source Cygnus Loop in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/CygnusLoop.fits is the correct path to the extended template.
Added 193 point sources and 1 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J2121.0+1901 @ 320.26 19.0324

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/470942/ft1_filtered_4FGL_J2121.0+1901_daily_bin1207.fits scfile=/scratch/kocevski/470942/ft2_4FGL_J2121.0+1901_daily_bin1207.fits outfile=/scratch/kocevski/470942/cmap_552182401_552441601_4FGL_J2121.0+1901_daily_bin1207.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=320.26 yref=19.0324 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.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/470942/ft1_filtered_4FGL_J2121.0+1901_daily_bin1207.fits scfile=/scratch/kocevski/470942/ft2_4FGL_J2121.0+1901_daily_bin1207.fits outfile=/scratch/kocevski/470942/cmap_HighResolution_552182401_552441601_4FGL_J2121.0+1901_daily_bin1207.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=320.26 yref=19.0324 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.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/470942/ft1_filtered_4FGL_J2121.0+1901_daily_bin1207.fits evtable="EVENTS" scfile=/scratch/kocevski/470942/ft2_4FGL_J2121.0+1901_daily_bin1207.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/470942/Model_4FGL_J2121.0+1901_daily_bin1207.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 Cygnus Loop
adding source EG_v02
adding source GAL_V02
Working on...
/scratch/kocevski/470942/ft1_filtered_4FGL_J2121.0+1901_daily_bin1207.fits.....................!
real 111.88
user 110.25
sys 1.28

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/470942/ft1_filtered_4FGL_J2121.0+1901_daily_bin1207.fits', '/scratch/kocevski/470942/ft2_4FGL_J2121.0+1901_daily_bin1207.fits', expMap='/scratch/kocevski/470942/expmap_552182401_552441601_4FGL_J2121.0+1901_daily_bin1207.fits', expCube='/scratch/kocevski/470942/ltcube_552182401_552441601_4FGL_J2121.0+1901_daily_bin1207.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/470942/Model_4FGL_J2121.0+1901_daily_bin1207.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2121.0+1901'

4FGL J2121.0+1901
   Spectrum: LogParabola
390         norm:  3.670e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
391        alpha:  2.156e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
392         beta:  5.740e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
393           Eb:  8.783e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/470942/ft1_filtered_4FGL_J2121.0+1901_daily_bin1207.fits
Spacecraft file(s): /scratch/kocevski/470942/ft2_4FGL_J2121.0+1901_daily_bin1207.fits
Exposure map: /scratch/kocevski/470942/expmap_552182401_552441601_4FGL_J2121.0+1901_daily_bin1207.fits
Exposure cube: /scratch/kocevski/470942/ltcube_552182401_552441601_4FGL_J2121.0+1901_daily_bin1207.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/470942/Model_4FGL_J2121.0+1901_daily_bin1207.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) = 7181.96846016

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    5.4996       1.0000         .10000E-03   10000.    
     3 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .11896E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .16456E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    9.7309       1.0000         .10000E-03   10000.    
     8 'Prefactor '    33.383       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10582E-02   1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.2600       1.0000         .10000E-03   10000.    
    12 'Prefactor '    8.0715       1.0000         .10000E-03   10000.    
    13 'norm      '    .10222E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    5.4667       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    20.848       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10210E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    76.021       1.0000         .10000E-03   10000.    
    20 'norm      '    4.3424       1.0000         .10000E-03   10000.    
    21 'Prefactor '    23.610       1.0000         .10000E-03   10000.    
    22 'Prefactor '    3.3927       1.0000         .10000E-03   10000.    
    23 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .78504       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .94516       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6610E+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=   7181.962     FROM MIGRAD    STATUS=CONVERGED   1062 CALLS     3863 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    9.4044        .18142E-02** at limit **
   2  norm          5.4998        8.8933        .17133E-03   -.55075E-05
   3  norm          .10000E-03    47.556        .18142E-02** at limit **
   4  Prefactor     .10000E-03    5.4764        .18142E-02** at limit **
   5  Prefactor     .10000E-03    121.23        .18142E-02** at limit **
   6  Prefactor     .10000E-03    214.48        .18142E-02** at limit **
   7  Prefactor     9.7308        15.794        .12846E-03    .50267E-04
   8  Prefactor     33.388        22.583        .69354E-04    .24588E-04
   9  Prefactor     .10000E-03    12.096        .18142E-02** at limit **
  10  Prefactor     .10005E-03    53.810        .15991    ** at limit **
  11  Prefactor     1.2611        19.689        .19870E-02    .68817E-04
  12  Prefactor     8.0726        22.844        .14112E-03    .45918E-05
  13  norm          .10001E-03    51.558        .47850E-02** at limit **
  14  norm          5.4686        4.1691        .14373E-03    .19458E-04
  15  Prefactor     .10000E-03    6.8481        .36285E-03** at limit **
  16  Prefactor     20.850        10.265        .87721E-04   -.26983E-03
  17  Prefactor     .10000E-03    38.943        .18142E-02** at limit **
  18  norm          .10000E-03    2.6479        .18230E-02** at limit **
  19  Prefactor     76.025        75.514        .46053E-04    .17280E-05
  20  norm          4.3423        3.0494        .10493E-03   -.45287E-04
  21  Prefactor     23.621        33.248        .82438E-04   -.20140E-03
  22  Prefactor     3.3515        275.08        .21966E-03   -.10921E-04
  23  norm          .10000E-03    .37820        .99266E-03** at limit **
  24  Normalizat    .78517        .32001        .44370E-03    .11351E-04
  25  Prefactor     .94511        .11515        .15889E-03   -.17586E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 5.49979
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.73084
  Prefactor  = 33.3877
  Prefactor  = 0.0001
  Prefactor  = 0.000100053
  Prefactor  = 1.26107
  Prefactor  = 8.0726
  norm       = 0.000100008
  norm       = 5.46864
  Prefactor  = 0.0001
  Prefactor  = 20.8498
  Prefactor  = 0.0001
  norm       = 0.000100002
  Prefactor  = 76.0252
  norm       = 4.3423
  Prefactor  = 23.621
  Prefactor  = 3.35147
  norm       = 0.0001
  Normalizat = 0.785175
  Prefactor  = 0.94511
 **********
 **   18 **HESSE 
 **********

 FCN=   7181.962     FROM HESSE     STATUS=OK           413 CALLS     4276 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    9.4051        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          5.4998        8.8928        .68532E-05   -1.5239    
   3  norm          .10000E-03    47.557        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    5.4766        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    121.32        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    214.50        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     9.7308        15.793        .51384E-05   -1.5084    
   8  Prefactor     33.388        22.583        .27742E-05   -1.4552    
   9  Prefactor     .10000E-03    12.097        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10005E-03    56.293        .15541       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     1.2611        19.455        .79481E-04   -1.5483    
  12  Prefactor     8.0726        22.841        .56449E-05   -1.5140    
  13  norm          .10001E-03    52.057        .95701E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          5.4686        4.1694        .57491E-05   -1.5240    
  15  Prefactor     .10000E-03    6.8484        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     20.850        10.264        .35089E-05   -1.4794    
  17  Prefactor     .10000E-03    38.943        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    2.6598        .36460E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     76.025        75.518        .92106E-05   -1.3962    
  20  norm          4.3423        3.0494        .41973E-05   -1.5291    
  21  Prefactor     23.621        33.241        .16488E-04   -1.4736    
  22  Prefactor     3.3515        275.71        .87862E-05   -1.5342    
  23  norm          .10000E-03    .37842        .19853E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .78517        .32011        .17748E-04   -1.0062    
  25  Prefactor     .94511        .11517        .31777E-04   -.94582    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.47717e-09
Minuit parameter uncertainties:
  1  3.08181e-06
  2  8.89489
  3  4.69088e-06
  4  5.0561e-06
  5  0.000417298
  6  1.06311e-05
  7  15.7994
  8  22.5892
  9  1.23208e-05
  10  0.00346113
  11  9.90994
  12  22.8657
  13  0.00128227
  14  4.16962
  15  8.24853e-05
  16  10.2647
  17  3.62599e-05
  18  0.000156401
  19  75.6134
  20  3.04949
  21  33.2667
  22  61.0878
  23  6.316e-06
  24  0.320884
  25  0.115205
Done.

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

Extracting fit parameters...

4FGL J2121.0+1901
   Spectrum: LogParabola
390         norm:  5.469e+00  4.170e+00  1.000e-04  1.000e+04 ( 1.000e-12)
391        alpha:  2.156e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
392         beta:  5.740e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
393           Eb:  8.783e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
658    Prefactor:  9.451e-01  1.152e-01  0.000e+00  1.000e+01 ( 1.000e+00)
659        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
660        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
657   Normalization:  7.852e-01  3.209e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 10.00
Ra Dec: 320.260 19.032
Photon Index (Fixed Index): 2.16 +/- 0.00
Photon Flux (Fixed Index): 4.47e-08 +/- 3.40e-08
Energy Flux (Fixed Index): 2.04e-05 +/- 1.56e-05

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) = 7181.01581751
delta logL = 0.946631492089

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7180.74847424
delta logL = 1.21397476271

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.0286       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.0609       1.0000          .0000       5.0000    
     3 'Normalizat'    .80737       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94613       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6610E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7180.748     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      214 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.0302        2.0322        .72618E-02   -.26555E-03
   2  alpha         1.0598        .38890        .34613       -.42714E-04
   3  Normalizat    .80793        .24793        .98817E-01    .31612E-04
   4  Prefactor     .94590        .97350E-01    .45590E-01   -.41702E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 2.03016
  alpha      = 1.05978
  Normalizat = 0.807933
  Prefactor  = 0.945902
 **********
 **   18 **HESSE 
 **********

 FCN=   7180.748     FROM HESSE     STATUS=OK            33 CALLS      247 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.0302        3.4350        .10677E-03   -1.5423    
   2  alpha         1.0598        .68925        .14339E-01   -.61393    
   3  Normalizat    .80793        .28598        .43789E-03   -.99775    
   4  Prefactor     .94590        .11277        .15888E-03   -.94555    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.71513e-09
Minuit parameter uncertainties:
  1  3.43534
  2  0.703042
  3  0.28651
  4  0.112798
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/470942': 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) = 7180.74846562
delta logL = 1.21398338296

Extracting fit parameters...

4FGL J2121.0+1901
   Spectrum: LogParabola
390         norm:  2.030e+00  3.435e+00  1.000e-04  1.000e+04 ( 1.000e-12)
391        alpha:  1.060e+00  7.030e-01  0.000e+00  5.000e+00 ( 1.000e+00)
392         beta:  5.740e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
393           Eb:  8.783e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
658    Prefactor:  9.459e-01  1.128e-01  0.000e+00  1.000e+01 ( 1.000e+00)
659        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
660        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
657   Normalization:  8.079e-01  2.865e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 12.42
Ra Dec: 320.260 19.032
Photon Index (Free Index): 1.06 +/- 0.70
Photon Flux (Free Index): 9.04e-09 +/- 1.22e-08
Energy Flux (Free Index): 6.57e-05 +/- 8.36e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/470942/cmap_HighResolution_552182401_552441601_4FGL_J2121.0+1901_daily_bin1207.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.47e-08', energy_flux2='6.57e-05', photon_flux_error='3.40e-08', dlogl='1.21e+00', energy_flux='2.04e-05', photon_flux2='9.04e-09', job_status='DONE', time_completed='2021-09-26 12:39:51.115652', photon_index_error2='0.70', photon_index2='1.06', ts='10.00', fit_tolerance='1e-08', GAL='0.95', photon_index_error='0.00', energy_flux_error2='8.36e-05', EG='0.79', time_epoch_completed='1632685191.12', return_code='0', job_id='470942', GAL2='0.95', EG2='0.81', return_code2='0', energy_flux_error='1.56e-05', photon_flux_error2='1.22e-08', ts2='12.42', photon_index='2.16' WHERE bin_id='1207' AND source_name='4FGL J2121.0+1901' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 12:39:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0073>
Subject: Job 470942: <4FGL_J2121.0+1901_daily_bin1207> in cluster <slac> Done

Job <4FGL_J2121.0+1901_daily_bin1207> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Sep 26 12:25:14 2021
Job was executed on host(s) <bullet0073>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 26 12:25:21 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep 26 12:25:21 2021
Terminated at Sun Sep 26 12:39:51 2021
Results reported at Sun Sep 26 12:39:51 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2121.0+1901_daily_bin1207 320.26 19.0324 552182401 552441601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2121.0+1901 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   853.11 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             357.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   870 sec.
    Turnaround time :                            877 sec.

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

