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


Performing analysis on: 4FGL_J1212.0-2326_daily_bin925
RA = 183.001, Dec = -23.4494
tmin = 479088001, tmax = 479347201
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='408563', job_status='RUN', time_executed='2021-09-05 03:58:09.018633', time_epoch_executed='1630839489.02' WHERE source_name='4FGL J1212.0-2326' and cadence='daily' and bin_id='925'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/408563

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/408563/ft1_4FGL_J1212.0-2326_daily_bin925.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/408563/ft2_4FGL_J1212.0-2326_daily_bin925.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/408563/ft1_4FGL_J1212.0-2326_daily_bin925.fits outfile=/scratch/kocevski/408563/ft1_filteredMKT_4FGL_J1212.0-2326_daily_bin925.fits ra=183.001 dec=-23.4494 rad=12.0 tmin=479088001.0 tmax=479347201.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.54
user 3.31
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/408563/ft2_4FGL_J1212.0-2326_daily_bin925.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/408563/ft1_filteredMKT_4FGL_J1212.0-2326_daily_bin925.fits evtable="EVENTS" outfile="/scratch/kocevski/408563/ft1_filtered_4FGL_J1212.0-2326_daily_bin925.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.51
user 0.33
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/408563/ft1_filtered_4FGL_J1212.0-2326_daily_bin925.fits" evtable="EVENTS" scfile=/scratch/kocevski/408563/ft2_4FGL_J1212.0-2326_daily_bin925.fits sctable="SC_DATA" outfile=/scratch/kocevski/408563/ltcube_479088001_479347201_4FGL_J1212.0-2326_daily_bin925.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/408563/ft2_4FGL_J1212.0-2326_daily_bin925.fits
.....................!
real 14.33
user 13.94
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/408563/ft1_filtered_4FGL_J1212.0-2326_daily_bin925.fits evtable="EVENTS" scfile=/scratch/kocevski/408563/ft2_4FGL_J1212.0-2326_daily_bin925.fits sctable="SC_DATA" expcube=/scratch/kocevski/408563/ltcube_479088001_479347201_4FGL_J1212.0-2326_daily_bin925.fits outfile=/scratch/kocevski/408563/expmap_479088001_479347201_4FGL_J1212.0-2326_daily_bin925.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/408563/ltcube_479088001_479347201_4FGL_J1212.0-2326_daily_bin925.fits
.....................!
real 190.82
user 185.84
sys 4.41

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/408563/ft1_filtered_4FGL_J1212.0-2326_daily_bin925.fits scfile=/scratch/kocevski/408563/ft2_4FGL_J1212.0-2326_daily_bin925.fits outfile=/scratch/kocevski/408563/cmap_479088001_479347201_4FGL_J1212.0-2326_daily_bin925.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.57
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/408563/ft1_filtered_4FGL_J1212.0-2326_daily_bin925.fits scfile=/scratch/kocevski/408563/ft2_4FGL_J1212.0-2326_daily_bin925.fits outfile=/scratch/kocevski/408563/cmap_HighResolution_479088001_479347201_4FGL_J1212.0-2326_daily_bin925.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.62
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/408563/ft1_filtered_4FGL_J1212.0-2326_daily_bin925.fits evtable="EVENTS" scfile=/scratch/kocevski/408563/ft2_4FGL_J1212.0-2326_daily_bin925.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/408563/Model_4FGL_J1212.0-2326_daily_bin925.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/408563/ft1_filtered_4FGL_J1212.0-2326_daily_bin925.fits.....................!
real 55.75
user 53.62
sys 1.15

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10020E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    49.795       1.0000         .10000E-03   10000.    
     5 'Prefactor '    18.951       1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.0561       1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    24.176       1.0000         .10000E-03   10000.    
     9 'norm      '    6.8865       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .97057E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .81084       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10197E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.9914       1.0000         .10000E-03   10000.    
    17 'Prefactor '    9.4899       1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.8715       1.0000         .10000E-03   10000.    
    19 'norm      '    3.0791       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    26.022       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .82025       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.2117       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=   6361.151     FROM MIGRAD    STATUS=CONVERGED    944 CALLS     3127 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    12.181        .18142E-02** at limit **
   2  Prefactor     .10000E-03    24.061        .18142E-02** at limit **
   3  norm          .10000E-03    .75449        .66841E-03** at limit **
   4  Prefactor     49.760        49.622        .56829E-04   -.22698E-03
   5  Prefactor     18.957        8.4965        .92004E-04   -.63457E-03
   6  Prefactor     3.0662        49.528        .23207E-03   -.30667E-04
   7  norm          .10000E-03    14.474        .18142E-02** at limit **
   8  Prefactor     24.203        38.610        .81467E-04   -.44851E-03
   9  norm          6.8831        10.654        .15289E-03   -.30845E-03
  10  Prefactor     .10002E-03    16.162        .35215E-02** at limit **
  11  Prefactor     .10000E-03    34.865        .18142E-02** at limit **
  12  Prefactor     .73719        45.223        .12955        .12150E-03
  13  Prefactor     .10000E-03    8.5943        .18142E-02** at limit **
  14  Prefactor     .10000E-03    14.836        .18142E-02** at limit **
  15  Prefactor     .10000E-03    23.950        .18142E-02** at limit **
  16  Prefactor     3.9903        7.8629        .10094E-02   -.39903E-03
  17  Prefactor     9.4898        3.4055        .79758E-04   -.11261E-04
  18  Prefactor     3.8691        14.115        .10254E-02   -.11418E-03
  19  norm          3.0788        1.4234        .61858E-04    .51093E-04
  20  Prefactor     .10000E-03    52.888        .18142E-02** at limit **
  21  norm          26.019        9.7891        .78531E-04    .26090E-03
  22  Prefactor     .10000E-03    2.7280        .12846E-02** at limit **
  23  Normalizat    .82031        .33930        .44576E-03   -.38381E-03
  24  Prefactor     1.2117        .16528        .18764E-03   -.75554E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 49.7599
  Prefactor  = 18.9567
  Prefactor  = 3.06621
  norm       = 0.0001
  Prefactor  = 24.2028
  norm       = 6.88306
  Prefactor  = 0.000100015
  Prefactor  = 0.000100001
  Prefactor  = 0.737187
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.99032
  Prefactor  = 9.48982
  Prefactor  = 3.86908
  norm       = 3.07879
  Prefactor  = 0.000100004
  norm       = 26.0187
  Prefactor  = 0.0001
  Normalizat = 0.820305
  Prefactor  = 1.21172
 **********
 **   18 **HESSE 
 **********

 FCN=   6361.151     FROM HESSE     STATUS=OK           383 CALLS     3510 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    12.186        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    24.061        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    .75458        .13368E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     49.760        49.620        .11366E-04   -1.4296    
   5  Prefactor     18.957        8.4960        .18401E-04   -1.4837    
   6  Prefactor     3.0662        49.518        .92826E-05   -1.5358    
   7  norm          .10000E-03    14.475        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     24.203        38.592        .16293E-04   -1.4724    
   9  norm          6.8831        10.649        .61154E-05   -1.5183    
  10  Prefactor     .10002E-03    16.236        .70429E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    34.866        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .73719        41.871        .13583       -1.5536    
  13  Prefactor     .10000E-03    8.5945        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    14.836        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    23.954        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     3.9903        7.8556        .40375E-04   -1.5308    
  17  Prefactor     9.4898        3.4032        .31903E-05   -1.5092    
  18  Prefactor     3.8691        14.108        .41016E-04   -1.5315    
  19  norm          3.0788        1.4233        .24743E-05   -1.5357    
  20  Prefactor     .10000E-03    52.889        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          26.019        9.7886        .15706E-04   -1.4687    
  22  Prefactor     .10000E-03    2.7281        .25692E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .82031        .33935        .17830E-04   -.99320    
  24  Prefactor     1.2117        .16537        .37529E-04   -.85971    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.96581e-09
