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


Performing analysis on: 4FGL_J1212.0-2326_daily_bin1044
RA = 183.001, Dec = -23.4494
tmin = 509932801, tmax = 510192001
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='408766', job_status='RUN', time_executed='2021-09-05 03:57:33.749734', time_epoch_executed='1630839453.75' WHERE source_name='4FGL J1212.0-2326' and cadence='daily' and bin_id='1044'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/408766

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/408766/ft1_4FGL_J1212.0-2326_daily_bin1044.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/408766/ft2_4FGL_J1212.0-2326_daily_bin1044.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/408766/ft1_4FGL_J1212.0-2326_daily_bin1044.fits outfile=/scratch/kocevski/408766/ft1_filteredMKT_4FGL_J1212.0-2326_daily_bin1044.fits ra=183.001 dec=-23.4494 rad=12.0 tmin=509932801.0 tmax=510192001.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.49
user 3.28
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/408766/ft2_4FGL_J1212.0-2326_daily_bin1044.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/408766/ft2_4FGL_J1212.0-2326_daily_bin1044.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/408766/ft1_filteredMKT_4FGL_J1212.0-2326_daily_bin1044.fits evtable="EVENTS" outfile="/scratch/kocevski/408766/ft1_filtered_4FGL_J1212.0-2326_daily_bin1044.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.31
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/408766/ft1_filtered_4FGL_J1212.0-2326_daily_bin1044.fits" evtable="EVENTS" scfile=/scratch/kocevski/408766/ft2_4FGL_J1212.0-2326_daily_bin1044.fits sctable="SC_DATA" outfile=/scratch/kocevski/408766/ltcube_509932801_510192001_4FGL_J1212.0-2326_daily_bin1044.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/408766/ft2_4FGL_J1212.0-2326_daily_bin1044.fits
.....................!
real 11.82
user 11.44
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/408766/ft1_filtered_4FGL_J1212.0-2326_daily_bin1044.fits evtable="EVENTS" scfile=/scratch/kocevski/408766/ft2_4FGL_J1212.0-2326_daily_bin1044.fits sctable="SC_DATA" expcube=/scratch/kocevski/408766/ltcube_509932801_510192001_4FGL_J1212.0-2326_daily_bin1044.fits outfile=/scratch/kocevski/408766/expmap_509932801_510192001_4FGL_J1212.0-2326_daily_bin1044.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/408766/ltcube_509932801_510192001_4FGL_J1212.0-2326_daily_bin1044.fits
.....................!
real 190.99
user 185.57
sys 5.07

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

Setting source of interest to:
4FGL J1212.0-2326 @ 183.001 -23.4494

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/408766/ft1_filtered_4FGL_J1212.0-2326_daily_bin1044.fits scfile=/scratch/kocevski/408766/ft2_4FGL_J1212.0-2326_daily_bin1044.fits outfile=/scratch/kocevski/408766/cmap_509932801_510192001_4FGL_J1212.0-2326_daily_bin1044.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=183.001 yref=-23.4494 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.68
user 0.40
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/408766/ft1_filtered_4FGL_J1212.0-2326_daily_bin1044.fits scfile=/scratch/kocevski/408766/ft2_4FGL_J1212.0-2326_daily_bin1044.fits outfile=/scratch/kocevski/408766/cmap_HighResolution_509932801_510192001_4FGL_J1212.0-2326_daily_bin1044.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=183.001 yref=-23.4494 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.59
user 0.39
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/408766/ft1_filtered_4FGL_J1212.0-2326_daily_bin1044.fits evtable="EVENTS" scfile=/scratch/kocevski/408766/ft2_4FGL_J1212.0-2326_daily_bin1044.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/408766/Model_4FGL_J1212.0-2326_daily_bin1044.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/408766/ft1_filtered_4FGL_J1212.0-2326_daily_bin1044.fits.....................!
real 71.80
user 69.65
sys 1.20

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/408766/ft1_filtered_4FGL_J1212.0-2326_daily_bin1044.fits', '/scratch/kocevski/408766/ft2_4FGL_J1212.0-2326_daily_bin1044.fits', expMap='/scratch/kocevski/408766/expmap_509932801_510192001_4FGL_J1212.0-2326_daily_bin1044.fits', expCube='/scratch/kocevski/408766/ltcube_509932801_510192001_4FGL_J1212.0-2326_daily_bin1044.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/408766/Model_4FGL_J1212.0-2326_daily_bin1044.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1212.0-2326'

4FGL J1212.0-2326
   Spectrum: PowerLaw
