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


Performing analysis on: 4FGL_J1212.0-2326_daily_bin1017
RA = 183.001, Dec = -23.4494
tmin = 502934401, tmax = 503193601
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='408720', job_status='RUN', time_executed='2021-09-05 03:56:30.651713', time_epoch_executed='1630839390.65' WHERE source_name='4FGL J1212.0-2326' and cadence='daily' and bin_id='1017'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/408720

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/408720/ft1_4FGL_J1212.0-2326_daily_bin1017.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/408720/ft2_4FGL_J1212.0-2326_daily_bin1017.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/408720/ft1_4FGL_J1212.0-2326_daily_bin1017.fits outfile=/scratch/kocevski/408720/ft1_filteredMKT_4FGL_J1212.0-2326_daily_bin1017.fits ra=183.001 dec=-23.4494 rad=12.0 tmin=502934401.0 tmax=503193601.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.56
user 3.35
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/408720/ft2_4FGL_J1212.0-2326_daily_bin1017.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/408720/ft1_filteredMKT_4FGL_J1212.0-2326_daily_bin1017.fits evtable="EVENTS" outfile="/scratch/kocevski/408720/ft1_filtered_4FGL_J1212.0-2326_daily_bin1017.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/408720/ft1_filtered_4FGL_J1212.0-2326_daily_bin1017.fits" evtable="EVENTS" scfile=/scratch/kocevski/408720/ft2_4FGL_J1212.0-2326_daily_bin1017.fits sctable="SC_DATA" outfile=/scratch/kocevski/408720/ltcube_502934401_503193601_4FGL_J1212.0-2326_daily_bin1017.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/408720/ft2_4FGL_J1212.0-2326_daily_bin1017.fits
.....................!
real 11.83
user 11.45
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/408720/ft1_filtered_4FGL_J1212.0-2326_daily_bin1017.fits evtable="EVENTS" scfile=/scratch/kocevski/408720/ft2_4FGL_J1212.0-2326_daily_bin1017.fits sctable="SC_DATA" expcube=/scratch/kocevski/408720/ltcube_502934401_503193601_4FGL_J1212.0-2326_daily_bin1017.fits outfile=/scratch/kocevski/408720/expmap_502934401_503193601_4FGL_J1212.0-2326_daily_bin1017.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/408720/ltcube_502934401_503193601_4FGL_J1212.0-2326_daily_bin1017.fits
.....................!
real 191.07
user 185.01
sys 5.59

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/408720/ft1_filtered_4FGL_J1212.0-2326_daily_bin1017.fits scfile=/scratch/kocevski/408720/ft2_4FGL_J1212.0-2326_daily_bin1017.fits outfile=/scratch/kocevski/408720/cmap_502934401_503193601_4FGL_J1212.0-2326_daily_bin1017.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.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/408720/ft1_filtered_4FGL_J1212.0-2326_daily_bin1017.fits scfile=/scratch/kocevski/408720/ft2_4FGL_J1212.0-2326_daily_bin1017.fits outfile=/scratch/kocevski/408720/cmap_HighResolution_502934401_503193601_4FGL_J1212.0-2326_daily_bin1017.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.51
user 0.38
sys 0.12

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/408720/ft1_filtered_4FGL_J1212.0-2326_daily_bin1017.fits evtable="EVENTS" scfile=/scratch/kocevski/408720/ft2_4FGL_J1212.0-2326_daily_bin1017.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/408720/Model_4FGL_J1212.0-2326_daily_bin1017.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/408720/ft1_filtered_4FGL_J1212.0-2326_daily_bin1017.fits.....................!
real 62.52
user 61.11
sys 1.22

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/408720/ft1_filtered_4FGL_J1212.0-2326_daily_bin1017.fits', '/scratch/kocevski/408720/ft2_4FGL_J1212.0-2326_daily_bin1017.fits', expMap='/scratch/kocevski/408720/expmap_502934401_503193601_4FGL_J1212.0-2326_daily_bin1017.fits', expCube='/scratch/kocevski/408720/ltcube_502934401_503193601_4FGL_J1212.0-2326_daily_bin1017.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/408720/Model_4FGL_J1212.0-2326_daily_bin1017.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/408720/ft1_filtered_4FGL_J1212.0-2326_daily_bin1017.fits
Spacecraft file(s): /scratch/kocevski/408720/ft2_4FGL_J1212.0-2326_daily_bin1017.fits
Exposure map: /scratch/kocevski/408720/expmap_502934401_503193601_4FGL_J1212.0-2326_daily_bin1017.fits
Exposure cube: /scratch/kocevski/408720/ltcube_502934401_503193601_4FGL_J1212.0-2326_daily_bin1017.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/408720/Model_4FGL_J1212.0-2326_daily_bin1017.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) = 7463.34731302

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.8338       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .87455E-01   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.5204       1.0000         .10000E-03   10000.    
     9 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.0264       1.0000         .10000E-03   10000.    
    11 'Prefactor '    53.810       1.0000         .10000E-03   10000.    
    12 'Prefactor '    36.293       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10474E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .11357E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.1757       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    7.9955       1.0000         .10000E-03   10000.    
    18 'Prefactor '    12.635       1.0000         .10000E-03   10000.    
    19 'norm      '    1.9222       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    3.9470       1.0000         .10000E-03   10000.    
    22 'Prefactor '    1.4236       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.4883       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .78846       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=   7463.341     FROM MIGRAD    STATUS=CONVERGED    535 CALLS     2705 TOTAL
                     EDM=   .22E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.8336        12.943        .13616E-05   -.73904E-05
   2  Prefactor     .10000E-03    34.910        .26032E-06** at limit **
   3  norm          .89774E-01    .65251        .21784E-06   -.34437E-03
   4  Prefactor     .10000E-03    37.050        .27151E-05** at limit **
   5  Prefactor     .10000E-03    1.8669        .40663E-07** at limit **
   6  Prefactor     .10000E-03    16.600        .90864E-06** at limit **
   7  norm          .10000E-03    4.8155        .17238E-07** at limit **
   8  Prefactor     4.5263        15.712       -.15449E-05   -.18972E-04
   9  norm          .10000E-03    2.3226        .69898E-07** at limit **
  10  Prefactor     6.0289        6.7941        .10301E-05   -.27877E-04
  11  Prefactor     53.781        57.094        .44735E-05    .10338E-04
  12  Prefactor     36.279        34.193        .81733E-06   -.27880E-05
  13  Prefactor     .10000E-03    11.425       -.70736E-06** at limit **
  14  Prefactor     .10000E-03    30.773       -.35606E-05** at limit **
  15  Prefactor     4.1779        13.514        .19690E-05   -.74974E-05
  16  Prefactor     .10000E-03    8.6603        .11558E-06** at limit **
  17  Prefactor     7.9978        2.6181        .13605E-07   -.24588E-04
  18  Prefactor     12.636        13.577        .15395E-06   -.29022E-05
  19  norm          1.9223        1.1684        .37988E-07   -.23243E-04
  20  Prefactor     .10000E-03    34.568       -.15784E-06** at limit **
  21  norm          3.9469        4.1562       -.38642E-08   -.10602E-04
  22  Prefactor     1.4236        4.3816        .49425E-06    .19195E-05
  23  Normalizat    1.4884        .23257       -.84901E-06   -.88172E-05
  24  Prefactor     .78843        .11123       -.20416E-06   -.24874E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.83358
  Prefactor  = 0.0001
  norm       = 0.0897738
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 4.52628
  norm       = 0.0001
  Prefactor  = 6.02893
  Prefactor  = 53.7811
  Prefactor  = 36.2793
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.17787
  Prefactor  = 0.0001
  Prefactor  = 7.99776
  Prefactor  = 12.6362
  norm       = 1.92228
  Prefactor  = 0.0001
  norm       = 3.94693
  Prefactor  = 1.42358
  Normalizat = 1.48837
  Prefactor  = 0.788428
 **********
 **   18 **HESSE 
 **********

 FCN=   7463.341     FROM HESSE     STATUS=OK           401 CALLS     3106 TOTAL
                     EDM=   .44E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.8336        12.941        .83137E-03   -1.5225    
   2  Prefactor     .10000E-03    34.986        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .89774E-01    1.3901        .13391E-02   -1.5648    
   4  Prefactor     .10000E-03    37.214        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    1.8746        .11525E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    16.627        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    4.8164        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     4.5263        15.694        .18936E-03   -1.5282    
   9  norm          .10000E-03    2.3270        .12789E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     6.0289        6.7951        .81780E-03   -1.5217    
  11  Prefactor     53.781        57.279        .54679E-04   -1.4240    
  12  Prefactor     36.279        34.188        .66524E-04   -1.4503    
  13  Prefactor     .10000E-03    11.471        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    31.000        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     4.1779        13.492        .98615E-03   -1.5299    
  16  Prefactor     .10000E-03    8.9808        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     7.9978        2.6105        .77465E-04   -1.5142    
  18  Prefactor     12.636        13.584        .11269E-03   -1.4997    
  19  norm          1.9223        1.1598        .68689E-04   -1.5431    
  20  Prefactor     .10000E-03    34.590        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          3.9469        4.1211        .16628E-03   -1.5311    
  22  Prefactor     1.4236        4.3108        .29040E-03   -1.5469    
  23  Normalizat    1.4884        .27720        .30756E-03   -.78106    
  24  Prefactor     .78843        .13315        .19910E-03   -1.0016    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.38597e-08