Minuit parameter uncertainties:
  1  4.77705e-05
  2  8.09267e-05
  3  3.85804e-07
  4  49.6612
  5  8.49659
  6  24.6678
  7  7.05452e-05
  8  38.6318
  9  10.6519
  10  0.00100268
  11  0.00030686
  12  11.119
  13  5.1688e-05
  14  0.000118451
  15  0.000159385
  16  7.85759
  17  3.40323
  18  14.1201
  19  1.42336
  20  0.000939712
  21  9.78918
  22  1.0092e-06
  23  0.340229
  24  0.165443
Done.

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

Extracting fit parameters...

4FGL J1212.0-2326
   Spectrum: PowerLaw
297    Prefactor:  1.000e-04  5.169e-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:  1.212e+00  1.654e-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:  8.203e-01  3.402e-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.00e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.46e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/408563/likelihoodResults_479088001_479347201_4FGL_J1212.0-2326_daily_bin925.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) = 6361.15128029
delta logL = -0.000542798380593

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6361.15073999
delta logL = -2.49791992246e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .13119E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.8681       1.0000          .0000       10.000    
     3 'Normalizat'    .81987       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2119       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=   6361.151     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      195 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    109.55        .90712E-02** at limit **
   2  Index         1.8405        8.7038        .50000        .22550E-04
   3  Normalizat    .82031        .24485E-01    .10058        .54927E-04
   4  Prefactor     1.2117        .12349E-01    .34355E-01    .60626E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010001
  Index      = 1.84052
  Normalizat = 0.820309
  Prefactor  = 1.21172
 **********
 **   18 **HESSE 
 **********

 FCN=   6361.151     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      226 TOTAL
                     EDM=   .27E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    779.70        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8405        8.0524        .50000       -.68400    
   3  Normalizat    .82031        .72864E-01    .44575E-03   -.99320    
   4  Prefactor     1.2117        .36872E-01    .18764E-03   -.85971    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.72774e-07
Minuit parameter uncertainties:
  1  0.00569626
  2  36.3139
  3  0.0728726
  4  0.0368731
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/408563': 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) = 6361.15073714
delta logL = 3.53657014784e-07

Extracting fit parameters...

4FGL J1212.0-2326
   Spectrum: PowerLaw
297    Prefactor:  1.000e-04  5.696e-03  1.000e-04  1.000e+04 ( 1.000e-14)
298        Index:  1.841e+00  3.631e+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:  1.212e+00  3.687e-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:  8.203e-01  7.287e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/408563/cmap_HighResolution_479088001_479347201_4FGL_J1212.0-2326_daily_bin925.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.46e-03', job_status='DONE', photon_flux_upper_limit='6.00e-08', time_completed='2021-09-05 04:10:05.447135', job_id='408563', GAL2='1.21', fit_tolerance='1e-08', EG2='0.82', EG='0.82', time_epoch_completed='1630840205.45', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.21', dlogl='3.54e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.90' WHERE bin_id='925' AND source_name='4FGL J1212.0-2326' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 04:10:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0202>
Subject: Job 408563: <4FGL_J1212.0-2326_daily_bin925> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1212.0-2326_daily_bin925 183.001 -23.4494 479088001 479347201 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 :                                   710.29 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             294.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   868 sec.
    Turnaround time :                            871 sec.

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