297    Prefactor:  1.799e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
298        Index:  1.897e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
299        Scale:  4.223e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/408766/ft1_filtered_4FGL_J1212.0-2326_daily_bin1044.fits
Spacecraft file(s): /scratch/kocevski/408766/ft2_4FGL_J1212.0-2326_daily_bin1044.fits
Exposure map: /scratch/kocevski/408766/expmap_509932801_510192001_4FGL_J1212.0-2326_daily_bin1044.fits
Exposure cube: /scratch/kocevski/408766/ltcube_509932801_510192001_4FGL_J1212.0-2326_daily_bin1044.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/408766/Model_4FGL_J1212.0-2326_daily_bin1044.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) = 8764.22260654

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10391E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    27.600       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    11.816       1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10320E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    3.7820       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10075E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    26.114       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .56076       1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.7857       1.0000         .10000E-03   10000.    
    18 'Prefactor '    5.4674       1.0000         .10000E-03   10000.    
    19 'norm      '    1.5638       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    4.7125       1.0000         .10000E-03   10000.    
    22 'Prefactor '    1.9035       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.3751       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .99619       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5720E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8764.164     FROM MIGRAD    STATUS=CONVERGED    548 CALLS     2375 TOTAL
                     EDM=   .54E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.4722        .66969E-07** at limit **
   2  Prefactor     .10002E-03    48.155       -.70103E-05** at limit **
   3  norm          .10000E-03    .53489        .97138E-07** at limit **
   4  Prefactor     27.603        26.621        .73484E-06    .92454E-04
   5  Prefactor     .10000E-03    1.7710        .79099E-07** at limit **
   6  Prefactor     11.818        19.632        .40742E-06    .25560E-04
   7  norm          .10000E-03    4.3263       -.10948E-06** at limit **
   8  Prefactor     .10000E-03    18.913       -.59965E-06** at limit **
   9  norm          3.7844        3.8935        .10543E-06   -.22294E-03
  10  Prefactor     .10000E-03    3.4173        .32164E-07** at limit **
  11  Prefactor     .10001E-03    42.393        .53532E-05** at limit **
  12  Prefactor     .10000E-03    11.208       -.41066E-07** at limit **
  13  Prefactor     26.115        17.664        .12518E-06   -.84849E-05
  14  Prefactor     .10000E-03    17.678        .16286E-05** at limit **
  15  Prefactor     .10000E-03    7.9667       -.18013E-06** at limit **
  16  Prefactor     .57786        3.6608       -.32489E-06    .17756E-03
  17  Prefactor     3.7841        2.1240        .55736E-07    .43997E-03
  18  Prefactor     5.4674        6.6636       -.50163E-08   -.32270E-04
  19  norm          1.5638        .84907        .39861E-06   -.36768E-02
  20  Prefactor     .10000E-03    24.847       -.92720E-06** at limit **
  21  norm          4.7098        8.5871       -.74848E-06   -.25649E-03
  22  Prefactor     1.9070        9.5592        .11837E-05   -.27353E-03
  23  Normalizat    1.3752        .21394       -.74580E-06   -.63482E-04
  24  Prefactor     .99613        .10849       -.23205E-07   -.13921E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100015
  norm       = 0.0001
  Prefactor  = 27.6033
  Prefactor  = 0.0001
  Prefactor  = 11.818
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 3.78444
  Prefactor  = 0.0001
  Prefactor  = 0.000100009
  Prefactor  = 0.0001
  Prefactor  = 26.1151
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.57786
  Prefactor  = 3.78407
  Prefactor  = 5.46743
  norm       = 1.56381
  Prefactor  = 0.0001
  norm       = 4.70982
  Prefactor  = 1.90695
  Normalizat = 1.37518
  Prefactor  = 0.996134
 **********
 **   18 **HESSE 
 **********

 FCN=   8764.164     FROM HESSE     STATUS=OK           395 CALLS     2770 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.4774        .14377E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10002E-03    52.262        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    2.2087        .13193E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     27.603        26.700        .76256E-04   -1.4657    
   5  Prefactor     .10000E-03    1.7846        .12162E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     11.818        19.627        .11654E-03   -1.5020    
   7  norm          .10000E-03    4.3277        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    19.139        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          3.7844        3.8813        .17909E-03   -1.5319    
  10  Prefactor     .10000E-03    3.4898        .16886E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10001E-03    44.997        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    11.228        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     26.115        17.659        .78391E-04   -1.4685    
  14  Prefactor     .10000E-03    17.918        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    7.9814        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .57786        22.717        .32004E-02   -1.5556    
  17  Prefactor     3.7841        2.1818        .93284E-04   -1.5319    
  18  Prefactor     5.4674        6.6616        .17184E-03   -1.5240    
  19  norm          1.5638        .93964        .34083E-03   -1.5458    
  20  Prefactor     .10000E-03    24.910        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          4.7098        7.9875        .18536E-03   -1.5274    
  22  Prefactor     1.9070        8.4506        .30141E-03   -1.5432    
  23  Normalizat    1.3752        .25535        .32533E-03   -.81349    
  24  Prefactor     .99613        .13089        .19137E-03   -.92859    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.88713e-09