Minuit parameter uncertainties:
  1  12.947
  2  1.32767e-06
  3  0.706161
  4  2.28512e-05
  5  4.68813e-07
  6  2.53368e-06
  7  1.63906e-07
  8  15.708
  9  3.01069e-06
  10  6.79599
  11  57.3374
  12  34.2068
  13  3.66103e-05
  14  6.05601e-05
  15  13.5019
  16  6.92243e-06
  17  2.61049
  18  13.5872
  19  1.15981
  20  8.08245e-07
  21  4.12141
  22  4.31177
  23  0.277483
  24  0.133202
Done.

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

Extracting fit parameters...

4FGL J1212.0-2326
   Spectrum: PowerLaw
297    Prefactor:  1.000e-04  3.661e-05  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:  7.884e-01  1.332e-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.488e+00  2.775e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 183.001 -23.449
Photon Flux Upper Limit: 6.49e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.82e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/408720/likelihoodResults_502934401_503193601_4FGL_J1212.0-2326_daily_bin1017.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) = 7463.34179081
delta logL = -0.000415292611251

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7463.34137552
delta logL = -1.640728442e-09

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 'Index     '    1.8976       1.0000          .0000       10.000    
     3 'Normalizat'    1.4884       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .78843       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.

 FCN=   7463.341     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      206 TOTAL
                     EDM=   .36E-12    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    54.613        .90712E-02** at limit **
   2  Index         1.8976        5.8551        .50000       -.15739E-06
   3  Normalizat    1.4884        .12709E-01    .69520E-01    .79088E-05
   4  Prefactor     .78843        .62529E-02    .43567E-01    .12640E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.89763
  Normalizat = 1.48837
  Prefactor  = 0.788428
 **********
 **   18 **HESSE 
 **********

 FCN=   7463.341     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      239 TOTAL
                     EDM=   .11E-12    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    706.49        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8976        5.2340        .50000       -.66935    
   3  Normalizat    1.4884        .49520E-01    .30756E-03   -.78106    
   4  Prefactor     .78843        .24377E-01    .19910E-03   -1.0016    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.13579e-13
Minuit parameter uncertainties:
  1  2.11089e-05
  2  31.2127
  3  0.0495215
  4  0.0243769
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/408720': 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) = 7463.34137551
delta logL = 3.63797880709e-12

Extracting fit parameters...

4FGL J1212.0-2326
   Spectrum: PowerLaw
297    Prefactor:  1.000e-04  2.111e-05  1.000e-04  1.000e+04 ( 1.000e-14)
298        Index:  1.898e+00  3.121e+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:  7.884e-01  2.438e-02  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.488e+00  4.952e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 183.001 -23.449

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/408720/cmap_HighResolution_502934401_503193601_4FGL_J1212.0-2326_daily_bin1017.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.82e-03', job_status='DONE', photon_flux_upper_limit='6.49e-08', time_completed='2021-09-05 04:09:09.945067', job_id='408720', GAL2='0.79', fit_tolerance='1e-08', EG2='1.49', EG='1.49', time_epoch_completed='1630840149.95', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.79', dlogl='3.64e-12', ts2='-0.00', photon_index_error='0.00', photon_index='1.90' WHERE bin_id='1017' AND source_name='4FGL J1212.0-2326' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 04:09:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0267>
Subject: Job 408720: <4FGL_J1212.0-2326_daily_bin1017> in cluster <slac> Done

Job <4FGL_J1212.0-2326_daily_bin1017> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sun Sep  5 03:55:48 2021
Job was executed on host(s) <bullet0267>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 03:55:50 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:50 2021
Terminated at Sun Sep  5 04:09:10 2021
Results reported at Sun Sep  5 04:09:10 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1212.0-2326_daily_bin1017 183.001 -23.4494 502934401 503193601 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 :                                   750.45 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             293.88 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   800 sec.
    Turnaround time :                            802 sec.

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