Minuit parameter uncertainties:
  1  4.06582e-06
  2  0.00179133
  3  1.18617e-05
  4  26.7118
  5  3.84041e-06
  6  19.6378
  7  7.91329e-06
  8  6.27409e-05
  9  3.8816
  10  4.10158e-06
  11  0.00125153
  12  2.36722e-06
  13  17.6621
  14  0.000245848
  15  1.62843e-05
  16  7.24857
  17  2.18182
  18  6.66246
  19  0.939646
  20  0.000155309
  21  7.98935
  22  8.03038
  23  0.255582
  24  0.130935
Done.

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

Extracting fit parameters...

4FGL J1212.0-2326
   Spectrum: PowerLaw
297    Prefactor:  2.612e+01  1.766e+01  1.000e-04  1.000e+04 ( 1.000e-14)
298        Index:  1.897e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
299        Scale:  4.223e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
569    Prefactor:  9.961e-01  1.309e-01  0.000e+00  1.000e+01 ( 1.000e+00)
570        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
571        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
568   Normalization:  1.375e+00  2.556e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.60
Ra Dec: 183.001 -23.449
Photon Index (Fixed Index): 1.90 +/- 0.00
Photon Flux (Fixed Index): 3.53e-08 +/- 2.39e-08
Energy Flux (Fixed Index): 3.19e-05 +/- 2.16e-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) = 8764.1010626
delta logL = 0.0628755993639

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8764.08321227
delta logL = 0.0807259239537

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    33.404       1.0000         .10000E-03   10000.    
     2 'Index     '    1.7172       1.0000          .0000       10.000    
     3 'Normalizat'    1.3813       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99494       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5720E+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=   8764.083     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      287 TOTAL
                     EDM=   .66E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     33.402        29.030        .69332E-04    .15276E-03
   2  Index         1.7173        .45277        .71703E-02    .42331E-04
   3  Normalizat    1.3813        .25244        .32472E-03    .12149E-03
   4  Prefactor     .99493        .12977        .19147E-03    .95950E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 33.4015
  Index      = 1.71735
  Normalizat = 1.38131
  Prefactor  = 0.994932
 **********
 **   18 **HESSE 
 **********

 FCN=   8764.083     FROM HESSE     STATUS=OK            25 CALLS      312 TOTAL
                     EDM=   .71E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     33.402        28.011        .13866E-04   -1.4551    
   2  Index         1.7173        .43695        .28681E-03   -.71621    
   3  Normalizat    1.3813        .25261        .12989E-04   -.81171    
   4  Prefactor     .99493        .12989        .76589E-05   -.92899    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.12695e-11
Minuit parameter uncertainties:
  1  28.0225
  2  0.437934
  3  0.252834
  4  0.12993
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/408766': 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) = 8764.08321222
delta logL = 0.080725974778

Extracting fit parameters...

4FGL J1212.0-2326
   Spectrum: PowerLaw
297    Prefactor:  3.340e+01  2.802e+01  1.000e-04  1.000e+04 ( 1.000e-14)
298        Index:  1.717e+00  4.379e-01  0.000e+00  1.000e+01 (-1.000e+00)
299        Scale:  4.223e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
569    Prefactor:  9.949e-01  1.299e-01  0.000e+00  1.000e+01 ( 1.000e+00)
570        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
571        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
568   Normalization:  1.381e+00  2.528e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.77
Ra Dec: 183.001 -23.449
Photon Index (Free Index): 1.72 +/- 0.44
Photon Flux (Free Index): 2.86e-08 +/- 2.51e-08
Energy Flux (Free Index): 4.42e-05 +/- 4.74e-05

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/408766/cmap_HighResolution_509932801_510192001_4FGL_J1212.0-2326_daily_bin1044.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.53e-08', energy_flux2='4.42e-05', photon_flux_error='2.39e-08', dlogl='8.07e-02', energy_flux='3.19e-05', photon_flux2='2.86e-08', job_status='DONE', time_completed='2021-09-05 04:09:34.563459', photon_index_error2='0.44', photon_index2='1.72', ts='5.60', fit_tolerance='1e-08', GAL='1.00', photon_index_error='0.00', energy_flux_error2='4.74e-05', EG='1.38', time_epoch_completed='1630840174.56', return_code='0', job_id='408766', GAL2='0.99', EG2='1.38', return_code2='0', energy_flux_error='2.16e-05', photon_flux_error2='2.51e-08', ts2='5.77', photon_index='1.90' WHERE bin_id='1044' AND source_name='4FGL J1212.0-2326' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 04:09:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0078>
Subject: Job 408766: <4FGL_J1212.0-2326_daily_bin1044> in cluster <slac> Done

Job <4FGL_J1212.0-2326_daily_bin1044> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sun Sep  5 03:55:52 2021
Job was executed on host(s) <bullet0078>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 03:55:53 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep  5 03:55:53 2021
Terminated at Sun Sep  5 04:09:35 2021
Results reported at Sun Sep  5 04:09:35 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1212.0-2326_daily_bin1044 183.001 -23.4494 509932801 510192001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1212.0-2326 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   712.45 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             323.41 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   822 sec.
    Turnaround time :                            823 sec.

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

